Mountebank vs Gostly

Both tools can record HTTP interactions. Compare how they match requests, prepare responses and operate the environment around your application test.

  • Self-hosted
  • Runs on Docker Compose
  • Built from real API traffic
  • Your test data, your control
  • Use the tests you already run

Gostly as a Mountebank alternative

Gostly is a self-hosted API mocking tool. It builds its mock library from real API traffic, or from HAR captures and OpenAPI examples you import, then adds the errors, delays, state changes and simulated API time your tests need. In MOCK mode it answers from that library and does not call the upstream API.

14-day Pro trial. Runs on Docker Compose in your environment. See pricing

Workflow comparison

DecisionMountebankGostly
Record a matching requestproxyOnce records a response and replays it for later matching requests. predicateGenerators select matching fields; an unmatched request can proxy again.Capture a selected exchange in LEARN, complete the service-library build and confirm effective MOCK before checking replay.
Choose the replay modeproxyAlways continues forwarding and recording. Switch to replay explicitly with mb replay or the equivalent API operation.Keep the selected service route and built library with the test. Inspect the response source and configured miss behavior.
Sequence responses and stateStub responses form an ordered circular sequence; repeat controls how many times a response is used. Shared injected state needs JavaScript and --allowInjection.Configure the required lifecycle and reset condition separately. A captured response alone does not establish later state transitions.
Prepare delays and failureswait adds a configured delay. Stub response types include is, proxy, inject and fault.Choose the supported HTTP response, error or delay your test needs, then check its effect in your application.
Configure HTTPSHTTPS imposters can use the built-in self-signed certificate or a supplied certificate/key pair. Configure the client's trust for the chosen certificate.Use the documented HTTPS trust setup and configure the selected service route and capture upstream.
Operate the environmentRun the MIT-licensed Node.js service and maintain its imposter and stub configuration.Operate the licensed Docker Compose stack with a Gostly account and key. Review retained data, upstream routing, licensing, telemetry and configured integrations.

Workflow and operating model

Mountebank combines predicates with authored or proxied responses. Its default proxyOnce mode inserts recorded responses ahead of the proxy stub, so later matching requests can replay while new inputs may still reach the upstream. Choose the matching fields deliberately. Proxy modes and generated predicates.

Simple multi-step flows use ordered responses; shared state needs --allowInjection and your own JavaScript. Review the injected code and reset its state for each test. Injection and shared state.

Choosing a workflow

Choose Mountebank when its predicates, recorded stubs and response sequences fit the case you want to maintain. Choose Gostly when you want the operator dashboard, service routing and managed response-library workflow in the supported stack.

Keep acceptance in your existing client or test runner. Compare the response it receives and the resulting application behavior, including an uncovered request and any required state reset.

License and ongoing operation

Mountebank uses the MIT license. Gostly is a licensed self-hosted platform with a 14-day Pro trial, no credit card required. A subscription is required after the trial; review current Gostly pricing and include your infrastructure and operating effort.

Team adds a multi-user workspace, member administration and an organization audit log.

Prepare the same HTTP case

Use one reviewed nonproduction request and response, plus an application assertion. In Mountebank, inspect the selected predicates and proxy mode. In Gostly, configure the service route. For LEARN captures, complete the library build; for imported examples, inspect warnings and confirm a successful reload. Confirm effective MOCK before checking the application.

Send a matching request and an intentionally unmatched request. Record response origin, upstream contact and the caller's result. Restore the chosen starting state before repeating the check. This is a reader-owned evaluation plan.

Treat existing Mountebank predicates, response ordering and injected JavaScript as separate migration work. The HAR, Postman and OpenAPI guides cover those reviewed input formats.

References

Official Mountebank documentation

FAQ

Do I need an API specification to use Gostly?

No. You can capture a permitted HTTP exchange in LEARN, build the library and confirm the service is in MOCK before running your test.

Can I use Gostly with my existing test runner?

Yes. Your application or test runner calls the configured Gostly service and keeps its own assertions. Check both the response and the resulting application behavior.

What should I bring to the Gostly trial?

A reviewed nonproduction HTTP exchange and an application assertion. Use a Gostly account and license key with the supported stack, configure the service route, complete the library build and confirm effective MOCK. Review retained data and configured connections.

Resources

Explore Gostly in more detail

Start from a recorded HTTP exchange

Follow a worked example from capture to a reviewed library, then check the response with your own application assertion.

Explore record and replay

Choose the API condition to test

Explore controlled failures, slow responses and simulated time with the tests you already run.

Explore API simulation

Set up one Gostly service

Prepare the supported stack, configure a service route and check your application against it.

Read the setup guide

Optional · Full stack

Train a model to simulate any API or service.

The model learns from the HTTP exchanges between your application and the service, whoever runs it: a payment provider, a partner, another team. Choose the exchanges you have reviewed, train a small adapter on your own compute, and attach the version you choose. Every answer says whether it was stored, retrieved or generated.

  • Full stack
  • Your own compute
  • Reviewed examples

See how a model is trained

  1. 1Choose traffic (current)
  2. 2Train a version
  3. 3Attach adapter

Service + URI filter

ServiceDemo API

URI filter/gostly-demo/anything/*

ExchangesThe ones you reviewed

Try Gostly with the APIs your app calls

Capture an HTTP exchange, build your library and check the result with your application.