Skip to content

openlegion

Self-hosted runtime for isolated, budget-capped AI agent fleets, source-available

Source available · PolyForm-Perimeter-1.0.0 AI-native

Listed by , founder & editor

43

Health

Slowing

Overview

Stars

130

Last commit

21 days ago

Nov 2026

Repository age

9 months

since Feb 2026

Latest version

–

Contributors

–

1 active in 90 days

Releases

0

last 12 months

Language

Python

OpenLegion v1 is a Python runtime for running fleets of AI agents on your own infrastructure. Each agent runs in its own Docker container or microVM with its own memory, tools, schedule and budget. Agents never hold API keys. Every LLM call goes through a credential vault that also enforces per-agent spend limits. A mesh host coordinates the fleet with shared state and permission checks on cross-agent actions.

You can chat with agents through Telegram, Discord, Slack or WhatsApp, and LiteLLM gives access to over 100 LLM providers. MCP tools are supported, and the codebase is about 77,000 lines.

The license is source-available, not open source. You can self-host it for free, including for internal commercial use, but you cannot offer it as a competing product or service. This repository is v1. The project has since been rebuilt as a hosted platform in private beta. It is positioned as a team-oriented alternative to OpenClaw.

Who it's for

Teams running agents in production

Per-agent budgets, container isolation and permission checks add control.

Skip if: You require an OSI-approved open source license.

Technical founders self-hosting agents

Credentials stay in a vault and data stays on your infrastructure.

Skip if: You want a personal assistant, not a team runtime.

The problem it solves

Autonomous agents holding API keys and running unchecked can leak credentials or run up costs. OpenLegion isolates each agent and routes every call through a vault with spending caps.

Strengths

  • One Docker container or microVM per agent
  • Credential vault keeps API keys away from agents
  • Per-agent budgets cap spend
  • Chat via Telegram, Discord, Slack or WhatsApp
  • 100+ LLM providers through LiteLLM

Trade-offs

  • Source-available license, not open source
  • Competing hosted or managed offerings are prohibited
  • This repo is v1; development moved to a hosted platform
  • Slowing maintenance with one recent contributor

openlegion replaces

Self-host openlegion

Self-hostable
Yes
Hosted plan
Available · pricing

In the community

Frequently asked questions

Is OpenLegion open source?

No. It is source-available. You can self-host it free, but you cannot resell it as a competing service.

Can I self-host it?

Yes. It runs on your own infrastructure with Docker.

Which chat apps work with it?

Telegram, Discord, Slack and WhatsApp.

Is this repository still the main product?

It is v1. The project has been rebuilt as a hosted platform in private beta.

Similar tools in AI agent frameworks

myco

AI agent frameworks

One app and hub that connects Claude Code, Codex and other agents across your machines

172 22 today Active MIT

SynapseKit

AI agent frameworks

Async-first Python framework for RAG, agents and graph workflows with two dependencies

23 27 12 days ago Thriving Apache-2.0

Replaces LangChain

AstraBox

AI agent frameworks

Self-hosted runtime for Claude Code and Codex agents in sandboxes, for teams

17 3 8 days ago Thriving Apache-2.0

Replaces Claude Managed Agents

hermes-agent

AI agent frameworks

Self-hosted, model-agnostic AI agent with memory, skills and chat gateways

266k 60k today Thriving MIT

LobeHub

AI agent frameworks

86k 16k today Active Source available