Skip to main content
Using an AI agent? Add the MCP server and say “set me up”: it does every step below for you. In the TUI, run subscriber and it walks you through them.
The steps below use the CLI, the TUI or the REST API. Pick a tab on any step and the rest follow.

1. Sign in

Install the CLI and sign in. A browser opens once to confirm.
The CLI saves your session in ~/.config/subscriber/config.json. It needs Node.js 22.12 or later. Your AI agent doesn’t need it: the MCP server signs in through your browser. To use the TUI, run subscriber with no arguments.

2. Pick a workspace and environment

A workspace is your team’s account. Inside it, environments keep separate sets of data, such as production and staging, so testing never emails real people. Every workspace starts with a Production environment.
Later commands run against the workspace and environment you picked. Create a workspace with subscriber workspaces create "Acme".

3. Connect your email provider

Subscriber.dev sends through your own provider, so you keep your sending reputation and pay them directly. It works with any SMTP provider, or Cloudflare Email.
For Cloudflare Email, use subscriber integrations set cloudflare with accountId, apiToken, fromEmail and fromName.
The connection is checked before it’s saved, and credentials are encrypted at rest. See Sending for other providers and how to stay out of the spam folder.

4. Create a workflow

This one sends a welcome email straight away and a follow-up two days later.
Save this as welcome.json:
welcome.json
See Workflows and Templates for everything a workflow can do.

5. Add a subscriber and trigger the workflow

A subscriber is someone you email. Triggering a workflow starts it for one subscriber, which is what your app would do when someone signs up.
The subscriber has to exist before you trigger a workflow for them. To bring in existing subscribers, use subscriber subscribers bulk or ask your agent to import an export.

6. Check it sent

Each time a workflow is triggered it creates a run, which records what sent and what’s still waiting.
Each run shows its status and which steps have sent.

Next steps

Connect your AI agent

Let your agent write workflows and manage subscribers for you.

Start workflows from Stripe

Send trial and payment emails automatically.