WEBVTT

00:00:00.560 --> 00:00:05.015
In this tutorial, we'll install OpenAI's codeex app on Windows.

00:00:05.015 --> 00:00:07.408
Then using CC switch and AI hub mix.

00:00:07.408 --> 00:00:13.110
We'll make it run on almost any AI model, not just Open on almost any AI model, not just Open AIS.

00:00:13.120 --> 00:00:14.423
Start in your browser.

00:00:14.423 --> 00:00:21.434
Search for codeex Start in your browser.

00:00:21.434 --> 00:00:28.790
Search for codeex download.

00:00:28.800 --> 00:00:42.470
Open the official codeex page on Open the official codeex page on openai.com.

00:00:42.480 --> 00:00:49.510
Click download for Windows.

00:00:49.520 --> 00:00:56.549
The installer itself is tiny, so it's done in seconds.

00:00:56.559 --> 00:01:02.310
When it finishes, show it in file When it finishes, show it in file explorer.

00:01:02.320 --> 00:01:10.710
Rightclick the installer and run it as Rightclick the installer and run it as administrator.

00:01:10.720 --> 00:01:17.910
A setup window opens and a real download A setup window opens and a real download begins.

00:01:17.920 --> 00:01:36.469
This package is about 700 megabytes.

00:01:36.479 --> 00:01:40.404
Fair warning, this part can be slow, usually 5 to 6 minutes.

00:01:40.404 --> 00:01:50.149
So, let's skip the wait.

00:01:50.159 --> 00:01:55.742
And we're back.

00:01:55.742 --> 00:02:02.069
96% and counting.

00:02:02.079 --> 00:02:15.350
The moment it hits 100, everything happens on its own.

00:02:15.360 --> 00:02:25.110
The installer closes and Codeex launches The installer closes and Codeex launches itself.

00:02:25.120 --> 00:02:26.659
It lands on a sign-in screen.

00:02:26.659 --> 00:02:28.083
And here's the key part.

00:02:28.083 --> 00:02:29.510
Don't click anything.

00:02:29.520 --> 00:02:30.776
We're never going to log in.

00:02:30.776 --> 00:02:33.910
That's what CC Switch is for.

00:02:33.920 --> 00:02:35.103
Codeex is installed.

00:02:35.103 --> 00:02:36.551
Now for the fun part.

00:02:36.551 --> 00:02:37.654
CC Switch.

00:02:37.654 --> 00:02:42.900
CC Switch is a free open- source app that can point CEcs at thirdparty providers.

00:02:42.900 --> 00:02:50.111
We'll use it to connect to AI HubMix, one gateway that carries basically every AI model behind a single API key.

00:02:50.111 --> 00:02:57.430
Today's example model, DeepSeek V4 Flash, the 0731 release.

00:02:57.440 --> 00:03:04.630
Head to the CC Switch site and hit download free.

00:03:04.640 --> 00:03:08.630
It takes us to the downloads page.

00:03:08.640 --> 00:03:09.990
Pick your operating system.

00:03:09.990 --> 00:03:17.110
We're on Windows 10, so we take the x64 Windows 10, so we take the x64 installer.

00:03:17.120 --> 00:03:19.350
Chrome flags the file as unverified.

00:03:19.360 --> 00:03:21.589
That's just safe browsing being off.

00:03:21.599 --> 00:03:28.660
Keep it 12 megabytes.

00:03:28.660 --> 00:03:29.698
Done instantly.

00:03:29.698 --> 00:03:32.344
Open it to 12 megabytes.

00:03:32.344 --> 00:03:34.588
Done instantly.

00:03:34.588 --> 00:03:37.430
Open it to install.

00:03:37.440 --> 00:03:39.323
Setup takes a few seconds.

00:03:39.323 --> 00:03:41.825
Then CC switch is ready.

00:03:41.825 --> 00:03:43.190
Open it up.

00:03:43.200 --> 00:03:45.731
At the top, switch to the open AI section.

00:03:45.731 --> 00:03:47.589
That's the one codeex reads.

00:03:47.599 --> 00:03:51.990
Then hit the plus to add a provider.

00:03:52.000 --> 00:04:02.229
From the presets, choose AI hub mix icon and endpoint fill in automatically.

00:04:02.239 --> 00:04:03.677
Next, we need an API key.

00:04:03.677 --> 00:04:09.350
So, over to the AIHubmix website.

00:04:09.360 --> 00:04:16.469
Search for iHubmix and open Search for iHubmix and open aihubmix.com.

00:04:16.479 --> 00:04:25.030
One gateway, infinite models, every major LLM behind one unified API.

00:04:25.040 --> 00:04:29.189
Click console.

00:04:29.199 --> 00:04:31.350
It asks us to sign in Google account.

00:04:31.360 --> 00:04:41.110
One click.

00:04:41.120 --> 00:04:54.870
Once we're in, open API keys in the sidebar and add a new key.

00:04:54.880 --> 00:04:58.501
Name it DeepSk V4 flash 0731.

00:04:58.501 --> 00:05:04.550
So we know what it's for.

00:05:04.560 --> 00:05:06.047
Notice the options here.

00:05:06.047 --> 00:05:10.710
Quota and an expiry time.

00:05:10.720 --> 00:05:12.790
We'll give this key an expiration date.

00:05:12.800 --> 00:05:13.253
One day.

00:05:13.253 --> 00:05:16.100
If it ever leaks, it's already dead.

00:05:16.100 --> 00:05:19.749
Cheap insurance.

00:05:19.759 --> 00:05:20.648
Submit.

00:05:20.648 --> 00:05:23.189
And there's our key.

00:05:23.199 --> 00:05:24.452
Copy it before closing.

00:05:24.452 --> 00:05:25.689
It's only shown once.

00:05:25.689 --> 00:05:31.189
Back in CC switch, paste the key into the AI HubMix provider.

00:05:31.199 --> 00:05:33.830
Bonus feature, endpoint speed testing.

00:05:33.840 --> 00:05:35.233
Both endpoints answer fast.

00:05:35.233 --> 00:05:39.110
Either one will do.

00:05:39.120 --> 00:05:40.780
Now, the default model.

00:05:40.780 --> 00:05:45.526
Click the download icon and CC switch pulls the full AI hub mix model list.

00:05:45.526 --> 00:05:49.830
Everything they carry.

00:05:49.840 --> 00:05:57.749
Filter for Deepseek and select Deepseek V4 flash0731.

00:05:57.759 --> 00:05:59.909
Keep the upstream format on responses.

00:05:59.919 --> 00:06:03.270
That's what Codeex speaks natively.

00:06:03.280 --> 00:06:05.430
Add it saved.

00:06:05.440 --> 00:06:07.270
The new provider appears at the bottom.

00:06:07.280 --> 00:06:08.464
Click it to enable it.

00:06:08.464 --> 00:06:14.550
Now it's the active config for Codeex.

00:06:14.560 --> 00:06:16.558
Time to restart Codeex properly.

00:06:16.558 --> 00:06:17.396
Close the window.

00:06:17.396 --> 00:06:34.390
Then quit it from the system tray bottom right corner and launch it again.

00:06:34.400 --> 00:06:35.364
while it starts.

00:06:35.364 --> 00:06:46.870
Remember last time it demanded a chat GPT signin.

00:06:46.880 --> 00:06:49.135
This time straight to the welcome screen.

00:06:49.135 --> 00:06:50.450
No login at all.

00:06:50.450 --> 00:06:56.150
CC switch already wired codecs to AI HubMix.

00:06:56.160 --> 00:06:57.089
Pick any field.

00:06:57.089 --> 00:06:58.204
It doesn't matter.

00:06:58.204 --> 00:07:00.223
And Pick any field.

00:07:00.223 --> 00:07:02.410
It doesn't matter.

00:07:02.410 --> 00:07:03.990
And continue.

00:07:04.000 --> 00:07:07.982
It offers a demo task.

00:07:07.982 --> 00:07:09.430
Skip it.

00:07:09.440 --> 00:07:11.301
Confirm.

00:07:11.301 --> 00:07:13.860
Go to chat.

00:07:13.860 --> 00:07:14.790
GPT.

00:07:14.800 --> 00:07:16.395
One last popup.

00:07:16.395 --> 00:07:18.204
Pitching GPT 5.6.

00:07:18.204 --> 00:07:19.953
Take continue with current model.

00:07:19.953 --> 00:07:21.616
So, we stay on our custom setup.

00:07:21.616 --> 00:07:22.901
Here's the main screen.

00:07:22.901 --> 00:07:26.143
Bottom right of the input box, the model says custom.

00:07:26.143 --> 00:07:29.983
That's our DeepSeek V4 flash riding through AI HubMix.

00:07:29.983 --> 00:07:31.610
Time for a real test.

00:07:31.610 --> 00:07:44.870
I'll ask for a short introduction of AI HubMix.

00:07:44.880 --> 00:07:48.710
Questions in send it.

00:07:48.720 --> 00:07:53.464
The request flows through AIHub Mix to Deep Seek and Codeex gets to work.

00:07:53.464 --> 00:07:54.292
It's an agent.

00:07:54.292 --> 00:08:04.390
So instead of guessing, it actually runs a shell command to look around first.

00:08:04.400 --> 00:08:08.070
21 seconds of work.

00:08:08.080 --> 00:08:11.189
And here's the reply.

00:08:11.199 --> 00:08:12.249
It's an honest one.

00:08:12.249 --> 00:08:19.990
The model says it doesn't have reliable information about AI HubMix and asks for a URL or some context instead of making things up.

00:08:20.000 --> 00:08:21.283
Fine by us.

00:08:21.283 --> 00:08:24.550
Next, we'll hand it the URL.

00:08:24.560 --> 00:08:26.246
Picking up right where we left off.

00:08:26.246 --> 00:08:28.859
The model wanted a URL.

00:08:28.859 --> 00:08:31.189
Let's give it one.

00:08:31.199 --> 00:08:33.475
The answer, an AI model aggregator.

00:08:33.475 --> 00:08:40.550
And the URL is aihubmix.com.

00:08:40.560 --> 00:08:41.688
Sent.

00:08:41.688 --> 00:08:45.750
Now watch it work.

00:08:45.760 --> 00:08:55.509
It announces the plan, fetch info from the site, and fires off curl to download the homepage.

00:08:55.519 --> 00:08:57.670
The first attempt hits a Windows quirk.

00:08:57.680 --> 00:09:01.341
In PowerShell, curl is just an alias for invoke web request.

00:09:01.341 --> 00:09:09.750
The model catches that and switches to the real curl.exe.

00:09:09.760 --> 00:09:10.670
Still blocked.

00:09:10.670 --> 00:09:20.389
So, it retries this time pretending to be a browser with a masilla user agent.

00:09:20.399 --> 00:09:22.550
This is what makes agents fun to watch.

00:09:22.560 --> 00:09:30.870
It's debugging its own path to the It's debugging its own path to the answer.

00:09:30.880 --> 00:09:45.030
And remember, this is Deepseek V4 Flash, a fast, inexpensive model doing genuine multi-step work.

00:09:45.040 --> 00:09:57.590
Once the page downloads, it strips the HTML down to readable text.

00:09:57.600 --> 00:10:01.670
1 minute 31 seconds of work.

00:10:01.680 --> 00:10:04.550
And here's the payoff.

00:10:04.560 --> 00:10:07.311
A real introduction sourced from the live site.

00:10:07.311 --> 00:10:13.390
One API, many models, and OpenAI compatible endpoint routing developer tools.

00:10:13.390 --> 00:10:14.209
The works.

00:10:14.209 --> 00:10:15.110
Final stop.

00:10:15.120 --> 00:10:16.753
Let's see what all of this cost.

00:10:16.753 --> 00:10:18.684
Back to the AI HubMix console.

00:10:18.684 --> 00:10:20.583
In the sidebar, open logs.

00:10:20.583 --> 00:10:22.747
Here is every request open logs.

00:10:22.747 --> 00:10:24.069
Here is every request itemized.

00:10:24.079 --> 00:10:35.597
Each row shows the model, our DeepSk, V4, Flash 0731, tokens in and out, cash tokens, latency around a second and a half, and the exact spend.

00:10:35.597 --> 00:10:38.843
Most of these calls cost less than a tenth of a cent.

00:10:38.843 --> 00:10:46.600
And that's the full setup. codecs on Windows, CC switch in the middle, and one AI HubMix key that unlocks any model you want to try.

00:10:46.600 --> 00:10:50.000
Thanks for watching.
