Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Rustybin documentation

Your gateway’s
testing ground.

Mock an API. Route an AI request. Watch what your gateway forwards. One binary gives you a predictable place to build, explore and break things.

Start with what you need

New here? Start a local instance, then send your first requests. You can try the built-in API, mock LLM and MCP server before configuring anything else.

Who it is for

Rustybin is a single-binary mocking and testing service for API, AI and agent gateways. Run it locally, in a container or behind your gateway as the upstream.

  • Demo a gateway: use reproducible responses and trigger failures on cue.
  • Develop against an API: turn an OpenAPI spec into a working mock, or describe one with your own AI.
  • Test a platform: exercise authentication, protocols and load scenarios; keep the instance's configuration in git.

What is inside

I want to…Start here
Build and edit an API mockOpenAPI mocks, responses and rules, build with AI
Share something testers can tryDev portal, collection exports
Simulate an AI providerMock LLM, provider URLs, guardrails
Connect an agent or inspect an MCP serverMCP server, MCP inspector, A2A agents
Inspect requests or introduce failuresRequest inspector, fault injection, gateway recipes
Test authentication or another protocolAuthentication, OAuth / OIDC, HTTP and protocol reference
Measure a gateway under loadLoad testing
Manage and reproduce an instanceWeb console, CLI, management MCP and your coding agent, instance as code, source control

Two AI features, different purposes: the mock LLM simulates provider responses without a real model or key. AI assist connects your own provider to help build mocks and manage the instance.

Ports

ListenerDefault portWith the quick-start Docker mapping
HTTP80http://localhost:8080
HTTPS443https://localhost:8443 (demo certificate)
gRPC50051localhost:50051 (plaintext h2c)

HTTP and HTTPS serve the same routes. HTTP is required; if HTTPS or gRPC cannot start, Rustybin logs a warning and keeps serving HTTP. Change listeners with environment variables.

Where to go next

  • Do something: find a task, or follow the quick start.
  • Look something up: configuration, CLI reference, or the endpoint list at / on your running instance.
  • Explore the API: /docs is the interactive OpenAPI reference on the instance; /openapi.json is its machine-readable document.
  • Get unstuck: troubleshooting, including sign-in, certificates, persistence and outbound connections.

Rustybin is open source under the GNU AGPL-3.0, with a commercial license available. See licensing.