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

> ## Agent Instructions
> Agents: start with https://docs.pre.dev/agents.md, which has complete recipes, plan access, polling rules, errors and limits.
> Authenticate with the workspace API key (pdk_…) from Integrations → Built-in, sent as Authorization: Bearer <key>.
> REST API: https://api.pre.dev (OpenAPI: https://docs.pre.dev/api-reference/openapi.json). AI Gateway: https://api.pre.dev/v1, OpenAI-compatible (OpenAPI: https://docs.pre.dev/api-reference/ai-gateway.openapi.json).
> pre.dev MCP server: npx -y @predotdev/mcp setup adds it to every local coding agent with every pre.dev tool plus the user's own Chrome; the hosted server is https://api.pre.dev/mcp. Search these docs over MCP at https://docs.pre.dev/mcp.

# CLI commands

> Terminal commands, keys, and launch flags.

Type `/` to open the command palette. Use the arrow keys to select, Enter to run, and Escape to dismiss. Commands that take text keep the composer open for the rest of the request. `/help` lists every command and key.

## Work and models

| Command | Action |
| - | - |
| `/model` | Choose one model for every phase, a model per phase, or reset to automatic |
| `/effort` | Choose auto, low, medium, or high sprint effort |
| `/sprint <feature>` | Launch a dedicated sprint in a new session |
| `/fork <prompt>` | Start a task in a new isolated session |
| `/plan` | Plan mode: each message changes the plan (flows, spec, roadmap, architecture) and no code runs. It stays on until `/auto` |
| `/auto` | Auto mode, the default: the agent decides whether to answer, plan, or build |

A message that starts with `>>` also forks a task. Separate sessions use separate Git worktrees. Review their changes and integration result, particularly when tasks change related files.

```text theme={null}
/fork add tests for the invoice date formatter
```

## Project

| Command | Action |
| - | - |
| `/project` | Make a [chat-only](https://predev.mintlify.site/cli/chat-only-projects.md) project a full project: Plan, Code, and Preview, with its code, keys, and data in step with the cloud |
| `/reverse` | Analyze an existing codebase and produce architecture context |
| `/init` | Have the agent write or refresh `CLAUDE.md` for this repository |
| `/share` | Open the project's sharing controls in your browser |
| `/publish [what changed]` | Publish the app to its permanent address, or ship your latest changes there |
| `/unpublish` | Take the published app down; its address shows your latest draft again |
| `/kanban`, `/roadmap`, `/arch` | Open the Kanban, roadmap, or architecture view |

Escape returns from project views to chat. Views require the corresponding project data.

## Session

| Command | Action |
| - | - |
| `/clear` | Clear the visible chat feed; stored history is kept |
| `/rename <name>` | Rename the current session tab |
| `/undo` | Put the files back the way they were before your last message or sprint |
| `/redo` | Bring back what the last `/undo` removed |
| `/cloud` | Sync this folder up and hand the session to the cloud |
| `/local` | Pull the session's latest files into this folder and run it here |
| `/status` | Show where the session runs and which local processes are up |
| `/help` | Show all commands and keys |

## Integrations

| Command | Action |
| - | - |
| `/integrations` | Show your connected accounts, MCP servers, and skills |
| `/skills` | List, toggle, or remove your agent skills |
| `/skills add <name> <instructions>` | Add an agent skill |
| `/mcp` | List, toggle, or remove your MCP servers |
| `/mcp add <name> <url or command>` | Add an MCP server, for example `/mcp add linear https://mcp.linear.app/sse` |
| `/chrome` | Let the agent use your own Chrome: your open tabs, every profile, and the sites you are signed in to. See [Browser Agents Local](https://predev.mintlify.site/browser-agents/local.md#use-it-in-the-cli) |
| `/chrome off` | Stop the agent from using your Chrome |

In the Skills and MCP panels, press Enter or Space to toggle an entry, `d` to remove it, and `o` to open workspace Integrations in the browser. Connecting provider accounts happens on the web. These panels show your personal entries; use [Project setup](https://predev.mintlify.site/coding-agent/integrations/overview.md) on the web for project entries and team settings.

## Account and billing

| Command | Action |
| - | - |
| `/balance` | Show remaining credits |
| `/usage` | Show what this project's credits went on, turn by turn |
| `/topup` | Open credit purchasing in the browser |
| `/upgrade` | Open plan selection in the browser |
| `/login` | Sign in or switch accounts through the browser |
| `/logout` | Sign this machine out and quit; every session is saved first |

## Keys

| Key | Action |
| - | - |
| `/` | Open the command palette |
| Enter | Send your message |
| Esc | Stop the running agent, or cancel |
| Ctrl+N / Ctrl+P | Next or previous session tab |
| Ctrl+T | New session tab |
| Ctrl+X | Close a session tab (merge or discard) |
| Shift+Tab | Cycle views: chat, Kanban, roadmap, architecture |
| Ctrl+C | Quit; every session is saved |

## Launch flags

| Invocation | Effect |
| - | - |
| `predev "<prompt>"` | Start with an opening prompt |
| `predev open <project link or id>` | Bring an existing pre.dev project into this folder and run it here; a chat-only project opens in the folder it last ran in |
| `predev --new` or `predev -n` | Create a fresh project for this directory |
| `predev --version` or `predev -v` | Print the installed version and exit |
| `predev --help` or `predev -h` | Print launch help and exit |
| `predev run "<prompt>"` | Run one request without the app, then exit. See [Run one task without the app](https://predev.mintlify.site/cli/overview.md#run-one-task-without-the-app) |
| `predev logout` | Forget the saved login on this computer; with `PREDEV_API_KEY` set, the CLI then signs in with the key |
| `predev mcp setup` | Add the [pre.dev MCP server](https://predev.mintlify.site/architect-agent/mcp-setup.md) to your other coding agents, such as Claude Code, Codex, and Cursor. Needs Node.js 22 or later |


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