Portable, auth-free setup for my Pi coding agent configuration.
This repo is designed to be safe to use across macOS and Linux machines. It stores only configuration and resources that are useful on another computer, not credentials or local runtime state.
It also acts as a public index of the Pi extensions I use and maintain. See docs/extensions.md.
Reusable, provider-neutral instruction templates are available in the review
skill's bundled
AGENTS.example.md
and docs/STACK_CONVENTIONS.example.md. They are
examples to adapt, not files automatically installed as global instructions.
The installed /skill:review-global-agents workflow audits an existing global
AGENTS.md, compares it with the bundled example and orchestration rubric, helps
resolve policy conflicts, previews a candidate diff, and requires approval plus a
backup before replacing the user's file.
./apply.sh applies the portable snapshot from config/. Before changing files, every apply entry point checks for an active pi-tidy-tools / pi-fff lifecycle sidecar and refuses any settings replacement that would invalidate its managed package entry. If prompted, run /tidy pi-fff teardown in the existing Pi setup before applying the snapshot; follow pi-tidy-tools' manual recovery guidance if the entry has already drifted.
Apply also performs a one-way cleanup of the retired pi-hermes-memory package and its local data directories (pi-hermes-memory/, projects-memory/, and legacy memory/). This permanently removes saved Hermes memories; copy those directories elsewhere before applying if they must be retained.
Most resources go into ~/.pi/agent/; the Pi Lens policy goes to ~/.pi-lens/config.json:
settings.jsonpackage/resource configurationkeybindings.json- empty
models.jsonplaceholder so provider/model choices are not forced - empty
mcp.jsonplaceholder so MCP servers/auth are not forced - prompt templates in
prompts/ - authored or vendored
extensions/,skills/, andthemes/if present - TUI terminal-title activity indicators for concurrent Pi sessions
- locked runtime dependencies for the vendored
web-toolsextension (installed withnpm ci) - global Pi Lens config at
~/.pi-lens/config.json, keeping LSP/code intelligence enabled while disabling automatic formatting - CH57x macro-pad profile and
/macropadcheat sheet under~/.config/ch57x-keyboard-tool/ - auth-free extension preference files, currently:
pi-usage-bar/config.json
Do not commit these Pi files/directories here:
auth.jsonmcp-oauth/sessions/usage/run-history.jsonltrust.jsonmcp-cache.jsonmcp-onboarding.jsonprojects-memory/pi-hermes-memory/- API keys, OAuth tokens, cookies, passwords, or client secrets
See docs/security.md for the public-repo safety model.
Runtime requirements:
- Node.js 22.19.0 or newer with npm. This matches the current Pi CLI engine floor.
- Python 3.10 or newer for export, security scanning, and repository checks. Applying the snapshot does not require Python.
- Windows PowerShell 5.1 or newer for the Windows wrappers. Pi itself also needs a bash shell on Windows; Git for Windows is usually enough.
Install the Node.js npm distribution of the Pi CLI first:
npm install -g --ignore-scripts @earendil-works/pi-coding-agentDo not use a Bun-built standalone Pi executable with this setup. Some configured packages rely on Node runtime behavior and built-ins (pi-usage-bar uses node:sqlite, and SAP AI Core dependencies expect normal Node package resolution). Before changing configuration, every apply entry point runs the resolved pi command with a Node preload probe. This permits native package-manager shims that dispatch to Node while rejecting incompatible runtimes.
The easiest cross-platform install/apply path is direct from GitHub:
npx --yes github:ttiimmaahh/pi-setupPreview without writing files:
npx --yes github:ttiimmaahh/pi-setup -- --dry-runSkip package reconciliation:
npx --yes github:ttiimmaahh/pi-setup -- --no-updateOverride the Pi Lens config destination when testing or using a non-default home layout:
PI_LENS_CONFIG_PATH=/custom/path/config.json npx --yes github:ttiimmaahh/pi-setupManual clone/apply still works:
git clone https://github.com/ttiimmaahh/pi-setup.git
cd pi-setup
bash apply.shOn Windows PowerShell:
git clone https://github.com/ttiimmaahh/pi-setup.git
cd pi-setup
powershell -ExecutionPolicy Bypass -File .\Apply.ps1Then authenticate separately:
pi
# run /login, or configure provider API key environment variablesI use a small 3×2 CH57x macro keyboard with a rotary knob as a dedicated Pi and Claude Code controller. The firmware emits uncommon F13/F16–F19 hardware identities, and terminal adapters translate them into documented application shortcuts without global F-key behavior. The voice button toggles local Pi dictation; the remaining controls cover submit, escape, interrupt, details, planning/mode, model selection, and contextual knob navigation.
View the macro keyboard used for this setup on Amazon.
Affiliate disclosure: These are Amazon affiliate links. I may earn a commission from qualifying purchases at no additional cost to you.
Applying this repo installs the profile and cheat sheet, but deliberately does not flash attached hardware automatically. Install ch57x-keyboard-tool, connect the controller, review docs/macropad.md, and explicitly upload the profile when ready.
After changing your Pi setup, run:
bash export.sh
bash security-scan.shOn Windows PowerShell:
powershell -ExecutionPolicy Bypass -File .\Export.ps1
powershell -ExecutionPolicy Bypass -File .\SecurityScan.ps1Review the diff before committing. Export reconciles deleted resource directories and
excludes installer-managed integration shims such as Herdr's
herdr-agent-state.ts; reinstall those integrations separately on each machine.
This public setup intentionally excludes local package paths from config/settings.json so it works for other users via npx github:ttiimmaahh/pi-setup. See docs/local-packages.md for the private/local-development escape hatch.
This repo has npm package metadata only so users can run it directly from GitHub with npx. It is marked private and is not intended for npm registry publication.
Release flow:
npm version patch # or minor/major
git push --follow-tagsThe tag-driven GitHub Action verifies the tag matches package.json, runs npm run check, and creates a GitHub Release with the direct npx github:ttiimmaahh/pi-setup command.
package.json # private npm/npx entrypoint metadata for GitHub npx usage
package-lock.json # reproducible npm metadata for CI
CHANGELOG.md # release notes consumed by GitHub Releases
.github/workflows/ci.yml # push/PR checks
.github/workflows/release.yml # tag-driven GitHub Release workflow
bin/pi-setup.js # cross-platform Node CLI for npx usage
apply.sh # restore config/ into ~/.pi/agent/ on macOS/Linux
export.sh # export auth-free ~/.pi/agent config into config/ on macOS/Linux
Apply.ps1 # PowerShell restore script for Windows
Export.ps1 # PowerShell export script for Windows
security-scan.sh # macOS/Linux security-scan wrapper
SecurityScan.ps1 # PowerShell security-scan wrapper
config/ # portable Pi configuration snapshot
scripts/export_portable_pi_config.py
tests/test_export_portable_pi_config.py # portable export regression tests
scripts/check_local_package_paths.py
scripts/security_scan.py # conservative pre-commit/publication scan
docs/security.md
docs/local-packages.md
docs/extensions.md
config/skills/review-global-agents/ # guided audit skill and canonical AGENTS example
docs/STACK_CONVENTIONS.example.md # optional on-demand stack guidance
