go-micro README

The project's README from github.com/micro/go-micro. As one markdown file: README.md.

Go Micro

Go Micro is a Go framework for distributed systems development.

It provides RPC, service discovery, messaging, storage, and configuration. Agents use services as tools to carry out work. The gateway exposes services through HTTP and MCP for other applications and agents. Each component uses a Go interface with a default implementation that can be replaced.

Features

Getting started

Install the framework:

go get go-micro.dev/v6@latest

Choose what you need. Chat does not require the gateway.

Integrations

Browse integrations, propose one, or submit a listing PR. Community listings are free; sponsored placement and integration work help fund maintenance.

Documentation

License

Apache 2.0

go-micro (micro/go-micro)

Searching Database…

What is this?Go Micro is an agent harness and service framework for Go — a runtime around an agent (its tools, memory, guardrails, workflows, and services) where agents, services, and durable flows all share one runtime.
Is it a Go framework or a CLI tool?Both: services, agents, and flows are Go code you write and import, and the micro CLI scaffolds (micro new), runs them with hot reload and an interactive console (micro run), and deploys in one command.
How do I get it running?Install the micro CLI, then micro new myservice and micro run (dev mode with hot reload and a chat console). The fastest start works with no API key, and a Docker image bundles the CLI too.
Do I need an LLM API key to try it?No. The no-secret path works without any provider — you can scaffold and run services and build a first agent on a mock model. A provider key is only needed to generate services from a prompt; 9 providers are supported.
What happens if an agent run gets interrupted mid-task?Execution recovery is explicit: interrupted agent runs need an AgentWithCheckpoint and a resume call. Flow steps resume from saved boundaries, and an interrupted step may execute again — exactly-once and multi-replica limits are documented.
When should I pick Go Micro over a simpler agent framework?When the agent has to operate a real system, not just answer a prompt: your service endpoints become AI-callable tools, agents register and discover each other like services, and guardrails (MaxSteps, LoopLimit, ApproveTool) run where actions happen.
What does an agent get out of the box?A model, durable store-backed memory (Postgres, NATS KV, or file) that survives restarts, tools from your services plus any AgentTool function, and two built-in harness tools: plan for multi-step work and delegate for handing subtasks to other agents over RPC.
Which LLM providers are supported?Nine, swappable with a single import: Anthropic, OpenAI, Google Gemini, Groq, Mistral, Together AI, Atlas Cloud, MiniMax, and Ollama for local models like llama3.2.
How do agents on other frameworks call my agents?Via the Agent2Agent (A2A) protocol: a gateway discovers registered agents, generates an Agent Card for each, and translates A2A tasks to Agent.Chat — no per-agent code. MCP exposes your service endpoints as tools the same way.
Can a tool charge an agent for a call?Yes, opt-in via x402: an endpoint can require a stablecoin payment that the agent settles autonomously. Verification goes to a pluggable facilitator (Coinbase, Alchemy, or self-hosted), so Base and Solana are just different facilitators — no crypto in the framework itself.
Creator
micro
Size
40.4 MB
Stars
23.1K
Age
11y
Commits · 90 Days