Claros was an oracle. This one tells you what to send next.

MIT licensedSelf-hostedNo AI key needed

Open-source lifecycle email that writes itself.

Describe a flow in plain language. Claros compiles it once, drafts the email with your own AI key, and sends nothing until you approve it. Runs on your own server with Postgres or in your own Cloudflare account with D1.

git clone https://github.com/claroshq/claros.git && cd claros
docker compose run --rm install
docker compose up

About 5 minutes with cached images. No AI key required to start; the prebuilt library flow sends your first real email with fixed templates.

On Cloudflare instead: npx @claroshq/claros deploy. Both install options ↓

The Claros dashboard Home page, showing the first-run checklist.

The real dashboard, running locally in under five minutes.

Claros grew out of lifecycle email work at Elevate Studio, built first for their own products and later for clients. We started with Mautic, outgrew the maintenance, and refused the platforms that tax your contact count. So we wrote the engine we wanted: prompt-defined flows, deterministic execution, our own AI key, and human approval before anything sends.
Read the full story →

Compile

Describe the journey. The compiler builds the plan.

Write a flow in plain English: "When a user signs up, send a welcome email immediately. If they have not activated after two days, send a getting-started guide. Stop when they activate." Claros sends the prompt to your configured LLM exactly once and stores the resulting plan. From then on, the engine executes that plan with SQL.

Plans can start from events, lifecycle transitions, segments or contact dates ("three days before trial_ends_at"), fetch context from your own API when a message is rendered, and use a choose step: deterministic filters run first, then the LLM picks one eligible candidate or none.

Read how compilation works →
A flow prompt and its compiled, inspectable plan in the Claros flow editor.

A prompt becomes a deterministic plan you can read before it runs.

Approve

Every AI-drafted message waits in the queue.

The Brain decides whether to send, drafts the email, and scores it for value. Then the message lands in Approvals, not the outbox. You approve, reject, or switch the flow to auto-send once you trust it. Fixed-content flows skip the queue because a human already wrote the copy.

See the approval queue →
The approvals inbox with a drafted email open for review.

No AI-drafted email sends until a human says yes, unless you explicitly choose auto-approve.

Templates

Change how your email looks by saying so.

Start from one of seven built-in templates, narrow or wide, and open it in the template studio. Describe the change in plain words and the preview updates once it lands. The assistant edits that one template and nothing else, and it knows how Outlook, Gmail, Apple Mail and Yahoo render email: ask for a CSS background photo or a flexbox row and it tells you what would break where, then offers a version that works everywhere.

Read about email templates →
The template studio: an email template preview on the left and the chat that edits it on the right.

Every template keeps the unsubscribe footer, and client checks run on every change without the LLM.

Audience

See who to email next, not just what happened.

Contacts are bucketed by tenure and recency into a 4x4 grid. Each cell is an audience: start a flow from it, see who is in it, watch the trend. No SQL, no segment builder, no list import. The grid adapts to your product's natural rhythm.

Read about lifecycle states →
The lifecycle retention grid showing contacts grouped by tenure and recency.

A 4x4 grid of tenure versus recency; every cell is an audience you can email.

Products

Every product you run, one instance.

Each product gets its own contacts, flows, topics and consent, transports and routing, brand, API keys and team, with nothing shared between them. A person keeps one login across products. Instance admins create, rename and archive products, and each product can send its unsubscribe links from its own host. One install to upgrade and back up, however many products you run.

Read the products guide →

Infrastructure

Postgres or Cloudflare D1. Same engine.

On Docker: one image plus Postgres 16 with pgvector, the only dependency. pg-boss for jobs, advisory locks for deduplication, pgvector for knowledge-base search. No Redis. No Kafka. No message broker. On Cloudflare: one Worker on D1, with Queues for jobs and a Cron Trigger for periodic work. Both run the same HTTP API and engine.

  • Ingest events through a Segment-compatible API or a 2 KB browser snippet served by your own instance.
  • Send through your own Resend or SMTP account (including the Amazon SES SMTP endpoint), or Cloudflare Email Service for transactional mail only. Several transports per product, routed by topic.
  • Topics with per-topic consent, and transactional mail that keeps flowing when someone unsubscribes from marketing.
  • RFC 8058 one-click unsubscribe built in for lifecycle and marketing mail, a CAN-SPAM postal footer, and a suppression list enforced before every send.
  • Manage it as code: one JSON config file applied with claros apply, scoped admin keys, signed webhooks, and alerts with a Health page.
  • Import knowledge base entries and your earlier send history, so caps, cooldowns and history conditions count mail you already sent.
Read the installation guide →

Self-host with Postgres or Cloudflare D1.

Two install options run the same HTTP API and engine. Pick one. Either way, the install prints a one-time claim URL: open it, enter your email, and you are the owner.

Docker + Postgres

One Docker image. Postgres 16 with pgvector is the only dependency; the compose stack bundles it, or point it at your own.

git clone https://github.com/claroshq/claros.git
cd claros
docker compose run --rm install
docker compose up

Upgrade with git pull, docker compose build, docker compose up; migrations run on boot.

Installation guide →

Cloudflare Workers + D1

One Worker on D1 in your own Cloudflare account. The CLI creates the database, queues, secrets and Worker for you.

npx @claroshq/claros deploy \
  --domain claros.example.com

Replace claros.example.com with your host. Upgrade with npx @claroshq/claros upgrade.

Cloudflare install guide →

No LLM key is needed to start. The prebuilt library flow sends your first real email with fixed templates.

Docker: about 5 minutes with cached images. Cloudflare: needs a Cloudflare account and a wrangler login.

Frequently asked questions

What is Claros?

Claros is an open-source lifecycle email engine. It ingests events about your users, maintains a lifecycle state for each contact, and sends email through automations called flows.

Can I run it without an AI key?

Yes. Ingestion, contacts, lifecycle tracking, the prebuilt library flow, fixed-content flows, approvals, suppression, and analytics all work without an LLM provider. You only need a key for prompt-defined flows, AI-drafted copy, the choose step, or the template studio. The built-in email templates work without one. Knowledge-base embeddings are optional and have their own provider (OpenAI or any OpenAI-compatible endpoint); without one, the knowledge base is searched by word matching.

How is this different from other lifecycle email tools?

Claros has no visual flow builder. Instead of drawing a journey on a canvas, you describe it in plain language and the engine compiles a deterministic plan. You also host it yourself and send through your own transport, so your contact data and delivery stack stay under your control.

Can I change how the emails look?

Yes. Each product sends with one email template: seven are built in, four narrow and three wide, and any of them can be copied and changed in the template studio by describing the change in plain words. The assistant only edits the template, warns when a change would break Outlook, Gmail, Apple Mail or Yahoo and proposes a version that works, and every template keeps the unsubscribe link and postal address. The studio uses your own LLM provider.

What do I need to self-host?

One of two things. A server that can run Docker Compose: the default stack bundles Postgres 16 with pgvector, and for production you can point it at your own Postgres. Or a Cloudflare account: npx @claroshq/claros deploy creates the Worker, D1 database, queues and secrets in it. Both run the same HTTP API and engine.

Can one install serve several products?

Yes. One instance can serve several products, each with its own contacts, flows, settings, API keys and team. Instance admins create, rename and archive products, and a person needs only one login across them.

Is it really open source?

Yes. The source is released under the MIT license and developed in the open on GitHub. Issues come first; pull requests are welcome and run the check workflow. Merges are rare, and a small core team sets the direction.

Stop wiring lifecycle email by hand.

Install Claros on your own server or your own Cloudflare account and send your first real email.