Koskamo

Agent use case: Execute remote commands via AI agent

Document v1 · published by Koskamo · updated 2026-10-18

Original source

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.

Prompt: Connect to the remote machine with code AIC-7K3P-WX9M-RTBN and run 'sudo systemctl restart nginx'.

Source and provenance

Original source
aicommander.dev
Published on Koskamo by
Koskamo
Citation version
Document v1
Reuse
Check the original source’s reuse terms.

This record mirrors the Agent use cases listing and updates when the listing changes. To correct it, suggest an edit on the listing.

Version history

  1. Synced from the directory

    Version 1

Agent use case: Execute remote commands via AI agent — Koskamo