Docs
We run on Codex CLI, OpenAI's open-source agent. Four steps to set it up.
- 1
Install Codex CLI
An open-source project under Apache 2.0. Requires Node.js 20 or newer.
npm i -g @openai/codex - 2
Add our provider
Create ~/.codex/config.toml and paste this in.
~/.codex/config.toml[model_providers.amory] name = "AmoryMe" base_url = "https://ai-api.amoryme.com/v1" env_key = "AMORY_API_KEY" wire_api = "responses" [model] model_provider = "amory" model = "luna"wire_api must be responses — Codex CLI no longer speaks chat/completions, and with chat it fails silently.
- 3
Put your key in an environment variable
Create a key in your account settings. Codex reads it from AMORY_API_KEY.
export AMORY_API_KEY="amr_live_..." - 4
Run it in your project folder
The agent sees your files, edits them and runs commands.
cd my-project codex
Choosing a model
Three ways: for one run, inside a session, or permanently in the config.
# per run
codex --model sol -- refactor this module
# inside a session
/model sol
# permanent default in ~/.codex/config.toml
[model]
model = "sol"| Model | Best for | Plan |
|---|---|---|
| luna | The most economical one. Included in the free plan. | Free |
| terra | Stronger at long reasoning and harder problems. | Pro |
| code | Built for code: refactors, tests, migrations. | Pro |
| sol | Fast general-purpose model. Good at nearly everything. | Premium |
| opus | The strongest model available. Limited seats. | Premium |
Models above your plan return a clear 403 — nothing is charged.
Using Opus 5
Opus is on the Premium plan. No separate setup — it is just another --model value.
codex --model opus -- найди причину падения тестов и починиOpus seats are limited: our throughput is around ten concurrent sessions for the whole platform. If they are all busy your request waits a few seconds in a queue.
Terminal or browser
Two different tools for two different jobs. Billing and limits are shared.
Agent in the terminal
Works on your files: reads the project, edits it, runs commands and checks the result. Use it for code.
Chat in the browser
An ordinary conversation with a model. Nothing to install, no access to your files. Use it for questions and text.
Third-party clients
Put these values into any OpenAI-compatible client:
- API base URL
- https://ai-api.amoryme.com/v1
- API key
- get it in your dashboard
Cline, Continue, Cursor, Aider and Zed work with the same URL and key. They use the ordinary chat mode.