CLI Reference

View as Markdown

The documented CLI workflow launches a coding agent through the native Rust server.

switchyard launch

$export OPENROUTER_API_KEY="sk-or-..."
$switchyard launch claude --model switchyard

Supported agents are claude, codex, and openclaw.

switchyard launch <agent> --model <route-id> [--config <deployment.toml>] [-- <agent args>]
OptionPurpose
--model IDRequired route ID from the deployment.
--config PATHTOML deployment. Defaults to the packaged OpenRouter deployment.
-- ...Arguments forwarded to the coding agent.

Custom deployment syntax is documented in crates/switchyard-server/README.md.