Skip to content

Pi

Run Pi in a box with an Anthropic or OpenAI API key, or a ChatGPT login managed on the host.

Updated

Pi is the coding agent published as @earendil-works/pi-coding-agent. abx installs version 1.7.0 from npm into the image. Use this page to pick between API keys and a host-managed ChatGPT login.

Launch

abx pi <box>

abx runs pi in the guest. Arguments after -- go to Pi. Each auth mode also passes its own provider and model arguments. The Anthropic mode uses claude-sonnet-5-5; the OpenAI API-key and ChatGPT modes use gpt-6.2-sol.

Authentication

Mode Access Guest directory
anthropic/api-key masked .abx-pi-anthropic
openai/api-key masked .abx-pi-openai
openai/chatgpt masked .abx-pi-chatgpt
openai-codex/login none Not available in a box.

Pi has no global or local guest login modes. Pi’s legacy Codex provider is unsupported because it requires account claims that the VM credential handle lacks.

API keys (masked)

abx auth set pi --provider anthropic --mode api-key --from 'op://Development/Anthropic/api-key'
abx auth set pi --provider openai --mode api-key --from 'op://Development/OpenAI/api-key'
abx auth verify pi
abx pi first-task

See Secret providers.

ChatGPT login on the host (masked)

Install the Pi CLI on the host at exactly version 1.7.0, the version abx pins, then sign in under a profile name:

abx auth login pi --provider openai --mode chatgpt --profile work
abx auth verify pi
abx pi first-task

On Linux, an npm install of Pi also needs /usr/bin/node and /usr/bin/env, and the install layout is checked. See Host-managed login. ChatGPT grants obtained through Pi belong to Pi and are not shared with Codex or OpenCode.

Verification

All modes share one probe that checks Pi’s JSON event stream for a settled turn with the expected reply. abx auth verify pi runs a real model request and can incur charges. See Verification.

Notes

  • Each mode sets PI_CODING_AGENT_DIR to its own guest directory, listed above, so a box with several providers keeps them apart. The OpenAI modes write a models.json there.
  • With no saved login, the box may reach api.anthropic.com. A selected mode replaces that with its own endpoint: api.anthropic.com for the Anthropic mode, and api.openai.com for the OpenAI API-key and ChatGPT modes. See Network policy.

Type to search…

↑↓ navigate↵ selectEsc close