> For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.

# Decoy documentation

Start with [Serve your first mock](/docs/quick-start/index.md). You'll make one request return a user, then a 404. The quick start includes installation, both YAML files, and the commands to check each response. If you only need the CLI, [choose an installation method](/docs/install/index.md).

## Write mocks

| I want to…                                                   | Read                                                                                              |
| ------------------------------------------------------------ | ------------------------------------------------------------------------------------------------- |
| Match a path, inspect the request body, or delay a reply     | [HTTP Routes, Cases, and Behaviors](/docs/routes/index.md)                                        |
| Switch several responses together                            | [Collections](/docs/collections/index.md)                                                         |
| Return a protobuf message or stream replies                  | [gRPC](/docs/grpc/index.md)                                                                       |
| Respond to a WebSocket message or close a connection         | [WebSocket](/docs/websocket/index.md)                                                             |
| Decode a custom payload before matching it or encode a reply | [Transformers](/docs/transformers/index.md) and [Pipelines](/docs/transformer-pipelines/index.md) |

## Drive Decoy from a test

Use the [Playwright fixture](/docs/playwright/index.md) or [Testplane plugin](/docs/testplane/index.md) to route browser requests to Decoy. Each test gets a Session, so one test can select an error while another still sees a successful response.

For curl or another HTTP client, use the [Control API](/docs/sessions-and-control/index.md). For a complete setup with its own mocks, browse the [runnable examples](/docs/examples/index.md).

## Run the server

- [Configuration](/docs/config/index.md) lists YAML keys, CLI flags, and defaults.
- [TLS](/docs/tls/index.md) shows how to serve HTTPS with a local certificate.
- [Terminal UI](/docs/tui/index.md) explains how to inspect requests and change the active Collection.
- [Troubleshooting](/docs/troubleshooting/index.md) helps you tell a mock miss from a connection or Session problem.
- [Glossary](/docs/terms/index.md) defines the terms used in mock files and the Control API.
