Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Installation & Building

Caliban is distributed as source. You build it with Cargo and install the resulting binary yourself. There are no pre-built releases yet.

Requirements

RequirementDetails
Rust toolchain1.95.0, pinned in rust-toolchain.toml
rustupInstalls the pinned toolchain automatically on first cargo invocation
GitTo clone the repository

rustup detects rust-toolchain.toml and downloads the exact channel automatically — no manual rustup install step required.

Clone

git clone https://github.com/caliban-ai/caliban.git
cd caliban

Build

Release binary

cargo build --release --bin caliban

The binary lands at target/release/caliban. Build time on a modern machine is a few minutes on a cold cache.

Development build

cargo build --workspace      # all crates, debug symbols
cargo test  --workspace      # full test suite

Put the binary on your PATH

# Option A — copy to a directory already on your PATH
cp target/release/caliban ~/.local/bin/caliban

# Option B — add target/release to PATH (in your shell profile)
export PATH="$PWD/target/release:$PATH"

Smoke test

caliban --version

You should see a version string. If you get a "command not found" error, confirm target/release/ is on your PATH.

Optional: cloud transport feature flags

By default, caliban connects to providers over their public HTTPS APIs. Cloud-managed transports (AWS Bedrock, Google Vertex AI, Azure OpenAI) require optional Cargo feature flags. The exact flag names per crate are:

TransportFeature flag
Anthropic via AWS Bedrockcaliban-provider-anthropic/bedrock
Anthropic via Google Vertex AIcaliban-provider-anthropic/vertex
OpenAI via Azurecaliban-provider-openai/azure
Gemini via Google Vertex AIcaliban-provider-google/vertex

To build a binary with multiple cloud transports enabled at once:

cargo build --release --bin caliban \
  --features caliban-provider-anthropic/bedrock,caliban-provider-anthropic/vertex,\
caliban-provider-openai/azure,caliban-provider-google/vertex

Cloud transport features are not built in default CI runs. They are exercised by a weekly cron job and by manual dispatch of the ci-cloud workflow.

Helper scripts

The scripts/ directory contains these helpers:

ScriptPurpose
scripts/check.shMirrors the full PR CI suite locally: cargo fmt --check, cargo clippy, cargo build, cargo test. Accepts --cloud to additionally run the cloud-features build, and --no-test to skip the test step.
scripts/coverage.shMeasures workspace line coverage with cargo-llvm-cov and fails below the COVERAGE_MIN floor — the same gate CI enforces. Accepts --html/--open to render an HTML report and --no-fail to report without gating. Writes lcov.info + coverage.json under target/llvm-cov/.
scripts/coverage-report.pyRenders target/llvm-cov/coverage.json into the Markdown coverage report CI posts as a sticky PR comment (overall stats, per-crate breakdown, notable gaps). Run after coverage.sh to preview it locally.

Run scripts/check.sh --help or scripts/coverage.sh --help for the full usage summary.

Headless / CI builds

On headless Linux hosts, the default binary features include clipboard (the arboard crate). If your CI image lacks the X11/Wayland clipboard libraries, build with --no-default-features to avoid the link-time dependency.