docs/en/cli/process.mdx
Process management commands control the CowAgent background process. These commands are only available in the terminal.
Start the CowAgent service. Runs as a background daemon by default and automatically tails logs.
cow start
Options:
| Option | Description |
|---|---|
-f, --foreground | Run in foreground, not as a background daemon |
--no-logs | Don't tail logs after starting |
Stop the running CowAgent service.
cow stop
Restart the CowAgent service (stop then start).
cow restart
Options:
| Option | Description |
|---|---|
--no-logs | Don't tail logs after restart |
Update code and restart the service. Automatically performs:
git pull)cow update
Check CowAgent service status, including process info, version, and current model/channel configuration.
cow status
View service logs.
cow logs
Options:
| Option | Description | Default |
|---|---|---|
-f, --follow | Continuously tail log output | No |
-n, --lines | Show last N lines | 50 |
Examples:
# View last 100 lines
cow logs -n 100
# Continuously tail logs
cow logs -f
Install Playwright and Chromium browser for the browser tool.
cow install-browser
If Cow CLI is not installed, you can use run.sh to manage the service:
| cow command | run.sh equivalent |
|---|---|
cow start | ./run.sh start |
cow stop | ./run.sh stop |
cow restart | ./run.sh restart |
cow update | ./run.sh update |
cow status | ./run.sh status |
cow logs | ./run.sh logs |