← Back to Leaderboard
Aaai-labs

aai-labs/agent-barn

Self-hosted Kubernetes control plane for AI agent access, audit, and spend

Open-Source AI AppQuickstart ↓
Engineering Health (Methodology)
A · 84/100
Maintenance Activity
● Updated today
Latest Release
v0.27.0
Commercial License Check
Apache-2.0 · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption9/25
Release Cadence20/20
License Clarity20/20
DockerSelf-Hosted
Total Stars
★ 116
24h Growth
+0
7d Growth
+4
Forks
7

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

aai-labs/agent-barn Star History (2026-08-19 - 2026-12-04) ALL-TIME STAR HISTORY (2026-08 – 2026-12) +115 in 107d · avg +1/day 122 61 0 2026-08-19: ★ 12026-08-29: ★ 12026-09-05: ★ 722026-09-12: ★ 822026-09-19: ★ 1022026-09-26: ★ 1052026-10-03: ★ 1062026-10-10: ★ 1062026-10-17: ★ 1072026-10-24: ★ 1082026-10-31: ★ 1092026-11-07: ★ 1102026-11-14: ★ 1112026-11-21: ★ 1122026-11-28: ★ 1132026-12-04: ★ 116 ★ 116 08-19 10-11 12-04

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

Agent Barn is a Python-based control plane that manages OpenClaw and Hermes without replacing either runtime. The codebase separates the API, UI, and workers. In the Kubernetes deployment, the control plane, PostgreSQL, and LiteLLM run in the operator’s namespace, with one pod per running agent. Operators select the runtime per agent; the platform manages its Kubernetes resources, configuration, Skills, and lifecycle. The local stack also includes Redis and Garage S3-compatible storage.

Slack, Microsoft Teams, Telegram, and Discord connect through per-agent communication connections. These are separate from tool access, which uses Skills and attached credentials. Model calls go through the operator’s LiteLLM proxy to OpenRouter using a virtual key assigned to the agent. An ingest service receives runtime telemetry; conversation history, tool-call logs, and domain events give operators several ways to review what happened.

Key Capabilities & Differentiators

Administrators can start, stop, and monitor agents, select models within organization policy, and set agent-specific channel allowlists and DM rules. Organization roles and per-agent access roles are isolated at the data layer. An agent can have several chat connections, including multiple connections on one platform. Slack apps must be created from a generated manifest, while Teams connections export an installable app package.

Organizations can fork versioned templates and Skills seeded at startup, apply per-agent overrides, and pin Skill versions. Workflows can publish private artifacts using per-agent storage, with short-lived app download links and permission-gated deletion. LiteLLM virtual keys support token and spend attribution by agent and organization, but recent calls may not appear until the next cost sync. Templates such as Jira Task Helper provide workflow starting points, not preconfigured access to external systems.

Trade-offs & Limitations

Compared with running OpenClaw or Hermes directly, Agent Barn is most useful when several teams need shared lifecycle management, permissions, audit records, and cost attribution. For a single agent with one owner, the cluster, database, proxy, and gateway services add operational work. The control plane does not unify command approvals across runtimes, so teams should validate tool permissions and approval behavior on the runtime they intend to use.

Compared with a hosted service, self-hosting puts the control plane and encrypted PostgreSQL credentials under your administration, but also makes you responsible for cluster operations and integrations. It does not make the deployment offline: the standard model path goes to OpenRouter, connected tools receive API traffic, and enabled product analytics adds another outbound path. Size the deployment by measuring control-plane and storage overhead, then test at the expected number of active agent pods and level of tool activity. The Apache-2.0 license covers Agent Barn, not the terms of external services.

Hardware & Deployment Guide

For local evaluation, copy .env.spec to .env, configure PostgreSQL, admin credentials, and signing and encryption keys, then run ./run.sh. The Docker Compose development stack requires Compose v2.24 or later, plus Git, Bash, kubectl, OpenSSL, curl, and uv; uv supplies Python 3.14 for the host-side Garage bootstrap. The script brings up k3d and LiteLLM, builds and loads both runtime base images, starts PostgreSQL and Redis, and applies migrations. The initial build takes longer than subsequent starts. Verify the API at /api/v1/health, check the agent-farm namespace, and create an organization before creating an agent.

Use the charts in helm/ and helmfile.yaml.gotmpl for production Kubernetes, not the hot-reloading compose.yml. Preserve LITELLM_SALT_KEY across upgrades and restores: changing it makes stored provider keys unreadable. The memory gateway requires Hindsight; the optional local-hindsight profile supplies it locally. The standard inference path needs an OpenRouter key, not local GPU inference. Release v0.26.0 adds Custom Slack support for Hermes agents on a client’s self-hosted Slack.

Runtime isolation: Each running agent gets its own Kubernetes pod and uses either OpenClaw or Hermes.
Model accounting: A LiteLLM virtual key per agent attributes tokens and spend to agents and organizations; imported cost records can lag.
Access controls: Organization and per-agent roles are enforced in the data layer, with agent-specific channel allowlists and DM policies.
Skill versioning: Organizations can fork seeded templates and Skills, and agents can use overrides and pin Skill versions.
Operational records: Conversation history, tool-call logs, and domain events support review; private artifacts use short-lived download links.
Chat integration: Agents can hold multiple connections, including on the same platform; Slack uses generated manifests and Teams exports an installable app package.
Best For

Teams already operating Kubernetes that want to run multiple chat-connected OpenClaw or Hermes agents with scoped tool credentials, shared audit records, and per-agent spend reporting.

Skip If

You only need one agent, want a production deployment without Kubernetes, or require fully offline inference without an external model API.

Reviewed on 2026-12-03 · Grounded in GitHub README, root file tree & releases · Newer release v0.27.0 (2026-12-03) shipped after this reviewMethodology

Quick Start & Installation

DockerSelf-Hosted
curl -s localhost:8000/api/v1/health
# {"status":"ok","db":"connected"}

Comparison vs. Top Agents & Frameworks Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
agent-barn ★116+4PythonApache-2.0Self-hosted Kubernetes control plane for AI agent access, audit, and spend
dify162.4k+370Python—Visual workflow and RAG workspace for building and serving LLM apps
AutoGPT188.3k+74Python—Coordinate specialist AI agents through chat and build repeatable visual workflo
n8n213.1k+787TypeScript—Visual Node.js platform for self-hosted workflows and multi-step AI agents

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/aai-labs/agent-barn.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

aai-labs/agent-barn Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about agent-barn

Does connecting an agent to Slack also give it Jira access?

Configure Slack as the agent’s messaging connection, then attach a Jira Skill and a separate, scoped Jira credential. The Jira Task Helper drafts an issue and asks for confirmation before creating it. Review the draft and verify the returned issue key.

Do I need a GPU, and what should I size the cluster for?

The standard path sends inference to OpenRouter through LiteLLM, so the local deployment does not need a GPU to run the models. Size for the control-plane services, PostgreSQL, Redis, storage, and one pod per running agent; the local bundle also runs k3d and builds both agent base images on first boot. Measure CPU, RAM, and disk at your expected concurrency; no fixed sizing figures are available.

Can we use Agent Barn commercially, and does self-hosting keep all data in our cluster?

Apache-2.0 permits commercial use of Agent Barn subject to its license terms. That does not confer rights to use connected models, chat platforms, or tool APIs. Credentials are encrypted at rest in your PostgreSQL instance, but model calls follow the OpenRouter route and configured tools receive outbound requests. Review those data flows and the product analytics setting separately.

When is Agent Barn preferable to running OpenClaw or Hermes directly?

For one agent with one owner, running OpenClaw or Hermes directly avoids the shared control-plane stack. Agent Barn is useful when several teams need organization roles, per-agent access rules, reusable Skills, centralized activity records, and spend reporting. It manages both runtimes but does not make their command-approval behavior identical.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining aai-labs/agent-barn? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature aai-labs/agent-barn on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare