Claude Code
on Raw Models
Claude Code sends every request to one API base URL, so pointing it at Raw Models replaces its models entirely: the native Claude models are not reachable while this is set, and each tier maps to a Raw Models model of your choice. Reverting restores them.
One command
Maps every tier to a single model (default glm-5.3-raw; override with RAWMODELS_MODEL). Create a key in API key settings.
curl -fsSL https://www.rawmodels.ai/install | RAWMODELS_API_KEY=skrm-... sh -s -- claudeManual settings.json
Write the configuration into ~/.claude/settings.json directly. Each tier can point to a different model slug.
{
"env": {
"ANTHROPIC_BASE_URL": "https://www.rawmodels.ai",
"ANTHROPIC_AUTH_TOKEN": "skrm-...",
"ANTHROPIC_DEFAULT_OPUS_MODEL": "glm-5.3-raw",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "glm-5.3-raw",
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "glm-5.3-raw",
"ANTHROPIC_MODEL": "glm-5.3-raw",
"ANTHROPIC_SMALL_FAST_MODEL": "glm-5.3-raw",
"CLAUDE_CODE_SUBAGENT_MODEL": "glm-5.3-raw",
"CLAUDE_CODE_MAX_OUTPUT_TOKENS": "999990",
"API_TIMEOUT_MS": "900000",
"CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": "1"
}
}ANTHROPIC_DEFAULT_OPUS_MODELWhat the opus / opusplan tier resolves to.
ANTHROPIC_DEFAULT_SONNET_MODELThe sonnet tier — the default working model.
ANTHROPIC_DEFAULT_HAIKU_MODELThe haiku / small-fast tier, used for background work.
ANTHROPIC_MODELThe model a fresh session starts on.
CLAUDE_CODE_SUBAGENT_MODELThe model subagents run on.
CLAUDE_CODE_MAX_OUTPUT_TOKENSOutput budget per turn. Keep within the selected model’s limits.
Available models
Use a tool-capable model your account can access. Early access is required:
glm-5.3-rawGLM-5.3 Raw — tool calling.
antislopQwen3.8 27B Antislop — tool calling.
Security models are coming soon. Join the early access waitlist. See pricing on the reference.
Revert
Remove the env block (or the keys above) from ~/.claude/settings.json and restart claude, or run the installer's uninstall. Your native Claude models come back.