LocalPibox.

A personal, local-first AI devstack built on Pi.dev.

Pi.dev Lemonade · local LLM Qwen GitHub Pages

A containerized Pi coding agent paired with a local large model served by Lemonade, MCP servers, and forked extensions — focused on local LLM development and tuned for a Ryzen AI Max+ 395 with 128 GB of unified memory. The model never leaves your machine.

Why local, why Lemonade

Because the target hardware can run large models comfortably, there is no reason to send code to a cloud API. Lemonade serves the model locally (http://127.0.0.1:13305/v1) — it is the default provider. The default model is Qwen3.6-35B-A3B-MTP-GGUF, driven at medium/low thinking via the reasoning_effort patch in the Pi fork. 128 GB of unified APU memory means big context windows and on-device reasoning: private, offline-capable, fast.

The stack

RepoWhat it isUpstream
devstackcontainer image + lpb launcher, VSCodium web IDE, CI, bootstrapown
piPi monorepo fork: Qwen reasoning, overflow fixesearendil-works/pi
configpreset: settings, MCP servers, skills, agentsown
lemonade-pi-pluginLemonade provider: Qwen thinking + visionlemonade-sdk
pi-subagentssub-agents: parallel execution, live widget, custom agent types, mid-run steeringtintinweb
lpb-memorypersistent memory extension (subprocess reviews)independent
localpiboxcanonical project overview & stack referenceown
localpibox.github.iothis project site (GitHub Pages)own

The lpb utility

Host-side launcher for the whole stack. Install once, then drive it from your shell:

curl -fsSL https://raw.githubusercontent.com/localpibox/devstack/main/scripts/install.sh | bash

Commands

CommandWhat it does
lpb [project]Start a Pi CLI session (foreground); default ~
lpb /proj -- <pi-args>Pass args to pi (-p, --session, --continue, --thinking, --name)
lpb --shell [project]Open an interactive bash shell in the container
lpb --web [project]Start VSCodium (web IDE) at a project (background)
lpb --ssh [pubkey|path] [proj]Start an sshd server (background) for remote login
lpb --stopStop the container
lpb --removeStop + remove the container and its state dirs
lpb --logsStream container logs
lpb --updatePull the latest image(s)
lpb --configShow the launcher config file location
lpb --helpShow usage

--web (VSCodium) options

--host · --port · --token · --without-token · --data-dir · --user-data-dir · --ext-dir · --base-path

Examples

lpb                                          # Pi at ~
lpb /home/user/myproject                     # Pi at a project
lpb /myproject -- -p "summarize this repo"   # survey via CLI
lpb /myproject -- --session abc123           # resume a session
lpb --shell /home/user/myproject             # shell into the container
lpb --web --port 8080                        # VSCodium on :8080

Quick start

Prerequisites: a container engine (podman or docker) and, to run models on-device, hardware with sufficient RAM/APU (this stack targets machines like a Ryzen AI Max+ 395 with 128 GB, plus a local Lemonade/llama.cpp server on :13305).

curl -fsSL https://raw.githubusercontent.com/localpibox/devstack/main/scripts/install.sh | bash
lpb /path/to/your/project

Open the browser to http://localhost:3000 (token: devsession) for the VSCodium web IDE. Full setup, manual podman run, and multi-project usage are in devstack/README.

Architecture

Your shell → lpb → container (podman/docker)
                    ├─ Pi CLI (custom fork: Qwen reasoning_effort)
                    ├─ lemonade plugin → local Qwen LLM (127.0.0.1:13305/v1)
                    ├─ MCP servers (agent-browser, exa, …)
                    └─ extensions: lpb-memory, pi-subagents, powerline footer

Config preset from config seeds ~/.pi/agent/ on first run; extensions install on boot from settings.json#packages via pi update --extensions. Full architecture and the Qwen-thinking overflow notes live in devstack/README and devstack/doc.

Requirements

Docs & guides

Contributing

The stack is designed to be forked and personalized. Three paths:

  • Contribute directly — improve patches, add features, fix bugs. Each repo has its own CONTRIBUTING.md.
  • Fork for your stack — fork all repos, repoint lpb.stack.env, and run your own variation.
  • Feed back experiences — share what works reliably on your hardware with your models. Helps everyone converge on robust local configurations.

See devstack/CONTRIBUTING.md for the full guide.