# agent-sdk-go

> agent-sdk-go is an open-source agent framework for developer tools. Go SDK for building AI agents that survive crashes and restarts. It is available on API, CLI, Linux, macOS, Windows and Self-hosted.

- **Kind:** Agent
- **Pricing:** Open source
- **Platforms:** API, CLI, Linux, macOS, Windows, Self-hosted
- **Website:** https://docs.agenticenv.ai
- **Repository:** https://github.com/agenticenv/agent-sdk-go
- **GitHub stars:** 70
- **License:** Apache-2.0
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

Agent SDK for Go gives Go developers a typed, option-driven way to assemble agents from an LLM client, system prompt, tools and optional memory. Runs execute in-process by default and journal each step, so a process that dies mid-run can reconnect and continue after restart without extra infrastructure.

When a single process is not enough, the same agent code can be pointed at a Temporal or Restate backend for distributed worker pools and a separate client that triggers runs. Individual components such as the model client, approval policy, guardrails and lifecycle hooks are interfaces, so they can be swapped or customised without changing agent logic.

It suits Go teams building agent-backed services who want durability, human approval gates on tool calls and budget limits without writing their own orchestration layer. Built-in support covers MCP tool servers, A2A delegation and AG-UI streaming events.

## Features

- **Durable in-process runtime:** Runs journal each step locally so they can resume after a crash or restart with no server to operate.
- **Pluggable distributed backends:** Switch the same agent to Temporal or Restate when work must scale across processes.
- **Tool approval gates:** Require human approval for tool calls, MCP invocations and sub-agent delegation before they run.
- **Guardrails and hooks:** Check prompts and responses, redact sensitive content, and intercept LLM, tool and memory calls.
- **Error recovery and fallbacks:** Retry, fall back to another model, add iterations or circuit-break a failing tool.
- **Protocol integrations:** Connect MCP tool servers and A2A agents, and stream AG-UI events to frontends.

## Good for

- Embedding a tool-using LLM agent inside a Go backend service
- Running long agent tasks that must survive restarts without losing progress
- Adding human sign-off before an agent sends messages or changes data
- Routing agent calls across multiple LLM providers with fallback models
- Delegating subtasks from one agent to specialist sub-agents

## FAQ

### Do I need a server to run agents?

No. The default in-process runtime works with no infrastructure. Temporal or Restate servers are only needed for distributed, multi-process execution.

### Which LLM providers are supported?

OpenAI, Anthropic, Gemini, DeepSeek and Ollama are included, and custom providers can be added through the LLM client interface.

### What license is agent-sdk-go under?

Apache 2.0.

### Can agent-sdk-go be used from the command line?

A companion CLI called agctl can run prompts or an interactive chat, using binaries from GitHub Releases.

### Is agent-sdk-go free?

Yes. agent-sdk-go is open source, so you can use and self-host it for free.

### What are the best alternatives to agent-sdk-go?

The closest alternatives to agent-sdk-go are agency, adk-go, agentfield, agno and typedai.

## Where this comes from

- Description: written from the project's README and the project's website.

## Alternatives

- [agency](https://ai-powered.com/agents/agency-2): agency is an open-source agent framework for developer tools.
- [adk-go](https://ai-powered.com/agents/adk-go): adk-go is an open-source agent framework for ai models and llm tooling.
- [agentfield](https://ai-powered.com/agents/agentfield): agentfield is an open-source agent framework for multi-agent frameworks.
- [agno](https://ai-powered.com/agents/agno): agno is an open-source agent framework for multi-agent frameworks.
- [typedai](https://ai-powered.com/agents/typedai): typedai is an open-source agent framework for multi-agent frameworks.
- [AgentDock](https://ai-powered.com/agents/agentdock): AgentDock is an open-source agent framework for ai models and llm tooling.
- [future-agi](https://ai-powered.com/agents/future-agi-2): future-agi is a freemium open-source agent for ai models and llm tooling.
- [Web](https://ai-powered.com/agents/web-mx47wf30): Web is a freemium hosted agent for developer tools.

---
Source: https://ai-powered.com/agents/agent-sdk-go
