AI Chat
TL;DR
CMDOP AI Chat provides a natural language interface for executing commands on remote machines. Start with cmdop chat and describe what you want in plain English. The AI handles file operations, system administration, development tasks, and monitoring. Target specific machines with --machine flag or @hostname syntax. Destructive operations require explicit confirmation.
Natural language interface for executing commands.
How do I start a chat session?
# Launch the interactive AI chat assistant
cmdop chatWhat does the chat interface look like?
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> exitWhat commands can I use inside the chat?
| Command | Description |
|---|---|
exit / quit | Exit chat |
clear | Clear screen |
history | Show command history |
help | Show help |
How do I target a specific machine?
Execute on a specific machine:
# Start chat targeting a specific machine
cmdop chat --machine production-serverOr switch machines in chat:
cmdop> @production-server check disk usageWhat can the AI assistant do?
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
What are some example prompts?
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 daysWhat safety measures are in place?
The AI will:
- Ask for confirmation before destructive operations
- Explain what commands will be executed
- Refuse to perform dangerous operations without explicit approval
How do I configure AI chat?
Model Selection
# Use a specific model or tier
cmdop chat --model @code
cmdop chat --model @balanced
cmdop chat --model glm-5Custom LLM Providers
You can route chat through any OpenAI-compatible provider (Z.AI, MiniMax, DeepSeek, Ollama, etc.) instead of the default SDKRouter:
# List providers
cmdop provider list
# Add a provider
cmdop provider add
# Activate it (chat will use this provider automatically)
cmdop provider set <id>
# Reset to SDKRouter default
cmdop provider defaultWhen a custom provider is active:
- Chat completions route through your chosen provider
- SDKRouter aliases (
@code,@balanced) are automatically substituted with the provider’s default model - Search, vision, and CDN still use SDKRouter
Last updated on