pinecone-cli

A guide to the Pinecone command-line tool, which manages Pinecone vector databases from a terminal. A vector database stores data used for similarity and text search.

In plain words
What is it for?
Creating and managing indexes, adding or searching vectors, handling namespaces and backups, and automating Pinecone tasks in CI/CD. It also covers authentication and setup.
Why use it?
It lets you manage more Pinecone resource types and vector operations than the described MCP connection. It is also suited to scripts and automated build or deployment processes.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/pinecone-io/pinecone-cursor-plugin/pinecone-cli
Any agent
npx skills add pinecone-io/pinecone-cursor-plugin --skill pinecone-cli
Clone the repo
git clone --depth 1 https://github.com/pinecone-io/pinecone-cursor-plugin

Made for: Claude Code, Codex.

Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,495 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 97% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00074 $0.01495
Opus 5 $0.00037 $0.00747
Sonnet 5 $0.00015 $0.00299
Haiku 4.5 $0.00007 $0.00150

Measured 2d ago against content hash fd3e63e63d96, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

pinecone-cli scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

97% identical to pinecone:cli — 3 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/pinecone-cli/SKILL.md · 157 lines

How it starts

The opening of the file, as written. The whole thing — 157 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Pinecone CLI (pc)

Manage Pinecone from the terminal. The CLI is especially valuable for vector operations across all index types — something the MCP currently can't do.

CLI vs MCP

CLI MCP
Index types All (standard, integrated, sparse) Integrated only
Vector ops (upsert, query, fetch, update, delete)
Text search on integrated indexes
Backups, namespaces, org/project mgmt
CI/CD / scripting

Setup

Install (macOS)

brew tap pinecone-io/tap
brew install pinecone-io/tap/pinecone

Other platforms (Linux, Windows) — download from GitHub Releases.

Authenticate

# Interactive (recommended for local dev)
pc login
pc target -o "my-org" -p "my-project"

# Service account (recommended for CI/CD)
pc auth configure --client-id "$PINECONE_CLIENT_ID" --client-secret "$PINECONE_CLIENT_SECRET"

# API key (quick testing)
pc config set-api-key $PINECONE_API_KEY

Check status: pc auth status · pc target --show

Note for agent sessions: If you need to run pc login inside an agent loop, the browser auth link may not surface correctly. It's best to authenticate before starting an agent session. Run pc login in your terminal directly, then invoke the agent once you're authenticated.

Authenticating the CLI does not set PINECONE_API_KEY

pc login authenticates the CLI tool itself — it does not set PINECONE_API_KEY in your environment. Python scripts, Node.js SDKs, and other tools that use the Pinecone SDK need PINECONE_API_KEY set separately.

Use the CLI to create a key and export it in one step:

KEY=$(pc api-key create --name agent-sdk-key --json | jq -r '.value')
export PINECONE_API_KEY="$KEY"

Without jq: run pc api-key create --name agent-sdk-key --json and copy the "value" field manually.


Common Commands

Task Command
List indexes pc index list
Create serverless index pc index create -n my-index -d 1536 -m cosine -c aws -r us-east-1
Index stats pc index stats -n my-index
Upload vectors from file pc index vector upsert -n my-index --file ./vectors.json
Query by vector pc index vector query -n my-index --vector '[0.1, ...]' -k 10 --include-metadata
Query by vector ID pc index vector query -n my-index --id "doc-123" -k 10
Fetch vectors by ID pc index vector fetch -n my-index --ids '["vec1","vec2"]'
List vector IDs pc index vector list -n my-index
Delete vectors by filter pc index vector delete -n my-index --filter '{"genre":"classical"}'
List namespaces pc index namespace list -n my-index
Create backup pc backup create -i my-index -n "my-backup"
JSON output (for scripting) Add -j to any command

Read the full file on GitHub · 157 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 157 lines · 74 tokens per session scan A fd3e63e63d96

Subscribe to this mod's changes

pinecone-cli is a skill published in the GitHub repository pinecone-io/pinecone-cursor-plugin (1 stars, last pushed 18d ago), licensed MIT. It adds 74 tokens to every session and 1,495 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. It is 97% identical to pinecone:cli, differing in 3 lines, and is treated as a copy.

Related

Other skills, from other repositories

ai-ab-testing

Skill "ai-ab-testing" from skillsaiagent/aiskills, covering ai-ab-testing a/b 测试设计助手, 概述, 什么时候使用, 调用方式 and 命令示例.

skillsaiagent/aiskills · 77 tokens

ai-accessibility

无障碍体验诊断助手适合内容创作者、市场营销、运营、内容媒体在用户提出“这个页面好用吗”这类问题,需要快速拆解目标、判断重点并形成可执行结果时使用,帮助基于输入材料生成问题归因、服务改进建议、SOP 或 FAQ 清单。.

skillsaiagent/aiskills · 75 tokens

ai-account-research-sales-card

销售增长助手适合销售、市场营销、运营、产品在用户提出“客户为什么不推进”这类问题,需要快速拆解目标、判断重点并形成可执行结果时使用,帮助基于输入材料生成摘要、诊断结论、行动建议和可复用交付物。.

skillsaiagent/aiskills · 71 tokens

ai-account-research

客户研究助手适合市场营销、运营、software、教育培训在用户提出“这个客户怎么切入”这类问题,需要快速拆解目标、判断重点并形成可执行结果时使用,帮助基于输入材料生成销售策略、沟通素材、跟进计划。.

skillsaiagent/aiskills · 65 tokens

ai-ad-copy-compliance-review

风险审阅助手适合运营、市场营销、销售、法务在用户提出“这里有什么风险”这类问题,需要快速拆解目标、判断重点并形成可执行结果时使用,帮助基于输入材料生成摘要、诊断结论、行动建议和可复用交付物。.

skillsaiagent/aiskills · 72 tokens

ai-ad-creative-review

文案诊断助手适合市场营销、运营、产品、销售在用户提出“这段文案能打动人吗”这类问题,需要快速拆解目标、判断重点并形成可执行结果时使用,帮助基于输入材料生成摘要、诊断结论、行动建议和可复用交付物。.

skillsaiagent/aiskills · 77 tokens