Your Local-First AI Agent Desktop
Multi-model access · Local tool execution · MCP & Skills ecosystem · Remote Gateway
English | 简体中文
Core Features • Download & Deployment • FAQ • Docs
For all things AI, head to LINUX DO! Wishing the community ever greater success~
![]() |
PackyCode is a reliable, efficient, and professional API relay service provider, offering relay services for Claude Code, Codex, Gemini, Chinese domestic models, and more — a long-established, top-tier relay. The vast majority of the model resources used to develop this software were provided by PackyCode — thank you, Laonong! Register here to get started! |
![]() |
Right Code provides stable relay services for Claude Code, Codex, Gemini, Chinese domestic models, and more. Invoices are available upon top-up, and enterprise and team users receive dedicated one-on-one support. The remaining model resources used to develop this software were provided by RightCode — thanks to the RC site owner and the support team! Register here to get started! |
![]() |
Cubence is a reliable and efficient API relay service provider, offering relay services for Claude Code, Codex, Gemini, and more, with pay-as-you-go billing. Thanks to Cubence for supporting this project! Register here to get started! |
Scan the QR code to join our QQ group and help drive LiveAgent development!
(Why a QQ group? It just packs a few more features than a WeChat group~)
LiveAgent is a local-first AI agent desktop client. It deeply integrates large language model reasoning with local system tools, so the AI can genuinely operate your file system, run commands, and manage scheduled tasks — while the Gateway enables remote access and collaboration.
- An agent that actually gets things done — beyond chat: read and write files, make precise edits, run Bash, and supervise long-running processes
- A fully open ecosystem — bridge any external tool via the MCP protocol, and load Skills packages on demand
- Both local and remote — the desktop app works fully standalone; deploy the Gateway and control it from any browser
- Multi-model routing — Claude (Anthropic), Codex (OpenAI), and Gemini protocols, with custom Base URL support for third-party compatible services
- Rich rendering — streaming Markdown with built-in KaTeX math, Mermaid diagrams, and Monaco code preview
- History compaction — dual-layer Segment + Summary Checkpoint persistence keeps long conversations from losing context
- Internationalization — built-in i18n multi-language framework
- Full file-system capabilities — precise
Read/Write/Edit/Delete, plusGlob/Greppattern and regex search - Bash & long-running processes — non-interactive command execution (cwd / timeout), with
ManagedProcesssupervising dev servers and other resident tasks - Sub-agent delegation — independent sub-agents execute in parallel with worktree isolation and automatic merging
- Tunnel exposure —
TunnelManagerexposes local services to the public internet in one click
- MCP protocol bridging — the Tauri side natively bridges any stdio / http MCP server for unlimited tool extension
- Skills packages — progressive disclosure and on-demand loading, with install / create / package support and the ClawHub ecosystem
- Persistent memory — Markdown + SQLite FTS full-text search for cross-session knowledge management
- Scheduled tasks — bash / http / prompt cron job types, executed automatically in the background
- Access from any browser — Go gateway (WebSocket + Protobuf) with a WebUI for remotely controlling the local agent
- Disconnect recovery — a bounded seq window replays short outages, with desktop-side persistence as the safety net
Installers are automatically built, signed, and published by GitHub Actions — grab the latest version from GitHub Releases.
| Platform | Requirements |
|---|---|
| macOS | Both Intel (x64) and Apple Silicon (aarch64) architectures |
| Windows | x64; requires the WebView2 runtime (bundled with Windows 11) |
| Linux | x86_64; requires WebKitGTK 4.1 (Ubuntu 22.04+ / Debian 12+, etc.) |
Download the DMG matching your chip from Releases, open it, and drag LiveAgent into Applications:
- Apple Silicon (M-series):
LiveAgent-<version>-macOS-aarch64.dmg - Intel:
LiveAgent-<version>-macOS-x64.dmg
The installer is signed and notarized by Apple — no manual security override is needed on first launch.
Pick an installation method from Releases:
| Method | File | Best for |
|---|---|---|
| Setup wizard | LiveAgent-<version>-Windows-x64-Setup.exe |
Most users |
| MSI package | LiveAgent-<version>-Windows-x64.msi |
Enterprise distribution / silent install |
| Portable | LiveAgent-<version>-Windows-x64-portable.zip |
No install — unzip and run |
Choose by distribution from Releases:
| Format | Distributions | Install |
|---|---|---|
| AppImage | Any distribution | chmod +x, then run directly |
| DEB | Debian / Ubuntu family | sudo dpkg -i LiveAgent-<version>-Linux-x86_64.deb |
| RPM | Fedora / openSUSE family | sudo rpm -i LiveAgent-<version>-Linux-x86_64.rpm |
The desktop app works out of the box and depends on no server. Deploy the Gateway only if you want to control your local agent from a browser.
Note: when deployed behind an Nginx reverse proxy, set the Gateway address on the Settings → Remote page to the HTTPS URL and use port 443.
# Pull the image (built by GitHub Actions, multi-arch: amd64 / arm64)
docker pull ghcr.io/stack-cairn/liveagent-gateway:latest
# Run in the background (HTTP/WebSocket → host 3000)
docker run -d \
--name liveagent-gateway \
--restart unless-stopped \
-p 3000:8080 \
-v liveagent-gateway-data:/var/lib/liveagent \
-e LIVEAGENT_GATEWAY_TOKEN=your-token \
ghcr.io/stack-cairn/liveagent-gateway:latestThe named volume persists the Gateway database and independently issued Agent tokens across container upgrades.
One-command upgrade to the latest version — pull the new image → remove the old container → recreate it with the same arguments (if you changed the port mappings or token, adjust the arguments below accordingly):
docker pull ghcr.io/stack-cairn/liveagent-gateway:latest \
&& docker rm -f liveagent-gateway \
&& docker run -d \
--name liveagent-gateway \
--restart unless-stopped \
-p 3000:8080 \
-v liveagent-gateway-data:/var/lib/liveagent \
-e LIVEAGENT_GATEWAY_TOKEN=your-token \
ghcr.io/stack-cairn/liveagent-gateway:latest \
&& docker image prune -fNginx reverse proxy configuration — reference for custom domains / TLS
Since protocol v2, all traffic — the WebUI, the HTTP API, and the WebSocket links of both the browser and the desktop app — goes through the single HTTP port (default 3000).
WebSocket upgrades happen on several paths (
/ws/v2,/ws/v2/agent,/ws/v2/terminal, and tunnels under/t/), so the simplest correct setup enables the upgrade on the whole vhost:
# WebUI SPA/static/API + every WebSocket link (browser and desktop)
location / {
proxy_pass http://127.0.0.1:3000;
proxy_http_version 1.1;
# WebSocket upgrade
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
# Required: the Gateway's same-origin check compares the browser's
# Origin header against X-Forwarded-Proto + Host
proxy_set_header Host $host;
proxy_set_header Authorization $http_authorization;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# The Gateway pings every WebSocket connection every 15s,
# so a generous-but-finite timeout is enough
proxy_read_timeout 300s;
proxy_send_timeout 300s;
proxy_buffering off;
}The upstream port maps to the host port from the
docker runabove: HTTP/WebSocket 3000 (inside the container, HTTP actually listens onPORT=8080). The server block needslisten 443 ssl;and aclient_max_body_sizelarge enough for attachment uploads (e.g.100m).
A drop-in development sandbox built on the headless runtime. Instead of one ever-growing "kitchen-sink" image, the toolchain is layered and kept lean (mirroring the GitHub devcontainers / Gitpod approach):
| Image | Contents | Approx. size |
|---|---|---|
liveagent-core |
git · build-essential · cmake · ninja · pkg-config · strace · vim · tmux · network tools + go 1.25.12 · node 22.19.0 · pnpm · bun · python 3.12 (all managed by mise) | ~0.9 GB |
liveagent-full |
everything in core + Java (Temurin 17) · Maven 3.9 |
~1.2 GB |
Both images are built by GitHub Actions from the same Dockerfile.headless-tools (TARGET_PROFILE=core|full), multi-arch amd64/arm64, and share the same base layers — pulling full never re-downloads the core layers.
Quick start (compose):
services:
liveagent:
image: ghcr.io/stack-cairn/liveagent-full:latest
restart: unless-stopped
ports:
- "17890:17890"
volumes:
- liveagent-data:/var/lib/liveagent
# Named volume (not bind mount!) — Docker copies the preinstalled
# toolchain into it on first use and persists any lazily-installed
# runtimes (e.g. Java 8) across restarts.
- mise-data:/opt/mise
volumes:
liveagent-data:
mise-data:Switch any runtime version via an environment variable. The image reads MISE_<TOOL>_VERSION (e.g. MISE_JAVA_VERSION, MISE_NODE_VERSION, MISE_PYTHON_VERSION); missing versions are auto-installed on first start (needs network once) and persisted on the mise-data volume:
services:
liveagent:
image: ghcr.io/stack-cairn/liveagent-full:latest
environment:
MISE_JAVA_VERSION: "temurin-8" # switch to Java 8; auto-installed on first boot
volumes:
- liveagent-data:/var/lib/liveagent
- mise-data:/opt/mise # persists the lazily-installed JDKNotes
- Use a named volume for
/opt/mise. A bind mount of an empty directory would hide the preinstalled toolchain.- Low-frequency / large tools are intentionally not preinstalled (gdb, valgrind, clang, rust, php, ruby…). Install them on demand:
apt-get install -y gdb clangormise use -g rust@latest— no image rebuild needed.- Every bash session inside the container has the full mise environment (PATH / JAVA_HOME), including non-interactive login shells like the app's
bash -lcexecution path:/etc/profile.d/mise.shcovers login shells,/etc/bash.bashrccovers interactive shells, and/opt/mise/shimsis on the default PATH as a fallback for non-shell processes.pnpmandbunare installed via the npm backend from the npmmirror registry (MISE_NPM_REGISTRY_URL), so installing/upgrading them does not depend on GitHub reachability;go/node/pythoncome from their official upstreams (preinstalled in the image).
The headless server serves the WebUI, the HTTP API and the WebSocket event stream on one port (LIVEAGENT_HEADLESS_PORT, default 17890). Access control:
| Env var | Default | Effect |
|---|---|---|
LIVEAGENT_API_TOKEN |
(unset = auth off) | Enables Bearer auth for /api/invoke and requires ?token= on non-browser /ws connections. |
LIVEAGENT_HEADLESS_HOST |
127.0.0.1 |
Bind address. Binding a non-loopback interface without a token prints a startup warning. |
LIVEAGENT_HEADLESS_CORS_ORIGINS |
(unset) | Comma-separated extra origins allowed to call the API (besides the same origin). |
LIVEAGENT_TRUST_PROXY_HEADERS |
(unset) | Set to 1 to trust X-Forwarded-For for rate-limit IPs (only behind a trusted reverse proxy). |
- Origin gate (default on): every request with an
Originheader is allowed only if it matches the server's own origin orLIVEAGENT_HEADLESS_CORS_ORIGINS; anything else gets403. PreflightOPTIONSis answered with the matching CORS headers. This blocks CSRF and cross-origin data exfiltration. - Same-origin exemption: requests without an
Origin(curl, scripts) pass the gate; whenLIVEAGENT_API_TOKENis set they must presentAuthorization: Bearer <token>(invoke) or?token=<token>(WebSocket). Browser pages served by the server itself are always allowed (same origin), so the WebUI needs no token. - Rate limiting: per-IP token bucket on
/api/invoke. The client IP comes from the actual TCP peer by default (X-Forwarded-Foris only consulted whenLIVEAGENT_TRUST_PROXY_HEADERS=1).
The headless dispatch surface is generated and verified, not hand-synced:
scripts/manifest/commands.json— committed source of truth for the 234 Tauri commands.scripts/build_type_map.py— derives the Rust type map fromsrc/*.rs(--src/--out).scripts/gen_adapters.py— regeneratescrates/agent-gui/src-tauri/src/commands/adapters.rsfrom the manifest + type map (--commands/--types/--out).scripts/gen_headless.sh— one-shot pipeline:build_type_map.py→gen_adapters.py.scripts/verify_headless.py— assertsheadless.rsdispatch arms match the manifest both ways (no missing, no extra).
When you add / remove / rename a command:
- Update
scripts/manifest/commands.json. - Add / adjust the business function in
src/commands/*(no#[tauri::command]needed — it lives only in the generated adapter layer). - Run
bash scripts/gen_headless.shto regenerateadapters.rs. - Add / update the matching dispatch arm in
src/headless.rs(hand-maintained server skeleton — the generator does not overwrite it). - Run
python3 scripts/verify_headless.pylocally; CI (gen-verifyjob) enforces both steps 3 and 4.
Expand the Development Guide below for the full set of Make commands.
Architecture Overview — diagram & tech stack
┌──────────────────────────────────────────────────────────────┐
│ Browser WebUI │
│ React + Vite + WebSocket + Gateway API │
└────────────────────────────┬─────────────────────────────────┘
│ WebSocket / HTTP
┌────────────────────────────▼─────────────────────────────────┐
│ Agent Gateway │
│ Go · WebSocket · HTTP · Session Manager · Event Store │
│ (Railway / Docker / self-hosted) │
└────────────────────────────┬─────────────────────────────────┘
│ WebSocket v2 (bidirectional stream)
┌────────────────────────────▼─────────────────────────────────┐
│ Agent GUI │
│ Tauri 2 · React 19 · Rust │
├──────────┬────────────┬───────────┬────────────┬─────────────┤
│ Models │ Runtime │ Tools │ Skills │ Memory/Cron │
│ pi-ai │ multi-turn │ FS/Bash/ │ progressive│ SQLite+MD │
│ + Codex │ + SubAgent │ MCP bridge│ + Hub │ FTS index │
└──────────┴────────────┴───────────┴────────────┴─────────────┘
Tech Stack
| Component | Technology |
|---|---|
| Agent GUI · Framework | Tauri 2 + React 19 + TypeScript 6 |
| Agent GUI · Build | Vite 8 + pnpm |
| Agent GUI · Styling | Tailwind CSS 4 + Radix UI |
| Agent GUI · Rendering | streamdown + KaTeX + Mermaid + Monaco Editor |
| Agent GUI · Backend | Rust + Tokio + SQLite (rusqlite) + WebSocket (tokio-tungstenite) |
| Agent GUI · LLM | @earendil-works/pi-ai · @earendil-works/pi-agent-core |
| Gateway · Language | Go 1.25 |
| Gateway · Protocols | WebSocket + Protobuf + HTTP |
| Gateway · Web UI | React + Vite + Tailwind CSS (embedded) |
| Gateway · Deployment | Docker multi-stage · Railway CI/CD |
Development Guide — common Make commands (run make help for the full list)
| Command | Description |
|---|---|
make dev |
Start the Tauri development environment |
make build |
Build the desktop app |
make dev-gateway |
Start the Gateway dev server |
make dev-webui |
Start the WebUI dev server |
make gateway-build |
Build the Gateway binary |
make gateway-docker-build |
Build the Docker image |
make gateway-docker-smoke |
Build + health check |
make desktop-build-macos-release |
macOS signed release build |
make build-linux |
Linux amd64 gateway |
make build-linux-arm |
Linux arm64 gateway |
make proto |
Regenerate Protobuf code |
make clean |
Clean build artifacts |
Project Structure — directory tree
LiveAgent/
├── crates/
│ ├── agent-gui/ # Desktop client
│ │ ├── src/ # React frontend
│ │ │ ├── components/ # UI components
│ │ │ ├── lib/ # Core logic (chat, tools, skills, memory)
│ │ │ ├── pages/ # Pages (Chat, Settings)
│ │ │ ├── i18n/ # Internationalization
│ │ │ └── prompt/ # System prompt templates
│ │ └── src-tauri/ # Rust backend (Tauri)
│ │
│ └── agent-gateway/ # Go gateway service
│ ├── cmd/gateway/ # Entry point
│ ├── internal/ # Core implementation
│ ├── proto/v2/ # Protobuf definitions
│ └── web/ # Embedded WebUI
│
├── docs/ # Project docs
│ ├── architecture/ # Architecture design
│ ├── features/ # Feature guides
│ └── operations/ # Operations & deployment
│
├── scripts/release/ # Release automation
├── .github/workflows/ # CI/CD (CI + Desktop Release + Gateway Docker)
├── Dockerfile # Gateway container image
├── Makefile # Build commands
└── Cargo.toml # Rust workspace
Does my API key ever leave my machine?
No. Keys are stored locally on the desktop side only. The Gateway is a pure protocol relay — it never accesses the file system and never stores any credentials.
Do I have to deploy the Gateway?
No. The desktop client works standalone with all local capabilities; deploy the Gateway only when you need browser-based remote access to your local agent.
Which models are supported?
Claude (Anthropic), Codex (OpenAI), and Gemini protocols are built in, plus custom Base URL support for any compatible third-party service.
Will long conversations / disconnects lose context?
No. The desktop app persists the full history with Segment + Summary Checkpoints; the Gateway replays short disconnects through a bounded seq window and converges automatically after reconnecting.
Issues and pull requests are welcome! See the Development Guide for setting up a dev environment.
Before submitting a PR, make sure all of the following checks pass (they match the CI gates):
Desktop client · crates/agent-gui
- Type check & build pass:
pnpm build - Lint passes:
pnpm lint - Frontend unit tests pass:
pnpm test:frontend(also runpnpm test:releasewhen touching release scripts) - Rust backend check passes:
cargo check --manifest-path crates/agent-gui/src-tauri/Cargo.toml --tests(run from the repo root)
Gateway · crates/agent-gateway (if changed)
- Go unit tests pass:
go test ./... - WebUI build / lint / tests pass:
pnpm build && pnpm lint && pnpm test(run inweb/) - Regenerate and commit artifacts after proto changes:
make proto
Cross-frontend consistency
- Mirrored files between GUI and WebUI must be byte-identical:
node scripts/check-mirror.mjs - Keep the diff clean (no trailing whitespace):
git diff --check
Thanks to everyone who has contributed to LiveAgent!
MIT © StackCairn






