Distributed

Cluster agents without leaving your VPC.

Agentmatic's distributed runtime is self-hosted, gRPC-based, and built into the engine. Coordinator/worker for centralized control, or P2P mesh for resilience. No SaaS dependency.

What you get: deterministic graph fan-out across workers, automatic checkpoint hand-off, least-loaded scheduling, gRPC streaming for partial results, and node-level health probes. All MIT-licensed.

Coordinator/worker setup

from agentmatic.cluster import ClusterConfig, Worker

# On each worker box:
Worker.serve(addr="0.0.0.0:9090")

# In your application:
config = ClusterConfig(
    topology="coordinator-worker",
    transport="grpc",
    workers=["worker-1:9090", "worker-2:9090", "worker-3:9090"],
    load_balancing="least-loaded",
)
agent = Agent.builder("distributed").llm(OpenAI()).cluster(config).build()

Peer-to-peer mesh

config = ClusterConfig(
    topology="p2p",
    transport="grpc",
    peers=["peer-1:9090", "peer-2:9090", "peer-3:9090"],
    consensus="raft",
)
agent = Agent.builder("p2p-distributed").llm(OpenAI()).cluster(config).build()

When to cluster

What it doesn't do

Agentmatic clusters are not a replacement for Kubernetes / your job scheduler. The cluster ships gRPC + checkpoint hand-off; you still run it under k8s, systemd, or your platform of choice. We don't hide the runtime from you.

Observability

Ship your next agent in minutes, not weeks.

MIT licensed. Drop-in for LangGraph. Native SDKs in 5 languages. Battle-tested resilience primitives in the box.