Free claude-code with Opus 4.8 model via API

PHC-Bart

Forum Veteran


1780912353432.webp


1. create account here You do not have permission to view the full content of this post. Log in or register now.
2. verify your account by connecting it to telegram
3. you will recieve $20 dollar credits plus $10 dollar credits every 5 hours after you verify your account


Note: unverified account will not work

-then install claude code in terminal :
*npm install -g @anthropic-ai/claude-code

-run claude type :
*claude

4. go to API key section and generate API key then copy it

5.then go to your file manager and find .claude folder sample C:\Users\Admin\.claude or C:\Users\<Your name>\.claude

change the content of the settings.json file with (Replace YOUR_API_KEY to your generated API key earlier

Note : Replace the full content with the config below

​

{
"env": {
"ANTHROPIC_API_KEY": "YOUR_API_KEY",
"ANTHROPIC_BASE_URL": "You do not have permission to view the full content of this post. Log in or register now.",
"CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": "1"
},
"permissions": {
"allow": [],
"deny": []
},
"apiKeyHelper": "echo 'YOUR_API_KEY'"
}


6. go back to terminal and run claude by simply typing claude

-Keep pressing enter until it ask you to use existing API key then choose YES

After that you can download claude code extension in vscode it will auto login using your API key you configure earlier

Note : the claude-code extension will take 10 secs up to load your config so be patient

1780912502226.webp​

 

About this Thread

  • 14
    Replies
  • 527
    Views
  • 14
    Participants
Last reply from:
SupremeAgent

Online now

Members online
1,172
Guests online
9,694
Total visitors
10,866

Forum statistics

Threads
2,356,611
Posts
29,393,197
Members
1,074,552
Latest member
Nyxy1
Back
Top