Skip to main content
Pi is a terminal coding agent distributed as a Node.js package. This example pins the tested package version and gives it writable access to a project mounted from your host.

Run Pi

1

Start Pi

The tested install downloads 188 packages and takes about a minute on a warm Node image cache. Configure a provider from the TUI when prompted.
For an isolated workspace, or when using microsandbox cloud, replace --mount-dir ./my-project:/workspace:rw with --copy-dir ./my-project:/workspace.
2

Start another session

After leaving Pi, return to the same sandbox and workspace with:
3

Verify the installation

Exit Pi and run:
The pinned example prints 0.73.1.
4

Review or export changes

With the default writable mount, changes are already in the host checkout. Review them inside the sandbox:
If you chose the isolated --copy-dir alternative, create a patch inside the sandbox:
Copy the patch to the host:
Check that it applies cleanly before applying it:
5

Clean up

Changes made through the default workspace mount remain in the host checkout.

Reference