Integrating Claude Code CLI
Run Anthropic's powerful Claude Code CLI coding agent directly inside your terminal, powered entirely by your Qorebit wallet without Anthropic billing requirements.
1. Installation
Install the official Claude Code CLI tool globally on your system using npm:
npm install -g @anthropic-ai/claude-code2. Configuration
To route Claude Code through Qorebit and skip the Anthropic web login workflow, choose one of the setup methods below:
# Create config directory
mkdir -p ~/.claude
# Configure Claude to use Qorebit and skip login
cat > ~/.claude/settings.json << 'EOF'
{
"env": {
"ANTHROPIC_BASE_URL": "https://api.qorebit.ai",
"ANTHROPIC_AUTH_TOKEN": "qb_live_xxxxxxxxxxxxx"
},
"hasCompletedOnboarding": true
}
EOF💡 Note: Creating this config file sets the ANTHROPIC_AUTH_TOKEN to your Qorebit API Key and mocks the onboarding state so the tool initializes immediately without sending you to Anthropic's browser login page.
3. Persistent Default Model
By default, Claude Code uses Sonnet. To change the default model persistently (e.g. to Opus or a cheaper option), add the CLAUDE_MODEL setting in your ~/.claude/settings.json:
{
"env": {
"ANTHROPIC_BASE_URL": "https://api.qorebit.ai",
"ANTHROPIC_AUTH_TOKEN": "qb_live_xxxxxxxxxxxxx",
"CLAUDE_MODEL": "claude-opus-4-7"
},
"hasCompletedOnboarding": true
}4. Running Open-Weight & Third-Party Models
Qorebit automatically translates incoming Anthropic format requests to other model APIs. To run Claude Code CLI with alternative models, specify the model name using the --model flag:
# Use Qwen 3.5 MoE Flagship (397B)
claude --model qwen-3.5-397b
# Use Qwen 2.5 Coder
claude --model qwen-coder
# Use DeepSeek V4 Pro
claude --model deepseek-v4-pro
# Use Latest OpenAI Reasoning Models
claude --model gpt-4.5
claude --model o3-mini
# Use Latest Google Gemini Models
claude --model gemini-2.0-pro
claude --model gemini-2.0-flash-thinkingTroubleshooting
CLI prompts for browser authentication
This means your environment or configuration settings were not picked up. Ensure your ~/.claude/settings.json has "hasCompletedOnboarding": true and that the auth token key is spelled correctly (ANTHROPIC_AUTH_TOKEN).
Connection refused or host errors
Make sure ANTHROPIC_BASE_URL is exactly https://api.qorebit.ai with no trailing slashes or subpaths.