StackMap
Subscribe
Explore / sam
google

sam

Zero-trust P2P mesh for agents, published by Google: libp2p nodes with portable crypto identities self-discover, and an MCP sidecar lets an agent invoke tools on any node — cloud, local or edge.

643 95 Go Apache-2.0updated today
View on GitHubDispute this mapping →
Curator's take

The bet here is transport, not agents. Portable cryptographic identity plus libp2p routing means an agent's tools stay reachable when it moves between laptop, cluster and edge, and every node, connection and packet is authenticated instead of trusted for being inside the VPC — plus a public testnet you can join in minutes and a `sam-mesh` skill that puts an agent on the mesh in one line. Costs: you operate a control plane, routers and per-host nodes, and Go/Kubernetes fluency is assumed. Read the disclaimer too — published by Google, but not an officially supported Google product and outside its vulnerability reward program. If your agents all live in one cluster and call a handful of MCP servers, a gateway is far less machinery.

Mapped by ShipWithAI editors · links verified
README.md

SAM: Sovereign Agent Mesh

SAM

SAM is a smart network built for autonomous AI agents:

  • Zero Config: Nodes discover each other and build the P2P network automatically.
  • Zero Trust: Every connection, node, and packet is strictly authenticated.
  • Agentic Network: Formed by lightweight nodes (sam-node) that provide self-healing, P2P connectivity, allowing autonomous agents to plug in, communicate, and invoke tools dynamically.
  • Portability: Cryptographic identities are environment-agnostic, allowing seamless node mobility across cloud, local, and edge environments.

Getting started is a one-liner (see the Quick Start Guide): install, add the skill, and your agent is on the mesh.

Demo: installing SAM, adding the sam-mesh skill, and an agent discovering and calling tools across the mesh
Advanced demo: an agent fans a batch of work across a warm pool of reviewer agents on the mesh

Full walkthrough: Warm Agent Pool use case.


Architecture Components

  • sam-control-plane: The registry control plane for node identity registration, authorization policies, and router coordinating.
  • sam-router: The libp2p bootstrap nodes and relays providing data-plane connectivity and forwarding.
  • sam-node: The local node clients providing mesh transport integration and MCP sidecar routing.

Documentation

Start exploring the Sovereign Agent Mesh:

For Users & Operators

Get a node running on the public testnet (bananas.sam-mesh.dev) in minutes:

For Developers & Contributors

Compile from source, run local clusters, or execute tests:

  • 🛠️ Developer Guide: Prereqs, compilation, local control plane setup, and Kubernetes Kind deployment.
  • 🧪 Testing Guide: Go tests, E2E BATS, and containerized mesh execution.

License

See LICENSE.

Disclaimer

This is not an officially supported Google product. This project is not eligible for the Google Open Source Software Vulnerability Rewards Program.

Continue your stack

What teams reach for next — and why each earns a place beside sam. Ranked by curator confidence.