Skip to main content

Foundation Protocol

English | 中文 | 한국어 | 日本語 | Español | Tiếng Việt

GitHub Stars License Docs arXiv HuggingFace

A Python runtime for multi-entity AI collaboration — agents, humans, and tools on a shared protocol layer.

AI-Link-Net is a full-stack application built on this protocol.

Features

  • Unified entity model — agents, humans, tools, and services share a common identity and addressing system
  • Multi-party sessions — structured collaboration with strict lifecycle enforcement and event replay
  • Policy & governance — checkpoint hooks with provenance recording for trust and access control
  • Trade & payment — contracts, escrow, settlement, and dispute resolution via state machines
  • Federation — local and remote entity routing across distributed host nodes

Manifesto

https://github.com/user-attachments/assets/ceab2515-b8f2-47ec-8d7f-10452759c32a

Installation

Recommended: install the stable release from PyPI:

pip install foundation-protocol

Developers can install the latest source from GitHub:

pip install "foundation-protocol @ git+https://github.com/FoundationAgents/foundation-protocol.git"

Usage

import asyncio
from fp import EntityKind, Host, Message, MessageKind

async def main():
    host = Host(name="LocalHost")

    alice = host.register_entity(name="Alice", kind=EntityKind.HUMAN)
    bot = host.register_entity(name="Bot", kind=EntityKind.AGENT)

    await alice.send_message(
        to=bot.entity_card,
        message=Message(kind=MessageKind.INVOKE, payload={"text": "Hello!"}),
    )

asyncio.run(main())

See the example/ directory for more scenarios including cross-host messaging, MCP tool integration, and trade workflows.

Documentation

Full documentation is published at foundationagents.github.io/foundation-protocol. Quick links:

License

MIT

Metadata

Release files for foundation-protocol 0.1.0

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

Source distribution (sdist)

Source distribution for foundation-protocol 0.1.0
File Size Uploaded Provenance
foundation_protocol-0.1.0.tar.gz 451.9 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for foundation-protocol 0.1.0
File Interpreter ABI Platform
foundation_protocol-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 530.0 kB

Release files / foundation_protocol-0.1.0.tar.gz

Download URL foundation_protocol-0.1.0.tar.gz
Size 451.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b5e06d8494f202b97ebde0f9639e5bb61a9c947cbe93ae39fef096a40c71f053
BLAKE2b-256 checksum
How to use checksums
c033b2030df811320a4a4c931f8df215f3e76bc83f8a8f3f506c69b055127740
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

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 Jun 18, 2026.

Transparency log

Release files / foundation_protocol-0.1.0-py3-none-any.whl

Download URL foundation_protocol-0.1.0-py3-none-any.whl
Size 78.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f3ea819086697f1f502702be2a52588137a1e0565a28ff8ae78da23964f2fdaa
BLAKE2b-256 checksum
How to use checksums
c1d7168631de93fa5573fb347014b48c5b1d12a154909c766de6cce1a225053d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

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 Jun 18, 2026.

Transparency log

Security for foundation-protocol 0.1.0

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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for foundation_protocol-0.1.0.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 Jun 18, 2026.

Transparency log

A 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

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