Windmill is an open-source developer automation platform that turns ordinary scripts into scheduled jobs, multi-step workflows and internal web apps, with execution handled by a scalable pool of workers. Among automation platforms in the field of automation, it sits between code-first orchestrators such as Airflow or Prefect and visual builders such as n8n or Zapier: every step is real code in a real language, yet the platform generates input forms, run history, permissions and scheduling around that code automatically.
The project started in 2022, its core is published under the AGPLv3 license, and a commercial enterprise edition adds features such as audit logs, single sign-on enforcement and advanced worker management. Teams use it either self-hosted or as a managed cloud service.
How Windmill turns scripts into automation
Windmill works by parsing the main function signature of each script and deriving a JSON Schema for its parameters. From that schema it renders an auto-generated input form, validates arguments and exposes the same script through a webhook, a schedule, a CLI call or a step inside a larger flow. The developer writes a function; the platform supplies the surrounding operational layer.
Under the hood, the backend is written in Rust and uses PostgreSQL as both queue and state store. When a job is triggered, a row is inserted into the job queue; stateless workers pull jobs, prepare an isolated environment with the locked dependencies, run the code and write results and logs back to the database. Because coordination lives in PostgreSQL, scaling usually means adding more workers, not introducing a separate message broker.
The following table summarizes the main building blocks and the role each one plays in a deployment.
| Component | What it does | Typical configuration |
|---|---|---|
| Scripts | Single units of logic with typed parameters | Python, TypeScript, Go, Bash, SQL and more |
| Flows | Directed graphs of steps with branching and loops | Built in the flow editor or as YAML |
| Apps | Low-code user interfaces bound to scripts | Drag-and-drop editor or full-code frontends |
| Resources and variables | Typed connection objects and encrypted secrets | Database credentials, API tokens |
| Workers | Processes that execute queued jobs | Grouped by tags for CPU, GPU or network needs |
| Triggers | Events that start jobs | Schedules, webhooks, HTTP routes, queues |
Flows, triggers and execution controls
A Windmill flow is a sequence or graph of steps described in an open format called OpenFlow, where each step is a script, a reference to a shared script or a nested flow. Step inputs are JavaScript expressions that reference earlier results, so data passing between steps stays explicit and inspectable in the run log.
Flows support the control structures that production workflows need: branching on conditions, for-loops with optional parallelism, retries with backoff, per-step timeouts, error handler steps and suspend steps for human approval, where the flow pauses until an authorized user resumes or cancels it. The next table lists common ways to start a job.
| Trigger | How it starts a job | Typical use |
|---|---|---|
| Cron schedule | Time expression evaluated by the scheduler | Nightly reports, periodic synchronization |
| Webhook | Authenticated HTTP request to a generated endpoint | Events from SaaS tools or CI systems |
| HTTP route | Custom path mapped to a script | Lightweight internal APIs |
| Message or database event | Consumer on a queue or change stream | Kafka topics, PostgreSQL changes |
| Manual run | Auto-generated form in the interface | Operations tasks run by support staff |
How Windmill compares with neighboring platforms
Windmill is best understood as a code-first platform with a generated interface. It overlaps with several tools in the same topic, but the unit of work, hosting model and target user differ in ways that matter when choosing a platform.
| Platform | Primary unit of work | Main audience | Key difference from Windmill |
|---|---|---|---|
| Windmill | Script in a general-purpose language | Developers and technical operations | Reference point |
| Airflow | Python DAG of tasks | Data engineers | Batch data pipelines, heavier scheduler model |
| n8n | Visual node with optional code | Technical generalists | Visual first, code as an exception |
| Temporal | Durable workflow function in an SDK | Backend engineers | Durable execution inside application code |
| Zapier | Prebuilt trigger and action | Business users | Hosted only, no custom runtime control |
In practice, Windmill is chosen when a team already writes scripts that need scheduling, permissions and a user interface. It is a weaker fit for long-running durable business processes that must survive months of waiting, where Temporal or Camunda are designed for that model, and for nontechnical teams that expect a purely visual builder.
Deploying and operating Windmill
A self-hosted installation runs as containers for the server and workers plus a PostgreSQL database, typically through Docker Compose for small setups or a Helm chart on Kubernetes for production. The managed cloud offering removes infrastructure work but places code and secrets on the vendor’s infrastructure, which some regulated teams avoid.
Operational maturity depends on a few design choices. Workspaces separate teams and environments, role-based permissions control who may view, run or edit each item, and Git synchronization through the wmill CLI lets teams review changes in pull requests and promote them from staging to production. Dependencies are resolved into per-script lockfiles, which makes runs reproducible.
The decision table below maps common requirements to a sensible configuration.
| Requirement | Recommended setup | Reason |
|---|---|---|
| Small team, few jobs | Docker Compose with two or three workers | Simple to run and back up |
| High job volume | Kubernetes with autoscaled worker groups | Workers scale independently of the server |
| Heavy or GPU workloads | Dedicated worker group with tags | Keeps slow jobs away from fast ones |
| Strict change control | Git sync with review before deployment | Every change is versioned and auditable |
| Sensitive credentials | Encrypted variables with restricted folders | Limits secret exposure to authorized users |
Limitations and common mistakes
Windmill shifts complexity into code, so its main trade-off is flexibility versus accessibility. Teams gain full language power but need people who can write, test and review that code.
- Treating PostgreSQL as an afterthought: the database is the queue, so undersized storage or missing backups affect every job.
- Running everything on one worker group: long data jobs then block short interactive scripts.
- Storing secrets in script bodies instead of encrypted variables and resources.
- Skipping Git synchronization, which leaves production edits unreviewed and hard to roll back.
- Ignoring license terms: the AGPLv3 core and the enterprise edition carry different obligations for embedding and redistribution.
Explained without jargon
Windmill is a workshop for small computer programs. A developer writes a short program, for example one that copies new orders into a spreadsheet, and Windmill turns it into a button, a timer and a form that colleagues can use without reading any code.
It can also chain several programs together, so one step fetches data, the next checks it and the last sends a message. Windmill keeps a record of every run, retries steps that fail and controls who is allowed to do what. The key idea is simple: write the logic once, and the platform handles everything around it.
A typical use case
A mid-sized online retailer has an operations team of four engineers who maintain dozens of loose Python and SQL scripts on a shared server. Refunds, inventory corrections and supplier reports depend on whoever remembers which script to run, and failures go unnoticed until customers complain.
The team installs Windmill on its Kubernetes cluster with two worker groups: one for quick interactive scripts and one for heavy nightly reports. Each script becomes a Windmill script with typed parameters, so support staff now issue refunds through an auto-generated form instead of filing tickets. A nightly flow pulls sales data, reconciles it against the warehouse database and pauses at an approval step when discrepancies exceed a set threshold.
Within a quarter, manual script runs by engineers drop sharply, every execution has a searchable log, and all changes pass through Git review before reaching production.