
Helionyx
io.github.Jayzilvav0.3.0更新于 Oct 7, 2026
Size hybrid solar PV, wind, battery, diesel and grid systems: hourly simulation, NPC ranking.
概览
通过全年逐小时模拟和净现值排序,为光伏、风电、电池、柴油和电网混合能源系统选型。
- 功能
- Helionyx 执行一套技术经济选型流程:登记站点,获取或导入逐小时太阳能、温度和风速资源数据,生成或导入负荷曲线,套用版本化电价,然后对候选方案进行全年逐小时模拟。它会剔除违反约束的方案,并按净现值对其余方案排序,同时给出投资回收期、平准化度电成本、电费和排放。约 22 个工具覆盖场景创建与校验、异步优化任务、帕累托前沿、敏感性扫描、运行对比、月度汇总以及 Markdown 或 Excel 报告导出。
- 适用场景
- 适用于预可行性研究、客户方案、农村电气化规划、教学,以及与其他选型工具(如 HOMER、REopt、MicroGridsPy 或 SAMA)的结果交叉核对。适合并网、离网和柴油混合场景,这类问题中一组排序后的候选方案比单一答案更有用。
- 运行要求
- 以 stdio 方式在本地运行,通常通过 uvx 或 pip install 安装,需要 Python 3.11-3.13。可选环境变量:HNX_WORKSPACE 指定工作区目录,HNX_OFFLINE 仅使用缓存和内置数据,HNX_REOPT_API_KEY 用于 REopt 交叉核对求解器。除非启用离线模式,否则需要网络访问以获取 NASA POWER 和 PVGIS 资源数据。
安装
在 SourceWeft 中
- 打开 控制台中的 Helionyx,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
[PyPI version] [MCP Registry: io.github.Jayzilva/helionyx] [Python 3.11 to 3.13] [Apache 2.0 licence]
Helionyx
Size hybrid energy systems by talking to your AI assistant. Helionyx is an open-source Model Context Protocol (MCP) server that sizes solar PV, wind, battery storage, diesel generator and grid-connected systems. It runs the classic techno-economic workflow:
- simulate every candidate design hour by hour for a full year;
- discard designs that break your constraints;
- rank the rest by net present cost (NPC), with payback, LCOE, bills and emissions.
The assistant never invents numbers. It asks scoping questions, calls deterministic tools and explains the results; every figure comes from a solver run with a run ID that anyone can reproduce. Use it for pre-feasibility studies, client proposals, rural electrification planning, teaching and cross-checking other tools.
Why Helionyx
- Grounded answers: the solver produces every number; the assistant only explains them.
- Complete method: hourly dispatch (load following, cycle charging, TOU grid strategy), life-cycle economics, tariffs with TOU, demand charges and export schemes, grid outages.
- Beyond a single answer: sensitivity grids, Pareto trade-offs between cost, CO₂ and reliability, multi-year load growth with staged expansion.
- Cross-checked: compare against REopt, MicroGridsPy and SAMA from the same scenario.
- Open and local: Apache-2.0, runs on your machine, works offline with bundled data, exports HOMER-ready time series and Excel reports.
Get started
Pick the way you use AI tools. Each one takes about a minute.
Then ask, for example:
Size a PV and battery system for a 60-room hotel in Negombo on the CEB hotel tariff. We have about 1,200 m² of usable roof.
The quickstart walks through a first study in under ten minutes.
Where to find Helionyx
Data and accuracy
Helionyx ships with a Sri Lankan country pack (lk): CEB and LECO tariff structures and export
schemes, weather alignment to Asia/Colombo time, grid outage patterns and load archetypes for
Sri Lankan buildings. The engine itself is country-agnostic; new countries are added as data
packs (data-pack guide).
The tariff rates, component costs, fuel price, discount rates and emission factors in the
lkpack are unverified placeholders. Use results to learn the tool and to compare options, not for real decisions, until the data is verified.validate_scenarioraises warning HNX-W001 for every unverified tariff. See the disclaimer.
Releases and changes are listed in the changelog. Hosted mode with Microsoft Entra ID sign-in and OpenTelemetry monitoring are in development for 1.0.
Architecture
The server never calls an LLM. Copyleft solvers run as separate processes, so the core stays Apache-2.0.
A sizing conversation
Solvers
compare_runs puts the results side by side. Multi-year scenarios run on native and
heuristic only.
Multi-year analysis
Add multi_year to a scenario to grow the load and search a staged investment:
The expansion sizes become extra search axes. Stage capital enters the cash flow in its
year, with its own replacements and salvage, and reliability constraints must hold in
every sampled year. Each candidate reports its sampled years under multi_year.years.
See the methodology (decision D20).
Features
- Resource data: hourly GHI, temperature and wind from NASA POWER (and PVGIS where covered), CSV import, on-disk caching, offline mode, UTC → local civil time alignment, leap-day removal and gap filling. NASA POWER 2023 data for three Sri Lankan sites is bundled, so the reference cases run offline.
- Load profiles: 11 synthetic archetypes, random variability with a seed, calibration to 12 monthly bills, composite loads and measured-load import (15/30/60-minute).
- Tariffs and bills: versioned YAML tariffs with flat, block and TOU energy charges, fixed, demand and minimum charges, levies, and the net metering, net accounting and net plus export schemes.
- Scenario builder: defaults from the country pack, a full assumption audit (origin, source and date for every value), validation rules, SHA-256 scenario hashes, versioning and YAML round-trips. Scheduled and random grid outages.
- Simulation and optimisation: an 8,760-hour dispatch kernel in Numba (PV via pvlib, wind power curves, idealised battery, diesel genset with load-following or cycle-charging, grid-connected TOU strategy), parallel enumerative search, HOMER-style economics (NPC, LCOE, replacements, salvage, payback, IRR) and emissions.
- Search: full enumeration, or a seeded heuristic pattern search for spaces of up to 50 million candidates; Pareto front of NPC, CO₂ and capacity shortage.
- Multi-year analysis: annual load growth and up to three capacity-expansion stages, searched together with the initial system and costed year by year.
- Sensitivity: one-variable sweeps and two-variable grids with re-optimisation, optimal architecture per case and NPC elasticities.
- Grounded explanations: structured cost breakdowns, cost drivers, binding constraints, dispatch statistics and comparisons, with provenance and a disclaimer on every result.
- Exports: HOMER-importable series plus a parameter sheet, Markdown and Excel reports, hourly time series and scenario YAML.
- Cross-check solvers compared with
compare_runs: REopt v3 (API key), and MicroGridsPy and SAMA as separately licensed add-on packages (see docs/adapters.md). - HOMER parity kit: protocol, results template and
helionyx parity compare. - Claude skill and MCP prompts for guided workflows, plus a grounding checker.
Install from source
For development (Python 3.11–3.13):
See CONTRIBUTING for the checks to run before a pull request.
Command-line quickstart
Run a reference case from the command line (works offline):
This sizes PV and battery for a 60-room hotel in Negombo on the CEB hotel TOU tariff and prints the five lowest-NPC designs with the grid-only base case. The first run takes a little longer while Numba compiles the dispatch kernel.
See docs/quickstart.md for a full walk-through.
Connect to an AI assistant
Claude Code
Claude Desktop
Download the .mcpb bundle from the latest release and open it; Claude
Desktop installs Helionyx and asks for the optional settings (workspace folder, offline
mode, REopt API key). Or add this to claude_desktop_config.json:
Streamable HTTP (local testing only)
This serves MCP at http://127.0.0.1:8080/mcp and a health check at /healthz. Set
HNX_API_KEY to require Authorization: Bearer <key> (development-grade protection; the CLI
refuses a non-local bind without it). OAuth 2.1 with Microsoft Entra ID arrives with hosted
mode in v1.0.
Claude skill
Copy the skill so Claude follows the Helionyx workflow and grounding rules:
Clients without skill support can use the MCP prompts listed below instead. See docs/skill-guide.md.
MCP tools
run_optimization, run_sensitivity and get_job_status accept wait_seconds (0–20).
With 0 they return immediately; otherwise they wait and send progress notifications.
Resources
Prompts
Command-line interface
Configuration
Copy .env.example or set these environment variables:
Repository layout
Documentation
- Quickstart
- Methodology
- Data-pack guide
- Skill guide
- Solver adapters
- Releases
- Contributing · Changelog
Licence
- Code: Apache License 2.0.
- Data packs: CC BY 4.0, citing the original source of each record.
- Copyleft solvers ship as separate packages run as subprocesses:
helionyx-microgridspy(EUPL-1.2) andhelionyx-sama(AGPL-3.0). The core never imports them.
Disclaimer
Helionyx results are pre-feasibility estimates based on simplified models, synthetic or user-supplied data, and dated, unverified placeholder tariff and cost assumptions. They are not engineering design, a bankable yield assessment, financial advice or a grid-compliance study, and are no substitute for review by a chartered engineer. The software is provided "as is", without warranty or liability (Apache-2.0 §7–8). Helionyx is an independent project, not affiliated with or endorsed by HOMER Energy / UL Solutions, NREL, NASA, the EC JRC, CEB, LECO or Anthropic; trademarks belong to their owners. Some features send site or load data to third-party services. Read the full disclaimer before use.
来源:README.md,提交 63a315e
工具
0版本历史
1- v0.3.0最新Oct 7, 2026


