Install codeband
Install codeband before you write pipelines in a folder of your own. codeband has no install of its own: you add the Python package codeband-sdk to each factory, and it brings the codeband command with it. The Quickstart needs none of this, because it builds and runs codeband inside its clone. At the end of this page, uv run codeband --version prints the version of codeband in your new factory my-pipelines, which holds a first pipeline that runs. If a function step fails, see Troubleshooting at the end of this page.
Before you start
Section titled “Before you start”| Requirement | Version | Check |
|---|---|---|
| uv | any recent | uv --version |
| Operating system | macOS, or Linux with glibc or musl, on arm64 or x86_64 | uname -sm |
| Python | 3.12 or later | uv python find '>=3.12' |
You don’t need to install Python yourself: uv downloads a Python when it finds none that fits. You need no Go, no just and no clone of codeband. codeband-sdk has no package for other platforms, so on Windows, use WSL.
What you install
Section titled “What you install”A factory is the folder that holds your pipelines and the settings that list them. The package codeband-sdk goes into the Python environment of each factory and holds both parts of codeband. The codeband command runs the codeband binary, which is the CLI and the daemon. The Python SDK is the codeband module that your pipeline code imports, together with codeband-codeserver, the code server that codeband codeserver and codeband dev start.
my-pipelines/├── pyproject.toml names codeband-sdk as a dependency and lists the pipelines├── uv.lock pins the version of codeband-sdk├── .venv/ holds the codeband command and the Python SDK└── my_pipelines/ holds your pipelines and agentsuv.lock pins the CLI, the daemon, the SDK and the code server to one version, so their versions never differ within a factory. You run codeband in the factory with uv run codeband, not from a folder on your PATH.
-
Create a factory
Write the factory
my-pipelineswithcodeband init:Terminal window uvx --from codeband-sdk codeband init my-pipelinescd my-pipelinesuvxrunscodebandfrom the newestcodeband-sdkwithout installing it.codeband initmakes the folder, writes the factory and prints the next steps:Output Wrote the factory my-pipelines with the pipeline implement and the agent implementer.Next steps:cd my-pipelinesuv run codeband devThe folder holds a
pyproject.tomlthat pinscodeband-sdkto the version that ran the command, and the packagemy_pipelineswith the pipelineimplementand the agentimplementer. Python SDK shows the layout.codeband initruns no package manager and no git. -
Install codeband-sdk
Install the pinned package into the factory:
Terminal window uv syncuv creates the Python environment in
.venv, picks the package for your operating system and processor, and installs it with its dependencies. It pins the versions inuv.lock, and prints its progress and the packages it installed.uv runalso does this on its first call, so you can skip this step.Commit
pyproject.tomlanduv.lockwith your pipelines, so that everyone who works on the factory runs the same version of codeband. -
Check that it worked
In
my-pipelines, run:Terminal window uv run codeband --versionThe command prints the version of codeband, the same version that
uv.lockpins forcodeband-sdk, and exits with code 0.The pipeline
implementruns one agent step ofimplementeron Claude Code.uv run codeband devstarts it in the factory, anduv run codeband new pipeline NAMEanduv run codeband new agent NAMEadd more. Build a pipeline that files tickets writes a first pipeline of your own. -
Optional: Check the harnesses
An agent runs on a harness, an existing agent tool that codeband drives, such as Claude Code. Install the harnesses you want to use as their own docs describe. Then list the harnesses and whether codeband can run them on this machine with
codeband harness list:Terminal window uv run codeband harness listThe command prints a table with one row for each harness that codeband drives, also for a harness that is not installed, and exits with code 0.
okmeans codeband found the harness and read its version.codeband drives Claude Code and Codex CLI. The example shows only the row of Claude Code,
claude:Output NAME VERSION STATUSclaude 2.1.331 okWhen codeband can’t run a harness, its row shows
-as the version and the error as the status. Without Claude Code on yourPATH, the row reads:Output claude - run claude --version: exec: "claude": executable file not found in $PATH
Update codeband
Section titled “Update codeband”pyproject.toml pins codeband-sdk to one version, so uv moves it only when you name a new one. To update, give uv the version you want, such as the newest one on PyPI:
uv add 'codeband-sdk==VERSION'Put the version in place of VERSION. uv writes it to pyproject.toml and uv.lock and installs it in .venv. If a daemon or a code server runs, for example from the Quickstart, restart both. Press Ctrl-C in the terminal of each, then start both with uv run codeband dev in your factory, or the daemon with uv run codeband daemon and the code server with uv run codeband codeserver. The daemon runs the old version until it starts again, and the code server loads the updated SDK only when it starts.
Troubleshooting
Section titled “Troubleshooting”error: Failed to spawn: `codeband`
Section titled “error: Failed to spawn: `codeband` ”uv run found no codeband command and exits with code 2. Either you ran it outside the factory, or the factory doesn’t have codeband-sdk yet. Change to my-pipelines, and run uv add codeband-sdk there if pyproject.toml doesn’t list it.
error: my-pipelines holds '.gitignore'
Section titled “error: my-pipelines holds '.gitignore'”codeband init writes only into an empty or new folder, and this one holds the file it names. It wrote nothing and exits with code 1. Give codeband init the name of a new folder, or remove the files from the folder.
command not found: codeband
Section titled “command not found: codeband”zsh prints command not found: codeband, and bash prints codeband: command not found. You ran codeband without uv run. The command is in the Python environment of the factory, not in a folder on your PATH. Run uv run codeband in the factory.