Skip to content

aixgo-dev/aixgo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

103 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aixgo

Go Version License Go Report Card

Production-grade AI agent framework for Go. Build secure, scalable multi-agent systems without Python dependencies.

Documentation | Quick Start | Features | Examples | Contributing

Key Features

  • 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.

Quick Start

Installation

Choose the installation method based on your use case:

As a Library

For adding Aixgo to your Go project:

go get github.com/aixgo-dev/aixgo

This downloads only the Go framework source code (~2MB), not the website or documentation.

CLI Binary

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@latest

Option 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).

Full Repository (Contributors)

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.

What You Get

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

Setup

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-* or xai-* models use XAI_API_KEY
  • gpt-* models use OPENAI_API_KEY
  • claude-* models use ANTHROPIC_API_KEY
  • HuggingFace models (e.g., meta-llama/*) use HUGGINGFACE_API_KEY

Your First Agent

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: analyzer

2. 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.go

That's it! You now have a running multi-agent system with producer, analyzer, and logger agents orchestrated by a supervisor.

Architecture

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.

Documentation

Comprehensive guides and examples available at aixgo.dev

Resources

  • Website - Comprehensive guides and documentation
  • docs/ - Technical reference documentation
  • examples/ - Production-ready code examples
  • web/ - Website source code

Core Documentation

Examples

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

Development

# 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.

Contributing

We welcome contributions! See docs/CONTRIBUTING.md for guidelines.

Community

License

MIT License - see LICENSE for details.


Production-grade AI agents in pure Go.

About

AI-native agent framework for Go.

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors