Skip to content

AetherMesh-AI/aethermesh-core

Repository files navigation

AetherMesh Core

AetherMesh Core is an early local-first prototype for a decentralized AI mesh. It focuses on the mechanics a real network will need later: local node identity, capability advertisement, deterministic job dispatch, result validation, contribution accounting, receipts, and auditable flow artifacts.

The long-term architecture direction is AER: Adaptive Expert Routing, where work is routed across expert services, validators, aggregators, and supporting nodes. This repository is not that full distributed network yet. It is the small, testable foundation that proves the node/work/validation loop before public networking, production peer discovery, or economics are added.

Current status

This repo currently provides:

  • A Python package named aethermesh
  • A first-class local CLI: aethermesh
  • A legacy/prototype flow CLI: aethermesh-core
  • A localhost FastAPI status/dashboard surface
  • Local-only node lifecycle, identity, manifest, dispatch, transport, validation, ledger, receipt, and aggregation primitives
  • Deterministic examples and tests for the local prototype flows
  • Electron desktop packaging scaffolding for launching the local runtime

Current non-goals:

  • No public peer-to-peer networking yet
  • No production consensus or distributed trust layer yet
  • No rewards, payouts, tokens, or economic fairness model yet
  • No claim that the prototype is already decentralized in production

Install for development

Requires Python 3.11 or newer.

python -m pip install -e ".[dev,ui]"

This installs:

  • aethermesh for normal local node use
  • aethermesh-core for lower-level prototype/demo flows
  • development and local UI/API dependencies

For isolated local state, set AETHERMESH_HOME:

AETHERMESH_HOME=/tmp/aethermesh-dev aethermesh init

By default, local node config, identity, data, and logs live under ~/.aethermesh.

Quick start

Initialize local state:

aethermesh init

Check status:

aethermesh status
aethermesh node status

Start the local node API/dashboard on localhost:

aethermesh node start

Open the local dashboard:

aethermesh ui

The local API binds to 127.0.0.1:7280 by default.

Prototype flow examples

Run one local demo job without installing the package:

PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=src python -m aethermesh_core.cli run-demo --node-id local-demo-node --message "hello mesh"

Run the deterministic local multi-node simulation:

PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=src python -m aethermesh_core.cli simulate-local

Run a manifest-backed local batch:

PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=src python -m aethermesh_core.cli run-local-batch --manifest examples/local-batch.json

Run the full local dispatch, worker, ledger, receipt, and audit artifact flow:

PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=src python -m aethermesh_core.cli run-local-flow --manifest examples/local-batch.json --output-dir /tmp/aethermesh-local-flow
PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=src python -m aethermesh_core.cli audit-local-flow --output-dir /tmp/aethermesh-local-flow
PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=src python -m aethermesh_core.cli aggregate-local-flow --output-dir /tmp/aethermesh-local-flow

Use CLI help for the full command list:

aethermesh --help
aethermesh-core --help

Testing

Run the unit test suite:

PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=src python -m unittest discover -s tests -v

Run the repo quality gate list:

PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=src python scripts/full_test.py --list

Run the default full test wrapper:

PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=src python scripts/full_test.py

The project is configured for strict deterministic behavior and 100% branch coverage in CI.

Repository layout

src/aethermesh_core/       Core Python package
examples/                  Local manifests and fixture data
docs/                      Architecture and local prototype docs
scripts/                   CI, release, and full-test helpers
tests/                     Unit and integration-style prototype tests
desktop/                   Electron desktop launcher and packaging work
.github/                   Issue templates, PR template, and GitHub Actions

Documentation

Start here:

Development principles

Keep changes small, validated, and local-first.

Prefer:

  • Runnable behavior over placeholders
  • Deterministic local flows before distributed claims
  • Validation-gated contribution tracking before rewards
  • Simple routing and transport seams before production networking
  • Clear tests and docs before broad abstraction

Avoid:

  • Tokenomics before useful validated work exists
  • Dashboard polish before core runtime behavior
  • Unsupported claims about decentralization
  • Large rewrites that do not improve the local proof
  • Treating AER as monolithic MoE inside one model

License

License information has not been added yet.

About

AetherMesh is an open-source decentralized AI mesh built around AER: Adaptive Expert Routing, where user-run nodes route expert work, validate results, and grow a people-owned AI network.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Packages

 
 
 

Contributors