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
- Export your key in the shell you start Codex from:
export UNCENSOREDLLM_API_KEY="vk-..." - Open Codex's
config.toml(~/.codex/config.toml) and add the provider and the top-level keys below. - 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 modelExpected for a model it does not know. Themodel_context_windowline is the one that matters.401The variable named inenv_keyis not set in the shell that started Codex. See errors.404Thebase_urlis not the one above. See errors.400 previous_response_not_foundNothing is stored between calls, so a client must resend the whole conversation in each request.