Wild West

Codex CLI on uncensored GLM 5.3

Codex CLI speaks only the OpenAI Responses API. Wild West serves that format at /v1/responses, so Codex can drive any of the three uncensored GLM 5.3 builds with a provider entry and no shim.

The provider block

Add this to ~/.codex/config.toml:

model = "glm-5.3-outlaw"
model_provider = "wildwest"

[model_providers.wildwest]
name = "Wild West"
base_url = "https://wildwestapi.com/v1"
env_key = "WILDWEST_API_KEY"
wire_api = "responses"

Then export the key and start Codex:

export WILDWEST_API_KEY=sk-ww-...
codex

The base URL keeps /v1 because the Responses client appends only /responses. The same block with codex exec runs it headless.

Which GLM 5.3 build to point it at

SlingshooterGLM 5.3 Lite OutlawHipshooter
Model idglm-5.3-outlawglm-5.3-lite-outlawglm-5.3-flash-outlaw
Context1,048,576 tokens262,144 tokens1,048,576 tokens
Longest reply131,072 tokensNot published32,768 tokens
Reads imagesNoNoYes
Price per 1M tokens$2.00 in, $1.00 cached, $5.00 out$0.86 in, $0.33 cached, $2.90 out$0.30 in, $0.20 cached, $1.00 out
25-turn Codex session$0.9875$0.3796$0.1862

The session row is 750,000 input tokens re-read across 25 turns, 85% of them cache hits, and 25,000 tokens written. Slingshooter is the one to start with for a large repository: it reads 1,048,576 tokens and writes up to 131,072 in a reply. GLM 5.3 Lite Outlaw is the same model with a 262,144 token window, which is enough for a single feature or a bug hunt. Hipshooter is the build to use when the task includes screenshots, since it is the only one of the three that reads images.

GLM 5.3 always reasons, and Codex needs room for it

All three builds think before every reply, and the reasoning shares the output budget with the answer and the tool call. Codex's default effort settings are accepted: one the model does not take is moved to the nearest it does, and a request to switch reasoning off runs with reasoning on. Leave the output limit generous, so a turn that reasons and then calls a tool has room for both.

What is translated, and what is not

A Responses request becomes a chat-completions body on the way out and the answer becomes a Response object on the way back, with the real event sequence when streaming. Function tools you define work normally.

  • previous_response_id is refused with a clear error. Codex sends the full input every turn, so it does not need it.
  • OpenAI's hosted tools (web_search, file_search, computer_use) run inside OpenAI's own stack, so they are not available.

The general setup, for any model on the line, is in the Codex CLI quickstart.

FAQ

Can Codex CLI use GLM 5.3?

Yes, through a model provider entry in config.toml that points at https://wildwestapi.com/v1 with wire_api set to responses and the model set to glm-5.3-outlaw, glm-5.3-lite-outlaw or glm-5.3-flash-outlaw.

What wire_api should I set?

responses. Codex speaks the Responses API, and Wild West translates it for the model.

What does a Codex session cost on GLM 5.3?

About $0.9875 on Slingshooter, $0.3796 on GLM 5.3 Lite Outlaw and $0.1862 on Hipshooter, for 25 turns that re-read 750,000 tokens (85% cached) and write 25,000.

Does it need a separate key?

No. The same Wild West key works for the OpenAI, Anthropic and Responses formats.

Related

Uncensored AI models on one key

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