Skip to main content

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:


License

MIT. Use it, modify it, ship it.

Metadata

Release files for solystopia-hearthmind-economics 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for solystopia-hearthmind-economics 0.1.0
File Size Uploaded Provenance Actions
solystopia_hearthmind_economics-0.1.0.tar.gz 9.9 kB Without provenance Details for solystopia_hearthmind_economics-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for solystopia-hearthmind-economics 0.1.0
File Interpreter ABI Platform Actions
solystopia_hearthmind_economics-0.1.0-py3-none-any.whl Python 3 none any Details for solystopia_hearthmind_economics-0.1.0-py3-none-any.whl

Total release size: 19.4 kB

Release files / solystopia_hearthmind_economics-0.1.0.tar.gz

Download URL solystopia_hearthmind_economics-0.1.0.tar.gz
Size 9.9 kB
Tags Source
SHA-256 checksum
How to use checksums
30100166e8ebf289ffb8da5e2a30d98204060d89df403d01f64b630dd9960305
BLAKE2b-256 checksum
How to use checksums
17adfd8699bbfa324d7d6e3a78f4d12bd19137cc7583f9779e8b5410b793625f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release files / solystopia_hearthmind_economics-0.1.0-py3-none-any.whl

Download URL solystopia_hearthmind_economics-0.1.0-py3-none-any.whl
Size 9.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d3e876d235766edbdde98c053b2db5d1f8bbd0e77dcabb8926f4a4e51f721389
BLAKE2b-256 checksum
How to use checksums
73fe59b59baf969f4b28035bebca0b52775c43fb5ff4bf7172f5f488fc8df68f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Security for solystopia-hearthmind-economics 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page