Claude Code
Use SeaCloud API as the backend for Claude Code to access more AI models and better pricing.
Claude Code is Anthropic's official command-line AI coding assistant. By configuring SeaCloud API, you can use GPT-4, Claude, Gemini, and many other models.
Prerequisites
Node.js 18 or higher
SeaCloud API key (create one in Settings)
Configure SeaCloud API
SeaCloud provides two configuration methods: global config file or environment variables. Config file method is recommended.
Using Config File (Recommended)
Create global config file ~/.claude/settings.json:
mkdir -p ~/.claude
vim ~/.claude/settings.jsonConfig file content:
π ~/.claude/settings.json
{
"env": {
"ANTHROPIC_BASE_URL": "https://openresty-gateway.api.seaart.ai",
"ANTHROPIC_AUTH_TOKEN": "sk-xxxxxxxxxxxxxxxxxxxxx",
"ANTHROPIC_MODEL": "claude-sonnet-4-5"
}
}Using Environment Variables
Add the following to your shell profile:
π ~/.bashrc or ~/.zshrc
# SeaCloud API Configuration
export ANTHROPIC_BASE_URL="https://openresty-gateway.api.seaart.ai"
export ANTHROPIC_AUTH_TOKEN="sk-xxxxxxxxxxxxxxxxxxxxx"
export ANTHROPIC_MODEL="claude-sonnet-4-5"After configuration, restart your terminal or run source ~/.bashrc (or your respective config file) to apply changes. Windows users need to restart Command Prompt.
Switch Models
You can change the ANTHROPIC_MODEL variable anytime to switch models. SeaCloud supports all major AI models:
Performance
claude-opus-4-5
Best reasoning, complex tasks
Standard
claude-sonnet-4-5
Daily development, balanced
Cost-Effective
gemini-3-pro-preview
Fast response, low cost
Update model (modify config file or environment variable):
π ~/.claude/settings.json
{
"env": {
"ANTHROPIC_BASE_URL": "https://openresty-gateway.api.seaart.ai",
"ANTHROPIC_AUTH_TOKEN": "sk-xxxxxxxxxxxxxxxxxxxxx",
"ANTHROPIC_MODEL": "gemini-3-pro-preview" // Change this
}
}To see all available models, features, and pricing, visit Models page. Make sure to choose models with "Tool Calling" support.
Verify Configuration
Run the /status command in Claude Code to verify your connection:
> /status
Auth token: ANTHROPIC_AUTH_TOKEN
Base URL: https://openresty-gateway.api.seaart.ai
Model: claude-sonnet-4-5Troubleshooting
Last updated