Open source sequences, as code.
OpenSequence is the self-hosted engine behind multi-step outreach. Your product enrolls a contact; it sends the emails and texts from a real person, places the AI agent calls, hands out the call tasks and LinkedIn steps, and stops when they reply.
One engine for sales, recruiting, onboarding and renewals. No per-seat bill.
Seat-based sequencers list at $79 to $175 per user each month; for 15 people that is $14,200 to $31,500 a year. OpenSequence is Apache-2.0 and runs on one container and a Postgres, for 5 senders or 500.
Build with agents
MCPllms.txt01Use cases
Every sequence your product sends, on one engine
Whoever writes to people one at a time, over days, across channels, runs the same loop: send, wait, follow up, hand a task to a human, stop on a reply. OpenSequence runs that loop for any team.
Sales prospecting
Outbound from each rep's own mailbox, with call tasks and LinkedIn steps, inside the CRM your reps already use.
- wait 2bd
- call task
- exit on reply
Recruiting
Candidate outreach from the recruiter's inbox that stops the moment someone answers, with every event sent back to your ATS.
- wait 3bd
- follow-up in thread
- exit on reply
Customer onboarding
Personal check-ins from the account owner after a signup or a kickoff, branching on what the customer did in your product.
- wait 2d
- if attrs.activated
- call task
Renewals and expansion
Account manager sequences ahead of a renewal date, with a call task when the email goes unanswered.
- wait for reply 5d
- call task
- sms
Partnerships, investors, press
Founder-led outreach to partners, investors or journalists, sent one at a time from a real inbox under a daily cap.
- wait 4bd
- follow-up in thread
- exit on reply
Event and demo follow-up
Follow up with every booth scan, webinar attendee or demo no-show, at 09:00 in each person's own time zone.
- wait 1bd
- sms
- ai call
- exit on meeting
SaaS platforms
Ship sequences as a feature of your own product. One deployment holds a project per customer, each with its own keys and data.
- project per tenant
- your UI
- webhooks
AI agents
Let an agent pick who to contact and what to say. The engine owns timing, sending, replies and stops, through MCP with a scoped key.
- mcp
- enroll scope
- journey
- analytics
02How it works
A sequence engine you call from your code
Create a sequence, enroll a contact, add steps, get webhooks. Each one is a single call to the REST API or the TypeScript SDK.
import { OpenSequence } from '@opensequence/sdk';
const { SEQ_URL, SEQ_KEY } = process.env;
const oseq = new OpenSequence({ baseUrl: SEQ_URL!, apiKey: SEQ_KEY! });
const email = {
subject: 'Hi {{ contact.first_name }}',
body: 'Quick question…',
};
const { sequence, version } = await oseq.sequences.create({
name: 'UK intro',
definition: {
entry: 'hi',
exit_on: ['reply'],
nodes: {
hi: { type: 'outreach', channel: 'email', action: 'send', params: email },
},
},
});
await oseq.sequences.versions.publish(sequence.id, version.id);A sequence is a JSON document. Create it with one call. Install it with npm install @opensequence/sdk.
Read the guideimport { OpenSequence } from '@opensequence/sdk';
const { SEQ_URL, SEQ_KEY } = process.env;
const oseq = new OpenSequence({ baseUrl: SEQ_URL!, apiKey: SEQ_KEY! });
const { items } = await oseq.sequences.list();
const ukIntro = items.find((s) => s.name === 'UK intro')!;
await oseq.senders.upsert('max', { name: 'Max Rivera', email: 'max@acme.com' });
await oseq.contacts.upsert('dana', {
first_name: 'Dana',
email: 'dana@example.com',
});
// First email at 09:12 Dana's time, from Max's own mailbox
await oseq.sequences.enroll(ukIntro.id, { contacts: ['dana'], sender: 'max' });Enroll a contact with a sender. The engine schedules and sends every step after that. Install it with npm install @opensequence/sdk.
Read the guideimport { OpenSequence } from '@opensequence/sdk';
const { SEQ_URL, SEQ_KEY } = process.env;
const oseq = new OpenSequence({ baseUrl: SEQ_URL!, apiKey: SEQ_KEY! });
const { items } = await oseq.sequences.list();
const ukIntro = items.find((s) => s.name === 'UK intro')!;
// A new draft, copied from the live version
const draft = await oseq.sequences.versions.create(ukIntro.id, { tag: 'v2' });
const { definition, lockVersion } = draft;
// After the first email is sent, follow up in the same thread
const followUp = { subject: 'Re: hi', body: '…', reply_in_thread: true };
definition.nodes.hi.next = { sent: 'bump' };
definition.nodes.bump = { type: 'outreach', channel: 'email', action: 'send' };
definition.nodes.bump.params = followUp;
await oseq.sequences.versions.saveDraft(ukIntro.id, draft.id, {
definition,
lock_version: lockVersion,
});
await oseq.sequences.versions.publish(ukIntro.id, draft.id);Copy the live version, add a step, publish. Running enrollments keep their version. Install it with npm install @opensequence/sdk.
Read the guideimport { OpenSequence } from '@opensequence/sdk';
const { SEQ_URL, SEQ_KEY } = process.env;
const oseq = new OpenSequence({ baseUrl: SEQ_URL!, apiKey: SEQ_KEY! });
await oseq.senders.upsert('max', { name: 'Max Rivera', email: 'max@acme.com' });
await oseq.senders.setSms('max', { allo_user_id: 'usr-1', number: '+14155550123' });
// Use it in any sequence: Max gets a task, pushed into his Allo dialer
const callStep = {
type: 'task',
params: { kind: 'call', title: 'Call {{ contact.first_name }}', due: '1bd', dialer: true },
next: { completed: 'wait_reply', no_answer: 'bump' },
};A call step is a task for the sender. Allo dials it, and the outcome moves the sequence on. Install it with npm install @opensequence/sdk.
Read the guide{
"type": "outreach",
"channel": "call",
"action": "agent_call",
"params": {
"agent_id": "agt-…",
"title": "Confirm Friday delivery",
"description": "Ask if Friday delivery still works. If not, offer Monday."
}
}An Allo agent phones the contact with your brief, inside calling hours. The outcome of the call picks the next step.
Read the guideimport { OpenSequence } from '@opensequence/sdk';
const { SEQ_URL, SEQ_KEY } = process.env;
const oseq = new OpenSequence({ baseUrl: SEQ_URL!, apiKey: SEQ_KEY! });
await oseq.senders.upsert('max', { name: 'Max Rivera', email: 'max@acme.com' });
// SMTP sends, IMAP reads replies. Gmail works with an app password.
// Both logins are checked first; every email leaves from max@acme.com.
const login = { user: 'max@acme.com', password: process.env.MAX_APP_PASSWORD!, secure: true };
await oseq.senders.setSmtp('max', {
provider: 'smtp',
smtp: { host: 'smtp.gmail.com', port: 465, ...login },
imap: { host: 'imap.gmail.com', port: 993, ...login },
});Each sender connects their mailbox once. Every email leaves from their own inbox. Install it with npm install @opensequence/sdk.
Read the guideimport express from 'express';
import { OpenSequence, verifyWebhook } from '@opensequence/sdk';
const { SEQ_URL, SEQ_KEY } = process.env;
const oseq = new OpenSequence({ baseUrl: SEQ_URL!, apiKey: SEQ_KEY! });
const { secret } = await oseq.webhooks.create({
url: 'https://crm.acme.com/hooks/seq',
event_types: ['enrollment.exited'],
});
const app = express();
app.post('/hooks/seq', express.raw({ type: '*/*' }), (req, res) => {
const event = verifyWebhook({ secret, headers: req.headers, body: req.body });
console.log(event.type, event.data.exit_reason); // exited, replied
res.sendStatus(204);
});Register an endpoint once. Exits, replies and tasks arrive signed. Install it with npm install @opensequence/sdk.
Read the guideimport { OpenSequence } from '@opensequence/sdk';
const { SEQ_URL, SEQ_KEY } = process.env;
const oseq = new OpenSequence({ baseUrl: SEQ_URL!, apiKey: SEQ_KEY! });
const { items } = await oseq.sequences.list();
const ukIntro = items.find((s) => s.name === 'UK intro')!;
const stats = await oseq.analytics.summary(ukIntro.id);
// enrolled: 412, replies: 61, reply_rate_per_100_enrolled: 14.8
// Which step earns the replies
const { nodes } = await oseq.analytics.nodes(ukIntro.id);Analytics count each reply and meeting once, per sequence and per step. Install it with npm install @opensequence/sdk.
Read the guide03Why own it
Why own the engine
Price is the obvious reason. Here are the others.
Headless by design
OpenSequence has no UI of its own. People run sequences from the CRM, ATS or app they already use.
Data in your Postgres
Contacts, messages and replies live in your own Postgres, in the region you choose. No vendor stores your contacts.
Your deliverability
Mail leaves each sender's own mailbox, not a shared sending pool. Another company's bad list cannot hurt your domain's reputation.
Sequences as code
A sequence is versioned JSON. Diff it, review it in a pull request and test it against mock providers in CI.
Agent-native
The MCP server ships with the engine. An agent with an enroll key can enroll contacts and read journeys, but cannot edit sequences, senders or settings.
No black boxes
The engine writes every decision to a ledger, with the branch it took and the facts it read. One GET returns the whole journey.
Multi-tenant
One deployment holds a project per customer, each with its own keys. Add sequences to your own SaaS without building the engine.
Extensible
Channels, node types and providers register by name. Add WhatsApp or your own dialer without forking the engine.
You can vibe-code a sequence. Not a sequence engine.
The first version takes a weekend. The next two years go to edge cases, and you find each one in production.
If you build it yourself
Day 1
A cron job and a loop send the first email. It works, and everyone moves on.
Week 3
A worker restarts mid-send. Forty prospects get the same email twice.
Month 2
The code matches replies by subject line, so people who answered still get the follow-up.
Month 6
Texts arrive at 11 pm in the contact's time zone. Opt-outs climb, and you are the one on call.
04Nine problems
What you would have to solve
05Compare
How OpenSequence compares
It is the sequencing engine on its own: no contact database, no inbox warm-up, no UI. Here is what that means next to the tools teams usually reach for.
| OpenSequence | Seat-based sequencersOutreach, Salesloft, Apollo, lemlist | Lifecycle email platformsCustomer.io, Braze, Iterable | Workflow automationn8n, Zapier, Make | Build it yourselfA cron job and a queue | |
|---|---|---|---|---|---|
| Price model | Free, Apache-2.0 | Per seat, per month | Per profile or volume | Per run or self-hosted | Engineer time |
| Runs on your infrastructure | Yes | No | No | Some | Yes |
| Sends from each person's own mailbox | Yes | Yes | No, a shared sending domain | You wire it | You build it |
| Stops on reply, bounce and opt-out | Built in | Built in | Not for 1:1 replies | You build it | You build it |
| Tasks for humans: calls, LinkedIn | Built in | Built in | No | No | You build it |
| Lives inside your product | API and webhooks, no UI | Its own UI | Its own UI | Its own canvas | Yes |
| One deployment, many customers | A project per tenant | No | No | No | You build it |
06FAQ
Questions about OpenSequence
What people ask before the quickstart.
What is a sequence?
Is OpenSequence only for sales?
Is it a newsletter or marketing email tool?
Is this a free alternative to Outreach, Apollo or lemlist?
How do I add sequences to my app?
Can I configure everything through the API?
How do AI agents use it?
Does it send email itself?
Can an AI agent make the phone calls?
What do I need to run it?
07Get started
Own the engine behind every sequence you send.
Install the SDK, start the image and follow the quickstart. Mock providers are on in development, so nothing leaves your machine until you connect a real account.