Skip to main content
This page covers everything you need to go from zero to a working local Context Engine: prerequisites, installation, first-time setup, supported harnesses, and how to verify the installation.

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 pip

After installation, confirm the CLI is available:
You should see output like:
If 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

On a TTY, this launches an interactive wizard. You can also pass flags directly to skip prompts:
What setup does:
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:
This returns a 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)

You should see a readiness report grouped by component: 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:
Use --scope project --path . to install project-scoped skills that travel with a repository:

Graph Backend Profiles

Potpie uses a pluggable GraphBackend. 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.
Verify integration status:

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:
To point the CLI at a self-hosted or custom managed backend:
After login, managed pots appear in the same potpie pot list and potpie use flows as local pots.

Environment Variables

Local File Paths

Troubleshooting

potpie not found after install

  • With uv: run uv tool list to confirm it was installed, then check which -a potpie.
  • With pip --user: ensure ~/.local/bin is in your PATH.

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.