Production-grade AI agent framework for Go. Build secure, scalable multi-agent systems without Python dependencies.
Documentation | Quick Start | Features | Examples | Contributing
- 6 Agent Types - ReAct, Classifier, Aggregator, Planner, Producer, Logger
- 13 Orchestration Patterns - All production-proven patterns implemented
- 6+ LLM Providers - OpenAI, Anthropic, Gemini, xAI, Vertex AI, HuggingFace, plus local inference
- Session Persistence - Built-in conversation memory with JSONL and Redis storage
- Enterprise Security - 4 auth modes, RBAC, rate limiting, SSRF protection, hardening
- Full Observability - OpenTelemetry, Prometheus, Langfuse, cost tracking
See docs/FEATURES.md for the complete feature catalog with code references.
Choose the installation method based on your use case:
For adding Aixgo to your Go project:
go get github.com/aixgo-dev/aixgoThis downloads only the Go framework source code (~2MB), not the website or documentation.
The aixgo CLI provides multiple capabilities:
- Agent orchestration - Run multi-agent systems from YAML configs
- Interactive coding assistant - Multi-model chat with file/git operations
- Session management - Save and resume conversations
- Model information - View available models and pricing
Option 1: Install via go install (requires Go 1.26+):
go install github.com/aixgo-dev/aixgo/cmd/aixgo@latestOption 2: Download pre-built binaries:
Download platform-specific binaries from GitHub Releases:
# Linux/macOS
curl -L https://github.com/aixgo-dev/aixgo/releases/latest/download/aixgo_Linux_x86_64.tar.gz | tar xz
sudo mv aixgo /usr/local/bin/Available for Linux, macOS, and Windows (amd64, arm64).
For contributing or exploring examples:
git clone https://github.com/aixgo-dev/aixgo.git
cd aixgo
go build ./...This includes the full repository with website source (web/), examples, and documentation.
| User Type | Command | What's Included | Size |
|---|---|---|---|
| Library user | go get github.com/aixgo-dev/aixgo |
Go source code only | ~2MB |
| CLI user | go install or binary download |
Single executable binary | <20MB |
| Contributor | git clone |
Full repo including web/, examples/, docs/ | ~20MB |
Before running your agents, you need to configure API keys for LLM providers. Create a .env file in your
project root (or set environment variables):
# Copy the example environment file
cp .env.example .env
# Edit .env and add your API keys
# Required: At least one of these API keys
export OPENAI_API_KEY=sk-... # For GPT models
export XAI_API_KEY=xai-... # For Grok models
export ANTHROPIC_API_KEY=sk-ant-... # For Claude models (optional)
export HUGGINGFACE_API_KEY=hf_... # For HuggingFace models (optional)The framework will automatically detect the appropriate API key based on your model name:
grok-*orxai-*models useXAI_API_KEYgpt-*models useOPENAI_API_KEYclaude-*models useANTHROPIC_API_KEY- HuggingFace models (e.g.,
meta-llama/*) useHUGGINGFACE_API_KEY
Create a simple multi-agent system in under 5 minutes:
1. Create a configuration file (config/agents.yaml):
supervisor:
name: coordinator
model: gpt-4-turbo
max_rounds: 10
agents:
- name: data-producer
role: producer
interval: 1s
outputs:
- target: analyzer
- name: analyzer
role: react
model: gpt-4-turbo
prompt: |
You are a data analyst. Analyze incoming data and provide insights.
inputs:
- source: data-producer
outputs:
- target: logger
- name: logger
role: logger
inputs:
- source: analyzer2. Create your main.go:
package main
import (
"github.com/aixgo-dev/aixgo"
_ "github.com/aixgo-dev/aixgo/agents"
)
func main() {
if err := aixgo.Run("config/agents.yaml"); err != nil {
panic(err)
}
}3. Run your agent system:
go run main.goThat's it! You now have a running multi-agent system with producer, analyzer, and logger agents orchestrated by a supervisor.
Aixgo provides a flexible, layered architecture:
- Agent Layer - 6 specialized agent types
- Orchestration Layer - 13 production-proven patterns
- Runtime Layer - Local (Go channels) or Distributed (gRPC)
- Integration Layer - 6+ LLM providers, MCP tool calling, vector stores
- Observability Layer - OpenTelemetry, Prometheus, cost tracking
🔗 Deep Dive: For detailed architecture and pattern documentation, see docs/PATTERNS.md.
Comprehensive guides and examples available at aixgo.dev
- Website - Comprehensive guides and documentation
- docs/ - Technical reference documentation
- examples/ - Production-ready code examples
- web/ - Website source code
- FEATURES.md - Complete feature catalog with code references
- PATTERNS.md - 13 orchestration patterns with examples
- SECURITY_BEST_PRACTICES.md - Security best practices
- DEPLOYMENT.md - Cloud Run, Kubernetes, Docker
- OBSERVABILITY.md - OpenTelemetry and cost tracking
- API Reference - GoDoc documentation
Browse 15+ production-ready examples in examples/:
- Agent types: ReAct, Classifier, Aggregator, Planner
- LLM providers: OpenAI, Anthropic, Gemini, xAI, HuggingFace
- Orchestration: MapReduce, parallel, sequential, reflection
- Security: Authentication, authorization, TLS
- Complete use cases: End-to-end applications
# Build
git clone https://github.com/aixgo-dev/aixgo.git
cd aixgo
go build ./...
# Test
go test ./...
go test -race ./...
# Coverage
go test -cover ./...See docs/CONTRIBUTING.md for contribution guidelines.
We welcome contributions! See docs/CONTRIBUTING.md for guidelines.
- GitHub Discussions - Ask questions, share ideas
- Issues - Report bugs, request features
- Roadmap - Track feature development
MIT License - see LICENSE for details.
Production-grade AI agents in pure Go.