OpenAI Codex
OpenAI Codex can use Chronary’s hosted MCP server: agents, calendars, events, availability, booking pages and scheduling between agents. Connect by signing in to Chronary in your browser, or with an API key. The Codex CLI, the IDE extension and the ChatGPT desktop app share one Codex configuration, so you set it up once.
Before you start
Section titled “Before you start”- Codex (the CLI, the IDE extension or the ChatGPT desktop app). Keep it up to date: signing in uses Codex’s built-in support for MCP sign-in.
- A Chronary account. If you sign in and don’t have one, you create it during sign-in. It is free to start.
Connect
Section titled “Connect”-
Add Chronary to
~/.codex/config.toml(or.codex/config.tomlin a trusted project), with no token:[mcp_servers.chronary]url = "https://api.chronary.ai/mcp" -
From a terminal, sign in:
Terminal window codex mcp login chronary -
Chronary opens in your browser. Sign in, or create an account, then check that the request names Codex and choose Allow. The page notes that this app runs on your computer: allow it only if you started the sign-in yourself.
-
Restart Codex (or the IDE extension) so it picks up the connection.
On a machine without a browser, run codex mcp login chronary --no-browser, open the printed address in a browser elsewhere, sign in, and paste the full address you land on back into the terminal.
-
In the console, open API keys and create an Organization key (
chr_sk_...). An Organization key gets every tool. An Agent key (chr_ak_...) acts for one agent only. -
Put the key in your environment as
CHRONARY_API_KEY, set where Codex runs. -
Add Chronary to
~/.codex/config.toml(or.codex/config.tomlin a trusted project):[mcp_servers.chronary]url = "https://api.chronary.ai/mcp"bearer_token_env_var = "CHRONARY_API_KEY"
Codex reads the key from CHRONARY_API_KEY and sends it as Authorization: Bearer ..., so the key itself is not written to the file. Restart Codex (or the IDE extension) after saving.
Check it works
Section titled “Check it works”Run codex mcp list: chronary should be listed. In the Codex terminal UI, /mcp shows the active servers.
Then ask Codex: “Use the Chronary tools to list my agents.” It should call list_agents and return your agents (an empty list is fine for a new account).
What the connection can do
Section titled “What the connection can do”A signed-in connection acts for your whole organization, like an Organization key, and uses your organization’s plan and limits. It gets the same tools as the Claude connector, except create_scoped_key and accept_terms, which need an API key. A key connection uses your plan and limits exactly as the key does anywhere else. Every tool is marked read-only or as one that changes data. See the Tools Reference for each tool.
Disconnect
Section titled “Disconnect”Open the console and go to Settings → Security → Connected apps. Choose Revoke next to Codex. The connection stops working within about a minute. To stop Codex using Chronary, also remove the [mcp_servers.chronary] entry.
Changing or resetting your password, changing your account email, or scheduling your account for deletion also disconnects every connected app. Run codex mcp login chronary to sign in again.
Troubleshooting
Section titled “Troubleshooting”| Problem | What to do |
|---|---|
| The sign-in page says the request expired | A connection request lasts 10 minutes and works only in the browser that opened it. Run codex mcp login chronary again. |
codex mcp login says it can’t register with Chronary | Update Codex, then try again. Or connect with an API key. |
| The sign-in page says this app can’t connect | Update Codex, then sign in again. Or connect with an API key. |
| Tool calls fail with 401 with an API key | The key is wrong, revoked, or CHRONARY_API_KEY isn’t set where Codex runs. |
A tool returns plan_required or quota_exceeded | The feature isn’t in your plan, or a limit is reached. The error names it. See Billing & Plans. |
Support
Section titled “Support”Look up an error in Error Codes first. If that doesn’t settle it, email [email protected] and include the request_id from the error if there is one.