Jitterbox vs Mockoon: local mock server or hosted failure testing

Pick Mockoon for free, open-source mocks that run locally or on your own servers, with WebSockets and a desktop UI. Pick Jitterbox when the point is to make APIs fail on purpose (dropped connections, cut LLM streams, Retry-After) at a hosted URL, and get a grade for how your client coped.
JitterboxMockoon
Where mocks runHosted at {key}.jitterbox.devYour machine, CI or servers
Open sourceCLI only (MIT)Yes (MIT)
Works offlineNoYes
Self-hostingNoYes (CLI, Docker, Pro)
LatencyFixed or random rangeEnvironment or route level
Random / sequential responsesProbability or sequence triggersYes
Dropped connections, timeoutsYesNot in the docs
LLM APIs with streaming faultsOpenAI and AnthropicNo
WebSocketsNoYes
Per-request fault headerX-Jitterbox-FaultNo
Request logYes, with fault decisionsYes
Resilience reportYes (7 checks)No
CICLI and GitHub Action, grades the runCLI, Docker, GitHub Action
PriceFree beta, with limitsFree; paid Mockoon Pro for teams

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 errors arrays 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.

Questions people ask

What is the best Mockoon alternative for failure testing?

If you mainly need mocks for local development, Mockoon is hard to beat. If you need to test how your code handles failures, a tool built for fault injection fits better. Jitterbox adds probability and sequence triggers, dropped connections, timeouts, LLM stream faults and a resilience report that checks retries, backoff and Retry-After handling.

Can Mockoon simulate latency?

Yes. Mockoon lets you add latency at the environment level, the route level, or both, and serve multiple responses per route by rules, at random or in sequence. That covers slow responses and error codes. Its docs don't describe dropping a connection mid-response or cutting a stream, which Jitterbox does.

Is Jitterbox open source like Mockoon?

Partly. The Jitterbox CLI and GitHub Action are open source under the MIT license, but the Jitterbox service itself is hosted and not open source, and it can't be self-hosted. Mockoon's desktop app and CLI are open source and run anywhere, including offline.

Can I use Mockoon and Jitterbox together?

Yes. A common split is Mockoon for local development and Jitterbox in a CI job that runs your tests against failure scenarios. Both import OpenAPI documents, so you can start each from the same spec. Your app just needs the API base URL in an environment variable.

Facts about Mockoon come from its own documentation, checked on 25 November 2026. Products change: if something here is out of date, tell us and we'll fix it.

Test it against real failures

Jitterbox gives you a fake version of the APIs you call, at a real URL, and makes them fail on purpose. Free during the beta.