Metadata-Version: 2.5
Name: elci
Version: 0.2.0
Summary: Reference implementation of Elçi, an open person-to-person agent protocol.
Project-URL: Homepage, https://github.com/ArdaYMC/elci
Project-URL: Specification, https://github.com/ArdaYMC/elci/tree/main/spec
Project-URL: Issues, https://github.com/ArdaYMC/elci/issues
Project-URL: Security, https://github.com/ArdaYMC/elci/security/policy
Author: Arda Yemci
License-Expression: MIT
Keywords: a2a,agent-protocol,ai-agents,ed25519,mcp,personal-ai,privacy
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Communications
Classifier: Topic :: Security :: Cryptography
Classifier: Topic :: Software Development :: Libraries
Requires-Python: >=3.10
Requires-Dist: cryptography>=42
Requires-Dist: jsonschema>=4.18
Provides-Extra: dev
Requires-Dist: mcp>=2; extra == 'dev'
Requires-Dist: pytest>=8; extra == 'dev'
Provides-Extra: mcp
Requires-Dist: mcp>=2; extra == 'mcp'
Description-Content-Type: text/markdown

<p align="center">
  <img src="https://raw.githubusercontent.com/ArdaYMC/elci/main/docs/assets/banner.svg" alt="Elçi: your agent talks to their agent, safely" width="100%">
</p>

# elci

Reference implementation of [Elçi](https://github.com/ArdaYMC/elci), an open protocol for personal
AI agents to talk to other people's agents, safely: signed messages, delegated mandates,
need-to-know disclosure, verifiable human approval, and an email fallback for people without an agent.

> Alpha. The spec is a working draft and the API may change between minor versions.

## Install

```bash
pip install elci            # library
pip install 'elci[mcp]'     # plus the elci-mcp server for Claude Code and other MCP hosts
```

## Quick look

```python
import time
from cryptography.hazmat.primitives.asymmetric.ed25519 import Ed25519PrivateKey
from elci import Agent, Delegation, issue_delegation

principal_key, agent_key = Ed25519PrivateKey.generate(), Ed25519PrivateKey.generate()
agent_id = "https://arda.example/agents/devbyarda"
token = issue_delegation(
    Delegation("arda.example", agent_id, ("collaboration",), ("propose", "answer"), int(time.time()) + 3600),
    principal_key,
)
agent = Agent(agent_id, "arda.example", agent_key, token)
message = agent.message(to="https://brand.example/agents/partnerships", topic="collaboration",
                        intent="propose", body={"slots": ["2026-11-27T11:00"]})
```

The receiving side runs `elci.Inbox(own_card).accept(message)`, which checks the sender's card,
domain, freshness, signature, delegation, approval receipt and replays.

## Use it from Claude Code

```bash
pip install 'elci[mcp]'
claude mcp add elci -- elci-mcp
```

## Links

- [Specification](https://github.com/ArdaYMC/elci/tree/main/spec)
- [Three-agent demo](https://github.com/ArdaYMC/elci/tree/main/examples)
- [Security policy](https://github.com/ArdaYMC/elci/security/policy)
- [Contributing](https://github.com/ArdaYMC/elci/blob/main/CONTRIBUTING.md)

## Develop

```bash
git clone https://github.com/ArdaYMC/elci && cd elci/python
pip install -e '.[dev]'
pytest
```
