1
00:00:00,560 --> 00:00:05,015
In this tutorial, we'll install OpenAI's codeex app on Windows.

2
00:00:05,015 --> 00:00:07,408
Then using CC switch and AI hub mix.

3
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.

4
00:00:13,120 --> 00:00:14,423
Start in your browser.

5
00:00:14,423 --> 00:00:21,434
Search for codeex Start in your browser.

6
00:00:21,434 --> 00:00:28,790
Search for codeex download.

7
00:00:28,800 --> 00:00:42,470
Open the official codeex page on Open the official codeex page on openai.com.

8
00:00:42,480 --> 00:00:49,510
Click download for Windows.

9
00:00:49,520 --> 00:00:56,549
The installer itself is tiny, so it's done in seconds.

10
00:00:56,559 --> 00:01:02,310
When it finishes, show it in file When it finishes, show it in file explorer.

11
00:01:02,320 --> 00:01:10,710
Rightclick the installer and run it as Rightclick the installer and run it as administrator.

12
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.

13
00:01:17,920 --> 00:01:36,469
This package is about 700 megabytes.

14
00:01:36,479 --> 00:01:40,404
Fair warning, this part can be slow, usually 5 to 6 minutes.

15
00:01:40,404 --> 00:01:50,149
So, let's skip the wait.

16
00:01:50,159 --> 00:01:55,742
And we're back.

17
00:01:55,742 --> 00:02:02,069
96% and counting.

18
00:02:02,079 --> 00:02:15,350
The moment it hits 100, everything happens on its own.

19
00:02:15,360 --> 00:02:25,110
The installer closes and Codeex launches The installer closes and Codeex launches itself.

20
00:02:25,120 --> 00:02:26,659
It lands on a sign-in screen.

21
00:02:26,659 --> 00:02:28,083
And here's the key part.

22
00:02:28,083 --> 00:02:29,510
Don't click anything.

23
00:02:29,520 --> 00:02:30,776
We're never going to log in.

24
00:02:30,776 --> 00:02:33,910
That's what CC Switch is for.

25
00:02:33,920 --> 00:02:35,103
Codeex is installed.

26
00:02:35,103 --> 00:02:36,551
Now for the fun part.

27
00:02:36,551 --> 00:02:37,654
CC Switch.

28
00:02:37,654 --> 00:02:42,900
CC Switch is a free open- source app that can point CEcs at thirdparty providers.

29
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.

30
00:02:50,111 --> 00:02:57,430
Today's example model, DeepSeek V4 Flash, the 0731 release.

31
00:02:57,440 --> 00:03:04,630
Head to the CC Switch site and hit download free.

32
00:03:04,640 --> 00:03:08,630
It takes us to the downloads page.

33
00:03:08,640 --> 00:03:09,990
Pick your operating system.

34
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.

35
00:03:17,120 --> 00:03:19,350
Chrome flags the file as unverified.

36
00:03:19,360 --> 00:03:21,589
That's just safe browsing being off.

37
00:03:21,599 --> 00:03:28,660
Keep it 12 megabytes.

38
00:03:28,660 --> 00:03:29,698
Done instantly.

39
00:03:29,698 --> 00:03:32,344
Open it to 12 megabytes.

40
00:03:32,344 --> 00:03:34,588
Done instantly.

41
00:03:34,588 --> 00:03:37,430
Open it to install.

42
00:03:37,440 --> 00:03:39,323
Setup takes a few seconds.

43
00:03:39,323 --> 00:03:41,825
Then CC switch is ready.

44
00:03:41,825 --> 00:03:43,190
Open it up.

45
00:03:43,200 --> 00:03:45,731
At the top, switch to the open AI section.

46
00:03:45,731 --> 00:03:47,589
That's the one codeex reads.

47
00:03:47,599 --> 00:03:51,990
Then hit the plus to add a provider.

48
00:03:52,000 --> 00:04:02,229
From the presets, choose AI hub mix icon and endpoint fill in automatically.

49
00:04:02,239 --> 00:04:03,677
Next, we need an API key.

50
00:04:03,677 --> 00:04:09,350
So, over to the AIHubmix website.

51
00:04:09,360 --> 00:04:16,469
Search for iHubmix and open Search for iHubmix and open aihubmix.com.

52
00:04:16,479 --> 00:04:25,030
One gateway, infinite models, every major LLM behind one unified API.

53
00:04:25,040 --> 00:04:29,189
Click console.

54
00:04:29,199 --> 00:04:31,350
It asks us to sign in Google account.

55
00:04:31,360 --> 00:04:41,110
One click.

56
00:04:41,120 --> 00:04:54,870
Once we're in, open API keys in the sidebar and add a new key.

57
00:04:54,880 --> 00:04:58,501
Name it DeepSk V4 flash 0731.

58
00:04:58,501 --> 00:05:04,550
So we know what it's for.

59
00:05:04,560 --> 00:05:06,047
Notice the options here.

60
00:05:06,047 --> 00:05:10,710
Quota and an expiry time.

61
00:05:10,720 --> 00:05:12,790
We'll give this key an expiration date.

62
00:05:12,800 --> 00:05:13,253
One day.

63
00:05:13,253 --> 00:05:16,100
If it ever leaks, it's already dead.

64
00:05:16,100 --> 00:05:19,749
Cheap insurance.

65
00:05:19,759 --> 00:05:20,648
Submit.

66
00:05:20,648 --> 00:05:23,189
And there's our key.

67
00:05:23,199 --> 00:05:24,452
Copy it before closing.

68
00:05:24,452 --> 00:05:25,689
It's only shown once.

69
00:05:25,689 --> 00:05:31,189
Back in CC switch, paste the key into the AI HubMix provider.

70
00:05:31,199 --> 00:05:33,830
Bonus feature, endpoint speed testing.

71
00:05:33,840 --> 00:05:35,233
Both endpoints answer fast.

72
00:05:35,233 --> 00:05:39,110
Either one will do.

73
00:05:39,120 --> 00:05:40,780
Now, the default model.

74
00:05:40,780 --> 00:05:45,526
Click the download icon and CC switch pulls the full AI hub mix model list.

75
00:05:45,526 --> 00:05:49,830
Everything they carry.

76
00:05:49,840 --> 00:05:57,749
Filter for Deepseek and select Deepseek V4 flash0731.

77
00:05:57,759 --> 00:05:59,909
Keep the upstream format on responses.

78
00:05:59,919 --> 00:06:03,270
That's what Codeex speaks natively.

79
00:06:03,280 --> 00:06:05,430
Add it saved.

80
00:06:05,440 --> 00:06:07,270
The new provider appears at the bottom.

81
00:06:07,280 --> 00:06:08,464
Click it to enable it.

82
00:06:08,464 --> 00:06:14,550
Now it's the active config for Codeex.

83
00:06:14,560 --> 00:06:16,558
Time to restart Codeex properly.

84
00:06:16,558 --> 00:06:17,396
Close the window.

85
00:06:17,396 --> 00:06:34,390
Then quit it from the system tray bottom right corner and launch it again.

86
00:06:34,400 --> 00:06:35,364
while it starts.

87
00:06:35,364 --> 00:06:46,870
Remember last time it demanded a chat GPT signin.

88
00:06:46,880 --> 00:06:49,135
This time straight to the welcome screen.

89
00:06:49,135 --> 00:06:50,450
No login at all.

90
00:06:50,450 --> 00:06:56,150
CC switch already wired codecs to AI HubMix.

91
00:06:56,160 --> 00:06:57,089
Pick any field.

92
00:06:57,089 --> 00:06:58,204
It doesn't matter.

93
00:06:58,204 --> 00:07:00,223
And Pick any field.

94
00:07:00,223 --> 00:07:02,410
It doesn't matter.

95
00:07:02,410 --> 00:07:03,990
And continue.

96
00:07:04,000 --> 00:07:07,982
It offers a demo task.

97
00:07:07,982 --> 00:07:09,430
Skip it.

98
00:07:09,440 --> 00:07:11,301
Confirm.

99
00:07:11,301 --> 00:07:13,860
Go to chat.

100
00:07:13,860 --> 00:07:14,790
GPT.

101
00:07:14,800 --> 00:07:16,395
One last popup.

102
00:07:16,395 --> 00:07:18,204
Pitching GPT 5.6.

103
00:07:18,204 --> 00:07:19,953
Take continue with current model.

104
00:07:19,953 --> 00:07:21,616
So, we stay on our custom setup.

105
00:07:21,616 --> 00:07:22,901
Here's the main screen.

106
00:07:22,901 --> 00:07:26,143
Bottom right of the input box, the model says custom.

107
00:07:26,143 --> 00:07:29,983
That's our DeepSeek V4 flash riding through AI HubMix.

108
00:07:29,983 --> 00:07:31,610
Time for a real test.

109
00:07:31,610 --> 00:07:44,870
I'll ask for a short introduction of AI HubMix.

110
00:07:44,880 --> 00:07:48,710
Questions in send it.

111
00:07:48,720 --> 00:07:53,464
The request flows through AIHub Mix to Deep Seek and Codeex gets to work.

112
00:07:53,464 --> 00:07:54,292
It's an agent.

113
00:07:54,292 --> 00:08:04,390
So instead of guessing, it actually runs a shell command to look around first.

114
00:08:04,400 --> 00:08:08,070
21 seconds of work.

115
00:08:08,080 --> 00:08:11,189
And here's the reply.

116
00:08:11,199 --> 00:08:12,249
It's an honest one.

117
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.

118
00:08:20,000 --> 00:08:21,283
Fine by us.

119
00:08:21,283 --> 00:08:24,550
Next, we'll hand it the URL.

120
00:08:24,560 --> 00:08:26,246
Picking up right where we left off.

121
00:08:26,246 --> 00:08:28,859
The model wanted a URL.

122
00:08:28,859 --> 00:08:31,189
Let's give it one.

123
00:08:31,199 --> 00:08:33,475
The answer, an AI model aggregator.

124
00:08:33,475 --> 00:08:40,550
And the URL is aihubmix.com.

125
00:08:40,560 --> 00:08:41,688
Sent.

126
00:08:41,688 --> 00:08:45,750
Now watch it work.

127
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.

128
00:08:55,519 --> 00:08:57,670
The first attempt hits a Windows quirk.

129
00:08:57,680 --> 00:09:01,341
In PowerShell, curl is just an alias for invoke web request.

130
00:09:01,341 --> 00:09:09,750
The model catches that and switches to the real curl.exe.

131
00:09:09,760 --> 00:09:10,670
Still blocked.

132
00:09:10,670 --> 00:09:20,389
So, it retries this time pretending to be a browser with a masilla user agent.

133
00:09:20,399 --> 00:09:22,550
This is what makes agents fun to watch.

134
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.

135
00:09:30,880 --> 00:09:45,030
And remember, this is Deepseek V4 Flash, a fast, inexpensive model doing genuine multi-step work.

136
00:09:45,040 --> 00:09:57,590
Once the page downloads, it strips the HTML down to readable text.

137
00:09:57,600 --> 00:10:01,670
1 minute 31 seconds of work.

138
00:10:01,680 --> 00:10:04,550
And here's the payoff.

139
00:10:04,560 --> 00:10:07,311
A real introduction sourced from the live site.

140
00:10:07,311 --> 00:10:13,390
One API, many models, and OpenAI compatible endpoint routing developer tools.

141
00:10:13,390 --> 00:10:14,209
The works.

142
00:10:14,209 --> 00:10:15,110
Final stop.

143
00:10:15,120 --> 00:10:16,753
Let's see what all of this cost.

144
00:10:16,753 --> 00:10:18,684
Back to the AI HubMix console.

145
00:10:18,684 --> 00:10:20,583
In the sidebar, open logs.

146
00:10:20,583 --> 00:10:22,747
Here is every request open logs.

147
00:10:22,747 --> 00:10:24,069
Here is every request itemized.

148
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.

149
00:10:35,597 --> 00:10:38,843
Most of these calls cost less than a tenth of a cent.

150
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.

151
00:10:46,600 --> 00:10:50,000
Thanks for watching.
