Skip to main content

🚀 ZYRA CLI: Decentralized AI Agent & PoUW Network

A powerful, self-organizing decentralized AI network client and terminal-based Agentic AI framework powered by Proof-of-Useful-Work (PoUW).

🌟 Core Ecosystem

  • ZYRA CLI (zyra_cmd/zyra_cli.py): Interactive terminal assistant with autonomous tool-calling, multi-model support, and P2P networking.
  • P2P Gossip Network (p2p/): Decentralized node communication for task broadcasting and consensus.
  • Proof-of-Useful-Work (PoUW): Consensus mechanism where AI Miner nodes execute tasks and Smart Judges validate trajectories deterministically.
  • Blockchain Integration (blockchain/ & mythchain/): EVM tokenomics (Celo/Hardhat) and sovereign Cosmos SDK L1 roadmap (MythChain).
  • AI Research (ai/): Scratch-built Transformer architecture and training framework.

📦 Installation & Setup

python -m venv venv
.\venv\Scripts\activate
pip install -e .

🚀 Running ZYRA CLI

zyra

OR

python -m zyra_cmd.zyra_cli

Client Mode: Engine, Tasks & Result Folder

Client nodes can submit tasks without installing Ollama. The first Ollama installation answer is remembered across CLI restarts. If you choose n, subsequent launches do not repeat the installation prompt. To install/start Ollama and select a local model later:

/engine

Set the destination for future task results before submitting:

/output "D:\Hasil ZYRA"
/submit Buat aplikasi kalkulator Python
/tasks

On Linux/macOS, for example, use /output ~/hasil-zyra. Paths with spaces are supported. /output with no argument shows the current folder. The default is ~/ZYRA Results. Each task remembers its absolute destination at submission time; changing /output does not move previous or in-progress tasks.

Task IDs, progress, download status, and result locations are saved in client.db under %APPDATA%\ZYRA AI on Windows, or ~/ZYRA AI when APPDATA is unset. When the CLI is reopened:

  • A summary shows previously downloaded results and their workspace/ZIP paths.
  • Pending tasks resume tracking through P2P mempool synchronization.
  • Tasks completed while the client was offline are downloaded once their completion and result CID are received from peers.
  • Failed downloads are retried while the CLI is running. Successfully saved results are not downloaded again, and existing result folders are not overwritten.
  • /tasks shows the full local task history, destinations, and latest download errors.

Recovery requires a peer that still knows the task and an online node serving its workspace. Closing the client stops local monitoring/downloads until it is reopened. Tracking applies to tasks submitted with this version; older sessions that never saved task history cannot be reconstructed from local history automatically.

PoUW Judge Votes (prototype, local changes after v2.1.51)

The /judge command signs PASS or FAIL votes using ECDSA/secp256k1. Votes bind the task ID, trajectory hash, workspace CID, acceptance hash, verdict and reason. Peers check the signature and judge address and count two different judge addresses before marking a task completed or sending failure feedback to a miner. The miner waits for the quorum before moving to the next task; its local ledger only records a reward once per task after approval. A failed quorum returns structured reasons so the same miner can retry that task.

Run two independent judge nodes for end-to-end testing. Judges need a wallet created with ecdsa installed; older simulated wallets without a real 128-hex public key cannot submit a signed vote. This is a prototype vote quorum: judge selection and Sybil resistance are not implemented, and local SQLite balances are not final on-chain settlement. ZIP content addressing was added in v2.1.53; opaque IDs remain supported for older tasks.

P2P Artifact Integrity (v2.1.53)

New automode workspace ZIP files use sha256:<hex digest> content IDs. Nodes verify the seeded file and verify the complete reconstructed download against that digest before making it available to the judge or client. Invalid chunks, oversized chunks, and artifacts larger than 256 MiB are rejected. Legacy opaque IDs remain readable for compatibility but carry no content-integrity guarantee.

Signed Task Leases (v2.1.54+)

Miners now publish a signed 30-minute lease for a task. Peers that see competing claims choose the same lease ID deterministically; stale leases expire back to a retryable task, and the lease/attempt ID is bound to the submitted trajectory and judge votes. This reduces duplicate mining and recovers tasks after a miner stops. It is a best-effort P2P lease, not a globally atomic lock: partitions or delayed claims can still cause duplicate work. Chain-level consensus is required for a single globally final task owner.

Peer mempool synchronization includes signed task claims so a joining peer can restore the active lease before considering a task. This improves convergence when peers exchange state; it does not provide a global lock during a network partition.

Local MNS v0 Lookup

The interactive command /resolve <name.myth> looks up a small, bundled local development registry for .myth names. For example, /resolve rpc.mythchain.myth shows the local RPC alias. This is application-level lookup only: it does not configure operating-system DNS, make .myth names resolve in browsers, or read ownership/records from Mythchain. The default entries point to loopback and may not represent running services. Set ZYRA_MNS_V0_FILE to use a different local JSON registry file.

Metadata

Release files for zyra-network 2.1.55

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

Source distribution (sdist)

Source distribution for zyra-network 2.1.55
File Size Uploaded
zyra_network-2.1.55.tar.gz 118.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for zyra-network 2.1.55
File Interpreter ABI Platform
zyra_network-2.1.55-py3-none-any.whl Python 3 none any Details

Total release size: 227.6 kB

Release files / zyra_network-2.1.55.tar.gz

Download URL zyra_network-2.1.55.tar.gz
Size 118.1 kB
Tags Source
SHA-256 checksum
How to use checksums
67d2a13635b26720a55fe321c669d3c9d982f23db0fe8ad18464a848b878c84f
BLAKE2b-256 checksum
How to use checksums
c4d5881f3c4a3513b5008b9801c7742de5952fd4b579b13ceab009b89980daa7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.5

Release files / zyra_network-2.1.55-py3-none-any.whl

Download URL zyra_network-2.1.55-py3-none-any.whl
Size 109.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
faf0b8676cc012f41d255c1f7b3aae629524c695f367616b942f19fd9807cbcf
BLAKE2b-256 checksum
How to use checksums
cdb77b2e3d6cc48dd93483e6a20c09c2ad89ba67b3cb0e733e3ba5f3d71e6c41
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.5

Release history Release notifications | RSS feed

2.1.70

2 release files

2.1.69

2 release files

2.1.68

2 release files

2.1.62

2 release files

2.1.61

2 release files

2.1.60

2 release files

This release

2.1.55 This release

2 release files

2.1.54

2 release files

2.1.53

2 release files

2.1.52

2 release files

2.1.51

2 release files

2.1.50

2 release files

2.1.41

2 release files

2.1.40

2 release files

2.1.39

2 release files

2.1.38

2 release files

2.1.37

2 release files

2.1.36

2 release files

2.1.35

2 release files

2.1.34

2 release files

2.1.33

2 release files

2.1.32

2 release files

2.1.31

2 release files

2.1.30

2 release files

2.1.29

2 release files

2.1.28

2 release files

2.1.27

2 release files

2.1.26

2 release files

2.1.25

2 release files

2.1.24

2 release files

2.1.23

2 release files

2.1.22

2 release files

2.1.21

2 release files

2.1.20

2 release files

2.1.19

2 release files

2.1.18

2 release files

2.1.17

2 release files

2.1.16

2 release files

2.1.15

2 release files

2.1.14

2 release files

2.1.13

2 release files

2.1.12

2 release files

2.1.11

2 release files

2.1.10

2 release files

2.1.9

2 release files

2.1.8

2 release files

2.1.7

2 release files

2.1.6

2 release files

2.1.5

2 release files

2.1.4

2 release files

2.1.3

2 release files

2.1.2

2 release files

2.1.1

2 release files

2.1.0

2 release files

2.0.8

2 release files

2.0.7

2 release files

2.0.6

2 release files

2.0.5

2 release files

2.0.4

2 release files

2.0.3

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.3.0

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.30

2 release files

1.1.29

2 release files

1.1.27

2 release files

1.1.24

2 release files

1.1.22

2 release files

1.1.21

2 release files

1.1.20

2 release files

1.1.19

2 release files

1.1.16

2 release files

1.1.15

2 release files

1.1.14

2 release files

1.1.13

2 release files

1.1.12

2 release files

1.1.11

2 release files

1.1.9

2 release files

1.1.8

2 release files

1.1.7

2 release files

1.1.6

2 release files

1.1.5

2 release files

1.1.4

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.0.99

2 release files

1.0.97

2 release files

1.0.96

2 release files

1.0.95

2 release files

1.0.94

2 release files

1.0.93

2 release files

1.0.92

2 release files

1.0.91

2 release files

1.0.90

2 release files

1.0.89

2 release files

1.0.88

2 release files

0.0.2

2 release files

0.0.1

2 release files

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