pi-web Product Documentation

简体中文 · This is the English edition; the Chinese edition lives in ../.

Put a production-ready Web UI on any agent written with the pi SDK in seconds.

This directory is the complete product documentation for pi-web, with each topic as a standalone document. The authoritative requirements and low-level design still live in the repo-root PLAN.md, .kiro/steering/, and the individual .kiro/specs/; this doc set targets users, integrators, agent authors, and contributors, providing a systematic, product-level walkthrough.

What is this

pi-web auto-loads a directory or git repository (containing an index.[js|ts] written with the @earendil-works/pi-coding-agent SDK) and brings up a streaming web chat UI. It can also serve the general-purpose pi coding agent as a web service, and is designed as the kernel + open layer for a future “pi cloud”.

Fastest start: at the repo root run pnpm install && pnpm dev, open http://localhost:3000 in your browser, and enter the absolute path of examples/hello-agent in the agent source picker to enter a session. For the full steps, see 01 · Quickstart.

Looking for a runnable example to get started? The repo’s examples/ directory provides a runnable example index organized by capabilityexamples index.

Documentation map

Pick a reading path by role:

I am…Recommended order
First encounter (evaluating/trying out)00 · Product Overview01 · Quickstart02 · Core Concepts
Agent author (want to put a UI on your own agent)01 · Quickstart07 · Custom Agent Development08 · Attachment System21 · Sessions List10 · Web UI Extension11 · AIGC Tools
Integrator (embedding pi-web into your own stack)03 · Architecture04 · Packages13 · HTTP/SSE API Reference21 · Sessions List12 · Config UI
Ops / Deployment05 · Configuration14 · CLI15 · Deployment & Operations16 · Logging
Contributor03 · Architecture04 · Packages17 · Development & Testing19 · Roadmap

All chapters

#DocumentOne-liner
00Product OverviewPositioning, capabilities, value, target scenarios
01QuickstartFrom a working environment to running your first agent
02Core ConceptsAgent Source / dual-mode / Session / RPC / translation layer
03ArchitectureData flow, transport-agnostic channel, stateful constraints, extension seams
04PackagesResponsibilities and dependency direction of the 7 @blksails/* packages
05ConfigurationEnvironment variables, ~/.pi/agent, hiding providers
06Providers & ModelsBuilt-in and custom OpenAI-compatible gateway integration
07Custom Agent DevelopmentdefineAgent(), the index.ts contract, example index, hot reload
08Attachment SystemLayered storage, two consumption paths, attachmentId round-trip
09Extensions / Skills / TemplatesNative pi resources, permission prompts, install management
10Web UI ExtensionThe agent-web-extension five-tier model
11AIGC Image ToolsGeneration/editing, default model, image normalization
12Config UIJSON Schema → form IR, dynamic widgets
13HTTP/SSE API ReferenceREST + SSE endpoint contracts
14CLIThe pi-web global command, standalone, --watch
15Deployment & Operationsstandalone artifact, sticky routing, production hardening
16LoggingIsomorphic logger, server-side gating
17Development & TestingTS strict, hard testing requirements, the spec workflow
18Troubleshooting / FAQCommon errors and remedies
19RoadmapCapability matrix and planning
20GlossaryDefinitions of key terms
21Sessions ListBrowse historical sessions and resume in one click

Conventions

  • This is the English edition; the Chinese edition lives in ../README.md. Technical terms and code identifiers are kept in their original form.
  • Code paths are written in path:line form for easy navigation within the repo.
  • This doc set does not reference the early, scattered design drafts under ./docs; content follows the README, steering, and the actual code.

Private repository — © blksails.