Skip to content
AgentAgent framework

agent-sdk-go

Go SDK for building AI agents that survive crashes and restarts

agent-sdk-go is an open-source agent framework for developer tools. It is available on API, CLI, Linux, macOS, Windows and Self-hosted.

Pricing
Open source
Platforms
API, CLI, Linux
GitHub stars
70
Last commit
Language
Go
License
Apache-2.0

Similar agents

About agent-sdk-go

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.

What it does

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

Pricing

Open source

Free and open source under Apache 2.0

Prices change. Check docs.agenticenv.ai before you buy.

agent-sdk-go 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.