What you’ll need
- A paid plan (Gold, Platinum, or Diamond)
- The OpenAI Codex CLI installed and signed in
Pick your path
Codex authenticates against remote MCP servers in two ways depending on how you use it. Pick the one that matches your setup.| If you’re using… | Use this section |
|---|---|
| The Codex plugin / marketplace UI (browser sign-in) | OAuth |
The codex mcp CLI (terminal-only) | Bearer token |
Auth: Unsupported for OAuth-only servers in codex mcp list.
OAuth (plugin UI)
Run Codex
Start a Codex session:The first time you use a Hoard tool, Codex opens your browser to sign in. Sign in to Hoard and click Allow.
Bearer token (CLI)
Thecodex mcp CLI does not support OAuth for remote MCP servers. Use your Hoard API key as a bearer token instead.
Grab your API key
Open Settings → Account and copy your API key. It’s a 64-character hex string.
Register Hoard with Codex
Export the key and register the server in one shot:Make
HOARD_API_KEY permanent by adding the export line to your shell rc file (~/.zshrc, ~/.bashrc).Revoking access
- OAuth path: Open Settings → Assistants in Hoard and click Revoke next to the Codex entry.
- Bearer-token path: API keys can’t be rotated or revoked from Settings today — email support@tryhoard.com to rotate or revoke your key.