Install
openclaw plugins install clawhub:@cernion/openclaw-energy-tools-sidecarCernion energy evidence tools for OpenClaw agents: MaStR assets, grid context, Redispatch, ZNP, §14a/§14d, Knowledge RAG, and read-only operational APIs.
openclaw plugins install clawhub:@cernion/openclaw-energy-tools-sidecarCernion-backed energy evidence tools for OpenClaw agents: MaStR assets, grid context, Redispatch, Zielnetzplanung (ZNP), §14a/§14d EnWG, regulatory Knowledge RAG, process intake, and read-only operational APIs.
Most users will not search for a "Cernion Sidecar" directly. They usually have an energy-domain question and need an agent that can work with evidence instead of generic model memory. This plugin is the bridge: OpenClaw provides the agent runtime, conversation, tool orchestration, and final answer synthesis; Cernion Energy Tools provides the fachliche energy layer, policies, evidence semantics, and read-only execution plans.
Use it when an OpenClaw assistant should answer questions such as:
| Layer | Responsibility |
|---|---|
| OpenClaw | Agent runtime, user conversation, memory/workspace instructions, model choice, tool orchestration, answer synthesis, and human-readable explanation. |
| This Sidecar | Host-side plugin configuration, secret loading, Cernion tool discovery, request validation, token scrubbing, read-only REST plan proxying, and boundary enforcement. |
| Cernion Energy Tools | Energy-domain capabilities, MaStR and grid evidence, Knowledge RAG, Evidence Router, process-intake policy, capability manifests, and read-only operational APIs. |
This split is the product value: OpenClaw can become an energy assistant without learning Cernion internals, while Cernion remains the authority for policies, evidence semantics, and which operations are safe.
Mich wuerde interessieren, ob die Gemeinde Meckesheim bereits so viel Erzeugungskapazitaet hat, dass sie sich unter idealen Bedingungen selbst versorgen koennte. Wenn nicht, wie viel Solar muesste zugebaut werden?
Welche Pflichten ergeben sich aus §14a EnWG fuer einen Verteilnetzbetreiber, und welche Cernion-Evidenz sollte ich fuer einen konkreten Fall pruefen?
Ich plane 20 MWp PV, 10 MW / 20 MWh Speicher, 30 HPC-Ladepunkte, 800 Waermepumpen und 1.500 Wallboxen in Sinsheim. Welche Spannungsebenen und Netzbereiche koennten kritisch werden, und welche Evidenz fehlt?
Welche Cernion-Capability passt zu einer Redispatch-Asset-Register-Pruefung, und kann OpenClaw den passenden read-only REST-Plan ausfuehren?
openclaw plugins install clawhub:@cernion/openclaw-energy-tools-sidecar
Then configure the Cernion base URL and a read-only token:
export CERNION_BASE_URL="https://cernion.example"
export CERNION_READONLY_TOKEN_FILE="$HOME/.config/cernion/readonly-token"
See docker/README.md for a browser-based demo container that starts OpenClaw with this plugin preinstalled.
The plugin consumes the Cernion Sidecar contract implemented by Cernion Energy Tools:
GET /api/agent-sidecar/descriptorGET /api/agent-sidecar/mcp/toolsPOST /api/agent-sidecar/mcp/tools/:name/callPOST /api/agent-sidecar/mcp/tools/cernion.ask/callPOST /api/knowledge-rag/queryPOST /api/evidence-router/routePOST /api/copilot-process/intentsGET /api/_agent/capabilities[?domain=]GET /api/_agent/capabilities/:nameGET /api/_agent/operations[?domain=]The Cernion provider remains the policy owner. This plugin stores host-side configuration, discovers tools, and forwards calls through separated provider boundaries:
pending_confirmation receiptsIt does not implement Cernion domain logic and must not expose admin/token/HITL-resolve actions. Cernion Energy Tools remains the source of truth for capabilities, policies, evidence semantics, and executable read-only REST plans.
cernion.ask is the generic learning/compile boundary for OpenClaw. It may return a direct read-only REST execution plan that was selected by Cernion's Blueprint/Capability runtime. OpenClaw can then ask this plugin to proxy that plan against the configured Cernion baseUrl without learning tokens or hard-coding domain routing in the Sidecar.
cernion_sidecar_descriptor loads the Cernion Energy Tools Sidecar descriptor.cernion_sidecar_tools loads the MCP/OpenClaw-like tool list.cernion_sidecar_call calls one curated Cernion provider tool through the provider policy gate.cernion_query_domain_knowledge queries Cernion Knowledge RAG for regulatory, procedural, and fachliche evidence such as laws, BNetzA guidance, Verfahrensanweisungen, roles, obligations, definitions, and job-help context. It starts the async Knowledge RAG job, waits briefly for the result, and returns an evidenceAssessment. This assessment describes primary-source support for hard legal/procedural claims, not the value of Cernion domain knowledge itself. If evidenceAdequacy is low, OpenClaw should say that Cernion returned useful domain/strategy knowledge but not enough primary-source support for hard obligations.cernion_query_grid_context queries Cernion OSM Geo for visible grid infrastructure context such as substations, transformers, voltage-level hints, lines, and topology metrics. Use it for ZNP, Netzanschluss, data-center/PV/BESS/HPC siting, fNAV, and likely critical voltage-level hypotheses. For broad county or region searches, query substations first and enable full topology only for candidate-place drill-down. Treat the result as OSM-based hypothesis evidence, not as a capacity proof or complete grid-operator asset model. For data centers and other large loads, explicit grid-connection availability maps, published capacity, and operator-confirmed Anschlusskapazität outrank generic grid-expansion or OSM proximity evidence.cernion_route_evidence calls Cernion's backend Evidence Router and returns read-only endpoint recommendations plus result semantics.cernion_execute_evidence_endpoint executes one GET or POST read-only endpoint recommended by cernion_route_evidence, requiring policy.readOnly=true and sideEffects=none. For /api/assets... GETs, the Sidecar sets an explicit default limit=500 when no limit is supplied and adds _sidecar pagination/export guidance when the returned rows exhaust the requested limit.cernion_prepare_process_intent calls Cernion's separate Process Intake boundary and creates only a pending_confirmation receipt. It uses a separate process token.cernion_ask calls the generic cernion.ask provider tool and returns structured answers, evidence, capability/blueprint hints, and optional read-only REST execution plans.cernion_resolve_capabilities resolves llm.txt capability cluster heads to full capability details, optionally filtered by domain.cernion_resolve_capability resolves a single capability id to full detail.cernion_resolve_operations resolves manifest operation clusters to deduplicated operation details, optionally filtered by domain.cernion_execute_rest_plan proxies one GET-only REST execution plan emitted by Cernion. It validates that the plan is a relative /api/ path and blocks admin/auth/token/HITL-resolve/provider-tool recursion paths. Asset-list GETs receive explicit limit and pagination/export guidance.cernion_api_request performs an authenticated read-only GET against Cernion for fallback resolution or domain data queries. Asset-list GETs receive explicit limit and pagination/export guidance.cernion_resolve_operations uses the provider's canonicalized operation list: duplicate operationId entries that appear under trailing-slash or service-prefix aliases are returned once with a canonical path and an aliases list.
The provider tool names currently exposed by Cernion are:
cernion.askcernion.answer_dossiercernion.recommend_capabilitycernion.list_readonly_capabilitiescernion.get_evidence_statusConfigure through OpenClaw plugin settings or environment variables:
baseUrl or CERNION_BASE_URL: Cernion base URL, for example https://cernion.example.bearerToken or CERNION_READONLY_TOKEN: read-only Cernion Sidecar token.bearerTokenEnv: optional alternate token environment variable name.bearerTokenFile or CERNION_READONLY_TOKEN_FILE: optional path to a local file containing the read-only token.processBearerToken or CERNION_PROCESS_TOKEN: separate Cernion token for cernion_prepare_process_intent.processBearerTokenEnv: optional alternate process-token environment variable name.processBearerTokenFile or CERNION_PROCESS_TOKEN_FILE: optional path to a local file containing the process token.allowRestProxy or CERNION_ALLOW_REST_PROXY: optional switch for cernion_execute_rest_plan, default enabled. Set to false, 0, no, or off to disable.timeoutMs: optional HTTP timeout, default 15000.Store the token as an OpenClaw secret. The token is sent only as an Authorization: Bearer ... header and is scrubbed from returned payloads if a provider accidentally echoes it.
Cernion asset endpoints can return large MaStR-backed lists. The Sidecar does not let those lists silently fall back to the provider default limit:
/api/assets... GET requests without limit, it sends limit=500;_sidecar.assetListPagination;nextPage parameters and CSV/XLS exportOptions;_sidecar.assetListPagination.limitExhausted=true or hasMore=true.Example guidance for a user-facing answer:
Cernion returned 500 rows for the current asset query, which exhausts the requested limit. I can continue with the next page or retrieve the complete list as CSV/XLS.
npm install
npm run plugin:build
npm run plugin:validate
npm test
The repository includes a Docker-based OpenClaw demo under docker/. It starts
OpenClaw with this plugin installed and exposes the browser Control UI on
http://localhost:19101.
cp docker/.env.example docker/.env
# edit docker/.env: CERNION_BASE_URL, CERNION_TOKEN, OPENCLAW_MODEL, OPENCLAW_THINKING, and a model-provider key
docker compose --env-file docker/.env -f docker/compose.yml up --build
The demo accepts CERNION_BASE_URL, CERNION_TOKEN,
CERNION_READONLY_TOKEN, and CERNION_PROCESS_TOKEN through environment
variables. No operator workspace, memory, transcripts, or personal OpenClaw
state are mounted.
See docker/README.md for the full end-user walkthrough, including the Cernion demo workspace profile and the Meckesheim self-supply example prompt.
From this directory:
openclaw plugins install .
Or from GitHub:
openclaw plugins install https://github.com/SmartEnergySolutions/cernion-openclaw-sidecar
Or from npm after publication:
openclaw plugins install @cernion/openclaw-energy-tools-sidecar
Then configure:
export CERNION_BASE_URL="https://cernion.example"
export CERNION_READONLY_TOKEN_FILE="$HOME/.config/cernion/readonly-token"
The token file should contain only the bearer token and should be readable only by the OpenClaw runtime user, for example mode 0600.
Allowed:
pending_confirmation receipts through a separate process-token boundarycernion.ask calls where Cernion decides capabilities, blueprints, routing, policies, and evidencebaseUrlsidecar_policy_blockedBlocked:
/api/ REST proxy pathsThe package name is @cernion/openclaw-energy-tools-sidecar. Publishing under
that scope requires:
@cernion npm organization or user scope;NPM_TOKEN for GitHub Actions;v0.1.0.Release checks should pass before publishing:
npm ci
npm run build
npm test
npm run plugin:validate
npm pack --dry-run