selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

Bub logo

Self-host Bub

0.5.1

Tiny agent runtime with a plugin system

AlphaOpen SourceApache-2.0
Updated9 hours ago
LanguagePython
Setup difficultyModerate
Stars
1 688
Docker
ghcr.io/bubbuild/bub
Install with Docker

What is Bub?

Bub is a Python-based agent runtime that lets developers build custom AI agents or use the included Bub application. It uses a pluggy-based plugin system where every turn stage is a hook that can be overridden. Context is managed through an append-only tape model rather than session state, making history auditable and forkable. The same pipeline drives CLI, Telegram, and custom channels. Bub can be installed via a shell script, uv tool, or Docker, and requires Python 3.12+. It integrates with MCP servers, local llama.cpp models, and various LLM providers through the Republic library. The project is in alpha (0.6.0a3) with Apache-2.0 license.

Should you self-host Bub?

Bub scores 53/100 on selfhost.directory (how scoring works) and ranks #81 of 209 in AI Agents. It has 1 688 GitHub stars.

It shipped 10 stable releases in the past year. The latest, 0.6.0a3, came out on 18 October 2026. New versions land roughly every 2 weeks.

Setup is moderate: expect some configuration beyond a single command. An official Docker image is available. It is Apache-2.0-licensed and written mostly in Python.

Its closest alternative on selfhost.directory is Orca (91/100, 108 446 stars). It scores higher overall, so compare the two before you pick. See Bub vs Orca side by side.

Features

  • ACP editor support
  • Agent SDK
  • Channel-agnostic pipeline
  • CLI Interface
  • Custom providers
  • FastAPI serving
  • Local llama.cpp support
  • MCP Integration
  • Observability
  • Plugin System
  • Spill sidecar
  • SQLite tape storage
  • Tape-based context
  • Telegram Channel

Bub README

How to install Bub

Install Bub with Docker

Docker installed
Environment variables
BUB_MODEL, BUB_API_KEY, BUB_TELEGRAM_TOKEN, BUB_HOME

docker run -d --name bub --restart unless-stopped
--env-file .env
-e BUB_HOME=/data
-v "$PWD":/workspace
-v ~/.bub:/data
-v ~/.agents:/root/.agents
ghcr.io/bubbuild/bub:latest

Run without Compose, same volumes and env file.

Bub releases & version history

More in CLI Tools

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…