For the complete documentation index, see llms.txt. A markdown version of this page is at /reference/tools/devtools/pi/index.md.

pi

The pi coding agent, installed globally with npm, with the Node.js 22.19 or newer it needs.

Installs the pi coding agent (pi) as a global npm package, from @earendil-works/pi-coding-agent.

devtools:
  - name: pi

On Debian and Ubuntu that line is enough. pi needs Node.js 22.19 or newer, and the distribution’s own Node.js is older. So Ringleader installs a current Node.js for it when no nodejs devtool is declared. To set a default model, add extension packages, or declare your own providers, add a pi toolconfig. To sign in, see Sign in to a coding agent. An LLM gateway Integration can also give pi a provider.

Version behavior

versionResult
omittedthe release Ringleader installs by default, 1.5.0 today
1.4.0that exact npm version

A workstation that already has pi on PATH keeps the release it has. A changed version replaces that release on the next configuration pass.

Updates

With updatePolicy: latest and no version, pi moves to the release Ringleader installs by default when an update to Ringleader raises it, by the Ringleader default route. It installs from npm, beside the old release, so a pi session that is already running keeps its release.

Node.js

What Ringleader does about Node.js depends on what you declare and on the distribution:

  • A nodejs devtool is declared. That devtool decides the Node.js version. Declare version: "22" or newer, because pi will not start on an older one.
  • No nodejs devtool, on Debian or Ubuntu. Ringleader installs Node.js from the NodeSource repository, at the nodejs devtool’s default major. A workstation that already has the distribution’s older nodejs package gets it upgraded.
  • No nodejs devtool, on Alpine. Ringleader installs the release’s own Node.js, which it cannot pin. Use an Alpine release whose nodejs package is 22.19 or newer, or put a current node on PATH in the image.

The upgrade on Debian and Ubuntu removes the distribution’s npm package and every package built on the distribution’s Node.js. Before it runs, Ringleader checks what the upgrade would remove. If that includes a package your config declares, it leaves Node.js alone and fails the step, naming the packages. Drop those packages, or declare the tool as an npm package instead. A nodejs package pinned below 22.19 is refused the same way.

The NodeSource nodejs package ships its own npm. A system package npm declared beside pi is skipped where that Node.js is the one the workstation ends up with, and a version on that npm entry fails the step.

After installing, the recipe checks the Node.js that node resolves to on PATH. If it is older than 22.19, the step fails with a message that names the version it found and what to change.

Example

pi with a default model and one extension package:

devtools:
  - name: pi
toolconfigs:
  - name: pi
    config:
      settings:
        defaultProvider: anthropic
        defaultModel: claude-sonnet-4-5
      packages:
        - npm:pi-example-extension@1.2.3

Notes

  • Ringleader writes no pi settings unless you declare a toolconfig or an LLM Integration reaches the workstation.
  • The binary lands on the system PATH.
  • Works on Debian, Ubuntu, and Alpine, with the Node.js limit above on Alpine.