Open source

The open-source platform for applications where agents propose and people decide

Start a new application from the template, or add single packages to the backend you already run. Either way it runs on your own Postgres, and nothing is hosted by us. The packages handle tenant isolation, data protection, human review of AI proposals and audit logging, each promise is covered by automated tests, and the template comes with rules and checks for coding agents. Reynt, the booking platform we run in production, is built on these packages.

The source, with its tests, is public from November 2026. Until then every package’s README is in the documentation on this site, and octaflow is on npm today.

Set up your coding agent

New app

Available from November 2026

Set up an octabits app for me. Fetch https://octabits.io/start.md and follow it.

Paste into Claude Code or Codex. The agent asks what you want to build, proposes a setup that fits it, creates the app and writes the first spec with you.

Existing app

Available from November 2026

npx skills add octabits-io/octabits

Gives the agent in your app the platform’s procedures: a scoped table, a queue job, an AI proposal workflow and the rest, for Claude Code, Codex, Cursor and others.

Docs for your agent

https://octabits.io/llms.txt

Every package’s README as Markdown, indexed for an agent to read.

A created app carries its own instructions for agents: AGENTS.md with its rules, skills for Claude Code and Codex, and a Stop hook that runs pnpm guard when the agent ends its turn and sends back what fails.

What you get

Capabilities and automated checks

Automated checks cover the capabilities below and catch changes that break them. Each section explains what is tested.

GDPR

Access, erasure and export, built into the code

GDPR rights handled per table

  • Art. 15Access
  • Art. 17Erasure
  • Art. 20Portability

Each table defines how to export and erase personal data, with a check for missing tables. Encryption keys are stored in your database, and blind indexes allow searches on encrypted data. Sensitive fields are redacted from logs and traces by default.

How we test itTests export and erase data in a running database. CI fails if a table or a column containing credentials has not been classified.

Kept bydata-subjectdata-lifecyclepiitelemetry

  1. 02

    Row-level security

    Postgres row-level security applies to every customer-scoped table. The scope is set for each request. Queries without a scope return no rows, and writes are rejected.

    How we test it

    Integration tests use a real Postgres database with Prisma, Drizzle and plain SQL. A separate check verifies that every scoped table has a policy.

    Kept byrlsdata-lifecycle

  2. 03

    Postgres only

    Queues, events, notifications, files, encryption keys, audit logs and workflow state are stored in Postgres. They use the same database and backup process, without a separate message broker or control plane.

    How we test it

    A browser test checks that requests stay on the host. Lint checks also validate the generated list of sub-processors.

    Kept byqueueeventsactivitystoragepiiagent-ledgerserveroctaflow

  3. 04

    AI with review

    Agents propose typed changes to existing records. A person can review, edit, accept individual changes or reject the proposal. Before applying it, the system checks for changes to the underlying data. Reversals use the audit log.

    How we test it

    Chromium tests exercise proposals, edits, rejection, application and reversal in every host application. Each write is verified through the API.

    Kept byproposalagent-uiagent-ledgerserver

  4. 05

    EU by default

    The default model provider processes data in the EU. Identity services and telemetry are self-hosted, with no automatic reporting to an external service. Confidential content is sent only to a self-hosted model. You can choose a different provider configuration.

    How we test it

    Tests check provider residency and the disclosure rules. A lint check prevents model calls that bypass those rules.

    Kept bymodelsdisclosure

  5. 06

    Audit trail

    Each applied AI action adds an entry to a hash-chained log, recording who acted and on whose behalf. Reversals add new entries and preserve the original records. The chain is verified against a reference hash stored outside the database.

    How we test it

    All three storage implementations are tested for tampering and forks. Every MCP tool call is logged. Checks for the Article 30 record of processing activities are not yet implemented.

    Kept byagent-ledgerauditserverdisclosure

Sub-processors

What stays on your list of sub-processors

An AI application is often put together from one hosted service per job. Each of them receives your data, needs a processing agreement and is one more entry your data protection officer has to assess. On our packages these jobs run inside your application and your own database. What remains is where the application runs and which model it uses.

What stays on your list of sub-processors
A common setup12sub-processorsOn our packages2sub-processors
HostingHosted serviceYour hosting provider
AI modelHosted serviceModel vendor, in the EU by default
Sign-inReplaces Auth0, ClerkHosted serviceIn your application@octabits-io/session
Background jobsReplaces Redis with BullMQHosted serviceIn your database@octabits-io/queue
WorkflowsReplaces Inngest, Temporal Cloud, Trigger.devHosted serviceIn your databaseoctaflow
Live updatesReplaces Pusher, Ably, Supabase RealtimeHosted serviceIn your database@octabits-io/events
NotificationsReplaces Knock, Novu, CourierHosted serviceIn your database@octabits-io/activity
Document search for AIReplaces Pinecone, WeaviateHosted serviceIn your database@octabits-io/knowledge
Encryption keysReplaces a KMS, CipherStash, EvervaultHosted serviceIn your database@octabits-io/pii
Approval of AI actionsReplaces HumanLayerHosted serviceIn your database@octabits-io/proposal
AI tool access (MCP)Replaces a hosted MCP gatewayHosted serviceIn your application@octabits-io/server
MonitoringReplaces Datadog, New Relic, SentryHosted serviceSelf-hosted@octabits-io/telemetry

Mail is left out of both columns: our packages send through your own mail server by default, and a sending service adds one entry on either side. With a model you run yourself, the second entry goes as well.

Get started

Three ways to start

Start a new application on the template, add single packages to the backend you already run, or look at a complete application first.

A new application

Available from November 2026

npm create @octabits-io@latest my-appcd my-apppnpm devclaude        # or: codex
  1. One command creates the application and asks four questions: sign-in (inside the app with passkeys and e-mail codes, or through Zitadel, Microsoft Entra ID or another OIDC provider), the model (one you run, Mistral in the EU, or Anthropic or OpenAI in the US), the database, and which capabilities beside the core it gets. Embedded PGlite needs no Docker and no keys.
  2. The application is Next.js, React and shadcn/ui on Drizzle. Every table is under row-level security, personal data is encrypted, AI proposes a change and a person accepts or rejects it, and every applied change is in the ledger and can be reverted. It answers access and erasure requests, and with its capabilities sends mail, stores files, imports spreadsheets for review and answers from your documents with checked citations. A capability left out is not in the code at all; pnpm octabits add brings it later, and pnpm octabits remove takes the example out once the app is your own.
  3. It is an MCP server too: Claude Code, an IDE or any MCP client signs in as a person, and what it proposes waits for review like the app’s own AI.
  4. Build on it with Claude Code or Codex. A feature starts as a spec of acceptance criteria you sign off, each proven by a test. AGENTS.md and the skills tell the agent the rules; when it ends its turn, pnpm guard checks them and sends back what fails.
  5. When the template moves on, pnpm octabits upgrade merges the new release into your application as one reviewable diff, with every platform package moved together.

Into the backend you run

Available from November 2026

npm i @octabits-io/proposalnpm i @octabits-io/agent-uinpm i @octabits-io/agent-ledger
  1. Install only the capability you need. Each package works on its own with Hono, Next.js, Nuxt, Vite or Express; drivers, ORMs and UI frameworks are optional, so nothing you do not use is installed.
  2. For AI review: your AI run ends in a proposal, typed changes to records that already exist, each with the value it replaces.
  3. A person reviews it in the card, edits, accepts part or rejects. Your server applies what they saw, refuses if the record changed in between, and records it in the ledger, from which it can be reverted.

See it running first

Available from November 2026

git clone https://github.com/octabits-io/octabitscd octabits && pnpm installpnpm demo
  1. The repository carries the platform demo: an office where people and agents work on the same processes — hiring, an overdue invoice, a shared inbox. Each process is written as a document and runs on octaflow, with the studio, the assistant, connections with tool review, the handbook, import and costs around it.
  2. It starts on embedded PGlite with a scripted model and no keys, and it is MIT-licensed like the packages. A public instance to click through is not online yet.

The packages

31 packages in two kits

The build kit 20

The build kit provides an application template with rules and automated checks for coding agents. Its libraries handle HTTP, sign-in, tenant isolation, queues, events and data protection using Postgres.

Custom software →

Shared Postgres infrastructure

Data protection

Foundation

The oversight kit 11

The oversight kit lets people review typed AI proposals and accept or reject them. It records applied changes in a hash-chained log, checks which content each model may receive and stores workflow state in Postgres.

AI integration →

Help with integration

You can use the packages free of charge. We also offer paid support to integrate them and build a workflow for your system.