downcity
v1.0.494
Published
每一个文件仓库都是一个Agent,搭建你的Agent City
Downloads
5,498
Maintainers
Readme
downcity
install
npm install -g downcity
city -v
downcity -v
city与downcity指向同一个 CLI。
upgrade:
city updatequick start
1. initialize console
city init
city start2. initialize agent project
cd /path/to/your-repo
city agent create .3. configure model
Create project .env:
LLM_API_KEY=your_keyMinimal downcity.json:
{
"name": "my-agent",
"version": "1.0.0",
"model": {
"primary": "default"
}
}4. start agent
city agent startDebug in foreground:
city agent start --foregroundverify
city agent status
city agents
city service listtroubleshooting
city: command not found
Check npm global prefix and PATH:
npm config get prefix
echo $PATHIf the prefix bin is not in PATH, add it:
export PATH="$(npm config get prefix)/bin:$PATH"Then reload shell:
rehash
city -vsudo city: command not found
sudo may use a different PATH from your user shell.
Prefer running city directly. If you really need sudo, use:
sudo env "PATH=$(npm config get prefix)/bin:$PATH" city -vdowncity works but city does not
Reinstall the global package or relink it:
npm install -g downcityFor local source development:
cd /path/to/downcity/packages/downcity
npm install
npm run build
npm link
rehash
city -vapi
GET http://localhost:<agent-port>/health
GET http://localhost:<agent-port>/api/status
POST http://localhost:<agent-port>/api/execute
Content-Type: application/json
{"instructions":"Say hi"}Use city agent status or city agents to inspect the actual agent port.
debug
By default the runtime logs every LLM request payload (messages + system) to help debugging.
- Disable: set
llm.logMessages=falseindowncity.json
