Skip to main content

cmdop (Python)

Your machines' tools from a program: the same tools agents use through MCP, typed from Rust.

import cmdop

with cmdop.connect() as c:                 # CMDOP_TOKEN, CMDOP_URL
    box = c.machine("box")
    print(box.run("uptime").stdout)
    run = box.stream("make test")
    for piece in run:
        print(piece.data, end="")
    print(run.result.exit_code)

Every tool is a typed method on a machine (box.fs_read(path=...)), also under its group (box.fs.read(path=...)); box.screenshot() decodes the picture. The tools the server answers itself are methods of the client, with no machine: c.machines_list(), c.tasks_list(), c.history_search(text=...), c.docs_read(path=...) (the docs, contents first) and c.showtime_guide(language=...), the guide for a short live demo of what your machines can do. A machine also lets you ask the AI agent programs installed on it (Claude Code, Codex), the same way for each: box.agent.list(), box.agent.prompt(prompt=..., session=...) (the answer and a session to continue), box.agent.sessions() and box.agent.cancel(task=...); the agents answer in words or read files, never run commands. cmdop.connect_async() is the same, awaited. src/cmdop/generated/ is generated by make sdk-generate; never edit it.

The same tools over MCP

CMDOP is an MCP server too: an agent reaches these tools at $CMDOP_URL/mcp (streamable HTTP) with an agent token as Authorization: Bearer, the same kind of token this package takes, under the same grant and record. The command or settings for each client: https://docs.cmdop.ai/guides/connect

Website: https://cmdop.ai · Docs: https://docs.cmdop.ai/reference/sdk/python · License: MIT

Metadata

Release files for cmdop 3.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cmdop 3.5.0
File Size Uploaded Provenance Actions
cmdop-3.5.0.tar.gz 32.0 kB Without provenance Details for cmdop-3.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cmdop 3.5.0
File Interpreter ABI Platform Actions
cmdop-3.5.0-py3-none-any.whl Python 3 none any Details for cmdop-3.5.0-py3-none-any.whl

Total release size: 73.4 kB

Release files / cmdop-3.5.0.tar.gz

Download URL cmdop-3.5.0.tar.gz
Size 32.0 kB
Tags Source
SHA-256 checksum
How to use checksums
963f79c88dd364bd9b42da07a2d709f58600e62d83ef0a511faf325abfad096c
BLAKE2b-256 checksum
How to use checksums
537e5a1acdc1f255f8cd2c6e272ec3c8437ce718e7613a7d3acc71f41fcdcc8c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.3

Release files / cmdop-3.5.0-py3-none-any.whl

Download URL cmdop-3.5.0-py3-none-any.whl
Size 41.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e879291b945b099ca184273ced4a39c2c5d0b9986d6351d8316c448a68f91013
BLAKE2b-256 checksum
How to use checksums
dcee44fc165b385bab1a2fedbeee9979b472f2419bc9ef2c7794fe3170de7e0c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.3

Security for cmdop 3.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page