CommandsAgent
city agent start
Start agent process (background or foreground)
city agent start
Start the process for a target agent.
This page remains as a command entry point. For the fuller explanation, see Start and Stop an Agent and CLI / start.
Usage
city agent start [path] [options]Key options
-h, --host <host>: service host (default0.0.0.0)--foreground [enabled]: run in foreground
Behavior
- Checks console process before start.
- If
pathis provided, that directory is used directly. - If
pathis omitted and current directory is already an initialized agent project, current directory is used. - If
pathis omitted and current directory is not an agent project, the CLI opens an interactive selector from registered agents. - Agent port is always auto-assigned by console.
- Project
downcity.json.start.host/portis not required for daemon startup. - With
--foreground, runs in current terminal; otherwise runs in background mode. --foregroundis a temporary terminal session; once terminal exits, the process exits too.
Related commands
Example Output
$ city agent start .
downcity v1.0.437
Agent daemon started lucas_whitman
project /Users/you/Documents/bots/lucas_whitman$ city agent start .
downcity v1.0.437
❌ console is not running. Please run `city start` first.