Install Downcity CLI
RecommendedmacOS uses the native sandbox-exec boundary for Shell. No Windows sandbox package is installed.
npm install -g downcity
downcity --version- • Sandbox policies confine writes to the active Agent workspace.
Choose your current system, prepare the CLI and local sandbox, then start from a repository you already run.
01 / Install
The Downcity CLI is consistent across platforms. Each OS provides its own sandbox, so you only install components required by your system.
Requires Node.js 20 or later.
macOS uses the native sandbox-exec boundary for Shell. No Windows sandbox package is installed.
npm install -g downcity
downcity --version02
Initialize inside a real project so rules, permissions, and artifacts stay in the repo instead of a separate platform.
cd /path/to/your-repo
downcity agent create .03
Import the active City session into downcity, then start the runtime. Use foreground mode only when you need live logs in the current shell.
city federation login
city on
# for debugging in the foreground
city on --foreground04
After the Agent starts, select a Federation model for the current Session. The choice is stored with Session runtime data and applies on the next turn without restarting the Agent.
downcity agent model .
# SSH or automation
downcity agent model . --session-id <session-id> --set <model-id>05
先确认 City 宿主状态,再接入 Skills、渠道和定时任务。
city status
curl http://localhost:5314/healthContinue in the docs
Once these steps are working, move into the full quick-start guide and connect configuration, skills, and automation.