Skip to main content

Install

Install Node.js and Codex CLI from official.
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo bash -
apt-get install -y nodejs
npm install -g @openai/codex

Configure

Add the following to ~/.codex/config.toml. Create them if any do not exist. model can be changed to gpt-5 if preferred.
model_provider = "revolt"
model = "gpt-5-codex"
model_reasoning_effort = "high"
model_reasoning_summary = "detailed"
disable_response_storage = true

[model_providers.revolt]
name = "revolt"
env_key = "revolt"
base_url = "https://core.api.hxieon.net/v1"
wire_api = "responses"

Authentication

Change ~/.codex/auth.json, create if it does not exist.
{
  "OPENAI_API_KEY": null
}

Environment

Add environment variable to ~/.bashrc to persist.
export revolt="change-to-your-api-key"

Run

Run Codex CLI as usual. All requests will be routed through Revolt.
codex