hearthmind-economics
Four transparent, formula-based calculators for planning household AI infrastructure.
Extracted from Project Hearthmind — the Solystopia experiment in sovereign household compute.
No model calls. No internet required after install. No account. Pure Python.
Calculators
| Command | What it calculates |
|---|---|
tco |
Local hardware vs cloud equivalent — annual cost, break-even, 5-year totals |
renewable |
Solar + battery ROI against displaced grid electricity |
heat |
Waste heat recovery value — compute heat captured during heating season |
container |
Compute container sizing — kW load, floor area, annual electricity cost |
Run one or all four interactively. Every assumption is prompted, every formula is documented in the source.
Install
No dependencies beyond Python 3.9+. No repo to clone required — pick one:
# As a CLI, straight from GitHub (no PyPI account needed)
pip install git+https://github.com/arthursilas-ai/hearthmind-economics.git
hearthmind-economics all
# As an agent skill (Claude Code, Cursor, Copilot, and others)
npx skills add arthursilas-ai/hearthmind-economics
# Or standalone — one file, no install
curl -O https://raw.githubusercontent.com/arthursilas-ai/hearthmind-economics/main/hearthmind_economics.py
python hearthmind_economics.py all
Usage
# Interactive — prompts for inputs, shows results
python hearthmind_economics.py tco
python hearthmind_economics.py renewable
python hearthmind_economics.py heat
python hearthmind_economics.py container
python hearthmind_economics.py all # run all four
# Machine-readable output
python hearthmind_economics.py tco --json
python hearthmind_economics.py all --json
Example: TCO run
LOCAL VS CLOUD — Total Cost of Ownership
Straight-line depreciation. No resale, no financing, no inflation.
Capital cost [£] (default 4500): 4699
Useful life [years] (default 5): 5
Annual electricity cost [£/yr] (default 300): 320
Annual maintenance [£/yr] (default 100): 80
Equivalent cloud spend [£/month] (default 90): 110
────────────────────────────────────────────────────────────
Local annual cost £1,340
Cloud annual cost £1,320
Break-even 4.8 years
5-year local total £6,699
5-year cloud total £6,600
────────────────────────────────────────────────────────────
→ local hardware breaks even in 4.8 years — profitable over 5-year life
The formulas
All formulas are documented in the source. The short versions:
TCO
annual_depreciation = capital_cost / useful_life # straight-line
local_annual = depreciation + electricity + maintenance
cloud_annual = cloud_monthly * 12
break_even = capital_cost / (cloud_annual - electricity - maintenance)
Renewable ROI
annual_saving = kwh_displaced * grid_price
payback = (solar + battery) / annual_saving
lifetime_saving = (annual_saving * system_life) - (solar + battery)
Waste heat
recoverable_kwh = (watts / 1000) * hours_per_day * season_days * efficiency
annual_value = recoverable_kwh * heat_price
Container sizing
total_kw = (unit_count * unit_watts) / 1000
total_kw_with_overhead = total_kw * PUE
floor_area_m2 = total_kw_with_overhead * m2_per_kw
annual_kwh = total_kw_with_overhead * active_hours
What this doesn't model
TCO: resale value, financing cost, inflation, insurance.
Renewable ROI: feed-in tariff, panel degradation over time, battery replacement cost, regional irradiance variation, shading.
Waste heat: no heat-recovery hardware has been built or tested for Project Hearthmind yet — these are planning estimates.
Container: generator overhead, cooling redundancy, fit-out cost, planning permission.
These are planning tools, not financial guarantees.
Context
This tool is part of the Solystopia open-source ecosystem — a set of tools for people who want to bring AI capability back to the household level.
The calculators were built to support Project Hearthmind, an experiment in acquiring sovereign household AI infrastructure. The live interactive versions are at solystopia.tech/hearthmind/tools.
Other tools in the ecosystem:
- agent-preflight — pre-deployment checks for AI agents
- piper-local-tts-demo — local text-to-speech
- household-capability-audit — dependency mapping questionnaire
- sovereign-ai-harness — 10-stage local AI setup guide
License
MIT. Use it, modify it, ship it.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file solystopia_hearthmind_economics-0.1.0.tar.gz.
File metadata
- Download URL: solystopia_hearthmind_economics-0.1.0.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
30100166e8ebf289ffb8da5e2a30d98204060d89df403d01f64b630dd9960305
|
|
| MD5 |
44156f6ce5f659343953c96c1364588d
|
|
| BLAKE2b-256 |
17adfd8699bbfa324d7d6e3a78f4d12bd19137cc7583f9779e8b5410b793625f
|
File details
Details for the file solystopia_hearthmind_economics-0.1.0-py3-none-any.whl.
File metadata
- Download URL: solystopia_hearthmind_economics-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d3e876d235766edbdde98c053b2db5d1f8bbd0e77dcabb8926f4a4e51f721389
|
|
| MD5 |
2156b4653fb626307170a5a9844ec20d
|
|
| BLAKE2b-256 |
73fe59b59baf969f4b28035bebca0b52775c43fb5ff4bf7172f5f488fc8df68f
|