Overview
OneCLI connects AI agents to Tavily with an API key. Agents can search the web, extract the content of pages, crawl and map sites, and start research tasks that produce a cited report. The gateway adds the key to requests to the Tavily API and the hosted Tavily MCP server, so your agent never sees it. Tavily’s API takes only API keys, so a key is the only way to connect.What you will set up
- A Tavily API key
- Automatic key injection on the Tavily API and the hosted MCP server
- Per-tool permissions on the item
Connect Tavily
1
Get an API key from Tavily
Open the Tavily dashboard and create a key, or copy one you already have. Keys start with
tvly-.2
Paste it in OneCLI
In the OneCLI dashboard, open your vault and click Add item. Pick Tavily on the Connected app tab and click Connect. In the window that opens, paste the key into API key and click Connect Tavily.OneCLI checks the key with Tavily before saving it, so a wrong or revoked key is rejected right away. The check reads your usage and spends no credits.
personal or work.
What agents can do
Research runs in the background. An agent starts a task with
POST /research, then polls GET /research/{request_id} for the report.
Submit feedback is the only write tool. Every other tool only reads, including the ones that use POST.
View organization usage needs the organization owner’s personal key.
Quick example
NoAuthorization header is needed. The gateway adds the key as a Bearer header:
Controlling access
Permissions are set on the item, per tool. In the vault, click Manage next to the item and set each tool to Always allow, Needs approval, or Never. A new app starts with every tool on Always allow, so tighten the tools you want held or refused. Every agent connected to the vault gets the same permissions. Organization rules can block, require approval, or rate-limit on top. A request that is not allowed is never sent to Tavily. To disconnect, open the Tavily item in its vault and choose Delete from the More menu, then delete the key on the Tavily dashboard.FAQ
How do I rotate my Tavily API key?
How do I rotate my Tavily API key?
Create a new key on the Tavily dashboard, then open the Tavily item in its vault, choose Reconnect from the More menu, and paste it in. Agents on the vault use it on their next request. Then delete the old key.
How do I keep the key out of the agent's context?
How do I keep the key out of the agent's context?
Store it in OneCLI. The gateway adds it at the proxy, so the agent never holds the key. See How it works.
Does this cover the Tavily MCP server?
Does this cover the Tavily MCP server?
Yes. The gateway adds the key to the hosted MCP server at
mcp.tavily.com/mcp, and to nothing else on that host.