Keys / Tavily

TAVILY_API_KEY

The Tavily API key your app searches, extracts, crawls and researches the web with.

Starts with
tvly-
Expires
the docs don't say
API
generate and deactivate, with an Enterprise plan key

Get it

Create one on app.tavily.com. The steps aren't recorded yet.

Set it

TAVILY_API_KEY=tvly-...

The Python and JavaScript SDKs read it from this variable when you don't pass a key. Or keep it out of .env with keypin: keypin run -- npm run dev

Replace it

  1. Create a new key in the dashboard. Keep the old one active.
  2. Deploy the new key everywhere that reads TAVILY_API_KEY.
  3. Check that your app works with the new key, then delete the old one.

Set rotate_every on the key in keypin.toml and a rotated date on its vault item, and keypin status shows when it's due.

Sources, checked 2026-11-16