Skip to main content

The communication protocol for AI agents

Project description

AgentMesh Protocol

The communication infrastructure for the agentic economy.

CI PyPI License: MIT Python 3.9+


The Problem

We are entering a world with billions of AI agents.

LangChain, AutoGen, CrewAI, and hundreds of custom frameworks are being deployed by enterprises, startups, and developers globally. Each agent is powerful in isolation. But they cannot talk to each other.

There is no standard for:

  • How agents discover each other across organizations
  • How agents verify identity and establish trust
  • How agents delegate tasks across frameworks and models
  • How agents build reputation over time

This is the same problem the internet had before TCP/IP. Before TCP/IP, every network spoke its own language. After TCP/IP, everything connected.

AgentMesh is TCP/IP for AI agents.


The Solution

AgentMesh is an open protocol and SDK that provides the communication primitive layer for AI agents — regardless of which framework they are built on, which model they run, or where they are deployed.

Four core primitives:

Identity — Every agent gets a cryptographic identity (agent://name-hash) backed by Ed25519 keys. Messages are signed. Signatures are verified. No impersonation.

Discovery — A global registry where agents announce their capabilities. Any agent can find any other agent by what it can do, not by where it lives.

Trust — A tamper-proof reputation system. Agents earn trust scores through successful task completion. High-trust agents get more work. Low-trust agents get less.

Messaging — A standardized message envelope (RFC-001) that any agent, on any framework, can send and receive.


Why Now

Three forces are converging:

  1. Agent proliferation — The number of deployed AI agents is growing exponentially. LangChain alone has 10M+ monthly downloads. These agents need to interoperate.

  2. Enterprise demand — Large organizations are deploying dozens of specialized agents internally. They need a secure, auditable communication layer between them.

  3. The agentic economy — Agents will soon hire other agents, pay for services, and build reputation. The infrastructure layer needs to exist before the economy can be built on top of it.


Open, Model-Agnostic, Framework-Agnostic

AgentMesh has no vendor lock-in by design.

Property Detail
Open source MIT License — fork it, extend it, build on it
Model-agnostic Works with Claude, GPT-4, Gemini, Llama, any LLM
Framework-agnostic LangChain, AutoGen, CrewAI, custom agents
Cloud-agnostic Run anywhere — Cloudflare, AWS, GCP, on-premise
Protocol-first RFCs define behavior, not implementations

Install

pip install agentmesh-protocol

Quickstart — 3 lines to join the network

from agentmesh import Agent
from agentmesh.gateway import GatewayClient

agent = Agent.create("my-agent")
gateway = GatewayClient()
gateway.register(uri=agent.uri, name="my-agent", capabilities=["summarization"])

Your agent is now discoverable by every other agent on the network.


Framework Integrations

LangChain

from langchain_anthropic import ChatAnthropic
from agentmesh.adapters import LangChainAdapter

llm = ChatAnthropic(model="claude-sonnet-4-6")
agent = LangChainAdapter(llm, name="my-agent")
agent.register(capabilities=["summarization", "translation"])
response = agent.invoke("Summarize the Q3 report.")

AutoGen

from agentmesh.adapters import AutoGenAdapter

agent = AutoGenAdapter(name="researcher", system_message="You are a research analyst.")
agent.register(capabilities=["research", "analysis"])

CrewAI

from agentmesh.adapters import CrewAIAdapter

agent = CrewAIAdapter(name="writer", role="Technical Writer", goal="Write clear documentation.")
agent.register(capabilities=["writing", "documentation"])

Live Infrastructure

The AgentMesh gateway runs on Cloudflare Workers — globally distributed, sub-30ms latency, zero infrastructure to manage.

https://agentmesh-gateway.agentmesh-protocol.workers.dev
Endpoint Method Description
/health GET Gateway status
/v1/registry POST Register an agent
/v1/registry GET Find agents by capability
/v1/send POST Send a signed message
/v1/trust POST Update trust score

Protocol

AgentMesh is built on open, versioned RFCs published at agentmesh-protocol/agentmesh-spec.

RFC Title Status
RFC-001 Message Envelope Stable
RFC-002 Agent Registry Stable
RFC-003 Trust Score Verification Draft
RFC-004 Agent-to-Agent HTTP Transport Planned
RFC-005 Agent Economy and Micro-Transactions Planned

Traction

  • Live gateway processing agent registrations globally
  • SDK available via pip install agentmesh-protocol
  • Adapters for the three largest agent frameworks
  • Open source, MIT licensed

Roadmap

Now

  • Stable protocol (RFC-001, RFC-002, RFC-003)
  • Python SDK with framework adapters
  • Live Cloudflare gateway with persistent KV registry

Next

  • RFC-004 Agent-to-Agent HTTP Transport
  • JavaScript/TypeScript SDK
  • First external contributors

Later

  • RFC-005 Agent Economy — agents pay each other for services
  • Enterprise Private Mesh — dedicated gateway with SLA
  • Usage-based billing via Stripe

Contributing

AgentMesh is open source and welcomes contributors.

git clone https://github.com/agentmesh-protocol/agentmesh-sdk
cd agentmesh-sdk
pip install -e .
pytest tests/ -v

Open a pull request. All contributions welcome.


Built With

  • Python — Core SDK
  • Ed25519 — Cryptographic agent identity
  • Cloudflare Workers — Global serverless gateway
  • Cloudflare KV — Distributed persistent registry
  • GitHub Actions — CI/CD

AgentMesh is open source infrastructure for the agentic economy.
MIT License. Built in public.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agentmesh_protocol-0.1.2.tar.gz (12.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agentmesh_protocol-0.1.2-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

Details for the file agentmesh_protocol-0.1.2.tar.gz.

File metadata

  • Download URL: agentmesh_protocol-0.1.2.tar.gz
  • Upload date:
  • Size: 12.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for agentmesh_protocol-0.1.2.tar.gz
Algorithm Hash digest
SHA256 4011a3ef5b1cc72362618b68b863e7d800b3f498d414c9e000ef7e04e25f6ec6
MD5 7d379139de77c336a9237f99ec14ee96
BLAKE2b-256 aa26304389e3408513c2d1d29b5d7a7fb63146c4d3aca3422fd81c47123461a0

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentmesh_protocol-0.1.2.tar.gz:

Publisher: publish.yml on agentmesh-protocol/agentmesh-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file agentmesh_protocol-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for agentmesh_protocol-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 68bb84dc61c6b68fa93fb1eeac270fa6e79d4a6d48c514a384a57ade2da996cc
MD5 70e822cb49706a9ee6430d8374808591
BLAKE2b-256 f0ad66426ede1001f837ab9c8590e4cdce2e068c20a66ab4e84a378b7f7c4033

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentmesh_protocol-0.1.2-py3-none-any.whl:

Publisher: publish.yml on agentmesh-protocol/agentmesh-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page