Skip to Content
CLI ReferenceOverview

CLI Reference

The ah command provides access to all Agent Harbor functionality.

ah [OPTIONS] [COMMAND]

Running ah without arguments launches the TUI dashboard.

Commands

Core

CommandDescription
agent startStart an agent session
agent recordRecord a session
agent replayReplay a recording
agent modelsList available models
agent branch-pointsExtract branch points
tuiLaunch TUI dashboard
task createCreate a new task
task getGet current task
configConfiguration management
healthSystem health checks
credentialsCredential management

Research & Web

CommandDescription
askAsk AI a question (quick answer from chat services or local agents)
researchDeep research using AI (produces research documents)

Agent Operations

CommandDescription
agent access-pointRun a local ACP access point daemon
agent enrollEnroll this host as a fleet follower
agent followersFleet follower operations (run, list, sync)
agent statusDisplay session/fleet status
agent ask-expertSubmit research brief to cloud AI service
agent follow-cloud-taskFollow and monitor a cloud coding task
agent auditQuery sandbox filesystem access audit logs
agent fsAgentHarborFS filesystem operations
agent workspaceWorkspace management
agent sandboxRun a command inside a sandbox

System

CommandDescription
acpConnect to an ACP access point
desktop login-sessionInteractive Linux browser login acquisition
repoRepository management
starting-pointsStarting-point management
browser-profilesBrowser profile management
webuiStart the Agent Harbor WebUI server
onboardLaunch the interactive onboarding wizard
completionsGenerate shell completions
gcGarbage collection
vmVM management
executorExecutor management

For browser-backed services on Linux, ah desktop login-session is the documented entrypoint for the managed interactive login flow. It can be run directly, or reached automatically when ah ask --allow-login, ah research --allow-login, or ah agent ask-expert needs the user to reauthenticate a managed profile. The same path can also be enabled persistently with ask.allow-login = true or research.allow-login = true in config. It selects between the local desktop and WebUI remote-view surfaces automatically, but REST-backed or non-interactive invocations stay on the remote-view path even if a display is present. Gemini uses a real Chromium window for its Google-backed OAuth path. On macOS M8, the broader managed login-acquisition flow now includes browser survey plus best-effort session import, but the interactive desktop login-session surface is still not available there. That M8 behavior applies to the managed flow, not to the older browser-profiles discover / browser-profiles import-cookies helpers, which still use their legacy Chromium/Firefox-only path.

Global Flags

See Global Flags for flags available on all commands.