Recommended: install script
The one-line installer sets up Codex with theref CLI, hooks, and the Ref MCP server. It signs you in through the browser — no API key needed:
AwaitReview and Share are API-key only, and an OAuth connection does not include them.
Manual install
Codex is configured in aconfig.toml file. This typically lives at ~/.codex/config.toml
Add Ref Plans with no API key:
Codex app
In the Codex app, add a custom MCP server with typeStreamable HTTP and URL https://api.plan.ref.tools/mcp. Leave the bearer token and headers empty, then sign in.
API key
You can find your Ref API key at ref.tools/keys.Verify
Run the command:ref-plan listed with the Ref Plans MCP URL.
Get help
If you have any issues, please reach out tohelp@ref.tools. We’re happy to help you get started!