SAM Sovereign Agent Mesh http://sam-mesh.dev/
  • Go 80.9%
  • Shell 8.1%
  • Dart 2.6%
  • Python 2.6%
  • JavaScript 2.4%
  • Other 3.3%
Find a file
Antonio Ojea bf614085f6
Merge commit from fork
Advisory fix
2026-09-04 12:18:00 -04:00
.github ci: cut the mobile e2e critical path with caches and phase separation 2026-09-02 15:13:26 +00:00
.vscode docs: integrating VS Code and Copilot with a node 2026-08-23 12:57:58 +00:00
agents/skills/sam-mesh node: replace map[string]any /debug payloads with typed structs 2026-09-01 08:53:21 +02:00
api controlplane: one proof-of-possession rule for the whole enrollment surface 2026-09-03 14:29:58 +00:00
charts/sam-mesh a2a: cover the CUJ with stock SDKs at every level and fix what that found 2026-09-02 09:52:34 +00:00
cmd sandbox: flip the boundary to named HTTP tunnels via tun2connect 2026-09-01 14:03:16 +00:00
development node: regenerate a2a agent cards with the official SDK instead of live rewrite 2026-09-02 08:43:31 +00:00
docs Merge pull request #157 from aojea/autopudate 2026-06-27 08:11:32 -04:00
hack nano-init: route the sandbox instead of asking it to cooperate 2026-08-21 17:19:27 +00:00
internal Merge commit from fork 2026-09-04 12:18:00 -04:00
mobile ci: cut the mobile e2e critical path with caches and phase separation 2026-09-02 15:13:26 +00:00
sam-mcp-python fix(sam-mcp-python): SSE-safe HTTP timeouts in SamClient 2026-08-30 21:38:36 +00:00
scripts docs: describe the system as it is, not as it became 2026-08-22 08:40:01 +00:00
site Merge commit from fork 2026-09-04 12:18:00 -04:00
tests node: remove the send_message MCP tool 2026-09-03 20:46:33 +00:00
.gitignore sandbox: flip the boundary to named HTTP tunnels via tun2connect 2026-09-01 14:03:16 +00:00
.golangci.yml lint: repair the golangci-lint v2 config, and forbid raw GetBlockID 2026-08-26 15:23:39 +00:00
.goreleaser.yaml sandbox: flip the boundary to named HTTP tunnels via tun2connect 2026-09-01 14:03:16 +00:00
AGENTS.md sandbox: flip the boundary to named HTTP tunnels via tun2connect 2026-09-01 14:03:16 +00:00
CODE_OF_CONDUCT.md init 2026-04-24 08:32:57 +00:00
CONTRIBUTING.md init 2026-04-24 08:32:57 +00:00
Dockerfile.nano-init build(deps): bump golang from 1.26.6 to 1.27.0 2026-09-01 06:57:28 +00:00
Dockerfile.sam-box build(deps): bump golang from 1.26.6 to 1.27.0 2026-09-01 06:57:28 +00:00
Dockerfile.sam-console build(deps): bump golang from 1.26.6 to 1.27.0 2026-09-01 06:57:28 +00:00
Dockerfile.sam-control-plane build(deps): bump golang from 1.26.6 to 1.27.0 2026-09-01 06:57:28 +00:00
Dockerfile.sam-node build(deps): bump golang from 1.26.6 to 1.27.0 2026-09-01 06:57:28 +00:00
Dockerfile.sam-router build(deps): bump golang from 1.26.6 to 1.27.0 2026-09-01 06:57:28 +00:00
go.mod node: regenerate a2a agent cards with the official SDK instead of live rewrite 2026-09-02 08:43:31 +00:00
go.sum node: regenerate a2a agent cards with the official SDK instead of live rewrite 2026-09-02 08:43:31 +00:00
install.sh sandbox: flip the boundary to named HTTP tunnels via tun2connect 2026-09-01 14:03:16 +00:00
LICENSE Initial commit 2026-04-18 01:24:10 +02:00
Makefile ci: cut the mobile e2e critical path with caches and phase separation 2026-09-02 15:13:26 +00:00
README.md docs: clarify digital sovereignty architecture, testnet scope, and clean up site configuration 2026-09-01 09:28:52 +00:00
ROADMAP.md Add roadmap for Sovereign Agent Mesh development 2026-09-01 14:58:42 +02:00

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.


What "Sovereign" Means in SAM

SAM is an open-source software project (Apache-2.0) providing decentralized networking and cryptographic building blocks for autonomous AI agents. It carries no vendor telemetry and has no hardcoded dependencies on proprietary cloud services or model providers.

SAM provides the open protocols, cryptographic building blocks, and software to build sovereign, zero-trust agent meshes. In SAM, digital sovereignty is built on architectural and cryptographic control—custody of root keys, independent identity federation, and policy-enforced data boundaries. In a sovereign deployment, operators:

  1. Deploy Dedicated Mesh Infrastructure: Run a dedicated control plane (sam-control-plane) and routing relays (sam-router) on your chosen infrastructure (managed cloud environments like Google Cloud, private Kubernetes clusters, or air-gapped datacenters) using our Helm chart or Kubernetes manifests.
  2. Maintain Root Cryptographic Key Custody: Generate, manage, and hold your own Ed25519 root signing keys (via local HSMs, KMS, or Cloud EKM). You maintain 100% of the cryptographic authority—no external party can mint credentials, revoke nodes, or alter policies.
  3. Bring Your Own Identity Provider: Bridge agent and user identities through your own OIDC identity provider (such as Dex, Keycloak, or corporate IdP).
  4. Enforce Territorial & Jurisdictional Boundaries: Use cryptographically attested label gates (--labels jurisdiction=eu, X-Sam-Required-Labels) to mathematically guarantee prompts and tool invocations never leave authorized geographic scopes.
  5. Retain Autonomous Local Vetoes: Configure local node attenuation policies (sam-node.yaml) to evaluate access rules before control plane grants, ensuring local nodes retain absolute veto authority.

Note

About the Public Developer Testnets: The public endpoints (bananas.sam-mesh.dev and hub.sam-mesh.dev) are free testbeds created using community resources solely for developer testing, continuous integration, and rapid experimentation. They provide no guarantees, no uptime commitments, zero SLA, and no sovereign guarantees. Running on a shared community testnet delegates identity management to the testbed maintainers; true sovereignty requires deploying a dedicated control plane with customer-held keys.

📖 Deep Dive: Read our full Digital & Data Sovereignty Architecture covering the 5 pillars, fail-closed label gates, uncooperative sandbox confinement, and regulatory alignment (GDPR Chapter V, EU Cloud Sovereignty Framework SEAL-3, EU Data Act).


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:

Digital & Data Sovereignty

  • 🏛️ Digital & Data Sovereignty Architecture: How SAM enforces data residency, territorial label gates, autonomous local vetoes, and regulatory compliance (GDPR, EU Cloud Sovereignty Framework SEAL-3, EU Data Act).

For Users & Operators

  • 🚀 User Quick Start Guide: Connect and run a SAM node on the community-hosted developer testnet (bananas.sam-mesh.dev, strictly for testing with no guarantees) using binaries or Docker.
  • 🎛️ Dedicated Sovereign Deployment: Run your own private sovereign hub (control plane, router, console) via the sam-mesh Helm chart or Kubernetes manifests.
  • 🤖 Agent Integration Guides: Connect Google Gemini, Claude, and other AI agents to your SAM node to dynamically discover and call tools across the mesh.
  • 📡 Testnet Validation Tutorial: Real-time verification, remote tool invocation, and HTTP stream proxies on public developer testnets.

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.