Superwire is a declarative DSL for controlled server-side AI workflows. ADocumentation Index
Fetch the complete documentation index at: https://superwire.dev/llms.txt
Use this file to discover all available pages before exploring further.
.wire file describes the inputs a workflow accepts, the secrets it needs, the providers and model profiles it may use, the MCP capabilities it can access, the agents that should run, the dependencies between those agents, and the final structured output.
Most applications do not embed the runtime directly. They send a .wire workflow to the Superwire executor server and receive either one JSON response or a stream of Server-Sent Events.
Superwire is most useful when an AI feature needs to behave like product infrastructure: scoped tools, explicit data flow, structured outputs, validation, streaming, and testable execution. For the product-level rationale, start with the separate Why Superwire section before the syntax reference.
Run the executor
The executor is published as a Docker image:| Endpoint | Response style | Use when |
|---|---|---|
POST /execute | JSON | You want the final workflow result. |
POST /execute/stream | Server-Sent Events | You want progress events while the workflow runs. |
A minimal workflow
Createhello.wire:
Execute it
Base64-encode the workflow source:output block as JSON:
Stream the same workflow
Use/execute/stream when your UI needs progress events:
What to read next
- Why Superwire is a separate conceptual section for understanding the product-backend problem, use cases, and decision criteria.
- Quickstart walks through the same flow step by step.
- Core Concepts explains workflows, providers, models, agents, schemas, and dependencies.
- Executor API documents the HTTP request and response contract.