Setup Guide

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.

  • · Do not use it as a general-purpose API — no custom scripts, no direct SDK calls, no programmatic batch requests of any kind.
  • · Do not use it outside those three clients.

Claude Code

CLI

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/"
  }
}

Codex CLI

CLI

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.

Grok Build

CLI

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.

FAQ

FAQ
Can I call it directly from a script?
No. This service supports only three coding clients — Claude Code, Codex CLI and Grok Build. Using it as a general-purpose API from scripts or programs is prohibited, as is any use outside those three. Accounts that break this rule are suspended.
Getting 402 insufficient_quota?
Your quota is used up. Head to Top-up — access resumes the moment the payment is credited.
Why is the charge different from official pricing?
Actual charge = base model price × your group's multiplier. See Model pricing for exact unit prices.
My top-up expired but I already sent the transfer?
No need to pay again. Once the transfer lands on-chain the quota is credited automatically within a few hours, and the order page updates to match.
What if my API key leaks?
Reset it immediately on this page. The old key will stop working right away.

Pricing →

TOKEN//711
Independent relay service. Not affiliated with Anthropic, OpenAI or Google.