Skip to content
Projets

À propos

Open-source, local-first Rust workbench for always-on AI agents — explicit work items, event-driven wait/wake, and reliable follow-through.

IA et apprentissage automatique

Comment ces chiffres sont mesurés

Progression mesurée des étoiles

in 24h
0
in 7 days
+8
in 15 days
+11
in 1 month
+16

Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.

README.md

Original

Holon

English | 中文

ReleaseLicense

Run self-hosted, always-on AI agents on your own computer or server.

Holon is an open-source, local-first workbench for always-on AI agents, powered by its own Rust agent runtime. Individuals and teams can assign explicit work items, keep durable state across sessions, and let agents wait on events and follow through—without wrapping a third-party coding CLI.

Evaluating self-hosted AI assistants or agent runtimes? Read Architecture comparison: self-hosted AI assistants vs. agent runtimes.

What does Holon provide?

Capability What it means
Continuous agent workspace Each agent has its own continuous working context in Holon, instead of restarting with every terminal, request, or client connection.
Work-first task model Holon organizes tasks, waits, execution progress, and final delivery as explicit Work, instead of leaving them scattered across conversations.
Event-driven wait and wake Agents can wait for task results, external events, or operator input, then return to the corresponding work when the condition is satisfied.
Explicit context and trust boundaries Holon distinguishes operator input, external events, tool results, and internal execution traces so information from different origins is not mixed together.
Local-first execution environment Holon is built for local repositories, shell, worktrees, and development toolchains, letting agents execute tasks in the real working environment.

Keep agent work alive in your local workspace.

Quickstart

Holon provides two interaction modes: TUI (terminal) and Web GUI (browser).

1. Install

brew tap holon-run/tap && brew install holon

Or install with npm (Node.js 18+):

npm i -g @holon-run/holon

Or download binaries from GitHub Releases.

2. Configure a provider

holon onboard

This walks through provider credential setup interactively. You can also configure providers through the Web GUI Settings page after starting the daemon. See Configuration Reference and Web GUI guide for more.

3. Start the daemon

holon daemon start

4a. TUI (terminal)

holon tui

Select an agent and start working. Agents keep running after you disconnect.

4b. Web GUI (browser)

Open http://localhost:7878. Create an agent and work through a chat interface with built-in file browser, task tracking, and more.

For more: TUI guide · Web GUI guide · First agent

Local App reference

The reference Local App fixture lives in examples/local-app/agent-workbench. Copy it into an Agent's agent_home/apps/ directory as agent-workbench, start Holon, and open:

/apps/<agent-id>/agent-workbench/

It demonstrates the Local App lifecycle: discovery, static HTML/CSS/JavaScript hosting, Holon.context(), Holon.request(), and Holon.events. The end-to-end fixture test can be run with:

cargo test --test http_apps apps_reference_workbench_end_to_end

Hosted apps load the browser artifact from /apps/<agent-id>/<app-id>/holon.js. The artifact installs window.Holon and uses the existing same-origin session boundary; App requests do not become operator input and do not grant additional permissions.

Install

Holon is distributed as prebuilt binaries, npm packages, and container images.

brew tap holon-run/tap
brew install holon
holon --help

Or install the npm meta package (Node.js 18+):

npm i -g @holon-run/holon

npm selects the platform binary package for the current system (@holon-run/holon-darwin-arm64, @holon-run/holon-darwin-x64, or @holon-run/holon-linux-x64-gnu) through optionalDependencies, with no install-time scripts or downloads. The launcher passes argv, stdio, exit codes, and signals straight to the binary. Upgrade with npm i -g @holon-run/holon@latest. Linux requires glibc 2.35 or newer; musl (Alpine) and linux-arm64 builds are not published yet.

A one-command installer is also available (Linux amd64, macOS amd64/arm64):

curl -fsSL https://get.holon.run/install.sh | sh

The installer downloads the latest stable release, verifies the archive sha256, and installs holon into ~/.local/bin without sudo (--prefix <dir> or HOLON_INSTALL_DIR overrides; a PATH hint is printed when needed). The same script is attached to every stable release, so https://github.com/holon-run/holon/releases/latest/download/install.sh serves it as well. Set HOLON_DOWNLOAD_BASE to a mirror of the release download layout. Run install.sh --help for --version, --dry-run, and the macOS app options.

You can also download prebuilt binaries for Linux amd64, macOS amd64, and macOS arm64 from GitHub Releases. The Linux amd64 binary supports Ubuntu 22.04 or newer (glibc 2.35 or newer).

macOS 13 or later users on Apple Silicon or Intel Macs can install the universal Holon-<version>.dmg from the same release page. The native menu bar app controls the same daemon as the CLI, supports launch at login, and can install its bundled CLI into ~/.local/bin without overwriting another installation.

Update channels

CLI and app updates belong to the channel that installed them and never overwrite each other:

  • Package-manager installs (Homebrew, npm) update through the same package manager (brew upgrade holon, npm i -g @holon-run/holon@latest).
  • install.sh installs update by re-running the installer (latest stable by default; pin with --version vX.Y.Z).
  • Holon.app updates itself via Sparkle and bundles its own runtime under Contents/Resources/bin/holon; CLI updates never touch it, so the app and the CLI can report different versions while controlling the same daemon.

The examples below assume holon is installed on PATH.

Docker

Release images are published to GitHub Container Registry. The container runs holon serve in the foreground and requires a control token because it listens on a non-loopback address:

docker run --rm \
  -p 127.0.0.1:7878:7878 \
  -e HOLON_CONTROL_TOKEN='replace-with-a-long-random-token' \
  -e HOLON_MODEL='openai/gpt-5.4' \
  -e OPENAI_API_KEY \
  -v holon-home:/var/lib/holon \
  ghcr.io/holon-run/holon:latest

Replace the model and credential environment variable when using another provider. Holon validates that the configured model provider is available before the service starts. Scheduling is canonical-only. A legacy selector is rejected at startup; use Holon v0.31.1 with a pre-migration database backup if legacy rollback is required.

The base image includes Git and common shell/network utilities. Mount a writable workspace at /workspace, or derive a project-specific image when the agent needs additional development toolchains. The published image is currently Linux amd64.

For a browser-first local trial without a provider configured yet, use the checked-in Compose entrypoint:

docker compose up --build

It persists Holon state and the workspace in named volumes, starts with HOLON_BOOTSTRAP=1, and redirects the browser to http://localhost:7878/settings. Configure a provider credential and default model there; task and tool mutations remain blocked until the runtime reports a ready default provider. Set HOLON_CONTROL_TOKEN before exposing the port beyond the local machine.

Deploy on Railway

For a one-click Railway deployment, use the template above. It runs the pinned stable image and keeps runtime state plus the workspace on one Railway Volume. See Railway deployment for the template settings, manual setup, and upgrade notes.

For release-level container smoke and optional real-LLM workspace/WorkItem acceptance cases, see Docker release acceptance.

Provider setup

Holon needs a model provider before it can run agents. The recommended path is:

  • holon onboard — interactive CLI setup that guides you through provider credential configuration without echoing secrets.
  • Web GUI Settings — after starting the daemon, open http://localhost:7878 and configure providers through the Settings page.

Holon supports common providers such as Anthropic, OpenAI, DeepSeek, OpenRouter, Qwen, GLM, Xiaomi, Kimi, and MiniMax. For advanced setup including credential profiles, custom providers, and Codex subscriptions, see Configuration Reference and Supported Models.

Core concepts

Assistants keep track of ongoing work and can wait for results, events, or your input before continuing. WorkItems record goals and progress so work can span multiple conversations.

Holon breaks agent work into a few explicit runtime objects:

  • Agent — long-lived local identity with its own queue, state, and working context.
  • WorkItem — continuously advanceable goal with a plan, progress, blockers, wait conditions, and a completion report.
  • Task — supervised asynchronous execution (command, background task, or child agent).
  • WaitFor / wake — explicit declaration of waiting for a task result, external event, or operator input, and resuming when the condition is satisfied.
  • Workspace / worktree — execute in local repositories and isolate coding tasks into managed worktrees.
  • Origin / brief — preserves input origin and trust information while keeping execution traces separate from operator-visible delivery.

For more detailed explanations, see Concepts.

Status and compatibility

Holon is under active development. The current recommended release is v0.63.0.

The current project focus remains the Rust runtime: agent lifecycle, queues, WaitFor/wake, tasks, WorkItems, trust boundaries, local workspaces, and structured delivery.

Documentation

Build from source

The Rust binary embeds web GUI assets at compile time via rust-embed. Build the frontend first, then compile the binary:

Building the Rust binary requires Rust 1.85 or newer. WebFetch's browser TLS fingerprint support uses the Apache-2.0-licensed wreq and wreq-util crates, which build BoringSSL from source and require CMake, Perl, and Clang/libclang on the build host.

make all
holon --help

Or step by step:

make web    # build web GUI (requires Node.js 24 LTS)
make build  # build Rust binary

Development

Use Node.js 24 LTS for Web GUI development. Run the local deterministic CI subset with make ci; platform, Docker, coverage, and provider-backed live gates run in separate CI jobs:

make ci

For a focused Web GUI check, including Vitest and the production build:

make web-ci

See make help for the full list of targets.

Run the benchmark harness:

cd benchmark
npm ci
npm test

For the fast fixture guardrail subset:

npm run guardrails

See the benchmark plan for the implemented task, runner, verifier, and artifact contracts. Real-repo task manifests and suites are documented in benchmarks/README.md, with commands for validate-manifest, real, and suite.

The default Benchmark CI workflow runs the Node harness tests and a stable Rust performance subset. It does not run real-repo suites; those remain explicitly authorized operator commands. The Rust performance job uploads target/performance/ artifacts, while local Node runs write their results under .benchmark-results/.

Community

License

This project is licensed under the Apache-2.0 license.

Explorer des projets similaires

Chargement…