Prerequisites
uv tool install is recommended for CLI installs. It isolates the Potpie tool environment from your project Python environments and prevents version conflicts.Step 1: Install the CLI
Using uv (recommended)
Using pip
potpie is not found after a pip install, ensure ~/.local/bin (or the equivalent pip --user scripts directory) is on your PATH.
Step 2: Run First-Time Setup
potpie setup is idempotent. You can re-run it safely. Each step is ensure-shaped: it skips what is already done and only fixes what is missing.Setup options
Preview before running
To see exactly what setup will do without executing anything:SetupPreview document listing each planned step, its owner, and whether it is a hard or soft dependency.
Step 3: Verify the Installation
Check integration auth status
Check host readiness (daemon, pot, graph backend, skills)
host, pot, graph_service, backend, ledger, and skills.
Run full local diagnostics
doctor checks daemon health, CLI install paths, backend profile, and capability readiness. It also surfaces recommended follow-up commands.
Supported Agent Harnesses
Setup installs skills into your AI coding harness. Skills are CLI-managed recipes that teach your agent how to use the Context Engine before editing code.
To install or refresh skills after setup:
--scope project --path . to install project-scoped skills that travel with a repository:
Graph Backend Profiles
Potpie uses a pluggableGraphBackend. The default profile for Python ≥3.12 is falkordb_lite — an embedded local graph with vector search that requires no external services.
To switch profiles after setup:
Optional: Connect Integrations
Source integrations let agents query GitHub PRs, Linear issues, Jira tickets, and Confluence runbooks alongside code. These are opt-in and not required for local graph use.Optional: Managed Backend Login
By default, Potpie runs entirely locally. If you have a Potpie account or a compatible self-hosted backend, you can log in to access managed pots:potpie pot list and potpie use flows as local pots.
Environment Variables
Local File Paths
Troubleshooting
potpie not found after install
- With
uv: runuv tool listto confirm it was installed, then checkwhich -a potpie. - With
pip --user: ensure~/.local/binis in yourPATH.
Daemon not starting
Backend not ready
Skills missing or outdated
Next Steps
How to Use
Learn common workflows: onboarding a repo, resolving context for a task, debugging, and recording learnings.
Setup & Lifecycle
Full reference for
setup, status, doctor, whoami, ui, and config.
