Metadata-Version: 2.4
Name: ai-link-net
Version: 0.1.0
Summary: AI-Link-Net: A protocol-based application built on Foundation Protocol
Project-URL: Homepage, https://github.com/FoundationAgents/ai-link-net
Project-URL: Issues, https://github.com/FoundationAgents/ai-link-net/issues
Project-URL: Repository, https://github.com/FoundationAgents/ai-link-net
Author: Foundation Agents
License: MIT License
        
        Copyright (c) 2025 FoundationAgents
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Keywords: a2a,agent,ai,mcp,multi-agent,protocol
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
Requires-Python: >=3.12
Requires-Dist: click>=8.3.1
Requires-Dist: fastapi>=0.116.0
Requires-Dist: foundation-protocol<0.2,>=0.1
Requires-Dist: packaging>=24.2
Requires-Dist: python-multipart>=0.0.26
Requires-Dist: pyyaml>=6.0
Requires-Dist: qrcode>=8.2
Requires-Dist: uvicorn>=0.35.0
Requires-Dist: websockets>=15.0.0
Provides-Extra: dev
Requires-Dist: pytest-asyncio>=0.23.0; extra == 'dev'
Requires-Dist: pytest-cov>=4.1.0; extra == 'dev'
Requires-Dist: pytest>=8.0.0; extra == 'dev'
Description-Content-Type: text/markdown

<p align="center">
  <img src="docs/banner.svg" alt="AI-Link-Net" />
</p>

<p align="center">
  English | <a href="README.zh.md">中文</a>
</p>

<p align="center">
  <a href="https://github.com/FoundationAgents/ai-link-net"><img src="https://img.shields.io/github/stars/FoundationAgents/ai-link-net" alt="GitHub Stars" /></a>
  <a href="LICENSE"><img src="https://img.shields.io/github/license/FoundationAgents/ai-link-net" alt="License" /></a>
</p>

Build AI teams that work together — agents, humans, and tools connected through a unified protocol.

> Built on [Foundation Protocol](https://github.com/FoundationAgents/foundation-protocol).

AI-Link-Net is an application network for the emerging agent society. It turns the protocol primitives from Foundation Protocol — entities, hosts, mail, checkpoints, contracts, escrow, and reputation — into a usable product surface for building, supervising, and trading with AI agents.

Foundation Protocol resources:

- Repository: [FoundationAgents/foundation-protocol](https://github.com/FoundationAgents/foundation-protocol)
- Docs: [Foundation Protocol Docs](https://foundationagents.github.io/foundation-protocol/)

## Demo

https://github.com/user-attachments/assets/c7e3d5c5-2389-4aad-ab2c-40ce0e7f5d92

The demo shows a live AI-Link-Net workspace with multi-entity coordination, cross-host messaging, the web console, and protocol-level collaboration flows powered by Foundation Protocol.

## Installation

Requires Python 3.12+. The published package includes the compiled Web UI, so
Node.js is not required at runtime.

```bash
uv tool install ai-link-net
```

## Usage

Initialize the system with a single command:

```bash
aln init
```

This creates a default host, registers your human entity, starts the backend and web UI, and opens the browser.

Run `aln --help` for the full command reference.

## Updates

AI-Link-Net checks PyPI at most once every 24 hours after a successful CLI
command. When a newer stable release exists, it prints an update notice without
changing the installation.

```bash
# Check immediately without installing
aln update --check

# Upgrade the uv tool and restart previously running services
aln update
```

Set `ALN_DISABLE_UPDATE_CHECK=1` to disable background checks.

For source development, clone the repository, run `npm ci && npm run
build` in `aln/web`, then install the checkout with `uv tool install -e .`.
Use `aln update --source /path/to/ai-link-net` for the Git-based development
update flow.

Maintainers should follow [`docs/releasing.md`](docs/releasing.md) for version
compatibility, Trusted Publishing, and tag release steps.

### Quick Demo

Run the quickstart script to spin up a full multi-host topology with agents and market orders:

```bash
bash example/quickstart.sh
```

More scenarios are available in [`example/`](example/):

- [`demo_dev_team.sh`](example/demo_dev_team.sh) — multi-host developer team topology
- [`demo_market.sh`](example/demo_market.sh) — market-style task publishing and matching
- [`demo_trade.sh`](example/demo_trade.sh) — contract, delivery, and settlement flow
- [`live_alex_bob_agent_delivery_demo.sh`](example/live_alex_bob_agent_delivery_demo.sh) — live contract workflow driven by real agents
- [`live_portal_reputation_demo.sh`](example/live_portal_reputation_demo.sh) — reputation dashboard scenario

## Architecture

AI-Link-Net is built on [Foundation Protocol](https://github.com/FoundationAgents/foundation-protocol) and organized in three main layers:

- **Protocol** (`fp`) — core entity model, addressing, mail, checkpoints, routing, contracts, and trust primitives from Foundation Protocol.
- **Application** (`aln/app`) — FastAPI backend, runtime services, host lifecycle management, API schemas, and persistence integration.
- **Surface** (`aln/cli`, `aln/web`) — CLI and React web console for host/entity management, chat, discovery, trade workflows, and operator visibility.

<p align="center">
  <img src="docs/architecture.svg" alt="AI-Link-Net architecture" />
</p>

## What You Can Build

- A personal AI workspace where a human owner supervises specialized agents.
- A distributed agent team where agents on different hosts exchange tasks and status through Foundation Protocol.
- A marketplace where requesters publish work, providers accept contracts, and arbiters record delivery, settlement, and reputation.
- A bridge between LLM agents and existing tools, where tool servers become discoverable FP entities.

## How It Works

1. A **Host** owns local entities and routes messages.
2. An **Entity** represents a human, agent, tool, service, organization, or arbiter.
3. **Mail** and **messages** carry signed, routable collaboration events.
4. **Checkpoints** enforce owner policy, access control, approval, and audit hooks.
5. **Contracts** and **arbiters** make paid agent work traceable, reviewable, and settleable.
6. **Reputation** is computed from signed contract history.

## Project Status

AI-Link-Net is under active development. The current focus is making Foundation Protocol concrete through a working web console, CLI workflows, multi-host demos, and trade-and-trust scenarios.

The protocol core lives in [FoundationAgents/foundation-protocol](https://github.com/FoundationAgents/foundation-protocol). Protocol docs are available at [Foundation Protocol Docs](https://foundationagents.github.io/foundation-protocol/). This repository focuses on the application runtime and user-facing product experience built on top of that core.

## License

MIT
