Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.
Service Operations and Troubleshooting
Runtime Layout
Avibe stores runtime data under ~/.avibe/ by default, or under AVIBE_HOME when that env var is set. Existing default ~/.vibe_remote/ homes may be migrated to ~/.avibe/ with ~/.vibe_remote kept as a back-symlink. The only paths an agent normally needs:
~/.avibe/config/config.json— global config; mutate throughPOST /api/config, not by editing the file~/.avibe/logs/vibe_remote.log— main application log; read viaPOST /api/logs~/.avibe/screenshots/— default output directory forvibe screenshot
Agent harness state is managed through vibe agent run, vibe task, vibe watch, and vibe runs (or their API endpoints), not by editing persistence files. Everything else under state/ and runtime/ is internal — treat it as opaque.
API Endpoint Reference
Health and inspection
GET /health- returns
{"status":"ok"}when the Web UI server is reachable
- returns
GET /status- returns runtime status, running state, PID metadata, and last action
GET /api/doctor- reads the latest persisted doctor result
POST /api/doctor- runs doctor immediately and returns the result
POST /api/logs- payload:
{"lines": 500, "source": "service"} sourcecan beserviceor another source listed in the response; useallfor aggregated logs
- payload:
GET /api/version- returns current version and update metadata
GET /api/csrf-token- issues the
vibe_csrf_tokencookie and returns the matching token value forX-Vibe-CSRF-Token
- issues the
GET /api/platforms- returns the static catalog of supported IM platforms only (id, config_key, title/description i18n keys, credential field names, capabilities). It does not include enablement or credential-presence state — fetch
/api/configto see which platforms are enabled and whether credentials are configured.
- returns the static catalog of supported IM platforms only (id, config_key, title/description i18n keys, credential field names, capabilities). It does not include enablement or credential-presence state — fetch
Control endpoints
POST /api/control- payload:
{"action": "start"},{"action": "stop"}, or{"action": "restart"}
- payload:
POST /api/ui/reload- payload:
{"host": "127.0.0.1", "port": 5123}
- payload:
POST /api/upgrade- payload:
{} - triggers an in-place upgrade to the latest released version using the same code path as
vibe upgrade
- payload:
Avoid these for routine configuration. POST /api/control starts, stops, or restarts the service. POST /api/ui/reload restarts only the Web UI server to apply host or port changes. POST /api/upgrade reinstalls Avibe and then restarts the service. Use them only with explicit user intent or a concrete need.
When the restart is initiated by an agent from an active conversation, use the CLI delayed form vibe restart --delay-seconds 60 so the transport does not cut off the current reply.
CLI Reference
Use the CLI only when the Web UI API cannot cover the request, when the user explicitly asks for the command, or when restarting/upgrading from an active conversation.
Service lifecycle:
vibe— start Avibe if needed and open the local Web UI; it does not stop an already-running servicevibe status— print service status, PID metadata, and last actionvibe stop— stop main service, Web UI, and any background helpersvibe restart— stop and re-start the service. Pass--delay-seconds Nwhen triggering from inside an active conversation so the current reply has time to deliver before the restart lands.vibe doctor— run diagnostics and print the latest resultvibe version— print the installed version
Updates:
vibe check-update— query the release feed and print whether an upgrade is availablevibe upgrade— reinstall Avibe to the latest release. The CLI does not restart the service for you; it prints "Please restart vibe..." and exits. Runvibe restart(orvibe restart --delay-seconds 60from inside an active conversation) yourself after the upgrade reports success. The Web UI'sPOST /api/upgradeendpoint is the path that performs an automatic restart.
Remote access:
vibe remote— guided Avibe Cloud pairingvibe remote pair <key>— pair using an existing one-time keyvibe remote status [--json]— show tunnel + OIDC statevibe remote start/vibe remote stop— manage the cloudflared tunnel after pairing
Screenshots:
vibe screenshot— capture the local desktop to~/.avibe/screenshots/vibe screenshot --output <path>/--json— pick an explicit output path or get machine-readable output
Scheduled tasks:
vibe task add,vibe task update,vibe task list [--session-id <id> | --global] [--include-finished] [--page N] [--limit N],vibe task show <id>,vibe task run <id>,vibe task pause <id>,vibe task resume <id>,vibe task remove <id>- Switching a task between message and command form, or changing
--on-failure, is rejected — remove and recreate.
Agent runs:
vibe agent run— run one Agent job now. Runs are async by default; pass--synconly when the CLI should wait.vibe runs list [--session-id <id> | --global],vibe runs show <id>,vibe runs cancel <id>— inspect and manage concrete Agent Run records
Watches:
vibe watch add,vibe watch update <id>,vibe watch list [--session-id <id> | --global] [--include-finished] [--page N] [--limit N],vibe watch show <id>,vibe watch pause <id>,vibe watch resume <id>,vibe watch remove <id>
For any subcommand, prefer <command> --help before composing a new invocation. Harness commands default to this Agent Session inside an Avibe-injected Agent shell. Use --session-id only to target a different existing Session, --same-scope or --scope-id when creating a Session in a visible scope, and --no-callback only when an async Agent run will be inspected later through vibe runs. Use --message / --message-file for user messages. vibe task add and vibe watch add take --name; only vibe task add takes --cron / --at / --timezone; vibe agent run takes --sync; and vibe watch add takes its own waiter options (--shell or a positional command after --, --cwd, --timeout, --forever, --lifetime-timeout, --retry-exit-code, --retry-delay). vibe task add also accepts --shell or a command after --, plus --on-failure {none,agent} and a per-run --timeout; a pure command task takes no session, scope, or agent flags. Do not copy flags between task, watch, and agent-run commands without checking help.
Troubleshooting
Start with evidence:
GET /statusPOST /api/doctorPOST /api/logswith a small line count and focused source- read back
/api/config,/api/settings, or/api/usersfor the affected scope
Common cases:
- config does not apply: verify the API read-back first; only restart if the changed field is startup-only
- backend missing: confirm backend is enabled, CLI path is executable, and
/api/cli/detectfinds it - channel does not respond: verify
/api/settings?platform=<platform>contains the channel andenabledis true - wrong repository/cwd: inspect
custom_cwdandruntime.default_cwd - DM access denied: inspect
/api/users?platform=<platform>and bind-code state - platform cannot reach API: inspect
proxy_urlon that platform's config block; check logs for proxy/TLS errors; for SOCKS proxies confirmaiohttp_socksis installed - remote URL is unreachable:
GET /api/remote-access/statusshould showrunning: trueandbinary_found: true; if not, runPOST /api/doctorand check the configuredcloudflared_path - remote session expired: instruct the user to re-sign in at the public URL (24h TTL with sliding renewal); use
POST /auth/logoutto clear a stale session on the current device - upgrade did not apply: inspect the response from
POST /api/upgrade(auto-restart on success) orvibe upgrade(does not auto-restart — runvibe restartmanually), then verify withvibe statusthat the new PID is running - startup failure: use
GET /status,POST /api/doctor, then inspect logs
Do not use vibe restart, POST /api/control {"action":"restart"}, or POST /api/ui/reload as a first response to config problems.
If a restart is still required and you are replying through an active Avibe conversation, use vibe restart --delay-seconds 60 so the current reply can be delivered before the restart lands.