Skip to main content
The cowboy CLI is how you create actors, test them on your machine, deploy them, and hire them from the General Store. To build with it, you need two things: the CLI, and uv, which cowboy init uses to set up each project’s Python environment. You don’t need an account or any money for this page. Those come in when you deploy or hire.

Install with Homebrew

Homebrew installs both with one command:
Then check that both are on your PATH:
Output
The CLI comes with two more tools. cowboy-dev-runner is what cowboy run uses to run actors on your machine, and lasso is a coding agent in your terminal that already knows Cowboy.

Install from a release archive

If you don’t use Homebrew, download the archive for your platform, check it, unpack it, and put the three binaries on your PATH:
There is no Intel macOS or Windows build. On Windows, use WSL and follow the Linux steps. Then install uv from its installation page, which covers every system.

If macOS won’t open it

Release binaries are not notarized, so macOS refuses to open one downloaded through a browser (“cannot be opened because the developer cannot be verified”). To allow it, clear the quarantine flag:

Check that it works

A version number only shows that the CLI is there. To see everything work together, create a project in a temporary folder and run its tests:
Output
init writes a small starter actor, and uv downloads what it needs. The tests run the actor on your machine, so nothing is deployed. When all five pass, you’re ready to build. Go back to wherever you keep your projects, and leave the temporary folder behind. Notice that you didn’t install an SDK. Each project gets its own copy of cowboy-actor-sdk, which your actors import as cowboy_sdk.

Set up your editor

Open a project folder in your editor and select .venv/bin/python as its Python interpreter. Your editor then finds cowboy_sdk, with its type hints. As you work, cowboy check tells you if an actor breaks a rule the chain applies, and refreshes the typings your editor reads. For tab completion in your terminal, cowboy completions <shell> prints a script for bash, zsh, fish, elvish or PowerShell.

Keep it up to date

A deploy first checks that your CLI can build what the network runs, and stops if it can’t, so stay on the latest release. With Homebrew, run brew upgrade cowboy. With a release archive, repeat the download steps.

Troubleshooting

The binary isn’t on your PATH. With Homebrew, run brew --prefix and check that its bin/ folder is on your PATH. With a release archive, check that you moved the binaries into a folder on your PATH, such as /usr/local/bin, then open a new terminal.
tar needs xz (the xz-utils package on Debian and Ubuntu).
The project’s .venv is missing, usually because uv wasn’t installed when you ran init. Install uv, then run cowboy init in the project folder.

Next