Supports three coding clients only — Claude Code, Codex and Grok Build
Scope of use
This service is intended for three coding clients only: Claude Code, Codex CLI and Grok Build. Configure them as shown below.
Put the following into ~/.claude/settings.json. No changes to Claude Code itself are needed.
{
"env": {
"ANTHROPIC_AUTH_TOKEN": "<your-key>",
"ANTHROPIC_BASE_URL": "https://api.token711.top/api/"
}
}Put the following into ~/.codex/config.toml. The name field is just a display label — change it freely.
model_provider = "custom" [model_providers.custom] name = "Token711 API" base_url = "https://api.token711.top/openai" env_key = "TOKEN711_API_KEY"
Environment variable
export TOKEN711_API_KEY=<your-key>
To make it permanent, add them to ~/.zshrc or ~/.bashrc.
Put the following into ~/.grok/config.toml. Leave the other fields in that file as they are.
[endpoints] models_base_url = "https://api.token711.top/grok/v1" api_backend = "responses"
Environment variable
export XAI_API_KEY=<your-key>
To make it permanent, add them to ~/.zshrc or ~/.bashrc.