Skip to Content

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 cmdop

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

ServicePurpose
terminalExecute commands, interactive sessions
filesRead, write, transfer files
downloadDownload files from URLs via remote
browserBrowser automation with capabilities API
agentAI-powered operations
extractStructured 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