Vicoa Logo
Vicoa

CLI Commands

Reference for the Vicoa CLI commands that list and stop running agent sessions on a machine.

A machine can have two kinds of session running at once:

  • Daemon sessions — headless agents the vicoa daemon started in response to a remote "New Session" request from the mobile app or web dashboard.
  • TUI sessions — interactive agents you started yourself in a terminal with vicoa, vicoa codex, or vicoa opencode.

Pre-requisite: Vicoa CLI version > 1.4.1

vicoa --version 
# Make sure it is > 1.4.1

vicoa ls

List the active agent instances on the current machine, grouped by kind.

vicoa ls
DAEMON SESSIONS (2)
  ID           AGENT      PID      AGE      PROJECT
  -------------------------------------------------
  7d4577a7     claude     10573    1d       ~/projects/my-app
  abcbe849     codex      74527    3h       ~/projects/api

TUI SESSIONS (1)
  ID           AGENT      PID      AGE      PROJECT
  -------------------------------------------------
  pid:3415     claude     3415     2h       —

Columns:

  • ID — the first 8 characters of the session ID. TUI sessions show pid:<n> instead, since their session ID isn't visible to vicoa ls.
  • AGENTclaude, codex, opencode, or amp.
  • PID — the operating-system process ID.
  • AGE — how long the session has been running.
  • PROJECT — the working directory ( when not detectable).

For scripting, output raw JSON instead of the table:

vicoa ls --json

Works on macOS, Linux, and Windows.

vicoa stop

Stop the daemon, the daemon's headless sessions, or both. Every vicoa stop command asks for confirmation before doing anything.

vicoa stop daemon

Stop the background daemon. Any headless sessions it started keep running.

vicoa stop
# or, equivalently
vicoa stop daemon
Stop the Vicoa daemon (pid 1234)? [y/N]

vicoa stop with no argument defaults to daemon.

vicoa stop sessions

Stop every headless session the daemon started. The daemon itself keeps running.

vicoa stop sessions
Stop 3 headless session(s)? [y/N]

Limit it to one agent type with --agent:

vicoa stop sessions --agent claude

Valid values are claude, codex, opencode, and amp.

Each session is asked to shut down gracefully first; if it doesn't exit within a short grace period it is force-stopped. Stopped sessions are marked with a terminal status in the dashboard.

vicoa stop all

Stop the headless sessions first, then the daemon.

vicoa stop all

Skipping confirmation

Pass -y (or --yes) to skip the confirmation prompt — useful in scripts.

vicoa stop sessions --agent codex --yes

vicoa disconnect

Alias for vicoa stop daemon. Stops only the daemon.

vicoa disconnect