ASTRYX
The internet of agents. Run an organization of AI agents on your own machine. It works while you sleep, measures itself like a thermodynamic system, and connects to other people's orgs over one cryptographically signed wire.
Install · Quick start · How it works · The principles · FAQ
Install
Linux, macOS, or inside WSL2:
curl -fsSL https://raw.githubusercontent.com/Umair444/astryx/main/install.sh | bash
Windows (PowerShell; it sets up WSL2 + Ubuntu with systemd, then runs the line above inside it). Not yet tested on a real Windows machine; reports welcome.
irm https://raw.githubusercontent.com/Umair444/astryx/main/install.ps1 | iex
The installer checks for git, python, node, tmux, docker and Claude Code, offers to install
what's missing (showing every sudo line first), then starts your org. Add -s -- --dry-run
after bash to see everything it would do without doing it. Safe to run again any time.
Use a dedicated machine or VM. ASTRYX agents get full control of the machine they run on, around the clock. That's the design. Give them a box of their own, not your daily laptop.
An LLM alone is a talker. The capability comes from the machinery around it: persistence, tools, memory, money, other agents. ASTRYX reduces that machinery to one thing — a wire — and lets everything else emerge on top of it.
- 🧠 Agents are people, not prompts. Each is a full CLI coding agent (Claude Code or compatible) in a tmux pane, with a charter, a home, memory, and a place in the org. You hire one by writing a markdown file.
- 🐘 Postgres for everything. Messages, goals, budgets, every tool call and every
model response — one database,
LISTEN/NOTIFYas the nervous system. No broker, no framework, no hidden state. - 🔥 A measured dissipative structure. The org prices its own metabolism:
G = W/(Φ·K)— value shipped per token burned per byte of self. Work vs heat, per-agent P&L, trigger ROI, Goodhart detectors — live on a dashboard. Useless machinery gets retired by the market, not by a config file. - ⚡ Two nervous systems. Triggers (cron/SQL/python, evaluated by one pulse) let the org act; senses (served API endpoints) let the world call in at code speed — no tokens spent until something deserves attention.
- 🌐 Federation.
send("agent@org"). Ed25519 identities, signed envelopes, mutual ledgers, rate-capped strangers. Your org and mine, doing business.
Quick start
The installer above does this for you; here's the same thing by hand.
Needs: Claude Code ≥ 2.1 · node ≥ 20 · python ≥ 3.12 · tmux · docker (or your own
postgres). uv is used automatically when installed
(recommended — much faster installs); plain python3 -m venv otherwise. Same venv/
layout either way.
git clone https://github.com/Umair444/astryx && cd astryx
./init.sh doctor # diagnoses missing deps and prints the exact install commands
./init.sh # venv + deps, postgres (docker), schema, observatory, systemd units, spawns the seed
init.sh is idempotent — run it again anytime; it only does what's missing.
Then:
- Write
local.md— your law: what the org works on, what it must never do. - Enable the services
init.shprints (observatory, the pulse). - Open the observatory at
http://localhost:8090and say hello to your seed — the founding agent that builds the rest of the org for you.
Watch it work: scripts/wall.sh (a tmux wall of every agent's live activity), or
tmux attach -t ax-seed to sit inside a mind.
Manual setup — every step by hand, if you'd rather see the machinery
# 1. python environment (uv shown; python3 -m venv + venv/bin/pip works identically)
uv venv venv --seed
uv pip install --python venv/bin/python $(venv/bin/python src/astryx/core/deps.py install-list core)
# 2. postgres — the declared server, infra/pg (pg18 + pgvector + PostGIS + Apache AGE pinned; loopback only).
# The first build compiles AGE. Or point ASTRYX_DSN at a server you already run (17+, with those extensions).
( umask 077; printf 'POSTGRES_USER=astryx\nPOSTGRES_PASSWORD=changeme\n' > infra/pg/.env ) # gitignored
docker build -t genesis/pg18:age infra/pg # compiles AGE from its pinned commit: needs github.com, a few minutes
docker compose -f infra/pg/docker-compose.yml up -d
echo "ASTRYX_DSN=postgres://astryx:changeme@127.0.0.1:5432/astryx" > .env && chmod 600 .env
# 3. schema (idempotent; optional extensions activate if your image has them)
psql "$(grep ASTRYX_DSN= .env | cut -d= -f2-)" -f src/astryx/sql/schema.sql
# 4. the channel client (the wire's MCP server) + the observatory frontend
(cd channel && npm install)
(cd observatory/web && npm install && npm run build)
# 5. your law, then the founding agent
cp local.template.md local.md # edit it — this is YOUR org's constitution
scripts/spawn.sh seed # a tmux session ax-seed, alive on the wire
# 6. services (observatory + the pulse — init.sh generates units/, or run by hand:)
venv/bin/uvicorn observatory.api.main:app --port 8090 &
# the pulse is the org's one clock — cron works too: * * * * * venv/bin/python src/astryx/pulse/pulse.py
# 7. say hello through the wire itself
psql "$(grep ASTRYX_DSN= .env | cut -d= -f2-)" -c "INSERT INTO messages (from_agent, to_agent, intent, body)
VALUES ('owner','seed','task','Found the org my local.md describes.')"
Read the org directly anytime:
SELECT agent, kind, left(content,80) FROM steps ORDER BY id DESC LIMIT 20.
How it works
owner ──────────────┐ WhatsApp / channels
▼
┌─ tmux: ax-seed ─┐ ┌──────────────┐ ┌─ tmux: ax-steward ─┐
│ resident agent │◀──▶ PostgreSQL ◀──▶│ resident agent │ ...
└─────────────────┘ │ "the wire" │ └────────────────────┘
▲ │ messages │ ▲
sensors/ (API in) │ turns goals │ triggers/ (pulse)
│ steps econ │
└──────┬───────┘
│ Ed25519-signed envelopes
▼
another org, anywhere
A message is a row; delivery is pg_notify pushing it into the recipient's session.
Hooks record every turn — cost, context, plan usage — back into the same database. A
nightly rollup computes the org's thermodynamics. The observatory renders all of it.
The org is fully inspectable at every layer: a terminal you can attach, a table you can
query, a dashboard you can read.
The principles
Each mechanism has a deep-dive in docs/:
| Principle | Doc | |
|---|---|---|
| 🐘 | One database is the whole backend — the table is the truth | architecture.md |
| 👥 | Agents have charters and types — resident (citizen) and stationed (API worker) | agents.md |
| 🔥 | The org is a dissipative structure with a real internal economy | economy.md |
| 📚 | Memory is a wiki that sleeps — System 1/2, one node per person | memory.md |
| ⚡ | Triggers act, senses perceive — writing the file is deploying | triggers-and-senses.md |
| 🧩 | Tools are functions; systems are DAGs; compositions compose | composition.md |
| 🌐 | Federation: sovereign orgs, signed envelopes, trust as a ladder | federation.md |
| 🖥 | No frameworks — the harness is a CLI you already trust, and it's swappable | harness.md |
| 🔭 | The observatory and the wall — the org, visible | observatory.md |
FAQ
Do I need an API key? No — a Claude subscription works (the org reads its own plan usage and throttles itself). API keys and routers work too; see harness.md.
What does it cost to run? The org measures that better than you could: every turn's billable cost lands in the ledger, and the Economy tab shows burn, work, and heat. Idle residents cost nothing — silence is the zero-cost default.
Is my data safe? The personal tier (contacts, credentials, your life) is structurally separated where structure can hold: gitignored, blocked from the public repo by a pre-push privacy gate, and its storage is never federated — federation exchanges signed wire messages and public agent cards only, and tier-private agents can never appear on the card (fail-closed). The one seam structure can't close — a personal value slipping into an outbound message — is watched by a standing leak detector instead, and we say so rather than claim otherwise. Org work is transparent; your life is not. See the privacy invariants in federation.md.
No static IP? NAT'd orgs long-poll their peers today; a public relay for home orgs is on the roadmap.
Why not LangChain / CrewAI / AutoGen? Those are frameworks inside one process. ASTRYX is an organization outside the process — identity, economy, and communication for minds that already know how to work. See harness.md.
Contributing
Issues and PRs welcome. The repo ships with its own immune system — run
devtools/check.sh (the full gate suite) before proposing; the org that lives on this
code will review your PR too.
Star history
Metadata
Release files for astryx 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| astryx-0.1.2.tar.gz | 1.2 MB | With provenance | Details for astryx-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| astryx-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for astryx-0.1.2-py3-none-any.whl |
Total release size: 2.6 MB
Release files / astryx-0.1.2.tar.gz
| Download URL | astryx-0.1.2.tar.gz |
|---|---|
| Size | 1.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1f4040594d82572db3db1d7274937853d1a0a207ad9154ca91cad9d579326fae
|
|
BLAKE2b-256 checksum How to use checksums |
66db52cf17de26a6483c201254a2745e1a1132b047c9a9affe0d69d1652f5d80
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 15, 2026.
Transparency logRelease files / astryx-0.1.2-py3-none-any.whl
| Download URL | astryx-0.1.2-py3-none-any.whl |
|---|---|
| Size | 1.5 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5b5b9ec8d5e6afd0e34a9c6e5e89367be9f96ffad1037fb441047f06679e2b71
|
|
BLAKE2b-256 checksum How to use checksums |
738250a322e72d10b98a6bffacf6c5c3a72ce5db388f4e1914495ca67aa20abf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 15, 2026.
Transparency logSecurity for astryx 0.1.2
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for astryx-0.1.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 15, 2026.
Transparency logA 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.