> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pinecone.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Gemini CLI Extension

> Integrate Pinecone with Gemini CLI Extension for vector search, RAG, and production AI workloads.

export const PrimarySecondaryCTA = ({primaryLabel, primaryHref, primaryTarget, secondaryLabel, secondaryHref, secondaryTarget}) => <div style={{
  display: 'flex',
  alignItems: 'center',
  gap: 16
}}>
   {primaryLabel && primaryHref && <div style={{
  width: 'fit-content',
  height: 42,
  background: 'var(--brand-blue)',
  borderRadius: 4,
  overflow: 'hidden',
  flexDirection: 'column',
  justifyContent: 'center',
  alignItems: 'center',
  display: 'inline-flex'
}}>
      <a href={primaryHref} target={primaryTarget} style={{
  paddingLeft: 22,
  paddingRight: 22,
  paddingTop: 8,
  paddingBottom: 8,
  justifyContent: 'center',
  alignItems: 'center',
  gap: 4,
  display: 'inline-flex',
  textDecoration: 'none',
  borderBottom: 'none'
}}>
        <div style={{
  textAlign: 'justify',
  color: 'var(--text-contrast)',
  fontSize: 15,
  fontWeight: '600',
  letterSpacing: 0.46,
  wordWrap: 'break-word'
}}>
          {primaryLabel}
        </div>
        <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" style={{
  marginLeft: 2
}}>
          <path d="M9.70492 6L8.29492 7.41L12.8749 12L8.29492 16.59L9.70492 18L15.7049 12L9.70492 6Z" fill="white" style={{
  fille: "var(--text-contrast)"
}} />
        </svg>
      </a>
    </div>}

    {secondaryLabel && secondaryHref && <div style={{
  width: 'fit-content',
  height: 42,
  borderRadius: 4,
  overflow: 'hidden',
  flexDirection: 'column',
  justifyContent: 'center',
  alignItems: 'center',
  display: 'inline-flex',
  textDecoration: 'none'
}}>
        <a href={secondaryHref} target={secondaryTarget} style={{
  paddingLeft: 11,
  paddingRight: 11,
  paddingTop: 8,
  paddingBottom: 8,
  justifyContent: 'center',
  alignItems: 'center',
  gap: 8,
  display: 'inline-flex',
  textDecoration: 'none',
  borderBottom: 'none'
}}>
          <div style={{
  textAlign: 'justify',
  color: 'var(--brand-blue)',
  fontSize: 15,
  fontWeight: '600',
  letterSpacing: 0.46,
  wordWrap: 'break-word'
}}>
            {secondaryLabel}
          </div>
        </a>
      </div>}

  </div>;

The official Pinecone extension for [Gemini CLI](https://github.com/google-gemini/gemini-cli) provides AI-powered skills and MCP server integration directly in your terminal. Use natural language to manage indexes, query data, build RAG applications, and create document Q\&A assistants.

<PrimarySecondaryCTA primaryLabel={"View on GitHub"} primaryHref={"https://github.com/pinecone-io/gemini-cli-extension"} primaryTarget={"_blank"} />

## Features

* **7 built-in skills** for index management, semantic search, assistant creation, and more
* **MCP server integration** for direct Pinecone operations from Gemini CLI
* **Natural language activation** — just describe what you want and the right skill is invoked automatically

## Prerequisites

* A [Pinecone API key](https://app.pinecone.io/organizations/-/keys)
* [Gemini CLI](https://github.com/google-gemini/gemini-cli) installed
* [uv](https://docs.astral.sh/uv/getting-started/installation/) installed (required for skill scripts)
* [Pinecone CLI](/reference/cli/quickstart) installed (optional, for advanced operations)

## Installation

<Steps>
  <Step title="Set your API key">
    ```shell theme={null}
    export PINECONE_API_KEY="YOUR_API_KEY"
    ```

    Replace `YOUR_API_KEY` with your [Pinecone API key](https://app.pinecone.io/organizations/-/keys).
  </Step>

  <Step title="Install the extension">
    ```shell theme={null}
    gemini extensions install https://github.com/pinecone-io/gemini-cli-extension
    ```
  </Step>

  <Step title="Restart Gemini CLI">
    Restart Gemini CLI to activate the extension. Then ask:

    ```text theme={null}
    Use the help skill to show me what Pinecone skills are available.
    ```
  </Step>
</Steps>

<Note>
  If you hit API key errors, exit Gemini CLI, run `export PINECONE_API_KEY="your-key"` in your terminal, and start Gemini CLI again. The CLI only reads environment variables at launch.
</Note>

## Available skills

| Skill             | Description                                                                         |
| ----------------- | ----------------------------------------------------------------------------------- |
| **quickstart**    | Step-by-step onboarding — create an index, upload data, and run your first search.  |
| **query**         | Search integrated indexes using natural language text via the Pinecone MCP.         |
| **assistant**     | Create, manage, and chat with Pinecone Assistants for document Q\&A with citations. |
| **cli**           | Guide for using the Pinecone CLI from the terminal.                                 |
| **mcp**           | Reference for all available Pinecone MCP server tools and their parameters.         |
| **pinecone-docs** | Curated links to official Pinecone documentation, organized by topic.               |
| **help**          | Overview of all skills and what you need to get started.                            |

Skills are activated automatically based on your conversation. If the agent doesn't pick up a specific skill, explicitly ask for it: *"Use the quickstart skill to help me get started."*

## MCP tools

The extension includes the Pinecone MCP server, which provides the following tools:

* `search-docs` — Search the official Pinecone documentation.
* `list-indexes` — List all available Pinecone indexes.
* `describe-index` — Get index configuration and namespaces.
* `describe-index-stats` — Get record counts and namespace statistics.
* `create-index-for-model` — Create a new index with integrated embeddings.
* `upsert-records` — Insert or update records in an index.
* `search-records` — Search records with optional metadata filtering and reranking.
* `cascading-search` — Search across multiple indexes with deduplication and reranking.
* `rerank-documents` — Rerank documents using a specified reranking model.

For full MCP server documentation, see [Use the Pinecone MCP server](/guides/operations/mcp-server).

## Resources

* [GitHub repository](https://github.com/pinecone-io/gemini-cli-extension)
* [Pinecone MCP server guide](/guides/operations/mcp-server)
* [Gemini CLI documentation](https://github.com/google-gemini/gemini-cli)
