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

# Pi

> Run the Pi coding agent in DAEX as a chat or as its own CLI, signed in to any model provider Pi supports.

Pi is a small, open source coding agent that signs in to many model providers. DAEX loads its own pinned Pi package for chats and runs the same pinned Pi in terminals, downloaded for each machine the first time it is needed.

![The Pi page in DAEX Settings › Providers](https://mintcdn.com/ade-ac1c6011/X0fzcdMoI2OYgIpA/media/current/provider-pi.jpg?fit=max\&auto=format\&n=X0fzcdMoI2OYgIpA\&q=85\&s=6c28556ef88839f763b36da74dc4c29f)

Pi in Settings › Providers: its sign-in, status and models on this machine.

## Connect

**1. Open Settings › Providers › Pi**

Pick the machine at the top. Pi uses that machine's Pi profile, shown redacted.

**2. Sign in to a provider through Pi**

Pick a provider and follow what Pi asks for (a link, a device code, a key or a choice). Pi saves the login in its own `auth.json`; DAEX keeps nothing you type.

* **Local models.** A provider with a local base URL (for example LM Studio) counts as local, not a sign-in.
* **DAEX Cloud.** DAEX copies Pi's xAI sign-in and Pi's saved keys to your cloud computers. It never copies Pi's Anthropic login; for other Pi sign-ins, sign in on the cloud computer. An OpenRouter key saved for DAEX Cloud also works for Pi.

## Chat and CLI

| Surface | How DAEX runs it | What DAEX sees |
| - | - | - |
| **Chat** | The pinned Pi package as a library in a worker, in the lane's worktree. | Typed events: turns, tool calls, approvals, usage. Pi has no subagent tool of its own, so delegation uses DAEX child chats. |
| **CLI** | The `pi` program in a DAEX terminal. | The screen only. Turn status is read from output and quiet time. |

Chats and the CLI share one Pi session store, so you can continue a terminal session as a chat.

## Permission modes

| Mode | Tools | Asks before | Chat | CLI |
| - | - | - | :-: | :-: |
| **Plan** | `read`, `grep`, `find`, `ls` (no MCP) | Nothing (read-only) | Yes | Yes |
| **Edit** | Plus `edit`, `write` | MCP tools | Yes | Yes |
| **Full auto** | Plus `bash` | Nothing | Yes | Yes |
| **Default / Config** | All built-ins | `bash`, `edit`, `write`, MCP tools | Yes | Yes |

On Windows, `powershell` is granted like `bash`. Pi has no **Auto** mode: an Auto default inherited from your settings or a parent chat runs as Edit, and naming Auto for a Pi CLI is refused. See [Permissions](https://ade-app.dev/docs/configuration/permissions.md).

## Models

The picker lists the models Pi reports for the providers you signed in to. Thinking levels follow each model. Pi can also run on another source through a [custom provider](https://ade-app.dev/docs/configuration/ai-providers.md#custom-providers).

## Requirements

* Pi's `grep` and `find` tools need `rg` (ripgrep) and `fd`. When one is missing, the chat drops that tool instead of failing.
* DAEX never reads a repository's `.pi/settings.json`, so a cloned repo cannot move where sessions are saved.

## Troubleshooting

> [accordion] A sign-in timed out
>
> A Pi sign-in waits up to ten minutes. Start it again from the Pi page; a new start replaces the old one.

> [accordion] Pi can't search the code
>
> Install ripgrep and fd on the machine that runs the chat, then start a new chat.

> [accordion] Pi works on my computer but not on DAEX Cloud
>
> Only xAI sign-ins and saved keys travel. Sign in on the cloud computer, or save an OpenRouter key for DAEX Cloud.

> [card] [AI providers](https://ade-app.dev/docs/configuration/ai-providers.md)
>
> Sign-ins, API keys, custom providers and free models.

> [card] [Agents and models](https://ade-app.dev/docs/concepts/agents-and-models.md)
>
> All 13 agents, chats vs CLI sessions, and the model picker.


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