Stubsmith vs Mockoon: two ways to fake an API

Mockoon is a local mock API server you design in a desktop app or run from its CLI. Stubsmith records real outbound HTTP calls, masked in-process, for replay.

Mockoon is a mock API server: you design routes and responses in its desktop app, or import them from OpenAPI, and run them as a local HTTP server that your app calls instead of the real API [1][2]. Stubsmith is not a server. Its SDK sits inside your Python or Node process, records the real outbound calls your code makes, masks every body value before the capture is sent, and replays the recorded responses in your tests.

Mockoon also records: in proxy mode it forwards requests it has no route for to the real API, logs each exchange, and can turn logged exchanges into routes [3][4]. That is the point where the two overlap, and where they differ most: what a recorded route contains.

At a glance

Mockoon Stubsmith
What it is A separate local mock server, from a desktop app (macOS, Windows, Linux) or the CLI (npm or Docker) [1][5] An SDK in your process plus a hosted service
How mocks are made Designed by hand, imported from OpenAPI, or created from logged proxy traffic [3][4][6] Recorded from real calls your code makes
Languages Any client that can call an HTTP server [2] Python and Node
Recorded data A route created from a log keeps the same headers and body [4]; seven known-sensitive headers, including authorization and cookies, are redacted in logs; bodies are not modified [7][15] Body values masked in your process before sending; sent only for fields you approve
Where mocks live A JSON file per mock API, which you can keep in git [8] A bundle file you commit, pulled from Stubsmith
License and price MIT, free; Mockoon Pro Team €10 per license per month excluding tax, billed yearly, minimum 5 licenses [9][10] SDKs MIT; free plan; Team €39 a month for 10 seats, VAT included

How each one fits a test

With Mockoon, your app under test calls the mock server’s address, by default http://localhost:3000, and the CLI runs the same mock file in CI [5][11]. Each response comes from a route someone designed or recorded, and templating, rules and stateful CRUD routes can make responses dynamic [12][13][16].

With Stubsmith nothing in your app’s configuration changes. The SDK records where it is installed:

import stubsmith
stubsmith.install()  # key read from STUBSMITH_API_KEY

and your tests replay the approved recordings in-process, with no server, network or key:

def test_every_recorded_charge_response():
    for attempt in stubsmith.replay_all():
        with attempt:
            result = charge_customer(amount_cents=950_000)
        assert result.handled

Sensitive data

Mockoon redacts a fixed list of headers (authorization, proxy-authorization, cookie, set-cookie, x-api-key, api-key, x-auth-token) in log files, the admin API and CLI transaction logs; request and response bodies are not modified, and the desktop Logs tab shows the full exchange [7][15]. A route created from a logged entry contains the same information [4]. Mockoon’s documentation, checked on the date below, describes no masking of body values for recorded traffic.

Stubsmith masks during capture. A body value without a keep rule becomes "<masked>", 0 or false before the capture leaves your process, and by default no field has a keep rule. Two kinds of value are sent as written: a path segment the SDK does not recognise as an ID, and the values of six transport headers a stub needs to replay. Names are sent as they are: JSON keys, form field names, query-parameter names and header names. So are the method, domain, status and duration of each call. The Security page lists all of it.

Choose Mockoon when

  • The API does not exist yet, or a backend is unfinished [14].
  • You want to design mocks in a GUI without writing code [1].
  • Clients in any language, or other people and devices, need to call the mock as a server [2].
  • You need dynamic responses: templating, rules on headers or body, stateful CRUD, WebSocket routes or callbacks [12][13][16][17][18].
  • Everything should run locally, with no account and no telemetry [1][2].

Choose Stubsmith when

  • You want tests to replay what a third-party API actually returned, including the responses nobody would think to design.
  • Real body values from that traffic must not leave your process unless you approve a field.
  • You would rather not run and point your app at a separate mock server in tests.

What Stubsmith does not do

  • Mock an API you have never called, or let you design responses.
  • Serve mocks over HTTP to other apps, languages or devices.
  • Template, randomise or change responses: replay serves what was recorded.
  • Run without an account for recording. Replaying a committed bundle needs no account or key.

Sources

Facts about Mockoon are from Mockoon's own website, documentation and repository (version 9.10.0), last checked 2026-11-19. Corrections are welcome at legal@stubsmith.dev.

  1. README
  2. FAQ
  3. Proxy mode
  4. Auto-mocking and recording
  5. CLI
  6. OpenAPI import and export
  7. Requests logging
  8. Data files location
  9. License
  10. Pricing
  11. Getting started
  12. Templating
  13. Response rules
  14. Homepage
  15. CLI README
  16. CRUD routes
  17. WebSockets
  18. Callbacks

Integration tests from real API behavior

Capture once, replay in CI, with values masked before they leave your process.