๐Ÿ‘จโ€๐Ÿซ Tutorial Free Claude opus 4.8/ opus 5 and GPT 5.6 sol Free Tutorial

ITine

Honorary Poster
๐Ÿ†“ Claude Code CLI, Codex CLI & VS Code Claude Code โ€” AgentRouter
Use AgentRouter to run Claude Code CLI, Codex CLI, or Claude Code in VS Code.

๐Ÿ’™ REFERRAL REQUIRED:
You do not have permission to view the full content of this post. Log in or register now.

โš ๏ธ You MUST sign in with GitHub.
No GitHub account? Create one first.

๐ŸŽ Use the referral link when registering to receive the applicable extra referral credit rewards.

๐ŸŒ If the site isn't English: Right-click โ†’ Translate to English


1๏ธโƒฃ Create AgentRouter Account​

๐Ÿ‘‰ You do not have permission to view the full content of this post. Log in or register now.

IMPORTANT: Register using GitHub.

AgentRouter โ†’ Sign in with GitHub โ†’ Authorize โ†’ Account

โš ๏ธ Use the referral link above when creating the account.


2๏ธโƒฃ Get Your Free Credits ๐ŸŽ​

AgentRouter currently provides promotional free credits through daily login/check-in. The amount may vary.

If credits don't appear:

Log out โ†’ Log back in โ†’ Check balance


3๏ธโƒฃ Create API Token ๐Ÿ”‘​

๐Ÿ‘‰ You do not have permission to view the full content of this post. Log in or register now.

Click Create New Token.

SettingRecommended
NameClaude Code
Token groupingโญ Default
ExpirationNever expires
Quantity1
QuotaDefault / your limit
Unlimited quotaOFF
Model restrictionsBlank
IP whitelistBlank
โญ Token grouping MUST be Default.

Click Submit and copy your sk-... API token.

๐Ÿ”’ Never share your API token publicly.


4๏ธโƒฃ Choose Your Model ๐Ÿค–​

Go to:

AgentRouter โ†’ Personal Settings โ†’ Claude Models

Choose a model that is currently available.

โš ๏ธ Model availability can change. Use the model ID shown by AgentRouter.


โค๏ธ React with LOVE to unlock the tutorials below​



๐ŸŸฃ A. CLAUDE CODE CLI​

1. Install Claude Code​

Requires Node.js 1โ˜+.

npm install -g @anthropic-ai/claude-code@latest

Check:

claude --version

2. Configure AgentRouter​

Windows PowerShell​

$env:ANTHROPIC_AUTH_TOKEN="YOUR_AGENTROUTER_API_KEY"
$env:ANTHROPIC_BASE_URL="https://co.agentrouter.org"
$env:ANTHROPIC_MODEL="YOUR_CLAUDE_MODEL"

macOS / Linux​

export ANTHROPIC_AUTH_TOKEN="YOUR_AGENTROUTER_API_KEY"
export ANTHROPIC_BASE_URL="https://co.agentrouter.org"
export ANTHROPIC_MODEL="YOUR_CLAUDE_MODEL"
Replace:

YOUR_AGENTROUTER_API_KEY โ†’ your AgentRouter token

YOUR_CLAUDE_MODEL โ†’ your available Claude model

โš ๏ธ Claude uses:

You do not have permission to view the full content of this post. Log in or register now.

Do NOT add /v1.

3. Start Claude Code​

cd your-project
claude





๐ŸŸข B. CODEX CLI​

1. Install Codex​

Install the Codex CLI using its official installation method.

Then check:

codex --version

2. Create Codex Configuration​

Create:

~/.codex/config.toml
Add:

model = "YOUR_CODEX_MODEL"
model_provider = "agentrouter"

[model_providers.agentrouter]
name = "AgentRouter"
base_url = "You do not have permission to view the full content of this post. Log in or register now."
env_key = "AGENTROUTER_API_KEY"
wire_api = "chat"
Replace:

YOUR_CODEX_MODEL โ†’ an available Codex/OpenAI-compatible model.

3. Set API Key​

Windows PowerShell​

$env:AGENTROUTER_API_KEY="YOUR_AGENTROUTER_API_KEY"

macOS / Linux​

export AGENTROUTER_API_KEY="YOUR_AGENTROUTER_API_KEY"
โš ๏ธ Codex uses:

You do not have permission to view the full content of this post. Log in or register now.

Codex uses /v1; Claude does not.

4. Start Codex​

codex
Test:

codex "Only reply OK"





๐Ÿ”ต C. CLAUDE CODE โ€” VS CODE EXTENSION​

1. Install Claude Code​

In VS Code:

Ctrl + Shift + X

Search:

Claude Code

Install the official Claude Code extension.

2. Open settings.json​

Press:

Ctrl + Shift + P

โ†’ Preferences: Open User Settings (JSON)

Add:

{
"claudeCode.environmentVariables": [
{
"name": "ANTHROPIC_AUTH_TOKEN",
"value": "YOUR_AGENTROUTER_API_KEY"
},
{
"name": "ANTHROPIC_BASE_URL",
"value": "You do not have permission to view the full content of this post. Log in or register now."
},
{
"name": "CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY",
"value": "1"
},
{
"name": "ANTHROPIC_MODEL",
"value": "YOUR_CLAUDE_MODEL"
}
],
"claudeCode.disableLoginPrompt": true,
"claudeCode.initialPermissionMode": "acceptEdits"
}
Replace:

YOUR_AGENTROUTER_API_KEY โ†’ your API token

YOUR_CLAUDE_MODEL โ†’ your available Claude model

โš ๏ธ Claude uses:

You do not have permission to view the full content of this post. Log in or register now.

Do NOT add /v1.

3. Disable Login Prompt​

VS Code:

Claude Code โ†’ โš™๏ธ Settings โ†’ Disable Login Prompt โ†’ ON

4. Reload VS Code​

Ctrl + Shift + P

โ†’ Developer: Reload Window

Open Claude Code and test:

Only reply OK
If it replies OK, you're connected. ๐Ÿš€




๐Ÿ”— Official AgentRouter Guides​

Claude Code CLI:
You do not have permission to view the full content of this post. Log in or register now.

Codex CLI:
You do not have permission to view the full content of this post. Log in or register now.

Claude Code VS Code:
You do not have permission to view the full content of this post. Log in or register now.


๐Ÿ’™ REFERRAL โ€” USE THIS WHEN CREATING YOUR ACCOUNT:
You do not have permission to view the full content of this post. Log in or register now.

โš ๏ธ GitHub login is required.
No GitHub? Create one first.

๐ŸŽ Use the referral link to receive the applicable extra referral credit rewards.
 
FIX SA DI NAGANA UNG SETUP: now lng napansin.
Pa palitan ng You do not have permission to view the full content of this post. Log in or register now. into You do not have permission to view the full content of this post. Log in or register now.
sa Config to makikita kung saan nyo ilalagay yung mga API Key.

Diko na ma edit ung mismong post so dito ko nlng isinend sana mapansin ng iba.
 
Working pa siya paps, kaso may limit ba ito? Kapag ba naubos balance sa AgentRouter di siya magrereplenish? or di na din magwowork?
 

About this Thread

  • 22
    Replies
  • 587
    Views
  • 10
    Participants
Last reply from:
Ben Zayb

Trending Topics

Online now

Members online
1,055
Guests online
11,843
Total visitors
12,898

Forum statistics

Threads
2,334,914
Posts
29,280,698
Members
1,135,738
Latest member
Mazee99999
Back
Top