~/.codex/config.toml, so Triw is a normal provider block with a base URL and an env key.
Requirements
Install
Configure Triw
~/.codex/config.toml
base_urlends with/v1. Codex appends/chat/completionsor/responses.env_keynames the environment variable; the key itself never lives in the file.
openai_base_url = "https://router.triw.io/v1" at the top level. The explicit provider block above is clearer when you keep both.
Pick a model
model =. Coding ids usually come from the gpt-5*, codex, or claude-* families, depending on what the operator connected.
Verify
codex, then /status to confirm provider and model. Cross-check with Logs in the Triw console.

