Skip to main content
@drin00/cli is the drin command line — full parity with the dashboard. Send mail, manage domains, inboxes, contacts, templates and webhooks, read delivery metrics, and launch the MCP server for AI agents, all from your terminal. Zero third-party dependencies; Node 20+.

Install

Install it globally for a drin command, or run it ad hoc with npx — no install required:
Install

Authenticate

The CLI authenticates with a single API key. Set it once in your environment — create one in the dashboard under Settings → API Keys. If the key is account-wide rather than scoped to one project, also set DRIN_SENDER to a project externalId.
Environment
Every value can also be passed per-command with --api-key, --sender, and --base-url, which override the environment:
Per-command flags

Send mail

The send command takes a verified --from address, one or more --to recipients, and a body (--text, --html, or a --template-id). It also accepts --data, --header, --tag, --attach, and --cc / --bcc.
drin send

Read mail & logs

The emails group lists and inspects messages in either direction. Pass --direction inbound to see received mail, and body / attachments to pull the full content.
Activity

Domains

drin domains

Inbound & conversations

Create an inbox on a receiving domain, read its threads, reply in-thread, and simulate inbound mail to test the pipeline without DNS:
Inbox loop

Everything else

Contacts, suppressions, templates, webhooks, API keys, metrics, and the cross-product account feed are all here too:
Account surface

JSON output

Add --json to any command to print the raw API response instead of a formatted table — exactly what a tool-using agent or a CI script wants:
--json
Discover any command. Run drin --help for the full command list, or drin <group> --help (e.g. drin domains --help) for the flags and subcommands of a single group.

Command reference

Launch the MCP server

The CLI bundles the MCP server. drin mcp launches @drin00/mcp over stdio using the same resolved environment — point an AI client at it and your agent gets all 54 tools:
drin mcp

Give an agent the tools

The MCP server exposes the whole API as 54 tools — one command, one key.