Metadata-Version: 2.4
Name: toolhive
Version: 1.0.0
Summary: Installer for the cmdop CLI — put an AI agent on a machine and reach it from anywhere
Project-URL: Homepage, https://cmdop.com
Project-URL: Documentation, https://docs.cmdop.com
Project-URL: Download, https://cmdop.com/download
Project-URL: Source (organization), https://github.com/commandoperator
License: MIT
Keywords: ai-agent,cli,cmdop,installer,mcp,remote-execution,self-hosted
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Build Tools
Classifier: Topic :: System :: Installation/Setup
Classifier: Topic :: System :: Systems Administration
Requires-Python: >=3.9
Description-Content-Type: text/markdown

# toolhive

![cmdop — messenger for AI agents](https://raw.githubusercontent.com/commandoperator/assets/b72b9ac6c796b958a038f684b323c7be49a49c9d/promo/social.webp)

**Installer for the [cmdop](https://cmdop.com) CLI** — put an agent on a machine, then reach that machine from anywhere.

```bash
pip install toolhive
toolhive
```

That's it. `toolhive` detects your platform, downloads the `cmdop` binary,
verifies it against the published checksums, installs it, and hands over.

> **Not affiliated with the ToolHive project.** If you are looking for
> [github.com/stacklok/toolhive](https://github.com/stacklok/toolhive), that
> is a different project — this package will not install it. This package is
> published by CMDOP and installs the `cmdop` CLI.

The hard part of running an agent somewhere is rarely starting it. It is getting back to it afterwards: the box is behind NAT, the tunnel expired, and the thing you actually wanted was a five-second question.

`cmdop` installs one binary that runs the agent and keeps the machine addressable. This package puts that binary on one machine; repeat it wherever you want reach.

**How does CMDOP compare?**
[CMDOP Skills vs OpenClaw: two approaches to AI agent skills →](https://docs.cmdop.com/blog/cmdop-skills-vs-openclaw)

## Reachable is a property of the machine, not of the session

A shell session is something you open and lose. A machine in a fleet stays addressable between conversations, so asking it something tomorrow costs nothing you have to set up again.

Nothing is copied to a central place to make that work. Each machine keeps its own files, tools and credentials; the fleet is how you address them.

## What is cmdop

One executable that is the agent, the relay, the local server and the web
console at once. There is no gateway, backend, database server or broker to
stand up — you add one binary to a machine you already own.

- run an AI agent on your own machine, with your own tools
- reach it from anywhere: terminal, files, remote execution
- connect machines into a fleet
- works with Claude Code and other agent engines under the hood

Full documentation: **[docs.cmdop.com](https://docs.cmdop.com)**

## Usage

```bash
toolhive                    # install cmdop (if needed), then run it
toolhive --install-only     # install, don't hand over
toolhive --prefix ~/bin     # choose the install directory
toolhive --force            # reinstall even if already present
toolhive --quiet            # print only the installed path
toolhive -- --help          # everything after `--` goes to cmdop
```

Default install directory is `~/.local/bin` (`%LOCALAPPDATA%\cmdop\bin` on
Windows). No `sudo`, no system directories.

## What it does, precisely

1. Detects your OS and architecture.
2. Fetches `SHA256SUMS` from `install.cmdop.com`.
3. Downloads the matching binary to a temporary file.
4. **Verifies the SHA-256 against the published checksum.** On mismatch it
   aborts and installs nothing.
5. Moves the verified binary into the install directory and marks it
   executable.
6. Runs it.

Supported: macOS (Apple Silicon, Intel), Linux (x64, arm64), Windows (x64).

## What it does not do

- **No side effects at install time.** `pip install toolhive` only unpacks
  files. Nothing is downloaded or executed until you run `toolhive`.
- **No network access on import.** `import toolhive` touches nothing.
- **No telemetry.** The package sends no analytics, ever.
- **No dependencies.** Standard library only, so there is nothing to conflict
  with what you already have installed.

## Python API

The installer is importable if you would rather script it:

```python
import toolhive

target = toolhive.detect()
print(target.label, target.asset)

result = toolhive.install()
print(result.path, result.sha256)
```

`toolhive.install()` raises `toolhive.InstallError` with a user-facing message
on any failure, and `toolhive.UnsupportedPlatform` when there is no published
binary for the current machine.

## Links

- Website — <https://cmdop.com>
- Documentation — <https://docs.cmdop.com>
- Downloads — <https://cmdop.com/download>

## License

MIT
