Claude Code Integration
Claude Code is Anthropic’s official terminal-based coding agent. It understands your entire codebase and helps you code faster through natural language commands. This guide shows you how to connect Claude Code to LLMCloud.
Prerequisites
Section titled “Prerequisites”- macOS, Linux, or Windows (with WSL)
- Node.js 18+
- Claude Code installed (Installation guide)
- LLMCloud API key (Get one here)
Bypass Onboarding Screen
Section titled “Bypass Onboarding Screen”On first use, Claude Code normally shows an onboarding screen that attempts to authenticate with Anthropic directly. To skip this and use LLMCloud instead, choose one of the following methods:
Create or edit ~/.claude.json:
{ "hasCompletedOnboarding": true, "hasTrustDialogAccepted": true}Run Claude Code with the skip permissions flag:
claude --dangerously-skip-permissionsNote: This flag must be used each time you start Claude Code.
Configuration
Section titled “Configuration”Edit ~/.claude/settings.json:
{ "env": { "ANTHROPIC_AUTH_TOKEN": "your_llmcloud_api_key", "ANTHROPIC_BASE_URL": "https://llmcloud.studio", "ANTHROPIC_DEFAULT_OPUS_MODEL": "anthropic/claude-opus-4.5-thinking", "ANTHROPIC_DEFAULT_SONNET_MODEL": "anthropic/claude-sonnet-4.5-thinking", "ANTHROPIC_DEFAULT_HAIKU_MODEL": "anthropic/claude-haiku-4.5", "CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": "1", "API_TIMEOUT_MS": "600000", "BASH_DEFAULT_TIMEOUT_MS": "600000", "BASH_MAX_TIMEOUT_MS": "600000", "MCP_TIMEOUT": "30000", "MCP_TOOL_TIMEOUT": "600000", "CLAUDE_API_TIMEOUT": "600000" }}Add to ~/.zshrc or ~/.bashrc:
export ANTHROPIC_BASE_URL=https://llmcloud.studioexport ANTHROPIC_AUTH_TOKEN=your_llmcloud_api_keyexport ANTHROPIC_DEFAULT_OPUS_MODEL=anthropic/claude-opus-4.5-thinkingexport ANTHROPIC_DEFAULT_SONNET_MODEL=anthropic/claude-sonnet-4.5-thinkingexport ANTHROPIC_DEFAULT_HAIKU_MODEL=anthropic/claude-haiku-4.5export CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1export API_TIMEOUT_MS=600000export BASH_DEFAULT_TIMEOUT_MS=600000export BASH_MAX_TIMEOUT_MS=600000export MCP_TIMEOUT=30000export MCP_TOOL_TIMEOUT=600000export CLAUDE_API_TIMEOUT=600000Then reload:
source ~/.zshrc # or source ~/.bashrcAvailable Models
Section titled “Available Models”| Model | Model ID |
|---|---|
| Claude Opus 4.6 | anthropic/claude-opus-4.6 |
| Claude Opus 4.5 Thinking | anthropic/claude-opus-4.5-thinking |
| Claude Sonnet 4.6 | anthropic/claude-sonnet-4.6 |
| Claude Sonnet 4.5 | anthropic/claude-sonnet-4.5 |
| Claude Sonnet 4.5 Thinking | anthropic/claude-sonnet-4.5-thinking |
| Claude Haiku 4.5 | anthropic/claude-haiku-4.5 |
| Gemini 3 Flash Preview | google/gemini-3-flash-preview |
| Gemini 3 Pro Preview | google/gemini-3-pro-preview |
Start Claude Code in your project directory:
cd your-projectclaudeSwitching Models
Section titled “Switching Models”Update the model environment variables in ~/.claude/settings.json:
{ "env": { "ANTHROPIC_DEFAULT_SONNET_MODEL": "anthropic/claude-sonnet-4.5-thinking" }}Troubleshooting
Section titled “Troubleshooting”Configuration Not Applied
Section titled “Configuration Not Applied”Problem: Changes to ~/.claude/settings.json don’t take effect
Solutions:
- Close all Claude Code sessions and open a new terminal
- Delete
~/.claude/settings.jsonand reconfigure—Claude Code will generate a new file - Validate JSON syntax (check for missing or extra commas)
Invalid API Key
Section titled “Invalid API Key”Problem: “API Key invalid or unauthorized” error
Solutions:
- Verify your API key is correct
- Check your account balance at LLMCloud Dashboard
Connection Failed
Section titled “Connection Failed”Problem: Unable to connect to API
Solutions:
- Confirm Base URL is exactly
https://llmcloud.studio(no trailing slash, no/v1) - Check your internet connection
Model Not Found
Section titled “Model Not Found”Problem: “Model not found” error
Solutions:
- Use the exact model ID format (e.g.,
anthropic/claude-sonnet-4.5-thinking) - Verify the model is available in your subscription
Support
Section titled “Support”- Official Website: https://llmcloud.studio
- API Documentation: https://docs.llmcloud.studio
- Claude Code Documentation: https://docs.anthropic.com/en/docs/claude-code