Listed from the MCP registry; nobody on Odel publishes it.

MCP server: One MCP server.

Pibox

@psyb0tMCP server · External

Self-hosted MCP server: pi-coding-agent tools (run_prompt, file ops) over streamable HTTP.

Code execution sandboxesv0.22.0WTFPLShell
Freeno charge per call

Runs on your machine from its package; the steps are below.

What it does

  1. Reads
  2. Writes
  3. High impact

At most: moves money, runs code or commands, deletes data, or sends messages for you.

What it costs

Free

Odel charges nothing per call. The publisher may charge for its own service.

Runs locally over stdio

This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).

Dockerdocker.io/psyb0t/pibox:v0.22.0

Run

docker run -i --rm docker.io/psyb0t/pibox:v0.22.0

MCP client config

{
  "mcpServers": {
    "pibox": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "docker.io/psyb0t/pibox:v0.22.0"
      ]
    }
  }
}
README3 min read

CI version license Docker Pulls

pi-coding-agent inside an aicodebox container. One image, several ways in: interactive shell, one-shot prompt, HTTP API (with an OpenAI-compatible endpoint), MCP server, Telegram bot, and a cron scheduler that fires pi on whatever schedule you want.

You talk to pibox. pibox talks to pi. pi talks to whatever LLM you point it at. Nobody cares about the middle.

Table of Contents

Quick start

Install the host wrapper.

bash
curl -fsSL https://raw.githubusercontent.com/psyb0t/docker-pibox/main/install.sh | bash

# Install the full image as the wrapper default.
curl -fsSL https://raw.githubusercontent.com/psyb0t/docker-pibox/main/install.sh | PIBOX_FULL=1 bash

The installer creates the Pi, pibox state, and SSH directories, pulls the selected image, and installs pibox on PATH. Run pibox from the directory you want Pi to work in. The wrapper mounts that directory at the same path inside the container, keeps Pi's state between runs, forwards every PIBOX_* variable, and passes Pi arguments through unchanged.

bash
# point Pi at an upstream model
export PIBOX_PROVIDER_BASE_URL=https://api.z.ai/api/anthropic
export PIBOX_PROVIDER_API=anthropic-messages
export PIBOX_PROVIDER_API_KEY=your-z-ai-api-key
export PIBOX_PROVIDER_MODEL=your-model-id

# interactive Pi in the current directory
pibox

# one prompt, then exit
pibox -p "list the files in this workspace"

# the full image for this run only
PIBOX_FULL=1 pibox -p "run the test suite"

PIBOX_DETACH=1 starts a long-running mode in the background:

bash
PIBOX_DETACH=1 \
PIBOX_API_MODE=1 \
PIBOX_API_MODE_TOKEN=your-secret \
PIBOX_AVAILABLE_MODELS=your-model-id \
pibox

Install pibox, codexbox, and claudebox in the same command directory when you want one box to launch another. The install guide covers nested launches, plain docker run, upgrades and removal.

Image variants

  • psyb0t/pibox:latest is the minimal image.
  • psyb0t/pibox:latest-full starts from the shared aicodebox:v0.18.4-full base, then adds Pi and pibox. It carries the shared development toolchain without rebuilding it in this repository.

Modes

FlagWhat you get
PIBOX_API_MODE=1FastAPI server on :8080: agent runs, workspace files, and an OpenAI-compatible chat/completions with streaming and client-executed tool calls
PIBOX_TELEGRAM_MODE=1Talk to pi from Telegram, with per-chat workspaces, allowlists and settings
PIBOX_CRON_MODE=1YAML-scheduled pi runs with per-run history
PIBOX_MCP_MODE=1run_prompt and workspace file tools over MCP, next to any other mode

API wins over the other foreground modes. Telegram and cron run together. MCP coexists with all of them. The modes page has the rules and a page per mode.

Documentation

The full documentation lives at psyb0t.github.io/docker-pibox.

SectionWhat it covers
Install and the wrapperInstaller options, wrapper settings, image variants, nested launches
ConfigurationEvery environment variable, aliasing, Git identity, startup hooks
LLM providersOpenAI-compatible, Anthropic Messages and Google endpoints
ModesAPI, Telegram, cron and MCP
GitHub ActionPi in a workflow on read-only context
Agent integrationsClaude Code, Codex and OpenClaw
SecurityTokens, exposure and where secrets are stored
TroubleshootingStartup refusals and their fixes
ArchitectureWrapper, entrypoint, adapter and the Pi CLI
DevelopmentBuilds, tests, CI and releases

Agent integrations

The skill works in any agent that reads .agents/skills/ (such as peen), and installs natively in Claude Code, Codex and OpenClaw:

bash
claude plugin marketplace add psyb0t/agents
claude plugin install pibox@psyb0t

codex plugin marketplace add psyb0t/agents
codex plugin add pibox@psyb0t

openclaw skills install @psyb0t/pibox

The agent integrations page covers tokens and the stdio MCP bridge plugin.

Development

bash
make help        # list targets
make build-all   # build both variants
make lint        # shellcheck, ruff and pyright, in containers
make test-ci     # offline tests, what CI runs
make test        # the e2e suite (needs .env.test)
make docs        # build the documentation site

The development page explains the tests, CI and releases.

Sponsor

Buy Me a Coffee

License

WTFPL, see LICENSE. Do what the fuck you want.

Similar modules

Browse Code execution sandboxes