goai
AI SDK for building AI-powered applications in Go
Install / Use
claude mcp add shaharia-lab -- npx -y github:shaharia-lab/goaiIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
AI & Machine LearningSupported Platforms
Tags
Skill content
View source on GitHub🚀 GoAI

GoAI is a powerful Go library that seamlessly integrates multiple LLM providers, vector embeddings, and vector storage capabilities. Built for developers who want a clean, unified interface for AI operations.
✨ Features
🤖 Multiple LLM Providers
- OpenAI
- Anthropic Claude
- AWS Bedrock
📊 Vector Operations
- Efficient embeddings generation
- PostgreSQL vector storage
- Similarity search
🛠 Developer Experience
- Consistent interfaces
- Streaming support
- Type-safe operations
🚀 Quick Start
📦 Installation
go get github.com/shaharia-lab/goai
Example
You can find more examples in the _examples directory which
you can run simply by go run _examples/simple_chat.go
package main
import (
"github.com/shaharia-lab/goai"
"log"
"os"
)
func main() {
// Initialize LLM
client := goai.NewAnthropicClient(os.Getenv("ANTHROPIC_API_KEY"))
provider := goai.NewAnthropicLLMProvider(goai.AnthropicProviderConfig{
Client: client,
})
// Configure request
llm := goai.NewLLMRequest(goai.NewRequestConfig(
goai.WithMaxToken(200),
goai.WithTemperature(0.7),
), provider)
// Generate response
response, err := llm.Generate([]goai.LLMMessage{
{Role: goai.UserRole, Text: "Explain quantum computing"},
})
if err != nil {
panic(err)
}
log.Println(response)
}
📚 Documentation
Visit our documentation for detailed guides on:
- Getting Started
- LLM Integration
- Embedding Generation
- Vector Operations
- MCP (Model Context Protocol) Server in Go
- API Reference
🤝 Contributing
We welcome contributions! See our Contributing Guide for details.
🔒 Security
Review our Security Policy for reporting vulnerabilities.
📝 License
MIT License - see LICENSE for details.
Built with ❤️ by Shaharia Lab and Contributors
Related Skills
caveman
107.2k🪨 why use many token when few token do trick. Viral skill + proxy for coding agents that cuts 65% of tokens by talking like a caveman.
claude-mem
94.4kPersistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Agent-Reach
84.4kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
Understand-Anything
83.6kGraphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.
