Skip to main content

Web UI & Launcher Guide

The PicoClaw Launcher (picoclaw-launcher) is the browser-based interface for configuring and chatting with PicoClaw. It is the recommended way to get started on desktop: no command-line knowledge required.

The launcher is more than a UI — it runs as a small service that manages the picoclaw gateway subprocess for you, serves the dashboard, and proxies chat traffic between the browser and the Gateway.

Note

Auth internals (password storage, session lifetime, rate limiting) are documented in Configuration — Web launcher dashboard. Docker-specific setup lives in the Docker & Quick Start Guide.

Starting the Launcher​

If you installed PicoClaw with the quick installer, both picoclaw and picoclaw-launcher are already on your machine. Otherwise download picoclaw-launcher from GitHub Releases or build it with make build-launcher.

picoclaw-launcher
# The browser opens at http://localhost:18800

On Windows and Linux desktop builds, a system tray icon appears while the launcher runs; double-clicking picoclaw-launcher (or picoclaw-launcher.exe) starts it the same way. On macOS, the first launch may be blocked by Gatekeeper — see the note in the repository README.

Launcher flags​

FlagDefaultDescription
-port18800Listen port (1–65535)
-host""Bind host; when set, overrides -public. Env var PICOCLAW_LAUNCHER_HOST is used when -host is not supplied; the flag takes priority over the env var, which takes priority over launcher-config.json.
-publicfalseBind all interfaces instead of localhost; ignored when -host or PICOCLAW_LAUNCHER_HOST is set
-no-browserfalseDo not auto-open the browser
-langautoUI language (en or zh)
-consolefalseConsole mode: no tray, logs to the terminal
-d, --debugfalseDebug logging
(positional)~/.picoclaw/config.jsonConfig path; PICOCLAW_CONFIG is honored too
picoclaw-launcher -port 18800 # default local-only access
picoclaw-launcher -no-browser -console # headless-friendly

The launcher stores its own settings (port, public flag, IP allowlists) in launcher-config.json, next to config.json. Explicit flags win over stored values for that run.

First Run​

  1. If no config.json exists yet, the launcher automatically runs the equivalent of picoclaw onboard to create the configuration and workspace.
  2. The browser opens the setup page (/launcher-setup): create a dashboard password (at least 8 characters). It is stored as a bcrypt hash in launcher-auth.db (or in launcher-config.json on platforms without the SQLite store).
  3. After setup, the dashboard opens. When the launcher auto-opens a local browser, it logs you in automatically via a one-shot loopback endpoint; manual sign-ins happen at /launcher-login.

Sessions last about 31 days but are invalidated when the launcher restarts, so a restart asks you to log in again. Login attempts are rate-limited per client IP.

Dashboard Tour​

PageWhat you can do
/Chat with the agent, browse session history, pick the default model
/modelsAdd, edit, delete, and set the default model (API-key, OAuth, and local/CLI models); the edit form also sets per-model sampling parameters (temperature, max tokens, context window)
/credentialsManage provider credentials (OpenAI, Anthropic, Google Antigravity)
/channelsConfigure any supported channel from a shared catalog; QR-based binding for WeChat and WeCom
/agent/hub, /agent/skills, /agent/toolsBrowse and import skills; view and toggle agent tools
/agent/subagentsReview the agent roster, configure spawn/delegate permissions and subagent model overrides, tune global sub-turn limits, and watch active subagent tasks live
/agent/cronView scheduled jobs with their last-run status and stats; trigger a job immediately, enable/disable, or remove it
/agent/mcpView MCP server connection status and tool lists; add, edit, enable/disable, and remove MCP servers
/configEdit agent defaults, self-evolution, exec/cron controls, heartbeat, device monitoring, launcher networking/autostart, and auxiliary model assignments (compaction, vision)
/config/rawEdit config.json as raw JSON in a text area; useful for settings the form UI does not expose
/logsFollow the in-memory Gateway log buffer and clear it

Voice messages​

The chat composer has a microphone button to the left of the send button. Press it to record a voice message; press the stop button (or wait for the 5-minute limit) to send it immediately, so no extra send step is needed. The recording is uploaded to the Gateway and, when a voice transcription model is configured, transcribed before the agent replies. Audio never leaves your machine except for the transcription request to the configured provider. Browsers without MediaRecorder hide the button or show an error. The microphone API is only available in a secure context, so when the dashboard is opened over plain HTTP on a LAN address the button explains that HTTPS or localhost is required; use http://localhost:18800 on the launcher machine or terminate TLS in front of it.

Stopping a reply​

While the agent is generating a response, the send button becomes a stop button. Clicking it sends the existing /stop command to cancel the active turn; the composer text and pending attachments are kept.

Token usage​

Assistant replies show input, output, and total token counts when the provider reports usage. Hover the usage badge for the full breakdown. Usage is aggregated across all model calls in a turn, including tool-call iterations. When pricing is available, the badge also shows a per-turn cost: a leading ~ marks an estimate derived from public list prices, while a cost reported by the backend is shown as-is. The badge also shows output tokens per second, derived from the total LLM call time (duration_ms) recorded by the backend for the turn. Usage is stored with session history, so the badge remains visible after reloading the page or reopening the conversation.

The Gateway runs as a subprocess managed through the launcher (picoclaw gateway -E, with -d when debug logging is on). The top bar lets you start, stop, and restart it, and shows its state. Auto-start only happens when a usable default model is configured; otherwise use Start Gateway after adding credentials in /models or /credentials.

Remote Access​

By default the launcher listens on 127.0.0.1 only. To reach the dashboard from another machine:

picoclaw-launcher -public # bind all interfaces, or
picoclaw-launcher -host 0.0.0.0 # explicit bind address

Remote-facing deployments are controlled by the launcher config (also editable from the dashboard's config page):

SettingMeaning
allowed_cidrsIP allowlist for non-local clients
allow_localhost_bypassAllow localhost without restriction (default true)
trusted_proxy_cidrsCIDRs whose forwarding headers are trusted (for reverse proxies)

Warning

Never expose the launcher directly to the public internet. The dashboard is protected by its password and the IP allowlist; if you need public access, put it behind a reverse proxy with TLS. The session cookie is only marked Secure when TLS is terminated in front of the launcher (or X-Forwarded-Proto: https is trusted).

Tray, Autostart, and Logs​

  • Tray icon (Windows, Linux, and macOS builds with cgo): Open dashboard, About (version, GitHub, docs), Restart Gateway, Quit. Builds without tray support run headless and log "running without tray".
  • Launch at login: enable it from the config page (or PUT /api/system/autostart). Supported on macOS (LaunchAgent), Linux (XDG autostart), and Windows (registry Run key); changes apply at next login.
  • Logs: GUI mode writes to ~/.picoclaw/logs/launcher.log (with launcher_panic.log for crashes). Use -console to print the banner and logs to the terminal instead.

Docker​

The Docker launcher profile starts the same Web UI inside a container:

docker compose -f docker/docker-compose.yml --profile launcher up -d
# Open http://localhost:18800

The container image includes both picoclaw and the launcher. See the Docker & Quick Start Guide for first-run steps (docker/data/config.json) and how the gateway profile differs from launcher.

Troubleshooting​

  • macOS blocks the launcher on first launch — approve it in System Settings → Privacy & Security → Open Anyway; see the repository README.
  • Dashboard keeps asking me to log in — sessions are invalidated on launcher restart; log in at /launcher-login.
  • "Start Gateway" is disabled — no usable default model is configured. Add a provider in /models or credentials in /credentials.
  • Remote clients cannot connect — start the launcher with -public (or -host) and check allowed_cidrs.
  • Port already in use — run with picoclaw-launcher -port 18900 or change the port in the config page.

For platform-specific issues, see Troubleshooting.