Wild West

Run GLM 5.3 Lite Outlaw in Claude Code

The full GLM 5.3, abliterated, at under half the price of Slingshooter: 262K of context, tool calling and reasoning on every reply. Text only. The pick when you want GLM 5.3 itself on a long agent run and do not need the million-token window.

Model idglm-5.3-lite-outlaw
Context262k tokens
Input price$0.86 / million tokens
Output price$2.90 / million tokens
Tool callingSupported

Set it up

Point Claude Code's base URL at Wild West (no /v1), set the auth token to your key, name this model, and set the context length to its real value of 262,144:

# Put these in your shell profile, then run: claude
export ANTHROPIC_BASE_URL=https://wildwestapi.com
export ANTHROPIC_AUTH_TOKEN=sk-ww-...
export ANTHROPIC_MODEL=glm-5.3-lite-outlaw
export ANTHROPIC_DEFAULT_HAIKU_MODEL=glm-5.3-outlaw
export CLAUDE_CODE_MAX_CONTEXT_TOKENS=262144

Or put the same values under env in ~/.claude/settings.json:

// ~/.claude/settings.json
{
  "env": {
    "ANTHROPIC_BASE_URL": "https://wildwestapi.com",
    "ANTHROPIC_AUTH_TOKEN": "sk-ww-...",
    "ANTHROPIC_MODEL": "glm-5.3-lite-outlaw",
    "ANTHROPIC_DEFAULT_HAIKU_MODEL": "glm-5.3-outlaw",
    "CLAUDE_CODE_MAX_CONTEXT_TOKENS": "262144"
  }
}

ANTHROPIC_DEFAULT_HAIKU_MODEL is the cheap background model, set to glm-5.3-outlaw above. CLAUDE_CODE_MAX_CONTEXT_TOKENS is set because Claude Code assumes 200K for an id it does not recognise. Use ANTHROPIC_AUTH_TOKEN and leave ANTHROPIC_API_KEY unset. Full setup and every caveat is in the Claude Code guide.

Tool calling Claude Code reads, edits and runs commands only through tool calls, so the model you set here must support tool calling. A model without it can chat but cannot touch your files.

FAQ

Can GLM 5.3 Lite Outlaw edit files and run commands in Claude Code?

Yes. It supports tool calling, which is what Claude Code needs to use its Read, Edit, Write and Bash tools. A model without tool calling could only chat.

How much does it cost?

$0.86 per million input tokens and $2.90 per million output tokens through Wild West. Put a spend cap on the key so an agent loop cannot overrun it.

Is this an official Anthropic setup?

No. Anthropic does not officially support routing Claude Code to non-Claude models through a gateway. It works because Wild West translates the Messages API, but it is not a configuration Anthropic backs.

Other models for Claude Code

Uncensored AI models on one key

OpenAI and Anthropic compatible, pay as you go. New to it? Start with uncensored AI, explained.