# mako > Open-source software for German electricity and gas markets. Validate EDIFACT, trace MaKo workflows and reconcile billing and settlement in one operator Desk. Every page below is the Markdown source of a page on https://hupe1980.github.io/mako/ — append `index.md` to any page URL for the same. `llms-full.txt` holds all of them in one file. ## Guide - [Documentation](https://hupe1980.github.io/mako/docs/index.md): Documentation for mako, the open-source German energy-market platform in Rust: guides, operator manuals, EDIFACT reference and regulatory mapping. - [Guide](https://hupe1980.github.io/mako/docs/guide/index.md): Install mako, parse your first EDIFACT interchange, and run a workflow. - [For utilities](https://hupe1980.github.io/mako/docs/guide/for-utilities/index.md): mako for a Stadtwerk: which jobs it covers, which Marktrollen it plays, how to evaluate it without risk, and what running it takes. - [Getting Started](https://hupe1980.github.io/mako/docs/guide/getting-started/index.md): One command to a running, seeded mako: `just dev` builds and starts every service with the Desk and fills one Stadtwerk; `just demo` runs the released images without Rust. - [The Desk](https://hupe1980.github.io/mako/docs/guide/desk/index.md): mako Desk, the operator's web UI: processes by business key, every Frist in Berlin time, one market role at a time — on the agents' typed MCP tools. - [Einrichtung](https://hupe1980.github.io/mako/docs/guide/einrichtung/index.md): Check a deployment's configuration before it starts: every finding of every daemon, with its setting path and source, in the terminal and over HTTP. - [Replace a service](https://hupe1980.github.io/mako/docs/guide/replace-a-service/index.md): Keep your own contract system or billing in place of a mako service, and check with the conformance kit that it keeps the contract mako's service publishes. ## Architecture - [Architecture](https://hupe1980.github.io/mako/docs/architecture/index.md): How the platform fits together: the event-sourced engine, domain model, deadlines, and ERP/API integration. - [ERP Integration](https://hupe1980.github.io/mako/docs/architecture/erp-integration/index.md): Integrate your ERP with mako over CloudEvents 1.0 webhooks, the Command API and typed BO4E market data — HMAC signatures, idempotency keys, topology. - [API-Webdienste Strom](https://hupe1980.github.io/mako/docs/architecture/api-webdienste/index.md): BDEW API-Webdienste Strom: the REST/JSON iMS channel beside EDIFACT/AS4 — control measures, MaLo-ID queries and the Directory Service, via energy-api. - [Deadline Compensation](https://hupe1980.github.io/mako/docs/architecture/compensation/index.md): How mako-engine decides a fired deadline: owned labels, on_deadline, the lapse outcomes, and the delivery windows the outbox retires. - [Domain Model](https://hupe1980.github.io/mako/docs/architecture/domain-model/index.md): The BDEW market role model, market objects (MaLo, MeLo, NeLo, NeBe), territories, identifier check-digit rules and their EDIFACT encoding. - [Process Engine](https://hupe1980.github.io/mako/docs/architecture/engine/index.md): mako-engine: event-sourced workflow state machines, atomic dual-write, deadlines, the outbox, PID routing and format-version coexistence. ## Reference - [Reference](https://hupe1980.github.io/mako/docs/reference/index.md): Deep reference for parsing, validation, builders, the platform API, and every process. - [Parsing](https://hupe1980.github.io/mako/docs/reference/parsing/index.md): All entry points for reading EDI@Energy EDIFACT data: parse, parse_interchange, Platform::parse, ParseConfig DoS limits, and error variants. - [Validation](https://hupe1980.github.io/mako/docs/reference/validation/index.md): EDIFACT validation against the MIG and the AHB column: the checks, the ValidationReport, rule ids, Prüfidentifikatoren and release dates. - [Builders](https://hupe1980.github.io/mako/docs/reference/builders/index.md): Fluent type-state builder API for constructing valid EDI@Energy EDIFACT messages: UTILMD, MSCONS, APERAK, CONTRL, INVOIC, REMADV, ORDERS, ORDRSP. - [Platform](https://hupe1980.github.io/mako/docs/reference/platform/index.md): Use Platform for multi-tenant gateways, test isolation, hot-reload, and custom DoS limits. Alternative to the global ReleaseRegistry singleton. - [DVGW EDI](https://hupe1980.github.io/mako/docs/reference/dvgw/index.md): The dvgw-edi crate: parsing, validating and writing ALOCAT, NOMINT, NOMRES and SSQNOT for GaBi Gas 2.1 gas transport. - [Process Catalog](https://hupe1980.github.io/mako/docs/reference/processes/index.md): Every German market communication process mako implements — GPKE, WiM, MaBiS, GeLi Gas, GaBi Gas and PARTIN — with its roles, messages and deadlines. - [Redispatch 2.0](https://hupe1980.github.io/mako/docs/reference/redispatch/index.md): Redispatch 2.0 in mako: the XML document types, eight event-sourced workflows, the BilAReM regime under BK6-23-241, and IFTSTA integration. - [BDEW AS4 Guide](https://hupe1980.github.io/mako/docs/reference/as4-bdew/index.md): Configure makod for BDEW AS4-Profil 1.2 on asx 0.21: one identity per MP-ID, the SM-PKI trust anchor, partners, the sender policy, and testing. - [Electricity schedules](https://hupe1980.github.io/mako/docs/reference/schedules/index.md): Build a German ESS 2.3 intra-area nomination and match it to its AS4 Fahrplan route. - [makotest (Python)](https://hupe1980.github.io/mako/docs/reference/makotest/index.md): Python test and simulation toolkit for MaKo platforms: BDEW check digits, answer-Fristen, AHB-validated EDIFACT and a pytest plugin, over mako's Rust core. - [Cold restore of a Lieferant close](https://hupe1980.github.io/mako/docs/reference/recovery/index.md): Restore an issued invoice, its credit and a pending delivery into fresh stores and verify when the local sender can resume. - [Operator policy](https://hupe1980.github.io/mako/docs/reference/operator-policy/index.md): Every operator setting mako ships: its key, its options with their primary sources, and its default or that it is required. - [Event catalog](https://hupe1980.github.io/mako/docs/reference/events/index.md): Every CloudEvent type mako declares: who emits it, who names it, and the JSON Schema of its data. - [HTTP APIs](https://hupe1980.github.io/mako/docs/reference/api/index.md): Published OpenAPI 3.1 documents and operator guides for mako services. ## Services - [Services](https://hupe1980.github.io/mako/docs/services/index.md): Operator guides for the 14 production daemons — ports, config, APIs, deployment. - [makod Operator Guide](https://hupe1980.github.io/mako/docs/services/makod/index.md): makod operator guide: ports, CLI flags, the config file, persistent and volatile storage, AS4 inbound, the REST API and Kubernetes deployment. - [marktd Operator Guide](https://hupe1980.github.io/mako/docs/services/marktd/index.md): Operator guide for marktd, the market data hub: Marktpartner, Marktlokationen, price sheets and the durable CloudEvents fan-out every other service reads. - [processd Operator Guide](https://hupe1980.github.io/mako/docs/services/processd/index.md): processd operator guide: NB Anmeldung STP, LF and MSB answers, the process read model and its KPIs, the NB Sperrauftrag queue, role-gated builds and Cedar. - [invoicd Operator Guide](https://hupe1980.github.io/mako/docs/services/invoicd/index.md): invoicd operator guide: the LF-side INVOIC plausibility check over ten inbound billing PIDs, with § 147 AO receipts and the answer back through makod. - [netzbilanzd Operator Guide](https://hupe1980.github.io/mako/docs/services/netzbilanzd/index.md): netzbilanzd operator guide: NNE, Konzessionsabgabe and Mehr-/Mindermengen settled into INVOIC drafts, and MaBiS Summenzeitreihen filed with the BIKO. - [edmd Operator Guide](https://hupe1980.github.io/mako/docs/services/edmd/index.md): Operator guide for edmd, the energy-data daemon: MSCONS and iMSys readings, quality scoring, validation, virtual meters and § 60 MsbG Ersatzwerte. - [einsd Operator Guide](https://hupe1980.github.io/mako/docs/services/einsd/index.md): Operator guide for einsd, the EEG/KWKG feed-in settlement daemon: plant registry, §51 Negativpreisregel, §52 Pflichtzahlungen, 20 MCP tools, eeg-agent. - [productd Operator Guide](https://hupe1980.github.io/mako/docs/services/productd/index.md): Operator guide for productd, the LF product and tariff catalogue: Tarifpreisblätter, §41a EPEX dynamic pricing, the §41c comparison feed and B2B Angebote. - [billingd Operator Guide](https://hupe1980.github.io/mako/docs/services/billingd/index.md): Operator guide for billingd, the LF multi-product billing engine: 13 product categories, §41a dynamic tariffs, §14a modules and EN 16931 e-invoicing. - [outputd Operator Guide](https://hupe1980.github.io/mako/docs/services/outputd/index.md): Operator guide for outputd, the customer-communications daemon: operator-owned Typst templates, the ZUGFeRD PDF/A-3 carrier and per-channel delivery evidence. - [accountingd Operator Guide](https://hupe1980.github.io/mako/docs/services/accountingd/index.md): Operator guide for accountingd, the LF Massenkontokorrent: a tamper-evident double-entry ledger, SEPA and camt payment flows, Mahnwesen and Jahresabschluss. - [vertragd Operator Guide](https://hupe1980.github.io/mako/docs/services/vertragd/index.md): Operator guide for vertragd, contract and customer management: B2C and B2B Verträge, Rahmenverträge, Kündigungsfristen and §41 EnWG price-change duties. - [portald Operator Guide](https://hupe1980.github.io/mako/docs/services/portald/index.md): Operator guide for portald, the customer-portal read-model gateway: one REST API over Lastgang, invoices, ledger and supply status, plus §41 EnWG self-service. - [agentd Operator Guide](https://hupe1980.github.io/mako/docs/services/agentd/index.md): agentd operator guide: 30 specialist manifests on agentplane — typed results, durable triage, semantic trust labels and journal-backed runs. ## Regulatory - [Regulatory](https://hupe1980.github.io/mako/docs/regulatory/index.md): BNetzA determinations, the Prüfidentifikator catalog, and the legal basis behind each process. - [BNetzA Regulatory Reference](https://hupe1980.github.io/mako/docs/regulatory/bnetza/index.md): Complete BNetzA ruling index for German energy market communication: BK6 GPKE/WiM/MaBiS, BK7 GeLi Gas, current rulings, and Fristen. - [PID Reference](https://hupe1980.github.io/mako/docs/regulatory/pid-reference/index.md): Every Prüfidentifikator mako routes: BDEW PID 3.3 and 4.0 plus the DVGW gas transport codes, with the roles that exchange each and the crate that handles it. ## Compliance - [Release & Compliance](https://hupe1980.github.io/mako/docs/compliance/index.md): Annual EDI@Energy release lifecycle, schema versioning, license governance, and the CRA and AI Act positions. - [Profile Files](https://hupe1980.github.io/mako/docs/compliance/schema-versioning/index.md): What a profile is: mig.json and ahb.json, generated from the BDEW MIG and AHB PDFs, keyed by the MIG's running segment number. - [Release Lifecycle](https://hupe1980.github.io/mako/docs/compliance/release-lifecycle/index.md): How mako selects dated BDEW profiles, handles cutovers and publishes a release. - [Annual Release Workflow](https://hupe1980.github.io/mako/docs/compliance/annual-release-workflow/index.md): The engineering playbook for a new BDEW release: mirror the documents, import and validate the profiles, check PID coverage, roll out, migrate. - [CRA and AI Act](https://hupe1980.github.io/mako/docs/compliance/eu-regulations/index.md): mako under the Cyber Resilience Act (EU) 2024/2847 and the AI Act (EU) 2024/1689: outside CRA scope by the owner's determination, with an advisory agent plane. - [License Governance](https://hupe1980.github.io/mako/docs/compliance/licenses/index.md): License governance for the mako workspace: where the allow list lives, how a licence is added, and which licences are never acceptable. ## Tools - [§ 14a Modul 1 or Modul 2 — which saves more?](https://hupe1980.github.io/mako/rechner/14a/index.md): Compare the two forms of the § 14a EnWG Netzentgelt reduction for a heat pump or wallbox: the Netzbetreiber's Pauschale (Modul 1) against an Arbeitspreis cut to 40 % on the device's own meter (Modul 2). - [Antwortcode lookup — what does A02 mean?](https://hupe1980.github.io/mako/validator/codes/index.md): Look up a BDEW Antwortcode in the Entscheidungsbaum that publishes it: A02 in E_0622 is not A02 in E_0607. The BDEW's own wording, in your browser. - [Antwortfrist calculator — by when is the answer due?](https://hupe1980.github.io/mako/validator/fristen/index.md): Pick a Prüfidentifikator and its arrival: the answer's deadline on the BDEW Werktag calendar, in Berlin time, with the Festlegung it rests on. GPKE, GeLi Gas, WiM. - [EEG feed-in rate — what does my PV system earn?](https://hupe1980.github.io/mako/rechner/eeg/index.md): The anzulegender Wert of a PV system under the EEG 2023 from its size and commissioning date, with the degression, the § 53 deduction and the end of its payment period. - [Electricity price 2027 — what the levies change](https://hupe1980.github.io/mako/rechner/strompreis-2027/index.md): The statutory parts of a kWh of electricity in 2026 and 2027 — § 19 StromNEV-Umlage, Offshore-Netzumlage, KWKG-Umlage, Stromsteuer — each with its published source. - [MaLo-ID check — is this ID valid?](https://hupe1980.github.io/mako/validator/ids/index.md): Check a MaLo-ID, a Marktpartner-ID (BDEW, DVGW, GLN), an EIC or a MeLo-ID: whether the check digit holds, and the right one if it does not. - [Smart-meter price cap — what may an iMSys cost?](https://hupe1980.github.io/mako/rechner/smart-meter/index.md): What an intelligentes Messsystem may cost you per year under § 30 MsbG, from your consumption, your PV or wallbox and a § 14a device — and what the Netzbetreiber pays on top. - [Tools — EDIFACT validator and energy calculators](https://hupe1980.github.io/mako/tools/index.md): Free tools for the German energy market, running in your browser: check an EDIFACT message, look up an Antwortcode or a Frist, verify an ID, and calculate smart-meter caps, EEG rates, 2027 levies and § 14a modules. - [Validator — check an EDIFACT message](https://hupe1980.github.io/mako/validator/index.md): Check a UTILMD, MSCONS, APERAK, INVOIC or ORDERS message in your browser: every segment named, every finding on its line, the CONTRL and APERAK due times. Nothing leaves the tab. ## Deutsch - [Anleitung](https://hupe1980.github.io/mako/de/docs/guide/index.md): mako installieren, die erste EDIFACT-Übertragungsdatei lesen und einen Workflow ausführen. - [Dokumentation](https://hupe1980.github.io/mako/de/docs/index.md): Die deutsche Auswahl der mako-Dokumentation: Einstieg, Einrichtung, der Desk und mako für Stadtwerke. Alles Weitere ist auf Englisch. - [Für Stadtwerke](https://hupe1980.github.io/mako/de/docs/guide/for-utilities/index.md): mako für dein Stadtwerk: welche Aufgaben es übernimmt, welche Marktrollen es spielt, wie du es ohne Risiko prüfst und was der Betrieb braucht. - [Loslegen](https://hupe1980.github.io/mako/de/docs/guide/getting-started/index.md): Ein Befehl bis zu einem laufenden, befüllten mako: `just dev` baut und startet jeden Dienst mit dem Desk und befüllt ein Stadtwerk; `just demo` startet die veröffentlichten Images ohne Rust. - [Der Desk](https://hupe1980.github.io/mako/de/docs/guide/desk/index.md): mako Desk, die Oberfläche für den Betrieb: Prozesse nach Geschäftsschlüssel, jede Frist in Berliner Zeit, eine Marktrolle zur Zeit — auf den MCP-Tools der Agenten. - [Einrichtung](https://hupe1980.github.io/mako/de/docs/guide/einrichtung/index.md): Prüfe die Konfiguration einer Installation, bevor sie startet: jeder Befund jedes Daemons, mit Pfad und Quelle, im Terminal und über HTTP. - [§ 14a Modul 1 oder Modul 2 — was spart mehr?](https://hupe1980.github.io/mako/de/rechner/14a/index.md): Die beiden Formen der Netzentgelt-Reduzierung nach § 14a EnWG für Wärmepumpe oder Wallbox im Vergleich: die Pauschale des Netzbetreibers (Modul 1) gegen einen auf 40 % gesenkten Arbeitspreis am eigenen Zähler (Modul 2). - [Antwortcode nachschlagen — was bedeutet A02?](https://hupe1980.github.io/mako/de/validator/codes/index.md): Einen BDEW-Antwortcode in dem Entscheidungsbaum nachschlagen, der ihn veröffentlicht: A02 in E_0622 ist nicht A02 in E_0607. Der Wortlaut des BDEW, im Browser. - [EEG-Vergütung — was verdient meine PV-Anlage?](https://hupe1980.github.io/mako/de/rechner/eeg/index.md): Der anzulegende Wert einer PV-Anlage nach EEG 2023 aus Größe und Inbetriebnahmedatum, mit Degression, dem Abzug nach § 53 und dem Ende des Förderzeitraums. - [Fristenrechner — bis wann ist die Antwort fällig?](https://hupe1980.github.io/mako/de/validator/fristen/index.md): Prüfidentifikator wählen und Eingang angeben: die Frist der Antwort im BDEW-Werktagskalender, in Berliner Zeit, mit der Festlegung, auf der sie beruht. GPKE, GeLi Gas, WiM. - [MaLo-ID prüfen — ist diese ID gültig?](https://hupe1980.github.io/mako/de/validator/ids/index.md): Eine MaLo-ID, Marktpartner-ID (BDEW, DVGW, GLN), einen EIC oder eine MeLo-ID prüfen: ob die Prüfziffer stimmt, und die richtige, wenn nicht. - [Preisobergrenze Smart Meter — was darf ein iMSys kosten?](https://hupe1980.github.io/mako/de/rechner/smart-meter/index.md): Was dich ein intelligentes Messsystem nach § 30 MsbG im Jahr höchstens kostet — aus Verbrauch, PV oder Wallbox und einer § 14a-Einrichtung — und was der Netzbetreiber dazu zahlt. - [Strompreis 2027 — was die Umlagen ändern](https://hupe1980.github.io/mako/de/rechner/strompreis-2027/index.md): Die gesetzlichen Bestandteile einer kWh Strom 2026 und 2027 — § 19 StromNEV-Umlage, Offshore-Netzumlage, KWKG-Umlage, Stromsteuer — jeweils mit ihrer Veröffentlichung. - [Validator — EDIFACT-Nachricht prüfen](https://hupe1980.github.io/mako/de/validator/index.md): UTILMD, MSCONS, APERAK, INVOIC oder ORDERS im Browser prüfen: jedes Segment benannt, jeder Befund an seiner Zeile, die Fristen für CONTRL und APERAK. Nichts verlässt den Tab. - [Werkzeuge — EDIFACT-Validator und Rechner für den Energiemarkt](https://hupe1980.github.io/mako/de/werkzeuge/index.md): Kostenlose Werkzeuge für den deutschen Energiemarkt, im Browser: EDIFACT-Nachricht prüfen, Antwortcode und Frist nachschlagen, IDs prüfen, und Preisobergrenze Smart Meter, EEG-Vergütung, Umlagen 2027 und § 14a-Module rechnen.