
Illustrative test design

Run npx agenttwin in your project. It starts digital twins of the services your code calls on your own machine, with no account, Docker, provider keys or config file, and tests your real workflows against them. There are 141 twins in 10 categories, from Stripe and Slack to Postgres, Salesforce and OpenAI. Nothing reaches your real accounts.
Start
npx agenttwin
Requires Node.js 20 or newer, in a JavaScript, TypeScript or Python project. AgentTwin scans your code for the services it calls and the workflows that reach them (routes, webhooks, jobs and your existing test suites), starts a twin for each service with synthetic starting data, runs the top three workflows, then reruns each under failures and reports what changed. Discovery never runs your code or uploads source. The quickstart walks through it.
What the twins cover
| Category | Examples |
|---|---|
| Payments and finance | Stripe, PayPal, Shopify, NetSuite |
| Messaging, email and voice | Slack, Gmail, Twilio, Discord, Resend |
| Tickets, incidents and monitoring | GitHub, Linear, Jira, Zendesk, PagerDuty, Sentry, Datadog |
| CRM, HR and identity | HubSpot, Salesforce, Workday, Okta |
| Databases, storage and queues | Postgres, MySQL, MongoDB, Redis, Supabase, Kafka, RabbitMQ, S3 |
| AI models | OpenAI, Anthropic, and OpenAI-compatible APIs such as Groq, Mistral, Together and xAI |
| Any other HTTP API | A generic twin shaped by the calls your code makes |
Calls are checked against each vendor's official OpenAPI spec for 41 services. A twin covers the operations agents actually use, not the whole product. npx agenttwin contracts lists every supported operation for each twin.
Three examples
A support agent across five services. A Gmail webhook triggers an OpenAI tool call, a Stripe refund, a Gmail reply, a Slack post and a HubSpot contact. On a demo agent of this shape (written for AgentTwin's own product films), a run started five twins, passed the clean run, then reported problems under failures, including "announced a refund on Gmail although the Stripe refund never happened" and "refunded the same charge twice".
A payments webhook and a database. A signed Stripe webhook is delivered twice to your route, and your Postgres rows and outgoing emails are compared with a clean run. AgentTwin signs the event the way your route checks it, delivers it twice, and looks for duplicate records and duplicate messages.
A model rate limit. OpenAI or Anthropic answers 429 with the vendor's own error body and retry-after, for the whole run and again after the first call, so you see what your agent had already done before it gave up. This works for any model service your code calls.
What else it breaks
Timeout after write, lost reply, server error, outage, slow reply, duplicate delivery, rate limit, and engine-level faults for databases and queues (a write committed then the connection dropped, a write rejected, a slow reply).
What is free
- Running
npx agenttwinon your machine: no account needed. - The pull-request check on public repositories.
- Private repositories, shared dashboards and the release gate are on the Team plan ($1,500 a month for up to 5 people) or Enterprise; see pricing.
Honest limits
- AgentTwin runs JavaScript, TypeScript and Python apps. It reads Go, Java, Ruby, PHP and .NET projects but doesn't run them yet.
- A twin covers a bounded set of operations. A call outside it answers
501, never reaches the real service, and marks the run incomplete instead of passed. - An app that needs a signed-in session, enforces a strict environment schema or runs on bun may stop before its workflows run; the run says what it was missing.
- The lost-reply fault is applied to Stripe by default.
Related: Fidelity, How to simulate timeouts and duplicate event delivery.