Claros was an oracle. This one tells you what to send next.
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 upAbout 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 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.

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 →
No AI-drafted email sends until a human says yes, unless you explicitly choose auto-approve.
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 →
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 →Readable. Ingestion answers 403, nothing sends. Unarchive resumes.
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.
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.
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, or the choose step. 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.
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.