Skip to content
Docs/Integrations/Codex CLI

Codex CLI

OpenAI's terminal coding agent. It talks to the Responses API, which this service serves, through a custom provider in its config file.

Settings

model
uncensoredllm-1
model_provider
uncensoredllm
base_url
https://uncensoredllm.xyz/v1
env_key
UNCENSOREDLLM_API_KEY
wire_api
responses
model_context_window
262144

Steps

  1. Export your key in the shell you start Codex from: export UNCENSOREDLLM_API_KEY="vk-..."
  2. Open Codex's config.toml (~/.codex/config.toml) and add the provider and the top-level keys below.
  3. Start codex.
toml
# ~/.codex/config.tomlmodel = "uncensoredllm-1"model_provider = "uncensoredllm"model_context_window = 262144 [model_providers.uncensoredllm]name = "UncensoredLLM"base_url = "https://uncensoredllm.xyz/v1"env_key = "UNCENSOREDLLM_API_KEY"wire_api = "responses"

The env_key line names the environment variable that holds the key, so the key itself never goes in the file. The Responses page explains what this service does with the Responses API and what Codex tools work as sent.

Check that it works

Start Codex in a scratch folder and ask for something small. A reply means the provider block, the key and the model id are right.

When something does not work

  • Warning that Codex has no metadata for the model Expected for a model it does not know. The model_context_window line is the one that matters.
  • 401 The variable named in env_key is not set in the shell that started Codex. See errors.
  • 404 The base_url is not the one above. See errors.
  • 400 previous_response_not_found Nothing is stored between calls, so a client must resend the whole conversation in each request.