> This page is for version Dev.
> For other versions, use one of these documentation indexes:
> - Latest (v0.4.0) (default): https://docs.nvidia.com/nemo/switchyard/latest/llms.txt
> - Dev: https://docs.nvidia.com/nemo/switchyard/dev/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemo/switchyard/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nemo/switchyard/_mcp/server.

# Server CLI Reference

`switchyard-server` runs the standalone Rust proxy for API clients and custom deployments.

Install the standalone binary with `cargo install --locked switchyard-server`.
It reads a native TOML deployment.

### Usage \[#usage]

```bash
switchyard-server --config <deployment.toml> [options]
```

| Option                                | Default             | Purpose                                                                                                                 |
| ------------------------------------- | ------------------- | ----------------------------------------------------------------------------------------------------------------------- |
| `--config PATH`                       | Required            | TOML file defining LLM clients, targets, and algorithm routes.                                                          |
| `--host HOST`                         | `127.0.0.1`         | Address on which the server listens. Use `0.0.0.0` for remote clients.                                                  |
| `-p, --port PORT`                     | `4000`              | Port on which the server listens.                                                                                       |
| `--max-request-body-bytes BYTES`      | `33554432` (32 MiB) | Maximum buffered JSON request size, including inline base64 media; must be positive.                                    |
| `--backlog BACKLOG`                   | `65535`             | TCP listen backlog configured before accepting traffic.                                                                 |
| `--shutdown-timeout SHUTDOWN_TIMEOUT` | `30s`               | Maximum time active requests may drain during shutdown.                                                                 |
| `--dry-run`                           | Off                 | Validate the deployment without binding a socket.                                                                       |
| `--routing-log-file PATH`             | None                | Append durable per-request routing records to this JSONL file.                                                          |
| `--pricing-file PATH`                 | None                | Estimate unreported call costs from a TOML or JSON file of USD rates per million tokens; requires `--routing-log-file`. |
| `--tls-cert PATH`                     | None                | PEM certificate path; requires `--tls-key`.                                                                             |
| `--tls-key PATH`                      | None                | PEM private-key path; requires `--tls-cert`.                                                                            |
| `-h, --help`                          | —                   | Print command help.                                                                                                     |
| `-V, --version`                       | —                   | Print the server version and build Git SHA.                                                                             |

Saved routing records use bundled model prices by default. `--pricing-file` replaces
the entire bundled table, so include every model you want to price.

Validate a deployment, then start the proxy:

```bash
switchyard-server --config routes.toml --dry-run
switchyard-server --config routes.toml \
  --host 127.0.0.1 --port 4000
```

## Related Documentation \[#related-documentation]

* [Getting Started](/nemo/switchyard/dev/get-started/getting-started): installation, configuration, and validation
* [`switchyard-server`](https://github.com/NVIDIA-NeMo/Switchyard/blob/bc716b420f3f76a77c0e93dde08c14b97ec2120f/crates/switchyard-server/README.md): complete TOML schema, TLS, and metrics