If you want the overall docs map first, start with docs/README.md.
Fleet Pi supports two setup paths:
Standalonefor running the local web app with Pi-backed chatPi / Codexfor the advanced shared Codex environment and worktree flow
This is the recommended path for most users.
- Node.js 22 or newer
pnpm10.33.3, matching the pinnedpackageManagerfield inpackage.json- AWS credentials with access to the Bedrock models you plan to use
If you already have Corepack available, enable it once so the pinned pnpm version is used automatically:
corepack enableFleet Pi uses the normal AWS credential chain. AWS_REGION defaults to
us-east-1 when unset.
agent-workspace/ is the canonical durable adaptive state. Durable memory,
plans, workspace-installed Pi resources, and other adaptive artifacts belong in
reviewable workspace files; agent-workspace/indexes/ is reserved for
non-canonical projection data, and .pi/settings.json remains the
compatibility bridge.
# from repo root
pnpm install# from repo root
cp .env.example .envapps/web/vite.config.ts loads .env from the repo root for server-side
routes.
The checked-in example only includes public-safe knobs. Typical choices:
- Set
AWS_PROFILEin your shell if you use named local AWS profiles - Set
AWS_BEARER_TOKEN_BEDROCKonly if your Bedrock setup uses bearer-token auth - Leave
PI_AGENT_DIRunset unless you intentionally want a non-default Pi agent resource directory
# from repo root
pnpm devOpen http://localhost:3000.
In a second terminal:
# from repo root
curl http://localhost:3000/api/healthExpected response:
{ "status": "ok" }Then send a simple prompt like read package.json in the chat UI and confirm
that a Read tool card appears.
Standalone does not mean "without Pi" or "without an LLM provider."
It means:
- you run Fleet Pi locally as a normal pnpm web app
- the bundled Pi runtime powers chat and tool execution
- the backend still expects working Bedrock access
- you do not need the Codex desktop app or the advanced Codex worktree flow
Use this path if you want Fleet Pi's shared Codex local environment.
- Environment definition:
.codex/environments/environment.toml - Bootstrap script:
.codex/workspace-bootstrap.zsh - Advanced setup guide: docs/codex.md
The current bootstrap is intentionally small and only installs dependencies for a fresh worktree:
# from repo root
pnpm install --frozen-lockfileFor the accepted workspace contract and projection boundary, see docs/adaptive-workspace.md.
# from repo root
pnpm dev
pnpm typecheck
pnpm lint
pnpm --filter web test
pnpm e2e- Agent Workspace for the durable workspace model
- Adaptive Workspace Contract for the canonical storage boundary
- Codex Usage for the advanced Codex worktree path