AI Chat
Natural language interface for executing commands.
Start Chat
cmdop chatChat Interface
cmdop> list all large files in /var/log
Finding large files in /var/log...
Found 3 files over 100MB:
- /var/log/syslog.1 (234 MB)
- /var/log/kern.log (156 MB)
- /var/log/auth.log.1 (112 MB)
cmdop> delete the oldest one
Deleting /var/log/auth.log.1...
Done.
cmdop> exitCommands in Chat
| Command | Description |
|---|---|
exit / quit | Exit chat |
clear | Clear screen |
history | Show command history |
help | Show help |
Target Machine
Execute on a specific machine:
cmdop chat --machine production-serverOr switch machines in chat:
cmdop> @production-server check disk usageCapabilities
The AI assistant can:
- File Operations - Create, read, modify, delete files
- System Administration - Manage services, users, permissions
- Development - Git operations, build commands, testing
- Monitoring - Check logs, processes, resources
- Networking - Configure network, check connections
Examples
System Administration
cmdop> show me memory usage
cmdop> restart nginx
cmdop> check what's using port 3000Development
cmdop> run the tests
cmdop> commit my changes with a good message
cmdop> deploy to stagingFile Management
cmdop> find all config files modified today
cmdop> backup the database
cmdop> compress logs older than 7 daysSafety
The AI will:
- Ask for confirmation before destructive operations
- Explain what commands will be executed
- Refuse to perform dangerous operations without explicit approval
Configuration
# ~/.cmdop/config.yaml
chat:
model: gpt-4
confirm_destructive: true
history_size: 1000