# Agent SDK for Go

An open-source Go SDK for building AI agents whose state, tool calls and execution loops survive process crashes, running in-process by default or, for distributed execution, through Temporal or Restate.

Agent SDK for Go is a durable-execution framework for building AI agents in Go. Agents run in-process with crash-resilient execution by default, requiring no separate infrastructure, and can reconnect to an active run and resume its event stream after a restart; adding a Temporal or Restate deployment extends that durability across processes and machines.

It connects to OpenAI, Anthropic, Gemini, DeepSeek and local Ollama models through a pluggable client interface, supports built-in and custom tools and MCP servers over stdio or HTTP, can expose or consume agents through the A2A protocol, and can delegate work to sub-agents with their own models, tools and task queues. Other features include human-in-the-loop approval gates on tool calls, conversation history backed by memory or Redis, retrieval-augmented generation, per-run token budgets, lifecycle hooks, and OpenTelemetry traces and metrics.

It requires Go 1.26 or later, is an independent community library not affiliated with Temporal or Restate, and is licensed under Apache-2.0.

Website: https://docs.agenticenv.ai/
