Why (and How) I Built a Go AI SDK
GoAI, a Go (Golang) LLM library: 22+ providers, 2 dependencies, type-safe generics. v0.6.1, Go 1.25+. I built it to learn Go by adding AI to infrastructure that already runs on Go. The Go AI SDK la...

Source: DEV Community
GoAI, a Go (Golang) LLM library: 22+ providers, 2 dependencies, type-safe generics. v0.6.1, Go 1.25+. I built it to learn Go by adding AI to infrastructure that already runs on Go. The Go AI SDK landscape Python has LangChain, LlamaIndex, LiteLLM. TypeScript has the Vercel AI SDK. Go has options, but none covered all the bases. What I found Library Stars Created Providers What's missing go-openai ~10.6k Aug 2020 1 Single provider only Eino (ByteDance) ~10.5k Dec 2024 10 Graph framework, different scope LangChainGo ~9k Feb 2023 ~14 170+ deps, no MCP, no generics schema Google ADK Go ~7.5k May 2025 Gemini-first Agent framework, Gemini-optimized Genkit Go (Google) ~5.7k* 2024 ~6 Google Cloud-heavy, 129 deps openai-go ~3.1k Jul 2024 1+Azure Single provider by design anthropic-sdk-go ~960 Jul 2024 1+Bedrock Single provider by design gollm ~570 Jul 2024 6 Limited tool calling, limited streaming Jetify AI ~230 May 2025 2 Early stage, 2 providers instructor-go ~200 May 2024 4 Structured output