Use Codex with open models
Updated
By default, models from the open-models service get their own codex-run command. Your codex command and settings stay unchanged.
| Connection | Value |
|---|---|
| Control site | https://runinfra.ai |
| Command | runinfra |
| Sign-in | Approve the device code in your browser. Keep your API key out of agent chat. |
| Billing | The existing funding rules of your open-model account. |
Set up
Paste it into your agent, approve sign-in in your browser, and say yes to the plan. All steps
To use the open-models service inside codex itself, run runinfra in your terminal and choose Inside; it uses models from the open-models service until you disconnect.
When Codex asks, approve running the open-models service command outside the sandbox.
Start
Run the line your agent gives you. The open-models service model is already selected.
If needed, add ~/.config/runinfra/bin to PATH (%LOCALAPPDATA%\ on Windows) to run commands by name.
Undo
Ask your usual codex agent to disconnect the open-models service. This deletes codex-run with its sessions and history, or restores earlier settings for Inside.