Use Tencent Cloud in Claude Code

Prices and modelsEndpoint verified 2026-11-09

Generate a Claude Code config from the Anthropic-compatible endpoint in Tencent Cloud's docs. The API key in the config is a placeholder; replace it with a key you create at Tencent Cloud.

Endpoints

  • Plan only: Tencent Cloud Coding Plan Lite, Prohttps://api.lkeap.cloud.tencent.com/coding/anthropicCoding Plan keys cannot be mixed with regular keys or endpoints; its Codex support is Chat Completions only.Docs · verified 2026-11-09
  • Plan only: Tencent Cloud Token Plan Lite, Standard, Pro, Maxhttps://tokenhub.tencentmaas.com/plan/anthropicDocs · verified 2026-11-09
  • Plan only: Tencent Cloud Hy Token Plan Lite, Standard, Pro, Maxhttps://tokenhub.tencentmaas.com/plan/anthropicDocs · verified 2026-11-09

Generate the config

Type the model name from the provider's docs.

Save to ~/.claude/settings.json; merge it in if the file already exists
{
  "env": {
    "ANTHROPIC_BASE_URL": "https://api.lkeap.cloud.tencent.com/coding/anthropic",
    "ANTHROPIC_AUTH_TOKEN": "YOUR_API_KEY",
    "ANTHROPIC_API_KEY": "",
    "ANTHROPIC_MODEL": "tc-code-latest",
    "ANTHROPIC_DEFAULT_OPUS_MODEL": "tc-code-latest",
    "ANTHROPIC_DEFAULT_SONNET_MODEL": "tc-code-latest",
    "ANTHROPIC_DEFAULT_FABLE_MODEL": "tc-code-latest",
    "ANTHROPIC_DEFAULT_HAIKU_MODEL": "tc-code-latest"
  }
}

Plans covered

  • Tencent Cloud Coding Plan Lite$6.00/mo equivalent每 5 小时最多约 1,200 次请求;每周最多约 9,000 次请求;每订阅月最多约 18,000 次请求;可用模型为 Auto(tc-code-latest),暂不支持多模态
  • Tencent Cloud Coding Plan Pro$29.98/mo equivalent每 5 小时最多约 6,000 次请求;每周最多约 45,000 次请求;每订阅月最多约 90,000 次请求;可用模型为 Auto(tc-code-latest),暂不支持多模态

How to check it works

Restart Claude Code and send a message. If it replies and the request shows up in Tencent Cloud's console, it is using this endpoint.

FAQ

settings.json or environment variables?

settings.json applies every time Claude Code starts, for long-term use; the environment variables apply to the current terminal only, for a quick try.

How do I switch back to Anthropic?

Remove these variables from settings.json (or close the terminal where you set them), then restart Claude Code.

Does my key pass through this site?

No. The page only generates config text and never asks for your key; the key only goes into the config file or terminal on your own machine.

Claude Code configs for other providers