Leaked Pinecone API key? What to do now
Revoke it first, then check what it was used for, cap what your keys can spend and clean up where it leaked. Every Pinecone step below comes from Pinecone's own docs, checked 21 Nov 2026.
Free. No sign-up.
Most leaked AI keys start as a call made from the browser. The template keeps every AI call on your server and records what each user spends. Buy the template →
What to do now, for Pinecone
Revoke the key now
A project owner deletes the key: open the project's API keys tab, choose Delete from the ⋯ menu in the key's row and type the key's name. Apps using it stop working at once, and it can't be undone. Then create a new one. Until you do, the key can read, and may be able to change, the project's data, depending on its permissions. Do this first: until it's revoked, anyone who copied it can keep spending. GitHub alerts the repo's owner about Pinecone keys, and its push protection can block them, but it doesn't report them to Pinecone, and Pinecone's docs don't say it disables leaked keys.
Keep the new key on the server
Put the new key only in a server-side secret: your host's environment settings, your builder's secrets, or Supabase function secrets. Never in a variable starting NEXT_PUBLIC_, VITE_ or EXPO_PUBLIC_, which are sent to every visitor.
Check usage for charges that weren't yours
Settings, then Usage, shows the organisation's usage and costs, grouped by SKU or project, not by key. Only organisation owners and billing admins on the Standard or Enterprise plans can see it. Note the time the key leaked and the time you revoked it.
Cap what any key can spend
The free Starter plan and the flat $20-a-month Builder plan are capped by plan quotas, with no usage overages. On Standard and Enterprise, spend alerts email you when spending reaches an amount you set, and Pinecone also emails you when it passes double last month's invoice. Pinecone's docs describe no setting that stops requests.
Clean up the repo, after revoking
Remove the key from the code and the git history, but only once it's revoked: anyone who cloned the repo, or a fork, still has it. Then turn on push protection, so GitHub blocks the next Pinecone key you try to push.
If someone ran up charges, ask for them back
File a ticket under Settings, then Support, on the Builder, Standard or Enterprise plans; on Starter, use Pinecone's account and billing support form. Pinecone's agreement makes you responsible for activity with your keys and asks you to tell Pinecone promptly if one is lost or stolen. There's no stated policy on usage from leaked keys. Say when the key leaked, when you revoked it and which usage wasn't yours.
Checked in Pinecone's own docs. Sources: managing API keys, projects and roles, usage reports, spend alerts, billing plans, getting help, CLI reference, subscription agreement. Dashboards move, so if a link is out of date, look for the same setting under account or organisation settings.
Then find every other copy, with your coding agent
Find every place an API key or other secret is exposed in this project, and fix it. Search the code, env files, config and local settings files (such as .claude/settings.local.json), the full git history (with gitleaks or a similar scanner) and the built browser bundle. Flag any secret in a variable with a public prefix such as NEXT_PUBLIC_, VITE_ or EXPO_PUBLIC_, and any AI provider called from browser code. Move every AI call into a server route or function that reads its key from a server-only variable, add .env and local settings files to .gitignore, and list each key that was exposed and where, so I can revoke it. Don't rewrite git history.
Questions
Does Pinecone disable a leaked key for you?
GitHub alerts the repo's owner about Pinecone keys, and its push protection can block them, but it doesn't report them to Pinecone, and Pinecone's docs don't say it disables leaked keys. Revoke it yourself either way.
Can I cap what a Pinecone key spends?
The free Starter plan and the flat $20-a-month Builder plan are capped by plan quotas, with no usage overages. On Standard and Enterprise, spend alerts email you when spending reaches an amount you set, and Pinecone also emails you when it passes double last month's invoice. Pinecone's docs describe no setting that stops requests.
How do I see what a leaked Pinecone key was used for?
Settings, then Usage, shows the organisation's usage and costs, grouped by SKU or project, not by key. Only organisation owners and billing admins on the Standard or Enterprise plans can see it.
Will Pinecone refund charges from a leaked key?
File a ticket under Settings, then Support, on the Builder, Standard or Enterprise plans; on Starter, use Pinecone's account and billing support form. Pinecone's agreement makes you responsible for activity with your keys and asks you to tell Pinecone promptly if one is lost or stolen. There's no stated policy on usage from leaked keys.
How do I find where my Pinecone key leaked?
Search your code, your git history and your live site's JavaScript for “pcsk_” (how Pinecone keys start). Common places are browser code, a committed .env or local settings file, and screenshots.
Other providers
- Leaked OpenAI key
- Leaked Anthropic key
- Leaked Google Gemini key
- Leaked xAI key
- Leaked Mistral key
- Leaked DeepSeek key
- Leaked OpenRouter key
- Leaked ElevenLabs key
- Leaked Replicate key
- Leaked fal key
- Leaked Groq key
- Leaked Together AI key
- Leaked Hugging Face key
- Leaked Perplexity key
- Leaked Cohere key
- Leaked Fireworks AI key
- Leaked Cerebras key
- Leaked AssemblyAI key
- Leaked Moonshot AI key
- Which providers stop a leaked key for you
- Security checklist for vibe-coded apps