Claude API examples
Copy-paste ready configurations for every Claude-compatible tool. Set your base URL to https://api.lumosel.vip and use your Lumosel API key.
Claude Code
Configuration file: ~/.claude/settings.json
{
"env": {
"ANTHROPIC_BASE_URL": "https://api.lumosel.vip",
"ANTHROPIC_AUTH_TOKEN": "lumo_live_YOUR_KEY",
"ANTHROPIC_MODEL": "claude-opus-4-8"
}
}Restart Claude Code after editing. Pin ANTHROPIC_MODEL so Claude Code never auto-selects a model the gateway doesn't serve.
Cline / Roo Code
Configuration file: VS Code extension settings
// In VS Code settings.json or Cline/Roo Code settings:
"cline.anthropicBaseUrl": "https://api.lumosel.vip",
"cline.apiKey": "lumo_live_YOUR_KEY"Set the model to claude-opus-4-8, claude-sonnet-4.5, or claude-haiku-4.5 in the extension's model picker.
opencode
Configuration file: ~/.config/opencode/config.toml
[provider.anthropic]
base_url = "https://api.lumosel.vip"
api_key = "lumo_live_YOUR_KEY"opencode reads the Anthropic environment variables. Restart after setting.
Zed
Configuration file: ~/.config/zed/settings.json
{
"assistant": {
"provider": {
"name": "anthropic",
"api_url": "https://api.lumosel.vip"
}
}
}Set ANTHROPIC_API_KEY=lumo_live_YOUR_KEY as an environment variable before launching Zed.
Any Anthropic-compatible tool
Configuration file: Environment variables
export ANTHROPIC_BASE_URL="https://api.lumosel.vip"
export ANTHROPIC_API_KEY="lumo_live_YOUR_KEY"Any tool that reads the Anthropic environment variables works. Set these in your shell profile or .env file.
SDK examples
Ready to build?
Get your API key and pick your tool. Free 14-day trial.