Skip to Content

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 chat

What 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> exit

What commands can I use inside the chat?

CommandDescription
exit / quitExit chat
clearClear screen
historyShow command history
helpShow help

How do I target a specific machine?

Execute on a specific machine:

# Start chat targeting a specific machine cmdop chat --machine production-server

Or switch machines in chat:

cmdop> @production-server check disk usage

What 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 3000

Development

cmdop> run the tests cmdop> commit my changes with a good message cmdop> deploy to staging

File Management

cmdop> find all config files modified today cmdop> backup the database cmdop> compress logs older than 7 days

What 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-5

Custom 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 default

When 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

Learn more about custom providers

Last updated on