Set Up ASI:One in Codex
Set Up ASI:One in Codex
Overview
The Codex CLI lets you use your ASI:One subscription and any of the ASI:One models in your existing Codex workflows.
Prerequisites
- macOS or Linux. The profile reads your key with
printf, which native Windows doesn’t have. - The Codex CLI installed and on your
PATH. - An ASI:One API key. Create one at asi1.ai/developer.
Keys start with
sk_. - An ASI:One plan that includes
asi1-ultra. The same key also works forasi1,asi1-ultra-1mandasi1-mini.
Create the profile
The profile will hold your key, so create the file readable only by you before adding anything to it:
Open ~/.codex/asi.config.toml in an editor, paste the following, and replace
sk_YOUR_KEY_HERE with your key:
Run it
To check the connection without opening a session:
Then start a session:
To use a different ASI:One model, pass it with -m:
asi1-ultra-1m has a much larger context window than the profile’s
model_context_window. Raise it for that session so Codex doesn’t compact at
196,000 tokens:
Troubleshooting
Next steps
- Cursor: the same models in the Cursor editor
- T3 Code: run this Codex setup from the T3 Code app
- OpenCode: the same models in OpenCode
- ASI:One Models: choosing between
asi1,asi1-ultra,asi1-ultra-1mandasi1-mini - Responses API: the endpoint Codex talks to