About Goai
GoAI is an open source Go SDK for building AI applications, in the spirit of the TypeScript AI SDK but written for Go. It offers one unified API over more than 25 model providers, including OpenAI, Anthropic, Google Gemini, AWS Bedrock, Azure, Vertex, Mistral, xAI, Groq, Cohere, DeepSeek, Ollama and OpenRouter, so you can change providers without rewriting application code.
It is aimed at Go developers who want a small, dependency light library rather than a large framework. Core functions cover text generation, streaming text, typed structured output through generics, and tool calling with an automatic agent loop controlled by a maximum step count. It includes an MCP client that converts tools from any MCP server into GoAI tools, with OAuth 2.1 and PKCE support for remote servers, plus token sources that refresh credentials automatically. Recent releases added provider neutral file upload for OpenAI, Anthropic and Google Gemini. The project reports zero third party dependencies and over 100 models tested.
You install it with the standard go get command and import the provider packages you need.
GoAI is free. The site lists no paid plans and its structured data shows a price of zero. You pay only the model providers you connect through your own API keys, at their rates.