Open-source virtual power plant
Experimental 路 pre-1.0 路 APIs can change between releases
Flexibility you can explain.
flexpool pools batteries, homes and depots, plans them against day-ahead prices, offers their flexibility to grid operators and proves what was delivered. Every number is exact, every decision has a reason, and every step can be replayed.
$ docker compose up -d --wait
$ curl -s localhost:8080/healthz
{"status":"ok","version":"0.5.0","service":"flexpoold"}
$ flexpool scenario run scenarios/demo.toml
day 2025-10-02
events
2025-10-01 12:00 +02:00 gate closed da.gate
2025-10-01 12:57 +02:00 published da.prices
2025-10-01 15:00 +02:00 gate closed ida1.gate
prices 96 intervals mean 84.82 EUR/MWhThe operator desk
Calm by default, loud on exception. Every value shows its age, every order has a reason, and nothing reaches a market until a person releases it.
Book and delivery
The release with its digest, positions after the auction, and the Fahrplan against measured power, with what to trade back.
Timeline
Day-ahead prices on one Berlin-time axis, the forecast fan beneath them, and every model scored over the last 14 days.
Flexibility
A grid operator's request answered from the batteries behind the congestion point, sent by a person, and the settlement recomputed before it counts.
What flexpool does
Portfolio as code
Owners, pools, technical units and assets in a TOML file and a CSV, checked line by line. Shared assets are split into slices; homes are marked as personal data.
Read-only telemetry
SunSpec and IEC 60870-5-104 devices are read, never written to. Every value carries its quality, so a silent battery is unknown, never zero.
Probabilistic forecasts
Day-ahead price quantiles before the gate, scored honestly once prices are known. Bring your own model and see it ranked.
A plan with a risk knob
Scenarios, a storage optimiser with CVaR, water values and protective limit orders per battery pool, compared with perfect foresight.
A book with a kill switch
Pre-trade checks, a release journaled with its digest, positions, the Fahrplan nomination for mako, and one switch that withdraws every open order.
Delivery and imbalance
The Fahrplan against measured power, quarter by quarter, and the next hour's deviation projected while there is still time to trade it back.
Local flexibility market
Requests from grid operators become offers built from the units behind the congestion point. Every settlement is recomputed and its digest compared before it is accepted.
Alarms that mean something
One alarm per cause, acknowledgement and shelving on a hash-chained journal, a shift handover, and paging through signed CloudEvents.
Agents, read-only
Fifteen MCP tools answer the desk's questions from the same API. Nothing an agent can call trades, offers or switches a device.
From a forecast to a settled euro
- Forecastprice quantiles per quarter hour
- Plana schedule per pool, inside hard limits
- Tradechecked, released, journaled
- Offerflexibility to the grid operator
- Delivermeasured, quarter by quarter
- Settlerecomputed, digest compared
Built on open standards
- UFTP 3.1 (Shapeshifter)
- CloudEvents 1.0
- Standard Webhooks
- OpenAPI 3.1
- Model Context Protocol
- W3C Trace Context
- RFC 9457 problem details
- SunSpec Modbus
- IEC 60870-5-104
- ISA-18.2 / EEMUA 191
- BDEW identifiers (MaLo, TR-ID)
- GDPR Art. 17
Why flexpool馃敆
Aggregators sell what their customers' batteries, heat pumps and chargers could do differently. Each step of that sale is a number someone else relies on: a forecast, a bid, a schedule, a delivered megawatt, a settlement. flexpool computes every one of them deterministically and keeps the inputs. Its answer to "why?" comes from the record, not from memory:
- Exact. Energy and money are decimals, never floats. Business time is the Berlin quarter hour, including the 92- and 100-quarter days.
- Grid first. Grid and safety limits are hard constraints. No price buys them back.
- Simulation first. Every feature runs against replayed market days before a real one.
- Explainable. Warum? on every order, and Nachrechnen recomputes any release from its journal record alone.
- Interoperable. REST with OpenAPI, CloudEvents with published schemas, signed webhooks and MCP. Each one follows the Open Utility Stack's conventions, so any platform that follows them can take the other side.
Status馃敆
flexpool is pre-release software. The planning plane, the book, delivery, alarms, the desk and the flexibility market run end to end on simulated and replayed data. Orders are paper orders: no exchange is connected and no device is controlled. Get started in three minutes with Docker.