- Codex app
- Codex CLI & IDE
1
Install the plugin
Or open Plugins in the ChatGPT desktop app, search for Tavily, and select +. The same plugin also works in ChatGPT chats.
2
Connect
When prompted, connect Tavily and sign in to your Tavily account.
3
Try it
Start a new Codex chat and ask, or type
@ to pick Tavily:Use Tavily to find the latest docs for a dependency in this repo, check our usage against the installed version, and cite the source.
What you get
The plugin also adds Tavily skills, such as
tavily-research and tavily-best-practices, that guide Codex through multi-step work.
More options
Use an API key instead of OAuth
Use an API key instead of OAuth
Export your Tavily API key as Or in
TAVILY_API_KEY in the environment Codex runs in, then add the server with:config.toml:Use keyless access
Use keyless access
Run the MCP server locally
Run the MCP server locally
Requires Node.js 20+ and a Tavily API key:
Use the CLI and Agent Skills instead of MCP
Use the CLI and Agent Skills instead of MCP
Install the Tavily CLI, sign in, and add the Agent Skills to your project:Start a new session to load them. Add
--global to install them for all projects.Troubleshooting
- The plugin doesn’t show up in the IDE extension. The IDE extension doesn’t support plugins. Use the MCP server, which the extension reads from
config.toml. - Tavily tools don’t appear after installing the plugin. Start a new chat. Plugins load at the start of a chat or session.
tavilyisn’t authenticated. Runcodex mcp login tavily. Withbearer_token_env_var, check thatTAVILY_API_KEYis set where Codex runs.- The project
.codex/config.tomlis ignored. Codex reads project config only in trusted projects. - OAuth uses the wrong key. Tavily uses the key named
mcp_auth_default, so rename a key in the Tavily dashboard. See API key selection.