Skip to content
codeband is pre-release. These docs describe its first release, and some of what they describe is still being built.

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.

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.

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 agents

uv.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.

  1. Create a factory

    Write the factory my-pipelines with codeband init:

    Terminal window
    uvx --from codeband-sdk codeband init my-pipelines
    cd my-pipelines

    uvx runs codeband from the newest codeband-sdk without installing it. codeband init makes 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-pipelines
    uv run codeband dev

    The folder holds a pyproject.toml that pins codeband-sdk to the version that ran the command, and the package my_pipelines with the pipeline implement and the agent implementer. Python SDK shows the layout. codeband init runs no package manager and no git.

  2. Install codeband-sdk

    Install the pinned package into the factory:

    Terminal window
    uv sync

    uv 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 in uv.lock, and prints its progress and the packages it installed. uv run also does this on its first call, so you can skip this step.

    Commit pyproject.toml and uv.lock with your pipelines, so that everyone who works on the factory runs the same version of codeband.

  3. Check that it worked

    In my-pipelines, run:

    Terminal window
    uv run codeband --version

    The command prints the version of codeband, the same version that uv.lock pins for codeband-sdk, and exits with code 0.

    The pipeline implement runs one agent step of implementer on Claude Code. uv run codeband dev starts it in the factory, and uv run codeband new pipeline NAME and uv run codeband new agent NAME add more. Build a pipeline that files tickets writes a first pipeline of your own.

  4. 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 list

    The 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. ok means 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 STATUS
    claude 2.1.331 ok

    When codeband can’t run a harness, its row shows - as the version and the error as the status. Without Claude Code on your PATH, the row reads:

    Output
    claude - run claude --version: exec: "claude": executable file not found in $PATH

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:

Terminal window
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.

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.

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.

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.