Claude Code

Keep Claude Code. Change one settings file.

Claude Code speaks the Anthropic Messages API, and so does AkashML. Point it at one new base URL, give each tier an open model, and every command you already run keeps working — same agent, same terminal, same project.

Install Claude Code

Skip this if you already have it — no reinstall is needed to change providers.

macOS / Linux
curl -fsSL https://claude.ai/install.sh | bash
Windows · PowerShell
irm https://claude.ai/install.ps1 | iex

Point it at AkashML

On macOS and Linux this goes in ~/.claude/settings.json. Paste your key in place of the placeholder — it starts akml-.

~/.claude/settings.json
{
  "env": {
    "ANTHROPIC_BASE_URL": "https://api.akashml.com/anthropic",
    "ANTHROPIC_AUTH_TOKEN": "akml-…",
    "ANTHROPIC_DEFAULT_OPUS_MODEL": "moonshotai/Kimi-K3.1-Pro",
    "ANTHROPIC_DEFAULT_SONNET_MODEL": "zai-org/GLM-5.3",
    "ANTHROPIC_DEFAULT_HAIKU_MODEL": "Qwen/Qwen3.6-35B-A3B",
    "API_TIMEOUT_MS": "3000000"
  }
}

On Windows, set the same variables in your shell instead. These last for the session; usesetx or the System Properties dialog to persist them.

Windows · PowerShell
$env:ANTHROPIC_BASE_URL = "https://api.akashml.com/anthropic"
$env:ANTHROPIC_AUTH_TOKEN = "akml-…"
$env:ANTHROPIC_DEFAULT_OPUS_MODEL = "moonshotai/Kimi-K3.1-Pro"
$env:ANTHROPIC_DEFAULT_SONNET_MODEL = "zai-org/GLM-5.3"
$env:ANTHROPIC_DEFAULT_HAIKU_MODEL = "Qwen/Qwen3.6-35B-A3B"
$env:API_TIMEOUT_MS = "3000000"

Open a new terminal window afterwards. Claude Code reads this configuration at startup, so an existing session will still be pointed at wherever it was before.

Choose what each tier runs

Claude Code asks for a tier — opus, sonnet or haiku — and the three ANTHROPIC_DEFAULT_*_MODEL variables decide which open model answers. The defaults above map like this:

TierModel idWhat it’s for
opusmoonshotai/Kimi-K3.1-ProProject-level software engineering and long-horizon agents. Kimi K3.1 Pro
sonnetzai-org/GLM-5.3Agentic coding and tool use — the tier most work runs on. GLM 5.3
haikuQwen/Qwen3.6-35B-A3BLightweight lookups and quick edits. Qwen 3.6 35B A3B

Any model in the library can take any tier — this is a mapping, not a restriction. Swap the ids for whichever ones suit the work.

Run it

Nothing about how you use Claude Code changes. Start it in a project the way you always have.

shell
cd your-project
claude

API_TIMEOUT_MS is set to 3,000,000 above — fifty minutes. A single agentic task can hold one request open for a long time, and the default is short enough to cut long runs off mid-way.

What you can check

The quantization we serve for each of these models is published on OpenRouter’s provider page, beside every other host of the same weights and maintained independently of us. Rates are on the pricing page, with the precision label in the same cell.