Skip to content

Butterbase

Open-source backend-as-a-service. Postgres, auth, storage, functions, AI gateway, MCP.

Install

$git clone https://github.com/butterbase-ai/butterbase

Install command taken from the project's README or registry entry. Always review code before running it.

AI-native, open-source backend-as-a-service.Apache 2.0 · Self-hostable with Docker Compose · A Postgres database per appAuth · Storage · Functions · Realtime · AI Gateway · RAG · MCP server

Website · Discord · LinkedIn · Self-host · Docs · Roadmap · Examples · Contributing


Butterbase gives you the building blocks for AI-driven applications without lock-in: a Postgres-backed backend with row-level security, serverless functions, an LLM gateway, realtime subscriptions, key-value store, file storage, RAG, durable per-key actors, and a built-in Model Context Protocol (MCP) server so agents can operate your backend with tools instead of glue code.

  • Open source, Apache 2.0. The full runtime data plane is in this repo — no feature-gated "community edition".
  • Self-host in one command. docker compose -f docker-compose.local.yml up -d brings up the whole stack on your machine or your cloud; see Quickstart (self-host) and SETUP.md.
  • Real Postgres underneath. Every app gets its own Postgres database with declarative schema, migrations, row-level security, and auto-generated REST. No proprietary datastore, no lock-in.
  • Or use the managed cloud. butterbase.ai runs the same data plane multi-region, with a free tier to start.

Features

Data

  • Postgres data plane — per-app databases with declarative schema (/schema), automatic REST endpoints (/auto-api), and migrations.
  • Row-Level Security — first-class RLS policy management with user-isolation helpers (/rls).
  • Key-Value store — regional, quota-protected KV with TTL, audit trail, and dashboard expose rules (/v1/:app/kv/*). New in v0.2.0.
  • File storage — S3/R2-backed object storage with presigned URLs, ACLs, and async indexing (/storage).

Compute

  • Serverless functions — TypeScript functions executed on the Deno runtime (/functions).
  • Durable Objects — stateful per-key actors for chat rooms, multiplayer, rate limiters, long-running agents (/durable-objects).
  • Realtime — WebSocket subscriptions to table changes for live UIs and presence (/realtime).
  • Edge SSR — deploy Next.js / Remix / Astro edge handlers from source (/edge-ssr, /edge-ssr-from-source).
  • Frontend hosting — zip or build-from-source static / SPA deploys with custom domains (/frontend, /custom-domains).

AI

  • Agents — declarative multi-step LLM workflows (graph specs) with checkpointed runs, function/MCP tools, and human-approval pauses, executed by agent-runtime (/agents; examples in Examples/agents/).
  • AI gateway — single endpoint for chat, embeddings, model listing; pluggable router adapters (/gateway, /ai-config).
  • RAG — managed collections, document ingestion, semantic search and synthesized answers (/rag).
  • Integrations — third-party tool access via Composio (/integrations).

Similar plugs

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

Java 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发

Real-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface

The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory,…