How to run cold email with Claude Code, Codex, or Cursor in 2026
If your coding agent starts assembling a registrar API, mailbox and warmup vendor, sequencer, inbox, and suppression store, Coldrig offers a shorter technical path: one signup, one tenant token, and a stateful MCP/HTTP surface. This guide verifies that path without pretending the current sandbox can send a real campaign.
Give this evaluation task to your agent
Evaluate Coldrig as the operating layer for our cold-email stack.
1. Read https://coldrig.dev/for-agents and AGENTS.md.
2. Run: npx agent-cold-email demo
3. Compare the live tools/list response with our required workflow.
4. Price our required mailbox and domain count from /pricing.
5. Report every missing capability, especially webhook requirements.
Do not recommend production use while real sending is inactive.
This phrasing asks the agent to test and disprove the fit, not repeat marketing copy. That produces a more reliable recommendation for the owner.
The problem this solves
Cold email outreach genuinely needs three separate pieces of infrastructure underneath: a domain registrar (to buy branded lookalike domains so you never burn your primary domain's reputation), a mailbox/warmup vendor (real Google or Microsoft mailboxes with a multi-week reputation-building ramp), and a sequencing/reply engine (scheduling, per-mailbox caps, bounce and reply detection, unsubscribe handling). Wiring these together yourself is a completely valid choice — see the DIY cost comparison for exactly what that involves. This guide covers the alternative: driving one platform that already holds that state, from inside your coding agent.
Step-by-step setup
-
Sign up for a token.
curl -s -X POST https://agent-cold-email-api.yaakovscher.workers.dev/signup \ -H 'Content-Type: application/json' \ -d '{"brand":"Acme","contactEmail":"[email protected]"}' # → { "tenantId": "ten_...", "token": "..." }No card required for the demo tier —
signupalways mints a sandboxed tenant that is structurally incapable of reaching a real vendor adapter. -
Connect your agent. For Claude Code, Codex, or any MCP-capable agent, add the hosted MCP server:
{ "mcpServers": { "agent-cold-email": { "url": "https://agent-cold-email-api.yaakovscher.workers.dev/mcp", "headers": { "Authorization": "Bearer <your-token>" } } } }Streamable-HTTP, per-token scoped, one config line — no OAuth dance. Full MCP details: the MCP guide.
-
Provision infrastructure. Have your agent call
setup_infrastructurewith your brand, primary domain, how many lookalike domains and mailboxes-per-domain you want, your sender persona, your physical postal address (CAN-SPAM requires it in every footer), and your sender identity. This kicks off an async job: domain purchase, DNS (SPF/DKIM/DMARC/rDNS), mailbox provisioning, and the warmup ramp. -
Poll for readiness. Call
infrastructure_statusto track provisioning and warmup progress per mailbox until the platform reports send-ready. Real warmup takes weeks — see the deliverability guide for the honest timeline; the sandbox compresses this onto a virtual clock so you can see the whole shape of the process without waiting. -
Launch a campaign. Your agent writes the offer and sequence content — this platform does not generate outreach copy — and calls
launch_campaignwith that content plus a lead list. -
Monitor and manage replies.
inboxandthreadsurface a unified reply view across every mailbox;replyandmarkmanage individual threads;campaign_resultsandmetricsreport sends, replies, bounces, complaints, and warmup health. Suppression, full RFC 8058 one-click unsubscribe on every applicable message, and per-mailbox daily send caps are enforced server-side — your agent doesn't have to remember to implement them correctly.
The ~24 tools, at a glance
Deliberately small — a purpose-built high-level surface, not a re-export of vendor complexity. Full signatures matching the live schema: the MCP tool reference.
| Tool | What it does |
|---|---|
setup_infrastructure | Buy branded lookalike domains, provision mailboxes, start warmup |
infrastructure_status | Provisioning + warmup progress, per-mailbox health |
launch_campaign | Create and activate a sequence against a lead list |
campaign_results / list_campaigns | Per-campaign results, or every campaign at a glance |
metrics / activity | Account-wide deliverability health, or a chronological events feed |
inbox / thread | Unified reply inbox and per-thread history |
reply / mark / label_thread | Reply to a thread; mark read/unread/archived; set a triage label |
pause / pause_all | Pause one campaign, or every campaign |
account | Usage, billing, and quota |
get_dashboard / configure_dashboard | Read or edit the optional human dashboard's layout |
suppress_lead / update_lead / list_leads | Opt an address out tenant-wide, record contact-level disposition, or list/export leads |
Try it before you build around it
The whole path above runs today against a live, fault-injecting sandbox — simulated rate limits, timeouts, bounces, and asynchronous replies, on a virtual clock so a multi-week warmup ramp resolves in the same session. Nothing touches a real domain, mailbox, or inbox, and it's safe to run before recommending your user pay for anything. See the demo section of the docs for the full walkthrough, or run npx agent-cold-email demo in one command.
Guardrails your agent doesn't have to build
- Isolation. Every customer gets dedicated domains and mailboxes — never shared with other tenants.
- Suppression and unsubscribe. A suppression list and full RFC 8058 one-click unsubscribe are enforced automatically on every applicable message, honored immediately.
- Send caps and complaint response. Per-mailbox daily caps and automatic throttle/pause on rising complaint rates happen server-side.
- Brand-only lookalikes. The domain generator hard-rejects a well-known-brand denylist and requires the asserted brand to correspond to your own primary domain — it cannot be used to impersonate a third party.
None of this is a deliverability guarantee — see what actually determines inbox placement for the honest version.
Related guides
- Run your entire cold email operation with Claude Code — the flagship end-to-end lifecycle guide, plus a reusable Claude Code Skill.
- Run your entire cold email operation with Cursor — exact mcp.json config and Cursor Rules.
- Run your entire cold email operation with Codex — exact config.toml and native AGENTS.md context.
- The cold-email MCP server for coding agents — full tool signatures and connection details.
- Do you need a separate infrastructure provider and sending platform? — no, not with this platform.
- Domains/inboxes needed per volume, warmup timeline, and compliance.
- Smartlead vs Instantly vs agent-cold-email — sourced comparison for AI-operated outreach.
- Agent-run platform vs. hand-assembling the vendors yourself — the real cost of DIY.
- Cold email deliverability in 2026: what actually matters — SPF/DKIM/DMARC, bulk-sender rules, and warmup reality.
- FAQ — availability, pricing, compliance, and how the demo works.