# Best Go AI agents

> The open-source AI agents written in Go, from the Agent Search Engine index — ranked by real maintained adoption (GitHub stars and recent commit activity), never by sponsorship. Every project here is Go-first, self-hostable, and free to run; the trade-off is you host and maintain it yourself.

Right now it's led by ragflow (87k stars), with github-mcp-server and pentagi close behind. Rankings shift as projects gain stars and ship commits.

12 open-source records, ranked by maintained GitHub adoption; sponsorship never affects the ranking. Browse on the web: https://agentsearchengine.app/best/go-ai-agents

## Ranked

1. [ragflow](https://agentsearchengine.app/agents/ragflow) — RAGFlow is a leading open-source Retrieval-Augmented Generation (RAG) engine that fuses cutting-edge RAG with Agent capabilities to create a superior context layer for LLMs · Open source · Platform · 87k★ · Go · Apache-2.0 · active today · best for production rag over complex documents with agent capabilities, self-hosted
2. [github-mcp-server](https://agentsearchengine.app/agents/github-mcp-server) — GitHub's official MCP Server · Open source · MCP server · 32k★ · Go · MIT · active 3 days ago · best for connecting mcp clients like claude code or cursor to github repos, issues, and prs — the official server
3. [pentagi](https://agentsearchengine.app/agents/pentagi) — Fully autonomous AI Agents system capable of performing complex penetration testing tasks · Open source · Agent · 22k★ · Go · MIT · active 2 days ago · best for autonomous penetration-testing agents with supervision and multi-provider llm support
4. [WeKnora](https://agentsearchengine.app/agents/weknora) — Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki. · Open source · Platform · 19k★ · Go · active 2 days ago · best for enterprise document understanding with rag, a react agent, and auto-generated wikis
5. [xiaohongshu-mcp](https://agentsearchengine.app/agents/xiaohongshu-mcp) — MCP for xiaohongshu.com · Open source · MCP server · 15k★ · Go · active today · best for giving an ai assistant direct access to xiaohongshu content
6. [robotgo](https://agentsearchengine.app/agents/robotgo) — RobotGo, Go Native cross-platform RPA, GUI automation, Auto test and Computer use @vcaesar · Open source · SDK / library · 11k★ · Go · Apache-2.0 · active 5 days ago · best for go-native desktop automation for mouse, keyboard, screen, and global events
7. [yao](https://agentsearchengine.app/agents/yao) — Build AI agents and web apps — with a single binary. · Open source · Framework · 7.6k★ · Go · active today
8. [registry](https://agentsearchengine.app/agents/registry) — A community driven registry service for Model Context Protocol (MCP) servers. · Open source · Infrastructure · 7.1k★ · Go · active 4 days ago
9. [bifrost](https://agentsearchengine.app/agents/bifrost) — Fastest enterprise AI gateway (50x faster than LiteLLM) with adaptive load balancer, cluster mode, guardrails, 1000+ models support & <100 µs overhead at 5k RPS. · Open source · Infrastructure · 7.0k★ · Go · Apache-2.0 · active today
10. [toolhive](https://agentsearchengine.app/agents/toolhive) — ToolHive is an enterprise-grade platform for running and managing Model Context Protocol (MCP) servers. · Open source · Infrastructure · 2.0k★ · Go · Apache-2.0 · active 1 day ago
11. [rulego](https://agentsearchengine.app/agents/rulego) — RuleGo is a lightweight, high-performance, embedded, next-generation component orchestration rule engine framework for Go. · Open source · Framework · 1.6k★ · Go · Apache-2.0 · active today
12. [flowcraft](https://agentsearchengine.app/agents/flowcraft) — Production-grade Go SDK for building AI agents with long-term memory, knowledge retrieval, and voice — runnable as a library, a daemon, or a real-time pipeline. · Open source · SDK / library · 484★ · Go · MIT · active today

## FAQ

**What are the best Go AI agents?**
The Go projects listed below, ranked by maintained adoption — GitHub stars plus recent commit activity — so you see what's genuinely used and still maintained, not abandoned.

**Are these Go AI agents open source and free?**
Yes — every project on this page is open source and written primarily in Go. The software is free to run and self-host; you still pay for the infrastructure you run it on and any model or API usage it makes.

**Why choose Go AI agents specifically?**
Staying in your team's primary language — Go — makes self-hosting, extending, and debugging far easier, because you can read and modify the source directly instead of treating it as a black box.

---
Source: [Agent Search Engine](https://agentsearchengine.app) — https://agentsearchengine.app/best/go-ai-agents
