OpenAI
Codex CLI
OpenAI's terminal agent. Needs the Responses API, LuxeChain serves it.
Step by step
01
Get your key
Redeem a voucher at /redeem and copy the key.
02
Edit ~/.codex/config.toml
Add the model_providers block below and set model to a /models id.
03
Export the key
export LUXECHAIN_API_KEY="lxc_live_YOUR_KEY" (the name matches env_key in the block).
04
Run Codex
Start codex and send a prompt to confirm it answers.
Copy this
codex
# ~/.codex/config.toml model = "YOUR_MODEL_ID" # any model id from the /models page model_provider = "luxechain" [model_providers.luxechain] name = "luxechain" base_url = "https://api.luxechain.si/v1" env_key = "LUXECHAIN_API_KEY" wire_api = "responses" # Codex speaks the Responses API only
Codex only speaks the Responses API. wire_api must be "responses"; the old "chat" value is no longer accepted.