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 mock | OpenAPI mocks, responses and rules, build with AI |
| Share something testers can try | Dev portal, collection exports |
| Simulate an AI provider | Mock LLM, provider URLs, guardrails |
| Connect an agent or inspect an MCP server | MCP server, MCP inspector, A2A agents |
| Inspect requests or introduce failures | Request inspector, fault injection, gateway recipes |
| Test authentication or another protocol | Authentication, OAuth / OIDC, HTTP and protocol reference |
| Measure a gateway under load | Load testing |
| Manage and reproduce an instance | Web 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
| Listener | Default port | With the quick-start Docker mapping |
|---|---|---|
| HTTP | 80 | http://localhost:8080 |
| HTTPS | 443 | https://localhost:8443 (demo certificate) |
| gRPC | 50051 | localhost: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:
/docsis the interactive OpenAPI reference on the instance;/openapi.jsonis 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.