For product & AI teams
Visual prompt lifecycle
Refine templates, define a closed output schema, and keep full version history. Inspect live token costs and compare model latency before publishing.
The developer control plane where product teams author prompt contracts, while backend services call typed Go, TypeScript, Python, and Java clients without provider keys ever leaving the vault.
Live gatewayProvider keys stay in the vaultCompile-time type safety
Product managers adjust system prompts, model parameters, and output JSON schemas inside the switchYards dashboard without touching Git repositories. Software engineers pull typed Go, TypeScript, Python, and Java stubs via the CLI and execute through the gateway. Hosts hold a project secret; provider keys stay in the vault.
For product & AI teams
Refine templates, define a closed output schema, and keep full version history. Inspect live token costs and compare model latency before publishing.
For backend engineers
Generate native structs and types that fail the test runner when an upstream schema changes or breaks contract.
From prompt authoring to typed production execution in three continuous steps.
Step 01
Define system instructions, input variables ({{query}}), a closed JSON output schema, and bind a provider model.
Status: draft or Live contract
Step 02
Run switchyards generate in your repository to compile updated types and client stubs for Go, TypeScript, Python, or Java.
CLI syncs the latest schema hash
Step 03
Your server invokes the generated client. The gateway validates the payload and proxies the call to the provider.
Provider keys stay in the vault
Review exact template and output schema changes before you run switchyards generate and deploy the host.
- You extract structured receipt data. Return only fields in the schema. Prefer the printed total, not subtotals.+ You extract structured receipt data. Return only fields in the schema. Prefer the printed total, not subtotals. If currency is missing, infer from locale.
- currency · string · optional — ISO 4217 currency code+ currency · string · required — ISO 4217 currency code
Hosted MCP is https://switchyards.dev/mcp. Cursor connects with the URL only. generate stays on the local CLI.
Hosted tools
Neither MCP surface Executes or holds provider keys. Local switchyards mcp still needs switchyards login and .switchyardsrc.
Needs login at /mcp
{
"mcpServers": {
"switchyards": {
"url": "https://switchyards.dev/mcp"
}
}
}generate stays on switchyards mcp
Never break microservice dependencies. switchYards distinguishes between Live versions and a Host update pending when the host must regenerate.
prompts/generate_receipt
The output schema now enforces decimal precision on currency blocks. Hosts must regenerate typed stubs before cutting over traffic.
a1b2c3d4…Newest hash: f6e5d4c3…Provider keys stay in the vault
client := switchyards.NewClient(
os.Getenv("SWITCHYARDS_SECRET_KEY_RECEIPT"),
)
res, err := client.GenerateReceipt(ctx, &ReceiptParams{
RawPayload: textPayload,
})Runs via the switchYards gateway
Technical specifications and architectural details for engineering teams.
Hardcoding prompts couples product adjustments to code deployments and spreads provider keys across engineering machines. With switchYards, prompt iterations happen in a dedicated dashboard with versions and a closed output schema, while your code calls generated, type-safe SDK methods.