# Add InferSpeed to CC Switch for Claude Code

In CC Switch, add a new provider for Claude Code with InferSpeed's endpoint, your key and the model `glm-5.3`, then switch to it. You can also use the import link below. For Codex, use the [Codex CLI setup](https://inferspeed.ai/codex) instead; the reason is at the end.

The config blocks match developers.md (checked 2026-10-19).

## Claude Code: add the provider by hand

| CC Switch field | Value |
|---|---|
| Endpoint | `https://api.inferspeed.ai` |
| API key | Your InferSpeed key (create one at https://inferspeed.ai/keys) |
| API format | Anthropic (default) |
| Model | `glm-5.3` |
| Haiku / Sonnet / Opus model | `glm-5.3` each |

Field names may differ in your CC Switch version.

## Claude Code: import with a link (CC Switch 4.0.10 or later)

Put your key in place of `YOUR_API_KEY` (URL-encoded) and open the link on the computer that runs CC Switch; it shows a confirmation dialog before it changes anything. Keep the finished link private: it contains your key. The `config` value adds `CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1`.

```
ccswitch://v1/import?resource=provider&app=claude&name=InferSpeed&endpoint=https%3A%2F%2Fapi.inferspeed.ai&apiKey=YOUR_API_KEY&model=glm-5.3&haikuModel=glm-5.3&sonnetModel=glm-5.3&opusModel=glm-5.3&configFormat=json&config=eyJlbnYiOnsiQ0xBVURFX0NPREVfRElTQUJMRV9OT05FU1NFTlRJQUxfVFJBRkZJQyI6IjEifX0%3D
```

## Balance on the CC Switch card

The balance comes from `GET https://api.inferspeed.ai/v1/usage` with your key as `Authorization: Bearer`; pick CC Switch's built-in usage template that reads that endpoint, no custom script needed.

## Check it works

After switching to InferSpeed, run in a terminal:

```bash
claude -p "reply with the word ok"
```

## Why not CC Switch for Codex

For Codex, CC Switch writes its own template (`model_reasoning_effort = "high"`, `disable_response_storage = true`, `requires_openai_auth = true`, key in `auth.json`), which is not the config we verified. For Codex, write `config.toml` as in the [Codex CLI setup](https://inferspeed.ai/codex).

## Prices (USD per 1M tokens)

| Model | Input | Output | Cache read | Official price (input / output) |
|---|---|---|---|---|
| glm-5.3 | $0.84 | $2.64 | $0.156 | $1.40 / $4.40 |

All models and live prices: https://inferspeed.ai/model-plaza

## FAQ

**Can I use Kimi?**
One key calls every live model (`GET /v1/models` lists the models your key can call); use the model ID `kimi-k3`. This page only gives the config for `glm-5.3`.

**What are the default limits?**
30 requests per minute and 5 concurrent requests for new accounts, across all keys of the account.
