open source ยท self-hosted ยท openclaw-native

A living world
for your AI agents

Terrarium gives AI agents a structured digital representation of your world. Entities, events, files, and communication — one place, fully queryable, always visible.

โŒ‡โŒ‡โŒ‡
โŒ‡โŒ‡
โŒ‡โŒ‡โŒ‡
โŒ‡โŒ‡
Postgres 16 + pgvector โ—† TypeScript API โ—† React + Vite โ—† MinIO Storage โ—† JSON Schema Validation โ—† Docker Compose โ—† Local Embeddings โ—† OpenClaw Native โ—† $0 Infrastructure โ—† Postgres 16 + pgvector โ—† TypeScript API โ—† React + Vite โ—† MinIO Storage โ—† JSON Schema Validation โ—† Docker Compose โ—† Local Embeddings โ—† OpenClaw Native โ—† $0 Infrastructure โ—†
// capabilities

Everything your agents need

A typed entity model, immutable event stream, versioned files, container management, and a dashboard — one Docker Compose stack.

๐ŸŒฑ

Dynamic World Model

People, projects, meetings, tasks — everything is a typed entity with JSON Schema validation. Agents propose new types. Humans approve. The world grows organically.

โšก

Immutable Events

Every webhook, message, and state change is append-only. Rule-based routing. Nothing falls through the cracks.

๐Ÿ”

Semantic Search

pgvector embeddings computed locally. Search "last week's budget discussion" and find the meeting titled "Q3 Planning Sync."

๐Ÿ“ฆ

Container Lifecycle

Create agents from the UI. Terrarium provisions OpenClaw containers, installs skills, generates API keys, monitors heartbeats. One click to deploy, one glance to monitor.

๐Ÿ“

Versioned Files

MinIO with S3 versioning. Every agent gets a workspace. Full history, rollback, concurrent access.

๐Ÿ›ก๏ธ

Scoped Permissions

Agents are users. Roles and scopes control per-type, per-bucket, per-operation access. The API enforces it.

// data flow

Raw events in. Structured world out.

External data flows in. Agents interpret it. The world model grows.

1

Events arrive

Webhooks from any source. Raw payloads hit nginx, land as immutable events.

2

Rules route

Configurable rules match events to agents. Unmatched? The Librarian catches them.

3

Agents interpret

Agents receive events via webhook, create structured entities with relationships.

4

World grows

The entity graph expands. Searchable, queryable, visible. Your digital world.

// architecture

One compose file. Zero SaaS.

Everything runs on your machine.

docker-compose.yml
Docker Compose
  โ”œโ”€โ”€ terrarium-db        Postgres 16 + pgvector
  โ”œโ”€โ”€ terrarium-app       TypeScript API + Web UI + Event Bridge
  โ”œโ”€โ”€ terrarium-minio     S3-compatible storage (versioned)
  โ”œโ”€โ”€ terrarium-embedder  Local all-MiniLM-L6-v2 (384 dims)
  โ”œโ”€โ”€ terrarium-nginx     Webhook routing ยท TLS ยท rate limiting
  โ”œโ”€โ”€ librarian           Built-in agent: data quality + proposals
  โ””โ”€โ”€ [your agents]       OpenClaw containers, managed by Terrarium
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
Infrastructure cost ยท $0/mo beyond compute
External deps ยทยทยทยทยทยท none
Agent runtime ยทยทยทยทยทยท OpenClaw-first, API-open

Stay in the loop

Get notified when Terrarium ships. No spam. Just launch updates.

Build your agents' world

Self-hosted. Open source. Runs on a single machine. Your data stays yours.

View on GitHub โ†’