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

# Pi

> Add Octen to the Pi coding agent with the Octen extension.

For AI agents: [docs.octen.ai/integrations/pi.md](https://docs.octen.ai/integrations/pi.md)

The extension connects to the hosted [Octen MCP Server](https://docs.octen.ai/integrations/octen-mcp-server.md) and adds the `octen-search-guide` skill, which tells Pi which Octen tool fits a request.

> [card] [Get API Key](https://octen.ai/platform/api-keys)
>
> Create a key from the API Platform.

> [card] [npm](https://www.npmjs.com/package/@octen.ai/pi-extension)
>
> The `@octen.ai/pi-extension` package.

> [card] [GitHub](https://github.com/Octen-Team/octen-js/tree/main/integrations/pi-extension)
>
> View the extension source.

## Install

> [!NOTE]
>
> You'll need an Octen API key first. Create one from the [API Platform](https://octen.ai/platform/api-keys).

Requires Pi 0.99.0 or later.

**1. Install the extension**

```bash theme={null}
pi install npm:@octen.ai/pi-extension
```

**2. Sign in to Octen**

In a Pi session, run `/mcp login octen`, or open `/mcp`, select `octen`, and choose **Sign in**. On the Octen consent page, choose the account and API key the connection uses, then click **Allow**.

Sign in from a Pi session, not the shell: `pi mcp login` and `pi mcp list` do not load extensions, so they do not see the `octen` server.

**3. Confirm the install**

```bash theme={null}
pi list
```

The list shows `npm:@octen.ai/pi-extension`.

The extension exposes every [Octen MCP tool](https://docs.octen.ai/integrations/octen-mcp-server.md#tools).

To use an API key instead of signing in, export it in your shell profile (`~/.zshrc` or `~/.bashrc`):

```bash theme={null}
export OCTEN_API_KEY="your-api-key"
```

***

Last modified on November 24, 2026


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.