Service virtualization tools · Self-hosted

Service virtualization your team runs in its own environment.

Stand in for the HTTP APIs your software depends on with virtual services you control. Gostly is self-hosted API virtualization for teams that need the same API conditions in development, CI and staging.

14-day Pro trial. Runs on Docker Compose in your environment. See pricing · Read the quickstart

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

Catch an invoice retry regression in CI

Billing application · CI checks

Run the billing regression

northline / billing-webPrivate

Preserve billing history after a failed refresh

ActionsBilling UI#284
FailedOriginal · 2/3 checks

billing-regression

Preserves the last loaded invoices on HTTP 503

Action
Refresh invoices
Request
GET /api/invoices503 Service Unavailable
Fixture
{"error":"billing_service_unavailable"}
Expected
INV-1041, INV-1042 · Refresh unavailable
Observed
No invoices · No warning
A billing page already shows two invoices. A refresh returns 503 and the page incorrectly says there are no invoices. Reproduce that failure in the runner, then verify the corrected client keeps the list visible and updates it after a retry.

Start from the job you have.

  • GET /orders/1042 answers no answerthe service does not exist yet

    The orders API is not built yet, so the screen has nothing to show.

    Build before the API is ready.

    Build the client against the HTTP responses and state changes you expect while the upstream service is still taking shape.

    Build before dependencies are ready

  • CI run against the vendor sandbox answers passed · 3 of 3 checks

    CI run against the mock answers passed · 3 of 3 checksanswered from your reviewed responses

    Both runs pass while the sandbox is up. Take it down.

    Run the same API conditions in CI.

    Carry reviewed API inputs and a clear application assertion from a local fix into review and your existing CI suite.

    Keep useful cases through development and CI

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

Virtualize behavior, not only responses.

Choose the conditions a virtual service puts in front of your software, then run the tests you already have.

Return an error or a slow response

Serve a configured failure such as a 503, or add a delay, and check the retry, timeout or fallback your application actually uses.

Explore failure injection

POST /payments answers 201 Created · 38 msanswered from the mock library

The happy path. Pick the failure your test needs.

Keep state between calls

Follow the same resource through an action and a later read, such as an order from creation to cancellation.

Explore stateful workflows

GET /orders/1042 answers 200 · {"status": "open"}the same order, the state it is in now

Order 1042 is open. Cancel it, then read it again.

Cross an expiry or a rate-limit window

Advance simulated API time in a supported scenario, send the next request, then reset the scenario for another run.

Explore Time Chamber

Simulated API time09:00:00

GET /reports answers 429 Too Many Requests · Retry-After: 60

The API asks for a 60-second wait. Move its clock instead.

RelatedAPI mocking API simulation

Evaluating for a team?

Book a focused walkthrough, map your setup, or plan a migration.

Book a walkthrough
  • The same API conditions in development, CI and staging
  • Runs in your environment, on Docker Compose
  • On the Team plan: invited members, an organization audit log and an MCP server

From trial to a first virtual service.

  1. Start the trial

    Register, verify your email and create your license key in your account dashboard.

  2. Install with Docker Compose

    Clone the public Compose repository onto the machine that will host Gostly and run its setup script.

    git clone https://github.com/gostlyai/gostly-docker-compose gostly-docker-compose && cd gostly-docker-compose
    ./setup.sh
  3. Add one API

    Register the service your application calls, or begin with the bundled demo API.

    curl -i http://localhost:8080/gostly-demo/get
  4. Run your tests against it

    Capture that API’s responses or import the ones you have, switch the service to MOCK, and point your tests at Gostly.

Read the quickstart Check the install requirements

Where Gostly runs.

Runs in your environment

Gostly is self-hosted. The supported stack starts with Docker Compose on the machine you choose to host it.

See how the stack fits together

What leaves it

In LEARN mode it calls your configured upstream. Connected editions also validate licenses and can send allowlisted operational telemetry.

Review where your test data goes

Lite or Full

Lite has no AI containers and is the default for every install. Full adds AI services and requires additional resources.

Check the install requirements

FAQ

Is this service virtualization or API mocking?

Both names describe the same job here: Gostly stands in for an HTTP API your software depends on and answers from a response library you control.

Can I virtualize an external or third-party API?

Yes. A virtual service can stand in for any HTTP API your software calls, including an external API run by a vendor or a partner. In MOCK mode your integration tests get the third-party API’s answers from the response library you prepared, and the provider is not called.

Can I keep my test runner?

Yes. Gostly supplies the HTTP dependency surface. Your client and test runner keep the application assertions and decide whether the result is right.

What do I need to run it?

You need Docker with Compose, git and curl. AI services run in the Full stack, which needs more memory; Lite runs without them.

Can Gostly answer a request it has no saved response for?

It can, as an option. On the Full stack you can train a small model on one service’s reviewed exchanges and let it generate an answer. The answer is labeled as generated, and your own checks decide whether it is right. Without that option a missing response stays a miss.

How does the trial work?

Every new account starts a 14-day Pro trial automatically, with no credit card required. A subscription is required after the trial.

Resources

Go deeper on service virtualization

Keep useful cases through development and CI

Carry reviewed API inputs and a clear application assertion from a local fix into review and your existing CI suite.

Read the solution

See how the stack fits together

How the self-hosted proxy, API, dashboard and optional inference services fit together.

Open the architecture

Review where your test data goes

Choose safe API test inputs with a data-flow map and the retained-data and outbound-connection boundaries.

Read the security evaluation

Give every environment the same API conditions.