How to Setup Claude Code With 1 Billion Tokens/DAY Using OpenRouter FREE API Key (UNLIMITED) in 2026
Aug 16, 2026
{
"env": {
"ANTHROPIC_BASE_URL": ";https://openrouter.ai/api",
"ANTHROPIC_API_KEY": "",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "nvidia/nemotron-3-ultra-550b-a55b:free",
"ANTHROPIC_DEFAULT_OPUS_MODEL": "poolside/laguna-s-2.1:free",
"ANTHROPIC_DEFAULT_FABLE_MODEL": "google/gemma-4-26b-a4b-it:free",
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "openai/gpt-oss-20b:free"
}
}
Watch My Visual Studio Code IDE Setup Video For Fonts,Themes & Extensions
https://youtu.be/Bon8Pm1gbX8
Hi Join the official discord server to resolve doubts here:
https://discord.gg/cRnjhk6nzW
Show More Show Less View Video Transcript
0:00
Uh, anyways, in this video, I'll show
0:02
you how to set up Claude code
0:05
and get 1 billion tokens every day for
0:07
completely free. So, in this video, I'll
0:10
show you how to set it up. So, as you
0:13
see, we have opened the VS code, and the
0:15
directory is completely empty. And for
0:18
the requirement for this video, you
0:19
should have Claude code installed. So,
0:21
I'm assuming that you have Claude code
0:22
installed. So, as I type Claude right
0:24
here, by default
0:27
by default, it will try to use the paid
0:29
API key.
0:30
So, if I type the message here, "Hi," it
0:33
will give me this message that API
0:35
error.
0:36
You need to use the correct API key. So,
0:39
this is a completely normal. So, for
0:41
this tutorial, guys, for getting 1
0:43
billion tokens every day, we will be
0:44
using this website called as OpenRouter.
0:47
OpenRouter, if you haven't
0:50
uh,
0:51
known this website, this website is
0:53
completely free, and it contains
0:56
thousands of models. Every day, whenever
0:58
there is a new model released in the
1:00
market,
1:01
this is a
1:02
best website for getting a free API key.
1:05
So, just create an account using your
1:07
Google account. I've already done that.
1:09
And after that, simply go to API keys.
1:13
So, just create a free API key.
1:15
And for here, you need to create a
1:18
folder.
1:20
This folder will be dot Claude.
1:23
Just create a folder dot Claude, and
1:25
after that, this create a file inside
1:27
this, which will be settings.
1:29
local.json.
1:32
So, basically, we will be configuring
1:33
this OpenRouter to actually allow us to
1:36
use 1 billion tokens every day. So,
1:39
create a dot Claude folder inside the
1:41
settings.local.json.
1:43
So, after that, I've given the code in
1:45
the description of the video. Simply
1:47
paste
1:49
that code. So, I've given all this code,
1:51
the JSON code, in the description of the
1:53
video. So, base URL, as you see, we are
1:56
setting this to openrouter.ai/api.
2:00
And this API key, you will get this API
2:02
key from this.
2:04
So, click on new key.
2:06
Just give it a name and click on create.
2:09
So, this will give you your API key.
2:11
Simply copy this.
2:13
And right here, you paste this API key.
2:16
That's all that you need to do for the
2:17
configuration and for the default model
2:21
Opus Fable. As you see, we are using the
2:23
Opus Fable model.
2:25
Right here as you see.
2:27
Through OpenRouter.
2:29
And we have actually replaced these free
2:31
models right here as you see.
2:33
These are all free models in OpenRouter.
2:36
And after making these changes, simply
2:38
restart your terminal.
2:41
Just restart your terminal. Again, type
2:43
Claude.
2:45
And now as you will see, it will simply
2:47
say detected a custom API key in our
2:49
environment. Do you want to use this API
2:52
key? So, I will simply say yes.
2:54
And after that, you type a message.
2:57
And now basically,
3:01
it will simply say, "Hello, how can I
3:03
help you today?" So, basically, you can
3:06
simply ask any kind of message. So, I
3:08
will simply say build a image to PDF
3:11
web app with all options
3:14
advanced app.
3:17
Uh create a
3:19
index.html file. So, just see, I have
3:21
asked a question right here. And it will
3:24
consume these tokens. So, as you see,
3:27
OpenRouter gives these tokens and it is
3:29
consuming these tokens through
3:31
Claude code.
3:32
So, it gives you around 1 billion tokens
3:35
every day, which is more than enough to
3:37
create unlimited applications. So, as
3:39
you see right here, it is consuming
3:41
these tokens very quickly.
3:43
And in the background, it's creating
3:45
your application. So, by the title
3:47
itself, how to set up Claude code to use
3:51
1 billion tokens every day.
3:53
And once it is completed, you will see
3:56
the app will be created automatically.
3:58
Your index.html file will be created.
4:01
So, this will be advanced image to PDF
4:04
web application. So, already 2,000
4:06
tokens have been consumed as you see
4:08
that.
4:09
And still as it is consuming it.
4:12
So, Claude code is really fast.
4:15
So, this is the ultimate setup, guys.
4:18
This is a free website. Just follow the
4:20
steps. Just paste your API key. I have
4:23
given the code in the description.
4:25
Simply paste it.
4:27
And after that, you can create unlimited
4:29
applications through Claude code using
4:32
You can use Claude Sonnet, Opus, Fable
4:36
through open router.
4:39
So, as you see, almost 4,
4:42
000 tokens have been consumed.
4:44
And
4:46
the end result that it will give you
4:47
will be a professional production-ready
4:50
application that you can instantly
4:53
deploy.
4:54
And through this setup, I will I
4:57
actually have made uh
4:59
thousands of applications. So, this
5:01
saves me a lot of time because I don't
5:03
need to pay any kind of subscription.
5:05
This is a completely free unlimited
5:07
setup through which you can use Claude
5:09
code.
5:11
So, just create a dot Claude folder.
5:13
Inside this, create settings.local.json.
5:16
I pasted the code in the description of
5:18
the video. Simply paste it and replace
5:21
your API key. That's all that you need
5:23
to do.
5:24
It's a just 2-minute setup, and you will
5:27
be able to use Claude code for lifetime
5:30
for completely free and unlimited.
5:33
So, as you can see, it's still building
5:35
out. It's consuming almost 8,000 tokens,
5:38
and still it is building. So,
5:40
just wait. Once it is completed, your
5:43
index.html file will be created.
5:54
So, it creates
5:56
almost 1,500 lines of code.
5:59
I have seen in the past whenever I
6:03
ran the cloud code through this setup.
6:05
So, it creates very complex
6:07
applications. So, I simply ask it in the
6:09
prompt as well.
6:10
I want the advanced app with all the
6:12
options. So, that's why it is taking too
6:15
much time. 1,100,000 tokens
6:18
11,000 tokens all. So, you will see it
6:21
has created the application.
6:24
And you will see your index.
6:26
html file has been created.
6:29
So, it almost took 11,000
6:33
11
6:34
thousand tokens.
6:38
So, now as you see if I try to see the
6:40
application.
6:43
So, it created this application for us
6:46
almost 1,200 lines of code. So, it's
6:50
just a advanced professional loving
6:52
application guys ready in just 2
6:54
minutes.
6:55
And if I try to open this application.
6:58
You will see that it's advanced image to
7:00
converter.
7:01
And here you simply select your images.
7:05
So.
7:10
There we have all the conversion
7:11
options, page size, orientation, image
7:14
quality, everything.
7:15
Click on convert to PDF and
7:19
then your images are converted. You see
7:21
download PDF and
7:23
you see all your images are successfully
7:26
converted. And we have all these options
7:29
convert to grayscale, enable OCR text
7:31
recognition, add watermark.
7:34
By enable this option, I can also put a
7:36
watermark.
7:38
So, it created a very professional level
7:40
application guys. As you see, watermark
7:43
is also
7:52
You all can also protect your PDF by a
7:55
password.
8:04
So,
8:07
in this easy way guys, this is ultimate
8:09
setup. You get almost 1 billion tokens.
8:12
And as you see, it also this generated a
8:15
description as well what the application
8:17
has been created. It automatically gives
8:20
you all the options.
8:22
So, almost if I show you the total
8:24
number of lines generated,
8:28
so almost 1,200 lines of code. So, in
8:30
this easy way, this is not limited to
8:32
single application.
8:34
Right here, you can simply type build a
8:38
complete PDF editor
8:41
in PHP with all options. So, you can
8:44
build in any language. You specify what
8:47
language you want to build the actual
8:49
application. So, at this time we are
8:50
building it in PHP.
8:52
So, in browser,
8:56
so I simply type build a complete PDF
8:58
editor in PHP. And now as you see, the
9:01
speed is awesome guys. It is really
9:03
insane. Cloud Code is the number one AI
9:06
coding agent. It doesn't waste any time
9:09
in consuming these tokens from
9:10
OpenRouter. As you see, it started to
9:12
consume the tokens.
9:15
And
9:17
after that, in 3 to 4 minutes it will
9:20
create a fully fleshed PHP PDF editor.
9:24
So, in this easy way guys, you can
9:27
actually set up Cloud Code
9:30
free unlimited using OpenRouter free API
9:33
key.
9:34
I've given pasted the code
9:36
settings.local.json.
9:38
So, simply replace your free API key
9:40
from open router and you are ready to
9:42
go.
9:43
Thank you very much for watching this
9:44
video
9:46
and please hit that like button.
9:47
Subscribe the channel.
#Jobs & Education
