cmdop
TL;DR
The Cmdop Python SDK (pip install cmdop) provides async-first access to remote machines
via gRPC. Use AsyncCMDOPClient to execute terminal commands, transfer files, automate
browsers, and run AI agents with Pydantic-typed structured output. Supports Python 3.10+
with both cloud and local connection modes.
pip install cmdopWhat does a quick start look like?
from cmdop import AsyncCMDOPClient
# Connect to the CMDOP cloud service using your API key
async with AsyncCMDOPClient.remote(api_key="cmd_xxx") as client:
# Select the remote machine to operate on
await client.terminal.set_machine("my-server")
# Execute a shell command and capture output and exit code
output, code = await client.terminal.execute("uptime")
print(output)What services are available?
| Service | Purpose |
|---|---|
terminal | Execute commands, interactive sessions |
files | Read, write, transfer files |
download | Download files from URLs via remote |
browser | Browser automation with capabilities API |
agent | AI-powered operations |
extract | Structured data extraction |
What connection modes are available?
Remote (Cloud)
# Connect to a remote machine through the CMDOP cloud relay
client = AsyncCMDOPClient.remote(api_key="cmd_xxx")Local (Agent)
# Connect directly to a locally running CMDOP agent
client = CMDOPClient.local()Next Steps
Install and configure the SDK
Execute commands and manage sessions
File operations and transfers
AI-powered automation
Last updated on