The AI agent executes shell commands on remote machines (VMs, workstations, or servers) by connecting through the MCP server, enabling automated system administration and remote task execution.
The user installs the AI Commander host agent on the target machine and connects their AI client (e.g., Claude Code, Codex) via the MCP server. The agent verifies the connection and obtains a session code. The user then instructs the AI agent to run specific commands (e.g., 'Run npm test') by providing the machine code. The agent relays the command to the remote host, executes it, and returns the output to the user. Before acting, the user must ensure the target machine is online and the session code is valid.
- Category: Operations and infrastructure
- Effect: Changes data in your accounts
- MCP servers: AI Commander MCP (https://koskamo.com/explore/ai-commander-mcp)
- Source: Connect AI Clients & Run Long Remote Jobs — AI Commander (https://aicommander.dev/howto/)
- Source quote: "Run commands or long-running jobs using the machine code."
- Playbook page: https://koskamo.com/explore/use-cases/execute-remote-commands-via-ai-agent
Prompt: Connect to the remote machine with code AIC-7K3P-WX9M-RTBN and run 'sudo systemctl restart nginx'.