Sign inSign up
pi-mixin logo

sbx/pi-mixin

Verified Publisher

By Docker, Inc

•Updated about 10 hours ago

Pi coding agent overlay for a shell workload, with Node.js, fd, and Anthropic credentials.

Sandbox Kit
1

8.9K

sbx/pi-mixin repository overview

Digest

sha256:0f654e5554a0…

Size

48.5 MB

Schema

v3

Pushed

about 10 hours ago

Specificationspec.yaml

MIXIN

Pi coding agent overlay for a shell workload, with Node.js, fd, and Anthropic credentials.


Arguments
NameRequiredDefaultDescription
modelOptional

pi model as provider/model or an Anthropic model ID; empty keeps the CLI default

thinkingLevelOptional

Thinking level (settings.json `defaultThinkingLevel`); empty keeps pi's default of medium

Options: , off, minimal, low, medium, high, xhigh, max
versionRequired—

pi release the overlay carries



CapabilitiesExpand a row to see its full configuration. See the full spec for the complete descriptor.
TypeRequiredDescription
com.docker.sandbox/network-policy@1Required—
com.docker.sandbox/credential@1OptionalAnthropic API access (API key or claude.ai OAuth)
com.docker.sandbox/lifecycle@1Required—
com.docker.sandbox/agent-skills@1Optional—
com.docker.sandbox/agent-context@1Optional—
com.docker.sandbox/agent-context@2Optional—

Apply this mixin to a sandbox

sbx run <agent> --kit sbx/pi-mixin:latest

Make sure you have docker sbx installed

Run the following command to install sbx on your machine.

macOS
brew install docker/tap/sbx
Windows
winget install Docker.sbx
Learn more about docker sbx⁠

⁠Pi mixin for Docker Sandboxes

This v3 mixin Kit packages Pi⁠ for Docker Sandboxes. It adds the agent, authentication configuration, and runtime integration to a compatible workload. The workload keeps its entrypoint.

This Kit is built on Docker Hardened Images.

⁠Run

sbx run sbx/shell:latest --kit sbx/pi-mixin:latest /path/to/workspace

When the shell opens, run pi. This kit supplies an overlay, so it needs a workload such as Shell⁠.

⁠Kit arguments

Set these arguments when creating the sandbox with --kit-arg <name>=<value>. Repeat the flag for multiple arguments. Use --kit-arg <kit>.<name>=<value> to target one kit in a composition, as in the example below.

ArgumentDefaultDescriptionAccepted values
model""pi model as provider/model or an Anthropic model ID; empty keeps the CLI defaultA provider/model value or an Anthropic model ID. Letters, digits, ., _, /, :, and -.
thinkingLevel""Thinking level (settings.json defaultThinkingLevel); empty keeps pi's default of mediumEmpty, off, minimal, low, medium, high, xhigh, or max.

An empty value keeps the agent default. The model must be available to your provider account, and the selected model must support the requested effort or thinking level. These are kit configuration inputs, separate from agent command-line arguments passed after --.

sbx run sbx/shell:latest --kit sbx/pi-mixin:latest \
  --kit-arg pi-mixin.model=anthropic/claude-sonnet-4-6 --kit-arg pi-mixin.thinkingLevel=high \
  /path/to/workspace

⁠Authentication and configuration

Bind an Anthropic API key on the host with sbx secret set anthropic. An existing Claude subscription credential on the host can also supply authentication. Host-bound credentials remain proxy-managed.

Pi runs tool calls without approval prompts, and the kit pre-answers the workspace trust prompt. The sandbox provides the isolation for these operations.

The sandbox supplies the isolation for agent tool execution. Launch the kit through Docker Sandboxes and configure extra tool or MCP destinations in the runtime network policy as needed.

⁠Source and security

For the Kit format and capability contracts, see the Sandbox Kit v3 specification⁠.

For runtime setup, see the Docker Sandboxes documentation⁠. For provenance, SBOM, VEX, and image verification, see the Docker Hardened Images documentation⁠.

Pi is a product of Earendil Works, Inc. Product names and logos do not imply sponsorship or endorsement.