helexa is a distributed ai fabric composed of two primary node roles:
this repository contains a cargo workspace that implements the core libraries and binaries for running helexa nodes operated by many independent participants.
early scaffold. nothing here is ready for production. expect api breaks until there is an initial public spec and versioned protocol semantics.
you need a recent rust toolchain (pinned via rust-toolchain.toml).
git clone https://github.com/helexa-ai/helexa.git
cd helexa
cargo build --workspace
this workspace produces a single top-level binary:
helexa — multi-role entrypoint with subcommands:
helexa cortex — run a cortex nodehelexa neuron — run a neuron nodehelexa cortex \
--orchestrator-socket 0.0.0.0:8040 \
--gateway-socket 0.0.0.0:8080 \
--portal-socket 0.0.0.0:8091
this starts a cortex node that joins the mesh and:
helexa neuron \
--control-socket 0.0.0.0:9050 \
--api-socket 127.0.0.1:8060 \
--models-dir /var/lib/helexa/models
this starts a neuron that:
/var/lib/helexa/models as its model storethe workspace is organised as a set of small, composable crates:
helexa-cli — entrypoint binary and cli parsingcortex — control-plane node logicneuron — data-plane node logicmesh — p2p membership, discovery, and identityprotocol — shared types and wire formatsmodel-runtime — abstraction over concrete model runtimesconfig — layered configuration loaderutil — logging, metrics and misc utilitiessee agents.md for guidance on where new code and tests belong.
design documentation lives under docs/:
docs/architecture.md — describes topology, responsibilities and flowshelexa is provided under a source-available model with a scheduled transition to a fully open source license.
see license.md for the full terms and the exact legal text, including the spdx
identifiers to use in source files.
the helexa codebase is public because trust requires transparency. our network, our operators, and the people who depend on distributed ai infrastructure deserve the ability to audit the code, verify our intentions, and build confidence in how helexa works.
at the same time, early-stage infrastructure projects are fragile. a fully permissive license would allow a better-funded competitor to lift the entire platform and outrun the project before it has a chance to stand on its own. that would undermine the long-term vision of a diverse, decentralised, globally accessible ai mesh, especially across regions traditionally left out of centralised ai growth.
for this reason, helexa uses the polyform shield license until january 1st, 2028, after which it automatically becomes apache 2.0.
auditability from day one the code is public, reviewable, and modifiable for non-commercial purposes.
protection during the fragile early years commercial rights remain with helexa while foundational work is being built, tested, and stabilised.
a guaranteed path to full open-source freedom on january 1st, 2028, the project relicenses to apache 2.0—a fully permissive, industry-standard open source license. no surprises, no bait-and-switch.
community alignment contributors know exactly how their work will be used today and how it will evolve. operators and integrators get long-term clarity and stability.
this model ensures that helexa can grow fast enough to serve its mission while still committing to the open, decentralised future we want the ecosystem to inherit.
we welcome contributions from operators, implementors, and researchers who share the goal of building a trustworthy, decentralised ai fabric.
before contributing, please:
read the license
license.md for the definitive legal details and spdx identifiers.follow the ci and code quality gates
changes must pass the workspace ci pipeline, which runs on pushes and pull
requests to main:
cargo fmt --all -- --checkcargo clippy --workspace --all-targets --all-features -- -D warningscargo test --workspace --all-featureslocally, you should run:
cargo fmt --all
cargo clippy --workspace --all-targets --all-features
cargo test --workspace --all-features
fix issues rather than suppressing them. if you must silence a lint, scope it as narrowly as possible and document why.
include spdx headers in rust sources
all rust source files in this workspace are expected to declare the license explicitly via an spdx header:
// SPDX-License-Identifier: PolyForm-Shield-1.0
the ci workflow enforces this for pull requests by checking that all *.rs
files under crates/ contain this header. if you add a new rust file and
omit the header, ci will fail with a message listing the offending paths.
keep scaffolds explicit
when adding new fields or modules that are not yet fully implemented:
todo!() / unimplemented!() over silent no-ops, so incomplete
behaviour is obvious during development.#[allow(dead_code)] attributes; instead, make the
intention explicit and fail loudly until the implementation is ready.follow architectural boundaries
helexa-cli; it should only parse cli, load
config, and delegate to cortex::run / neuron::run.crates/protocol.agents.md and
docs/architecture.md.for more detailed guidance on contributing, including scaffolding patterns and
workflow expectations, see agents.md.
53 activities