Metadata-Version: 2.4
Name: ed-agent
Version: 1.0.0
Summary: Connect any machine to the ED Civilization Network. Earn EDC passively.
Home-page: https://olife.ai
Author: Eduardo — O LIFE Civilization OS
Author-email: Eduardo — O LIFE Civilization OS <ed@olife.ai>
License: MIT
Project-URL: Homepage, https://olife.ai
Project-URL: Source, https://github.com/efouap/olife33
Project-URL: Nexus Registry, https://nexus3-production-86cc.up.railway.app
Keywords: civilization,ai,distributed-computing,earn-edc,olife,energy-grid,carbon-credits,renewable-energy
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: System :: Distributed Computing
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests>=2.28.0
Requires-Dist: click>=8.0.0
Requires-Dist: psutil>=5.9.0
Requires-Dist: rich>=13.0.0
Dynamic: license-file

# ed-agent — O LIFE Civilization OS Node

[![PyPI version](https://badge.fury.io/py/ed-agent.svg)](https://badge.fury.io/py/ed-agent)
[![Python 3.8+](https://img.shields.io/badge/python-3.8+-blue.svg)](https://www.python.org/downloads/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

**Connect any machine to the planetary civilization network. Earn EDC passively.**

ED (Evolutionary Director) is the AI orchestrator of O LIFE — a civilization-scale operating system that coordinates energy grids, compute resources, carbon markets, and economic activity across 30+ countries.

When you install `ed-agent`, your machine becomes a node in this network:
- **Earn EDC** for contributing compute power
- **Earn EDC** for demand response (reducing load when the grid needs help)
- **Earn EDC** just for staying connected (0.01 EDC/hour)
- **Access** the global energy marketplace (RECs, carbon credits, PPAs)

---

## Install

```bash
pip install ed-agent
```

Or from the O LIFE Nexus registry (faster for existing users):

```bash
pip install ed-agent \
  --index-url https://nexus3-production-86cc.up.railway.app/repository/ed-pypi/simple/ \
  --extra-index-url https://pypi.org/simple/
```

---

## Quick Start (3 commands)

```bash
# 1. Get your token: https://olife.ai → My Account → API Key

# 2. Register your machine
ed-agent register --token YOUR_OLIFE_TOKEN

# 3. Start earning EDC
ed-agent start
```

That's it. Your machine is now part of the O LIFE Civilization Network.

---

## What Your Machine Does

```
Your Machine                    ED Network
    │                               │
    ├── Available? ──────────────►  Receives job request
    │                               │
    ├── Executes job ◄────────────  Job assigned
    │                               │
    ├── Reports result ──────────►  Verifies completion
    │                               │
    └── EDC credited ◄────────────  Payment sent to wallet
```

### Job Types

| Job Type | Description | Reward |
|----------|-------------|--------|
| CPU Inference | Run AI inference tasks | 0.1–2 EDC |
| GPU Training | ML model training batches | 1–100 EDC |
| Data Processing | Analyze civilization data | 0.5–5 EDC |
| Demand Response | Reduce power on grid signal | 0.5–50 EDC |
| Online Presence | Just stay connected | 0.01 EDC/hr |

---

## Commands

```bash
# Register this machine
ed-agent register --token YOUR_TOKEN

# Start the agent (foreground)
ed-agent start

# Start as background daemon
ed-agent start --daemon

# Check status and earnings
ed-agent status

# View machine capabilities
ed-agent info
```

---

## What is EDC?

EDC (Evolutionary Director Coin) is the native currency of the O LIFE Civilization OS. It is:

- **Earned** by contributing to the civilization network
- **Spent** on energy certificates, carbon credits, compute jobs
- **Traded** on the O LIFE marketplace
- **Accumulated** to unlock higher civilization tiers

EDC is not a speculative cryptocurrency. It represents real work done for civilization.

---

## What is O LIFE?

O LIFE (olife.ai) is a civilization-scale operating system that:

- **Monitors** 30+ electrical grid operators worldwide (5.5B people covered)
- **Trades** renewable energy certificates (RECs) and carbon credits globally
- **Coordinates** Machine Capital — idle computers earning EDC
- **Runs** the Prediction Arena — stake TWB on real-world events
- **Powers** the Business MRI — AI analysis for SMEs
- **Manages** the Civilization Dividend — passive income for contributors

The vision: coordinate global energy, compute, and economic activity to eliminate waste, maximize efficiency, and distribute wealth to participants.

---

## Privacy & Security

- `ed-agent` only uses CPU/GPU for explicitly assigned jobs
- No personal data is collected
- All communication is encrypted (HTTPS)
- You can stop the agent at any time with Ctrl+C
- Configuration stored locally at `~/.ed-agent/config.json`

---

## System Requirements

- Python 3.8+
- Internet connection
- Any OS: Windows, macOS, Linux
- Any hardware: laptop, desktop, server, Raspberry Pi, cloud VM

GPU acceleration is optional but earns significantly more EDC.

---

## Links

- **Platform**: https://olife.ai
- **Nexus Registry**: https://nexus3-production-86cc.up.railway.app
- **Status**: https://olife.ai/ed/nexus/status
- **Energy Market**: https://olife.ai/ed/market/overview
- **Grid Intelligence**: https://olife.ai/ed/grid/planetary-summary

---

## License

MIT License — O LIFE Civilization OS

Built by Eduardo. Powered by ED.
