Add and authorize
The login step opens a browser. Approve the connection there and Codex stores the
credential.
If codex mcp add rejects --url, your Codex build predates remote HTTP MCP support. Run
codex update and try again.
Verify
hive should appear as connected. Then start a session and ask for live data.
codex mcp login needs an interactive terminal.
Headless use
Codex keeps its MCP servers in ~/.codex/config.toml under mcp_servers. Where no browser is
available, point Codex at an environment variable rather than writing a key to disk:
If you need the key inline instead, use http_headers:
See authentication for where to get a key.