Scroll to overview
Prompt control plane

Ship prompts like product, call them like code.

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 gateway/Provider keys stay in the vault/Compile-time type safety

Separation of prompt logic from application runtimes.

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

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.

For backend engineers

Compile-time typed execution

Generate native structs and types that fail the test runner when an upstream schema changes or breaks contract.

How switchYards works

From prompt authoring to typed production execution in three continuous steps.

Step 01

Author in dashboard

Define system instructions, input variables ({{query}}), a closed JSON output schema, and bind a provider model.

Status: draft or Live contract

Step 02

Generate SDK client

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

Execute typed method

Your server invokes the generated client. The gateway validates the payload and proxies the call to the provider.

Provider keys stay in the vault

See every prompt change as a unified diff.

Review exact template and output schema changes before you run switchyards generate and deploy the host.

prompts/generate_receipt2.0.0 → 2.1.0Host update pending
System template
- 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.
Output
- currency · string · optional — ISO 4217 currency code+ currency · string · required — ISO 4217 currency code

Connect Cursor over hosted MCP.

Hosted MCP is https://switchyards.dev/mcp. Cursor connects with the URL only. generate stays on the local CLI.

Hosted tools

  • list_prompts
  • get_prompt
  • publish_prompt
  • list_credentials

Neither MCP surface Executes or holds provider keys. Local switchyards mcp still needs switchyards login and .switchyardsrc.

Needs login at /mcp

~/.cursor/mcp.jsonurl only
{
  "mcpServers": {
    "switchyards": {
      "url": "https://switchyards.dev/mcp"
    }
  }
}

generate stays on switchyards mcp

Deterministic prompt versioning in production.

Never break microservice dependencies. switchYards distinguishes between Live versions and a Host update pending when the host must regenerate.

Host update pendingVersion 2.0.1 pending regeneration
Slug identifierLive 2.0.0

prompts/generate_receipt

The output schema now enforces decimal precision on currency blocks. Hosts must regenerate typed stubs before cutting over traffic.

Ack hash: a1b2c3d4…Newest hash: f6e5d4c3…

Provider keys stay in the vault

Go clientCompiler verified
client := switchyards.NewClient(
  os.Getenv("SWITCHYARDS_SECRET_KEY_RECEIPT"),
)
res, err := client.GenerateReceipt(ctx, &ReceiptParams{
  RawPayload: textPayload,
})

Runs via the switchYards gateway

Ready in 2 minutes

Take control of your production prompt layer.

Replace scattered LLM API keys and unvalidated prompt strings with typed client contracts and a team prompt dashboard.

Ctrl-plane · AES-256-GCM vault

Frequently asked questions

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.