Pinecone API Key: How to Get One and Keep It Safe
You create a Pinecone API key inside a project: open the Pinecone console, select your project, go to API keys and click "+ API key".
Copy it before you close the dialog, because Pinecone won't show it again.
Steps checked against Pinecone's own docs in Nov 2026. Menus change, so if a screen looks different, follow the linked docs.
How to get a Pinecone API key
- Open the Pinecone console and select your project.
- Go to API keys and click "+ API key".
- Enter a name and select the key's permissions.
- Click "Create key", copy the key and click "Close".
- Save it as an environment variable called
PINECONE_API_KEY. Pinecone's SDKs read it automatically.
Each key belongs to one project. Only project owners can change a key's permissions or delete it.
On the Starter and Builder plans, keys can only have full ("All") permissions. Custom permissions need the Standard or Enterprise plan.
Check a key you already have
Not sure which service a key in your config belongs to, or whether you just pasted one somewhere? Paste it below to see what it is and how to revoke it.
Runs only in your browser. The check happens on this page. What you paste isn't sent anywhere, saved or logged, and the checker never contacts the provider. Want proof? Open your browser's network tab, or turn off Wi-Fi, and paste.
What a Pinecone API key looks like
Pinecone keys start with pcsk_, then a short ID, an underscore and 63 letters and digits. That's the shape the trufflehog Pinecone detector looks for; Pinecone's own docs don't describe the format.
How to store your Pinecone API key safely
- Keep it in
PINECONE_API_KEYor a secret manager, never in your code. - Remember what's behind it. Indexes that power AI search often hold chunks of your own documents in their metadata, so a leaked key can expose that text, as well as let someone delete your data.
- If your plan allows it, give each app a key with only the permissions it needs, such as read-only for a search app.
- Use a separate project, and so a separate key, for test and production.
Never paste your Pinecone API key into an AI chat
It usually happens while debugging. The error sits next to a config file, you paste the whole thing into ChatGPT or Claude, and the key goes in with everything else.
Once it's sent, the key is stored on someone else's servers, in the chat history, and possibly in training data, depending on your account settings. Deleting the chat doesn't take it back, so treat any key you pasted as exposed and rotate it.
We wrote a step-by-step guide for that moment: what to do in the first hour after pasting an API key into ChatGPT. And if a tool you installed might have read your keys, see how to check whether your AI keys were exposed.
What to do if your Pinecone API key leaks
Rotate first and investigate second. A key that no longer works can't be misused.
- Create a replacement key first if apps depend on the exposed one.
- In the project's API keys list, open the ... menu on the exposed key's row and choose Delete, then type the key name and click "Delete API key".
- Update your apps with the new key and check your indexes for changes you didn't make.
Deleting a key is permanent and immediately disables every app using it, so swap in the new key quickly.
How Sequirly catches keys at the paste
We build Sequirly, a browser extension that checks what you're about to send to ChatGPT, Claude, Gemini and other AI tools. When a prompt contains an API key, a password or other sensitive data, Sequirly warns you before it leaves your browser, so you can remove it and send the rest.
The check runs inside your browser, and Sequirly says it never sees, stores or sends the values it finds.
There's plenty it doesn't do, so you know where the gaps are:
- It doesn't scan your code, repos or servers. Use a secret scanner such as gitleaks for that.
- It doesn't revoke keys or check whether a key is live. Rotation is still on you.
- It only knows keys by their shape, so a key with no prefix (like Mistral's) can slip past it, just as it slips past the checker above.
- It warns before it blocks, so a person can still choose to send.
Curious how to test that claim yourself? Our post on whether Sequirly is safe to install walks through a network test you can run.
Common Questions
Where do I find my Pinecone API key?
Your Pinecone API keys are under API keys in each project in the Pinecone console. The list shows only part of each key, because the full key is shown once at creation.
Can I view my Pinecone API key again?
No. Pinecone says you can't view the key again after you close the creation dialog. Create a new one if you lost it.
Can I limit what a Pinecone API key can do?
Yes, on the Standard and Enterprise plans you can set custom permissions per key. On Starter and Builder, keys have full permissions.
What does a Pinecone API key look like?
A Pinecone API key starts with pcsk_, followed by a short ID, an underscore and a long string of letters and digits.
Sources
- Pinecone: Manage API keys (checked Nov 2026)
- Pinecone: Quickstart (checked Nov 2026)
- trufflehog Pinecone detector (checked Nov 2026)
Guides for other API keys
Catch the key before it leaves
If you'd like a warning the next time a key ends up in a prompt, try Sequirly now. Or if you'd rather talk it through with us first, book a quick demo.