<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/the-grafana-ai-sdk-for-go-a-shared-foundation-for-building-ai-applications-yj3chy8zi" -->

---
title: The Grafana AI SDK for Go: a shared foundation for...
description: Grafana Labs has open sourced the Grafana AI SDK for Go, a shared foundation built internally to stop teams from reinventing provider clients, streaming...
canonical: https://daily.dev/posts/the-grafana-ai-sdk-for-go-a-shared-foundation-for-building-ai-applications-yj3chy8zi
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: The Grafana AI SDK for Go: a shared foundation for building AI applications | daily.dev
og:description: Grafana Labs has open sourced the Grafana AI SDK for Go, a shared foundation built internally to stop teams from reinventing provider clients, streaming...
og:url: https://daily.dev/posts/the-grafana-ai-sdk-for-go-a-shared-foundation-for-building-ai-applications-yj3chy8zi
og:image: https://api.daily.dev/og/posts/YJ3Chy8zI.png
og:image:alt: The Grafana AI SDK for Go: a shared foundation for building AI applications
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# The Grafana AI SDK for Go: a shared foundation for building AI applications

**[Grafana Labs](https://daily.dev/sources/grafana)** · 9 min read · 1 upvotes · 0 comments

## Summary

Grafana Labs has open sourced the Grafana AI SDK for Go, a shared foundation built internally to stop teams from reinventing provider clients, streaming abstractions, and error handling for every new LLM experiment. It provides common interfaces for calling models, streaming responses, executing tools, generating structured output, and running multi-step agents, and it speaks the Vercel AI SDK's UI message stream protocol so a Go backend can stream directly to React hooks like useChat, useCompletion, and useObject. It currently supports Anthropic, Amazon Bedrock, OpenAI's Responses API, and OpenAI-compatible APIs, with provider integrations split into separate Go modules. The SDK is explicitly modeled on Vercel's AI SDK, tracks a public compatibility baseline against pinned upstream versions, and ships with Agent Observability middleware, structured logging, and Prometheus metrics support. Grafana frames it as a young, evolving project and invites the Go and open source community to contribute providers, middleware, and feedback.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://grafana.com/blog/the-grafana-ai-sdk-for-go-a-shared-foundation-for-building-ai-applications>

## Questions this post answers

### What AI model providers does the Grafana AI SDK for Go currently support?

The Grafana AI SDK for Go supports Anthropic, Amazon Bedrock, OpenAI's Responses API, and OpenAI-compatible APIs. Provider integrations live in separate Go modules so an application only installs the dependencies it needs, while the surrounding generation and orchestration APIs stay the same once a model is constructed.

_Go developers weighing LLM providers can follow SDK updates like this one on daily.dev._

### How does a Go backend stream AI responses to a React frontend using useChat?

A Go handler can write server-sent events directly to the useChat hook because the Grafana AI SDK implements the UI message stream protocol used by @ai-sdk/react. Tools, reasoning, sources, files, and application data move through typed message parts, letting Go backend teams and React frontend teams share the same streaming primitives without building a protocol adapter.

_Developers connecting Go backends to AI SDK frontends can track tools like this on daily.dev._

### Is the Grafana AI SDK for Go a full feature parity port of the Vercel AI SDK?

No, it is not a line-by-line port or a claim of complete feature-for-feature parity with the Vercel AI SDK. Some upstream features do not yet exist in the Go SDK and some concepts need a different shape in Go; a public compatibility baseline and a coverage map document these known gaps and deviations, and conformance tests run against pinned upstream versions.

_Teams evaluating Go versus TypeScript AI tooling can compare options like this on daily.dev._

## Similar posts on daily.dev

- [GitHub - grafana/ai-sdk: Grafana AI SDK for Go — streaming, tool-calling AI backends that speak fluent @ai-sdk/react](https://daily.dev/posts/github---grafana-ai-sdk-grafana-ai-sdk-for-go-streaming-tool-calling-ai-backends-that-speak-flue-sqsdxuwbl) · Hacker News · 4 upvotes · 0 comments
- [Has Grafana Taken Lead in AI for Observability?](https://daily.dev/posts/has-grafana-taken-lead-in-ai-for-observability--q9hgfklco) · The New Stack · 0 upvotes · 0 comments
- [Grafana offers AI assistant for free, warns users not to go mad](https://daily.dev/posts/grafana-offers-ai-assistant-for-free-warns-users-not-to-go-mad-stwrwmzko) · DEVCLASS · 0 upvotes · 0 comments
- [Introducing Redpanda AI SDK for Go](https://daily.dev/posts/introducing-redpanda-ai-sdk-for-go-8gylam0vj) · Redpanda · 50 upvotes · 1 comments

---

Tags: [#ai-sdk](https://daily.dev/tags/ai-sdk), [#golang](https://daily.dev/tags/golang), [#grafana](https://daily.dev/tags/grafana), [#llm](https://daily.dev/tags/llm), [#observability](https://daily.dev/tags/observability)

[View this post on daily.dev](https://daily.dev/posts/the-grafana-ai-sdk-for-go-a-shared-foundation-for-building-ai-applications-yj3chy8zi)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"The Grafana AI SDK for Go: a shared foundation for building AI applications","url":"https://daily.dev/posts/the-grafana-ai-sdk-for-go-a-shared-foundation-for-building-ai-applications-yj3chy8zi","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/the-grafana-ai-sdk-for-go-a-shared-foundation-for-building-ai-applications-yj3chy8zi"},"datePublished":"2026-08-25T19:17:33.064Z","dateModified":"2026-10-15T02:22:43.941Z","description":"Grafana Labs has open sourced the Grafana AI SDK for Go, a shared foundation built internally to stop teams from reinventing provider clients, streaming...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/25aea8596ed778dd6ab8505ff8d698b5?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/25aea8596ed778dd6ab8505ff8d698b5?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Grafana Labs","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Grafana Labs","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/769cb8df467e4c428abd75e0c2491d1d","url":"https://daily.dev/sources/grafana"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/the-grafana-ai-sdk-for-go-a-shared-foundation-for-building-ai-applications-yj3chy8zi","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"ai-sdk,golang,grafana,llm,observability","timeRequired":"PT9M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Grafana Labs","item":"https://daily.dev/sources/grafana"},{"@type":"ListItem","position":3,"name":"The Grafana AI SDK for Go: a shared foundation for building AI applications"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/the-grafana-ai-sdk-for-go-a-shared-foundation-for-building-ai-applications-yj3chy8zi#faq","mainEntity":[{"@type":"Question","name":"What AI model providers does the Grafana AI SDK for Go currently support?","acceptedAnswer":{"@type":"Answer","text":"The Grafana AI SDK for Go supports Anthropic, Amazon Bedrock, OpenAI's Responses API, and OpenAI-compatible APIs. Provider integrations live in separate Go modules so an application only installs the dependencies it needs, while the surrounding generation and orchestration APIs stay the same once a model is constructed. Go developers weighing LLM providers can follow SDK updates like this one on daily.dev."}},{"@type":"Question","name":"How does a Go backend stream AI responses to a React frontend using useChat?","acceptedAnswer":{"@type":"Answer","text":"A Go handler can write server-sent events directly to the useChat hook because the Grafana AI SDK implements the UI message stream protocol used by @ai-sdk/react. Tools, reasoning, sources, files, and application data move through typed message parts, letting Go backend teams and React frontend teams share the same streaming primitives without building a protocol adapter. Developers connecting Go backends to AI SDK frontends can track tools like this on daily.dev."}},{"@type":"Question","name":"Is the Grafana AI SDK for Go a full feature parity port of the Vercel AI SDK?","acceptedAnswer":{"@type":"Answer","text":"No, it is not a line-by-line port or a claim of complete feature-for-feature parity with the Vercel AI SDK. Some upstream features do not yet exist in the Go SDK and some concepts need a different shape in Go; a public compatibility baseline and a coverage map document these known gaps and deviations, and conformance tests run against pinned upstream versions. Teams evaluating Go versus TypeScript AI tooling can compare options like this on daily.dev."}}]}
```

