Installation & Quickstart
Get pi-config installed, configure your project, start the local daemons, and run your first agent workflow so you can automate repository tasks in under a minute.
Prerequisites
- Node.js (>= 22)
- Git installed and configured
pi(install withnpm install -g @earendil-works/pi-coding-agent)uv(Python package manager)
Quick Example
# Install everything non-interactively
uv run scripts/install.py --all
# Start a session, then in the chat:
# /pidash start
# /pidiff start
# /scout-and-plan Review the authentication module and propose a migration plan to JWT.
Step-by-Step Guide
1. Install pi-config and tooling
Run the interactive installer from a pi-config checkout:
uv run scripts/install.py
Follow the prompts to select packages (orchestrator, CLI tools, browser automation, gitignore entries, and more).
To skip prompts and install everything available:
uv run scripts/install.py --all
Note: The installer exits if
piis missing. Install@earendil-works/pi-coding-agentglobally first.
When it finishes, start a session:
pi
2. Add project settings
Create .pi/pi-config-settings.json in your repository root:
{
"commit_trailer": "Assisted-by",
"dco": true,
"dream_interval_hours": 3,
"pidash_enable": true,
"pidiff_enable": true,
"cli_agents": ["claude", "cursor"]
}
Note: Project settings override global defaults for the current repository. See Configuration & Settings for the full option list.
3. Start the background daemons
Inside an active pi TUI session:
/pidash start
/pidiff start
/pidash startlaunches the web dashboard (defaulthttp://localhost:19190)./pidiff startlaunches the per-project diff viewer on a free local port.
Check daemon state anytime:
/pidash status
/pidiff status
Tip: Open the dashboard URL from the status output to monitor sessions and background work. See Using the Web Dashboard.
4. Run your first workflow
/scout-and-plan Review the authentication module and propose a migration plan to JWT.
This chains a scout pass (find relevant code) into a planner pass (implementation plan) without writing changes yet. For creating and routing specialists, see Managing Custom Agents.
Advanced Usage
Install only what you need
| Mode | Command | Behavior |
|---|---|---|
| Interactive | uv run scripts/install.py |
Step through packages and confirm |
| Non-interactive | uv run scripts/install.py --all |
Auto-select every available tool |
The installer can also add .pi/ and .worktrees/ to your global git excludes file so local agent data is not committed.
Configure via environment variables
Skip the settings file when you prefer env vars. Resolution order:
.pi/pi-config-settings.json(project)~/.pi/pi-config-settings.json(global)- Environment variables (for example
PI_DREAM_INTERVAL_HOURS=3,CLI_AGENTS=claude,cursor) - Built-in defaults
See Configuration & Settings for keys and env var names. For CLI utilities used by review and memory workflows, see myk_pi_tools CLI Reference.
Keep project data out of git
| Method | Command |
|---|---|
| Preferred | git config --global core.excludesfile ~/.config/git/ignore && echo ".pi/" >> ~/.config/git/ignore |
| Manual | Append .pi/ (and .worktrees/ if you use worktrees) to your global excludes file |
Tip: The installer Environment Setup step can configure these entries for you.
Troubleshooting
- "Cannot continue without pi": Install the coding agent globally (
npm install -g @earendil-works/pi-coding-agent), confirmpiis on yourPATH, then re-run the installer. - Daemon fails to start: Confirm
pidash_enable/pidiff_enableare not set tofalse. Run/pidash statusor/pidiff status. For pidash failures, check~/.pi/pidash-server.log. - pidash says TUI-only: Start daemons from an interactive
pisession, not a headless/CLI-only mode. - Pre-commit / formatting failures: Run
prek run --all-filesto apply fixes, then retry the commit.