Get started with PAPI
Connect PAPI to your AI coding tool. Run your first cycle plan in under 5 minutes.
Your code stays on your machine. PAPI adds a planning layer to whatever you're already building, it doesn't read your source.
Prerequisites
1. Sign up
Go to getpapi.ai/login and sign in with GitHub (recommended) or email.
The onboarding wizard asks for your project name and optional repo URL, then hands you the connector link. Browser-based tools sign you in on first connect; Pi uses the bearer configuration from your Connect panel.
2. Connect your tool
Pick your AI coding tool and copy its config. Most tools use browser sign-in on first connect. For Pi, install pi-mcp-extension, then replace the token and project-id placeholders before saving .pi/mcp.json; other configs can be pasted as shown.
Paste into Claude Code chatAdd PAPI as an MCP server for this project. Run this from the project root: claude mcp add --transport http papi https://mcp.getpapi.ai/mcp The server is added but NOT yet authenticated — only you can finish this, in a browser. After the command succeeds, tell me exactly this: "PAPI is added. Sign in to connect it: run claude mcp login papi (Claude Code v2.1.186+) and approve in the browser — or run /mcp, choose papi, pick Authenticate. Sign in with the same account you used on getpapi.ai."
Paste this as a chat message in Claude Code. Claude Code installs PAPI itself, opens a browser tab so you can sign in, and then runs setup. No terminal, no token to copy.
3. First run
After saving your config, restart your MCP client. Then in your AI tool, run these three commands in order:
setupInitialises PAPI for your project. Generates a Product Brief and scaffolds your workflow.
planGenerates your first cycle plan: scoped tasks with full BUILD HANDOFFs, ready to build.
build_listShows the tasks queued for this cycle. Pick one and start building.
Expected time: install to first plan in under 5 minutes.
Migrating from a local install
If you first installed PAPI as a local (stdio) server and want the hosted remote MCP instead, you only need to remove the old machine config, never any files tracked in your repo. Your .papi/ data and CLAUDE.md are part of your project and must stay.
.mcp.json entry and any dead PAPI env keys. Never delete repo-tracked files (.papi/, CLAUDE.md). If in doubt, run git status first.Paste this prompt into your AI tool to do it safely:
Paste into your AI toolMigrate my PAPI install from local (stdio) to the hosted remote MCP. Do this safely: 1. First run `git status` and note any tracked files under .papi/ or CLAUDE.md. These are part of my repo and must NOT be touched. 2. Remove ONLY my machine config: delete the local "papi" stdio entry from .mcp.json, and unset any PAPI_DATABASE_URL / DATABASE_URL / stale PAPI_DATA_API_KEY meant for the old local server. 3. Do NOT delete, empty, or git-rm any tracked file. If any .papi/ file or CLAUDE.md shows as modified or deleted after your changes, run `git restore <path>` to bring it back. 4. Add the remote MCP per the "Connect your tool" section above (Authorization bearer + x-papi-project-id header). 5. Run `orient` and confirm it names my project. If it names a different project, stop. The project pin is wrong (see "Multiple projects").
The guardrail in step 3 is the important one: a migration should only ever remove machine config, never your tracked project files.
Multiple projects
One PAPI account can hold several projects. The remote MCP pins each connection to one project via the x-papi-project-id header. The OAuth snippets above are URL-only, so they carry no pin; with more than one project, mutation calls fail closed until you add the header yourself. If you work across projects, give each its own MCP entry with its own x-papi-project-id, never share one entry across projects, or commands will be stopped before they can land in the wrong project.
Verify the pin before you build:
orient right after connecting. It must name the project you intended. If it names another project, stop and fix the x-papi-project-id header, do not run setup or build against the wrong project. Every successful mutation also returns a project-scope receipt with the project name, slug, UUID, repository evidence, and workspace evidence.Your project id is shown in the Connect panel on your dashboard; copy it into the x-papi-project-id header for that project's MCP entry.