Agent Management
The Cmdop agent runs in the background, maintaining connectivity.
Start Agent
cmdop agent startRun in foreground for debugging:
cmdop agent start --foregroundStop Agent
cmdop agent stopRestart Agent
cmdop agent restartCheck Status
cmdop agent statusOutput:
Agent Status: Running
PID: 12345
Machine ID: abc123xyz
Connected: Yes
Last Ping: 2s ago
Uptime: 4h 23mView Logs
cmdop agent logsFollow logs in real-time:
cmdop agent logs -fLog Locations
| Platform | Location |
|---|---|
| macOS | ~/Library/Logs/cmdop/agent.log |
| Linux | ~/.cmdop/logs/agent.log |
| Windows | %APPDATA%\cmdop\logs\agent.log |
Auto-Start
macOS (launchd)
cmdop agent installLinux (systemd)
cmdop agent install --systemdWindows (Service)
cmdop agent install --serviceUninstall Auto-Start
cmdop agent uninstallAgent Configuration
Config file: ~/.cmdop/config.yaml
agent:
log_level: info
reconnect_interval: 5s
ping_interval: 30s
connection:
relay_url: wss://relay.cmdop.com
api_url: https://api.cmdop.comResource Usage
The agent is designed to be lightweight:
- Memory: ~20-50 MB
- CPU: Less than 1% idle
- Network: Minimal (WebSocket keepalive)
Troubleshooting
Agent Won’t Start
- Check if already running:
cmdop agent status - Check logs:
cmdop agent logs - Verify credentials:
cmdop login
Connection Issues
- Check network:
curl https://api.cmdop.com/health - Check firewall settings
- Try restart:
cmdop agent restart