Self-hosted AI Agents Platform supporting Claude Code, Codex, Gemini agents. Apache 2.0.
Repo: Abilityai/trinity
What's inside
[!NOTE] 📦 Just released: v0.9.5 (September 17, 2026). Workspace is where the work happens now:
- chats per topic
- a conversation rail
- live execution cards
- agents that ask you questions
- a canvas for every agent
- real-time voice mode
Also new:
- prebuilt images and a guided DigitalOcean install
- first-run setup in the browser
- subscription usage and headroom you can see
- opt-in instance telemetry
- credentials encrypted at rest
What's new overview → · Full release notes → · Previous: v0.9.0 release review video →
Trinity is a sovereign AI agents platform — build and run proprietary systems, from fully (or semi-) autonomous businesses to self-improving cognitive systems, all governed, auditable, and on infrastructure you control.
Claude Code writes the agent. Trinity runs it in production.
Each agent runs in its own isolated Docker container with real-time observability, fleet-wide scheduling, agent-to-agent delegation, and a tamper-evident audit trail. Self-host it, or run it on any cloud you control.
Open source · Apache 2.0 — free for any use, commercial included, and deploys anywhere you run it · Independently pentested — UnderDefense Grade A · We run Trinity in production ourselves — and so do our customers.
🤖 AI agent reading this repo? Start at AGENTS.md — a task router with exact commands, key facts, and verification steps. Detailed docs index: docs/user-docs/README.md.
[!IMPORTANT] PostgreSQL is the recommended database for production. SQLite stays the zero-config default for local development and evaluation, but production instances should run on PostgreSQL — opt in with a single
DATABASE_URL(setup guide, #300). Already on SQLite? Migrate with the Trinity Ops Agent's/migrate-to-postgresskill — a gated, validate-then-cutover flow that leaves your SQLite file untouched for instant rollback.
The problem: Everyone wants autonomous AI agents. But your options are terrible — SaaS platforms where data leaves your security perimeter, custom builds that take 6-12 months, or frameworks that don't handle governance and audit trails.
The solution: Trinity is autonomous agent orchestration infrastructure. Each agent runs in its own isolated Docker container. You get real-time observability, fleet-wide health monitoring, cron-based scheduling, agent-to-agent delegation, and cost tracking — all on your own hardware.
| Option | Problem | Trinity |
|---|---|---|
| SaaS Platforms | Data leaves your perimeter, vendor lock-in | Your infrastructure, data never leaves |
| Build Custom | 6-12 months, $500K+ engineering | Deploy in minutes |
| Frameworks | No observability, no fleet management | Real-time monitoring, scheduling, audit trails |
A short teaser of the live interface — the full, zoomable detail is in the screenshots below.
Watch more:
More recordings — agent dev pipelines, GitHub-backed agents, an ops agent that deploys other agents — in the workshop archive. Live and free, every Thursday.
| 01 · Deploy an instance | Self-host with one command — your own machine, any server you control, or a DigitalOcean Droplet in about ten minutes. |
| 02 · Connect Claude Code | Install the abilities plugins — scaffold, connect, and deploy agents over MCP. |
| 03 · Run in production | Scheduled, multi-user, audited — inside your own perimeter. |
Two phases: stand up an instance (Phase A), then build and deploy agents to it from Claude Code (Phase B).
Prerequisites
Recommended: let your agent install it (one shot)
Tell your Claude (or any capable coding agent) to install Trinity and follow the agent-facing runbook — it verifies Docker, installs unattended, confirms the stack is serving, surfaces the generated admin password, and hands you a next-steps card:
Install Trinity on my computer. Follow the runbook at
https://raw.githubusercontent.com/abilityai/trinity/main/docs/AGENT_INSTALL_GUIDE.md
The runbook (docs/AGENT_INSTALL_GUIDE.md) is a
deterministic verify → install → confirm → report-next-steps loop that any
capable agent can execute and explain to you as it goes.
Install it yourself
# 1. Clone the repository
git clone https://github.com/abilityai/trinity.git
cd trinity
# 2. Configure environment
cp .env.example .env
# Edit .env and set ADMIN_PASSWORD (12+ characters) — the only required edit.
# start.sh generates SECRET_KEY, the encryption keys and the Redis
# passwords for you on first run.
# 3. Build the base agent image
./scripts/deploy/build-base-image.sh
# 4. Start all services
./scripts/deploy/start.sh
For a fully non-interactive bring-up, run ./scripts/deploy/start.sh --unattended (or set TRINITY_UNATTENDED=1) and skip the .env edit entirely — an admin password is generated and printed in the final summary.
Note: the repo's git submodules are private and optional — cloning (even with
--recurse-submodules) needs no credentials; they're skipped automatically. See docs/ENTERPRISE.md.
First-time setup
admin and the ADMIN_PASSWORD from .env.Access
Don't want to run it on your laptop? Trinity is self-hosted, and the least work is a server of your own: the guided DigitalOcean install gets you a Droplet behind HTTPS in about ten minutes. Questions about a deployment? Talk to an engineer → — an engineer reads this, not a CRM. Reply in one business day, your time zone.
On DigitalOcean? The guided installer (
scripts/deploy/trinity-do-create.sh) takes a few steps and about ten minutes. You installdoctl, create a Claude subscription token, choose an admin password, and run one command. The result is Trinity on its own Droplet behind HTTPS. See Deploy on DigitalOcean.
Prebuilt images:
./scripts/deploy/start.sh --hostedpulls the published GHCR images instead of building from source. PinTRINITY_IMAGE_TAG(for examplev0.9.5) on any instance you keep.
Deploying to a remote server?
/trinity:deploy-new-instancefrom the abilities marketplace provisions Trinity on any server you can SSH into — and scaffolds the Trinity Ops Agent to manage it (health, logs, updates, rollback, and SQLite→PostgreSQL migration).
Most of the Trinity workflow lives in the abilities plugin marketplace — Claude Code plugins covering the full agent lifecycle: scaffold, develop, deploy, iterate. You need the instance from Phase A (localhost or remote) and Claude Code.
Showing a partial view of a very large repo.
FAQ
trinity is a Claude Code plugin with hand-picked skills for automation work, indexed on Flowy. Install it with the command on its page. Its skills do not fire on their own yet. Request auto-invocation to have Flowy route them as you prompt. Free and open source.
Is this plugin yours?
Claim it with GitHubSubmit a pluginPromote it