small gleam coding and persistent agent daemon with a detachable cli and a canvas ui forked from okami.mom/albedo
albedo docs install.md
3.0 kB · 85 lines
Markdown
at main

Install #

Albedo is pre-alpha and runs on Linux and macOS. The Nix package is the easy way: it carries everything Albedo needs. Without Nix you build it from a checkout.

With Nix #

Try it without installing anything:

nix run git+https://tangled.org/okami.mom/albedo

Install it into your profile:

nix profile install git+https://tangled.org/okami.mom/albedo
albedo

The package installs albedo and four companion commands. albedo-tui opens the terminal client, albedo-web serves the browser client, albedo-acp speaks ACP over stdio, and albedo-server runs the daemon in the foreground. It also includes Python for the kernel and headless Chrome for browser work.

To declare Albedo in your configuration and run its daemon as a login service, see Manage Albedo with home-manager.

Without Nix #

The deb, rpm, and Arch packages install albedo-web, albedo-acp, albedo-server, and albedo-tui under /usr/bin. Before upgrading, move any private wrappers you placed at those paths into ~/.local/bin. Arch refuses the conflicting files. Debian and RPM upgrades can replace them.

To build from a checkout, you need:

git clone https://tangled.org/okami.mom/albedo
cd albedo
uv sync --locked --project python
(cd apps/albedo && gleam build)
go -C cli install -ldflags "-X main.buildRoot=$(pwd)" ./cmd/albedo...
albedo

go install puts all five commands in ~/go/bin by default. Keep them together and put that directory on your PATH. If your update script builds only ./cmd/albedo, change it to ./cmd/albedo... before upgrading. The -ldflags part tells the client where the checkout is, because the daemon runs from it: keep the checkout, and keep gleam on your PATH. If you move the checkout, set ALBEDO_ROOT to its new path. Run uv sync --locked --project python again when an update changes the kernel lockfile. If you use the web client, also rebuild it and restart the gateway after an update. See Updating the web client.

First run #

albedo login   # add a model provider
albedo         # open the terminal client in the current folder

albedo starts the daemon when none is running, and the daemon keeps your agents working after you close the client. albedo daemon --stop stops it. See Daemon attachment and local startup for how the client finds, starts, and replaces a daemon.

From here, open the web client, or run albedo --help for the rest of the commands.

Optional: code review images #

The view extension lets an agent review their own changes as highlighted images. It is part of the Nix package. From a checkout it needs cargo:

native/render/install.sh   # then enable view in /extensions