Mockoon and Jitterbox both give you a fake API to build and test against, but they start from different places. Mockoon is an open-source app that runs mocks on your own machine (or your own servers). Jitterbox is a hosted service whose main job is to make an API fail on purpose and then tell you how your code coped. If you're looking for a Mockoon alternative, the useful question is which of those two jobs you need done.
Who each one is for
Mockoon is a desktop app for Windows, macOS and Linux, plus a CLI (MIT licensed) that runs the same mock files headlessly through npm, Docker or a GitHub Action. It needs no account and works offline. For teams, the paid Mockoon Pro adds real-time collaboration, a browser editor and mock deployments, self-hosted on your own infrastructure, with a managed cloud option for Enterprise customers.
Jitterbox is hosted. Every project gets a real HTTPS URL (https://{key}.jitterbox.dev), so a phone, a teammate's laptop, a CI runner or a preview deploy can all call the same mock without anyone running a server. The product is built around failure scenarios, a live request log and a resilience report that grades how your client behaved. It's in beta and free, with limits.
Failure simulation: the main difference
Mockoon can simulate plenty of bad days. Its docs describe:
- Latency at the environment level, the route level, or both
- Multiple responses per route, chosen by rules (headers, query, body, cookies, path, method, request number), randomly, or in sequence (200, then 500, then 404, then around again)
- Any status code, headers and body, with templating and Faker data
- Rate limiting built yourself with custom templates (Mockoon has a tutorial for it)
That covers errors and slow responses well. Jitterbox treats failure as its own layer on top of the mocks. A scenario holds fault rules that apply across endpoints, triggered every time, with a probability, or as a sequence like "fail twice, then succeed". The fault types go past status codes:
- HTTP errors with headers such as
Retry-After - Fixed or random latency, and timeouts (hang, then 504)
- Dropped connections and malformed bodies
- For LLM endpoints: provider-format 429 and 529 errors, a slow first token, slow streams, streams cut partway, a malformed chunk, a missing end event, truncated tool-call arguments
- GraphQL
errorsarrays and SOAP faults
You can also force a fault on a single request with the X-Jitterbox-Fault header, and make random faults repeatable with X-Jitterbox-Seed. We didn't find options in Mockoon's docs for dropping a connection mid-response or cutting an HTTP stream short, so if those are the failures you need to reproduce, that's the gap.
LLM APIs and streaming
Jitterbox endpoints can speak the OpenAI Chat Completions, OpenAI Responses and Anthropic Messages formats, streaming included, so you point the official SDK's baseURL at your project and break it in provider-specific ways. With Mockoon you can mock an LLM endpoint's JSON like any other route. Mockoon does support WebSockets, including server streaming at an interval, which Jitterbox doesn't.
Seeing what your code did
Mockoon logs every request and response in the app's Logs tab, and exposes them through its admin API. That's a solid debugging view.
Jitterbox logs every request too, and adds two things aimed at failure testing. Each request shows which fault was applied and why. And the resilience report groups a call with its retries and checks the behavior: did the client retry transient failures, respect Retry-After, back off, give up eventually, avoid retrying permanent errors like a 422, keep its idempotency key, and time out instead of hanging? Each verdict links to the requests behind it.
In CI
Both work in CI, in different shapes. Mockoon's CLI starts your mock file as a local server inside the job (npm, Docker or the mockoon/cli-action GitHub Action), with no outside dependency.
Jitterbox's CLI switches a scenario on, runs your test command with JITTERBOX_BASE_URL set, switches the scenario back off, and grades the resilience report for that run:
npx jitterbox run --scenario "Flaky gateway" -- npm test
The MadhavKauntia/jitterbox-cli@v1 GitHub Action does the same and fails the build on a bad grade. Endpoints and scenarios can live in jitterbox.yaml next to your code. The trade-off: your test traffic goes out to jitterbox.dev and counts against the beta's daily request allowance.
When Mockoon is the better choice
- You want everything local and offline, or your rules say test traffic can't leave your network
- You want free and open source with no request limits
- You like a desktop UI and file-based mocks you can commit and share
- You need WebSockets, callbacks/webhooks, file serving or stateful CRUD routes backed by data buckets
- You need many endpoints or projects today (Jitterbox's beta allows 1 project and 10 endpoints)
- You want to self-host a team setup, which Mockoon Pro does and Jitterbox doesn't offer
When Jitterbox is the better choice
- Your goal is testing resilience: retries, backoff,
Retry-After, timeouts, idempotency - You need failures a status code can't express: dropped connections, cut streams, malformed chunks
- You're building on OpenAI or Anthropic APIs and need to test streaming failures
- You want a shared HTTPS URL with no server to run, and a request log the whole team sees
- You want CI to fail when your client handles failures badly, not only when a test asserts it
Using both
They don't exclude each other. Plenty of teams would keep Mockoon for day-to-day local development and point a separate CI job at Jitterbox to check how the same client behaves when the API misbehaves. Both can import OpenAPI documents, so starting from the same spec is straightforward. To see what the Jitterbox side looks like, read how it works or start a free project.