Use PackyCode in Claude Code

Prices and modelsEndpoint verified 2026-11-09

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

Endpoints

  • Pay as you gohttps://cf.api.fanThe token must be in the CC group; the API domain differs from the website.Docs · verified 2026-11-09

Generate the config

Pick from the 50 models this provider sells, or type another model name.

Save to ~/.claude/settings.json; merge it in if the file already exists
{
  "env": {
    "ANTHROPIC_BASE_URL": "https://cf.api.fan",
    "ANTHROPIC_AUTH_TOKEN": "YOUR_API_KEY",
    "ANTHROPIC_API_KEY": "",
    "ANTHROPIC_MODEL": "claude-fable-5-2",
    "ANTHROPIC_DEFAULT_OPUS_MODEL": "claude-fable-5-2",
    "ANTHROPIC_DEFAULT_SONNET_MODEL": "claude-fable-5-2",
    "ANTHROPIC_DEFAULT_FABLE_MODEL": "claude-fable-5-2",
    "ANTHROPIC_DEFAULT_HAIKU_MODEL": "claude-fable-5-2"
  }
}

Models and prices

ModelInputOutputRatio
Claude Fable 5.2claude-fable-5-2aws-q$0.36$1.800.045×
Hy4hy4hunyuan-officiallyOfficial API$0.45$1.350.50×
GPT-6.1 Terragpt-6.1-terracodex-sale$0.045$0.2250.045×
Kimi K3.1 Prokimi-k3.1-prokimi-sale$0.974$5.100.50×
Kimi K3.1 Prokimi-k3.1-pro-highspeedkimi-officiallyOfficial API$3.70$19.371.90×
Gemini 4 Argongemini-4-argongemini-slb$0.899$4.500.45×
Claude Haiku 5.5claude-haiku-5-5cc$0.037$0.1870.37×
GPT-6.1 Solgpt-6.1-solcodex-sale$0.090$0.450.045×
Claude Sonnet 5.5claude-sonnet-5-5aws-q$0.090$0.450.045×
Claude Opus 5.5claude-opus-5-5aws-q$0.18$0.8990.045×
GPT-6 Solgpt-6-solcodex-sale$0.090$0.450.045×
Grok 4.7grok-4.7grok-sale$0.090$0.270.045×
GLM-5.3-FlashXglm-5.3-flashxglm-sale$0.225$0.7870.75×
GPT-6 Astragpt-6-astracodex-sale$0.45$2.250.045×
Gemini 3.8 Flashgemini-3.8-flashgemini-slb$0.337$1.690.45×
Claude Fable 5.1claude-fable-5-1cc$3.75$18.740.37×
GLM-5.3-Flashglm-5.3-flashglm-sale$0.060$0.210.50×
Qwen3.8 Flashqwen3.8-flashbailianOfficial API$0.060$0.2020.50×
GLM-5.3glm-5.3glm-sale$0.60$2.100.50×
DeepSeek V4 Prodeepseek-v4-prodeepseek-sale$0.337$1.010.51×
Gemini 3.7 Flashgemini-3.7-flashgemini-slb$0.337$1.690.45×
Grok 4.6grok-4.6grok-sale$0.090$0.270.045×
Qwen3.8 Maxqwen3.8-maxbailianOfficial API$0.899$2.700.50×
Qwen3.8 Maxqwen3.8-max-0902bailianOfficial API$0.899$2.700.50×
DeepSeek V4 Flashdeepseek-flashdeepseek-sale$0.075$0.30—
DeepSeek V4 Flashdeepseek-v4-flashdeepseek-sale$0.075$0.30—
Claude Opus 5claude-opus-5aws-q$0.225$1.120.045×
Gemini 3.6 Flashgemini-3.6-flashgemini-slb$0.337$1.690.45×
Kimi K3kimi-k3kimi-sale$1.50$7.500.50×
GPT-5.6 Solgpt-5.6-solcodex-sale$0.18$0.8990.045×
GPT-5.6 Terragpt-5.6-terraazure-officiallyCloud$1.50$8.990.75×
Grok 4.5grok-4.5grok-sale$0.090$0.270.045×
Claude Sonnet 5claude-sonnet-5aws-q$0.090$0.450.045×
GLM-5.2glm-5.2glm-sale$0.60$2.100.50×
Kimi K2.7 Codekimi-k2.7-codekimi-officiallyOfficial API$0.926$3.850.95×
Claude Fable 5claude-fable-5cc$3.75$18.740.37×
Qwen3.7 Plusqwen3.7-plusbailianOfficial API$0.15$0.600.50×
MiniMax-M3MiniMax-M3minimax-officiallyOfficial API$0.315$1.261.00×
Claude Opus 4.8claude-opus-4-8aws-q$0.225$1.120.045×
Qwen3.7 Maxqwen3.7-maxbailianOfficial API$0.899$2.70—
Gemini 3.5 Flashgemini-3.5-flashgemini-slb$0.675$4.050.45×
GPT-5.5gpt-5.5azure-officiallyCloud$3.75$22.490.75×
Kimi K2.6kimi-k2.6kimi-officiallyOfficial API$0.926$3.850.95×
Claude Opus 4.7claude-opus-4-7aws-q$0.225$1.120.045×
MiniMax-M2.7MiniMax-M2.7bailianOfficial API$0.157$0.63—
Gemini 3.1 Pro Previewgemini-3.1-pro-previewgemini-slb$0.899$5.400.45×
Claude Sonnet 4.6claude-sonnet-4-6aws-q$0.135$0.6750.045×
MiniMax-M2.5minimax-m2.5bailianOfficial API$0.157$0.63—
Claude Opus 4.6claude-opus-4-6aws-q$0.225$1.120.045×
Kimi K2.5kimi-k2.5bailianOfficial API$0.30$1.57—
$ per 1M tokens. Each model uses the provider's cheapest group; the ratio uses the output price

How to check it works

Restart Claude Code and send a message. If it replies and the request shows up in PackyCode'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