Installation
Installation
aiti Web (npm package @aiti-ai/pi-web) is a self-hosted AI development workbench: one command to start, ready in your browser, with 63+ bundled extensions out of the box.
Release channels (stable / next)
Publishing is a two-step process: a new build first lands on the next channel for live verification, and only gets promoted to stable once verified — @latest and the site download always point at the verified stable build, never at an unverified one.
| Channel | Meaning | Install |
|---|---|---|
| stable (default) | verified release | npm install -g @aiti-ai/pi-web@latest (default, no flags) |
| next | published, under verification | npm install -g @aiti-ai/pi-web@next --allow-scripts=@aiti-ai/pi-web |
The one-shot installers follow the same rule: stable by default; --channel next or AITI_CHANNEL=next for the testing build; --ref vX.Y.Z pins an exact version. Which tag each channel points at lives at aiti.pw/releases.json (channels.stable / channels.next).
Install (pick one)
Requires Node.js ≥ 22.19 (check with node --version):
npm install -g @aiti-ai/pi-web@latest --allow-scripts=@aiti-ai/pi-webnpm ≥11.16 requires an explicit install-script allowlist: use
--allow-scripts=<names>AFTER the package spec. A bare--allow-scriptsmakes npm 12 block every install script and leaves the install incomplete, while older npm ignores the flag.
By default the install uses whatever registry your npm is configured with (npm config get registry). To switch it for this command only, append --registry <url>:
# npmjs — explicit, handy when a mirror is stale or misconfigured
npm install -g @aiti-ai/pi-web@latest --allow-scripts=@aiti-ai/pi-web --registry https://registry.npmjs.org
# mirror example (China); any full npm mirror works the same way
npm install -g @aiti-ai/pi-web@latest --allow-scripts=@aiti-ai/pi-web --registry https://registry.npmmirror.com--registry applies to this command only and leaves your global .npmrc untouched; use npm config set registry <url> to make it permanent. Mirrors sync official releases with a delay (minutes to tens of minutes), so a brand-new version may only be available from npmjs at first.
Then start:
pi-web # serves http://127.0.0.1:30141 and opens your browserPrefer a throwaway run? npx --allow-scripts=@aiti-ai/pi-web @aiti-ai/pi-web@latest — no global install (the same allow-scripts flag applies, and --registry works the same way).
curl -fsSL https://aiti.pw/install.sh | shNo npm required: the script downloads the prebuilt archive from GitHub Releases (all dependencies bundled, ~180MB) → installs to ~/.aiti/aiti-web-<version> → creates a pi-web launcher in ~/.local/bin. Downloads are sha256-verified; installs to your home directory, no sudo. Review the script first if you like.
Pin a version:
curl -fsSL https://aiti.pw/install.sh | sh -s -- --ref v0.20.0-aiti.3Env overrides: AITI_RELEASE_REPO (mirror repo), AITI_INSTALL_DIR, AITI_BIN_DIR:
curl -fsSL https://aiti.pw/install.sh | AITI_INSTALL_DIR=~/apps/aiti shImages are published to Docker Hub (built per release tag alongside GitHub Releases) and mirrored tag-for-tag to the public Aliyun ACR for faster pulls in China; there is also a GHCR source ghcr.io/aiti-ai/aiti-ai (same versions and content as Docker Hub — core/full variants, identical tags):
docker run -d --name aiti --init -p 30142:30142 \
-v aiti_data:/opt/aiti/data -v aiti_agent:/opt/aiti/agent \
-v ~/workspace:/workspace \
aitiai/pi-web:core
# open http://localhost:30142 (workdir /workspace, data isolated from ~/.pi)core(~2.1 GB): fork of pi-web + all extensions + node/git + the justget tool market;full(~7.8 GB): adds GUI / voice (funasr) / Chrome / tunnels — needs ≥8 GB RAM;- version tags:
aitiai/pi-web:v<version>-{core,full}, rollingcore/full/latest; - GHCR source:
ghcr.io/aiti-ai/aiti-ai— same versions and content as Docker Hub (core/full variants), identical tags (e.g.v0.20.0-aiti.3-core/core/latest); - ⚠ mount only sub-paths of
/opt/aiti, never the root itself (a root mount shadows the new image on upgrade — extensions would never refresh); - all three image channels (Docker Hub / ACR / GHCR) currently ship linux/amd64 only; on ARM hosts add
--platform linux/amd64to run under emulation (with a performance cost); - slow pulls in China? swap the image for
registry.cn-hangzhou.aliyuncs.com/aiti-ai/pi-web:core(Aliyun ACR, same tags as Docker Hub); - full ports/env vars/reverse-proxy/upgrade guide: the manual in the repo
docker/directory (compose.yaml / README.md).
irm https://aiti.pw/install.ps1 | iexRequires PowerShell 5.1+ (built into Windows 10/11). Equivalent: iwr -useb https://aiti.pw/install.ps1 | iex. No npm required: the script downloads the prebuilt zip from GitHub Releases → installs to %LOCALAPPDATA%\aiti\aiti-web-<version> → writes a pi-web.cmd launcher; downloads are sha256-verified. Review the script.
Pin a version:
$env:AITI_RELEASE_TAG = "v0.20.0-aiti.3"; irm https://aiti.pw/install.ps1 | iexAITI_RELEASE_REPO and AITI_INSTALL_DIR work the same way.
CN network acceleration: installers try GitHub Releases first and fall back to the Gitee mirror (aiti-ai/aiti-ai, identical assets and checksums; archives above Gitee's 100 MB per-file cap are published as .part-N pieces + a .split manifest and reassembled automatically). Force a source with AITI_MIRROR=gitee (or github); override the mirror repo with AITI_GITEE_REPO.
For development: clone the repository and run it with one command — extensions load in place and edits take effect without a deploy.
git clone https://github.com/aiti-ai/aiti-ai.git
cd aiti-ai
npm run local # dev mode (http://127.0.0.1:30141)
npm run local -- --prod # compiled mode (next build + next start)Requirements
| Item | Requirement |
|---|---|
| OS | macOS / Linux / Windows |
| Node.js | ≥ 22.19.0 |
| Session engine | Bundled out of the box — the default local engine runs in-process via the SDK, no separate install needed. Optional: the global pi coding agent CLI, only for the TUI, attach/spawn backends, or sharing config with terminal use (npm install -g @earendil-works/pi-coding-agent) |
| Models | sign in or add an API key in the Models panel on first run |
Start
pi-webThe CLI opens your browser once the server is ready; if it does not, open http://127.0.0.1:30141. The server listens on 127.0.0.1 only by default — use pi-web start -H <host> to listen elsewhere and secure the transport yourself.
Bundled pi plugins (auto-provisioned)
On startup aiti Web auto-provisions first-party pi plugins into your pi settings (installed via the official package manager; shared by TUI / Web / CLI sessions):
| Plugin | What it does |
|---|---|
@aiti-ai/pi-models-combo | model list governance + multi-key rotation against 429s + combo models |
@aiti-ai/pi-secret-mask | AI secret masking — keys/tokens pasted into prompts become placeholders before the model sees them and are restored for tool execution (Paste-safe by default.) |
@aiti-ai/pi-git-trace | out-of-band AI change tracking and rollback |
@aiti-ai/pi-web-bridge | pi-web bridge |
Details: declarations persist before install (a failed install self-heals on the next pi startup via pi's own reconcile); maintainer machines manage local copies manually and skip this path; set AITI_SKIP_PI_PLUGINS=1 to opt out entirely.
Commands
| Command | Purpose |
|---|---|
pi-web | start the server (--help for all options) |
pi-web status | list running servers |
pi-web stop [--port N] | stop a running server |
pi-web open [--port N] | open a running server in the browser |
pi-web update [--check] | update a global install |
Update: see Update. Uninstall: npm uninstall -g @aiti-ai/pi-web.
Script transparency
Both scripts do one thing: query the GitHub API → download the release asset → verify sha256 → extract + create a launcher:
| Script | Direct link |
|---|---|
| install.sh | https://aiti.pw/install.sh |
| install.ps1 | https://aiti.pw/install.ps1 |
Assets are built automatically by the release workflow whenever a v* tag is pushed: 4 platforms (linux-x64 / darwin-x64 / darwin-arm64 / win-x64), each bundling the npm package contents plus its production dependency closure, each with a sha256 that the installer verifies.
Upgrade: see Update (installer-channel users can re-run the installer; run pi-web stop first).
Next steps
- Update — the version scheme and update steps for every install shape
- Quick Start (aiti-agent workbench) — the first steps after installing
- devtools quick start — if what you want is the "AI operates your page" debugging toolchain
- aiti-agent · product overview — capabilities and positioning
- Project origin — how pi-web became aiti