~/.codex/config.toml — either by editing the file directly or using the codex mcp add CLI command.
1
Get a Poix Token
If you don’t already have one, create a
poix- Token in the Dashboard. See Authentication for details.2
Add the Poix server
Use the Codex CLI:Or add it directly to
~/.codex/config.toml:config.toml
3
Set your token
Export your Poix Token as the environment variable Codex reads:Replace
poix-… with your actual Token, then restart Codex.4
Verify the connection
Ask Codex to list its available tools —
poix’s tools (search, video/channel details, captions, and more) should appear. You can now ask it to look up YouTube data directly.Codex’s TOML config also supports
env_http_headers, which can pass a full Authorization header directly instead of using bearer_token_env_var.