- Native performance — compiled binary, no interpreter overhead
- Easy integration — add to any CMake project via FetchContent, git submodule, or find_package (Integration Guide)
- Any LLM backend — works with Lemonade, llama.cpp, Ollama, vLLM, OpenAI, or any OpenAI-compatible server (details)
- Full MCP support — connects to any MCP server via stdio transport
- Full agent loop — planning, tool execution, error recovery, multi-step plans
Source Code:
cpp/ in the GAIA repository. The C++ framework focuses on the core agent loop and tool execution. Specialized agents (Code, Docker, Jira, Blender), the REST API server, RAG, and audio are available in the Python SDK.First time here? Complete the C++ Setup guide first to install CMake, a C++17 compiler, and Lemonade Server.
Build
Configure and build
- Windows (MSVC)
- Windows (Ninja)
- Linux
build\Release\.Start an LLM server
The agent connects to any OpenAI-compatible LLM server at
http://localhost:8000/api/v1 by default. The recommended backend is Lemonade Server (optimized for AMD hardware):Not using Lemonade? Any OpenAI-compatible server works — llama.cpp, Ollama, vLLM, or a cloud endpoint. Just set
AgentConfig::baseUrl and AgentConfig::modelId. See the Integration Guide for configuration examples.Run a demo agent
Both demo agents are Windows-only (they use PowerShell for system interaction).Windows System Health Agent (requires The agent connects to the Windows MCP server, gathers CPU/memory/disk/GPU metrics via PowerShell, and presents results in the console or writes a full report to Notepad.Wi-Fi Troubleshooter (no extra dependencies, run as admin for fix tools):Select GPU or NPU backend, then try “Full network diagnostic” or ask a specific question. The agent reasons about each result and adapts its approach in real-time.Type
uvx for the MCP server):quit to exit.Running Tests
Verify your build with the unit test suite (no LLM server required):- Windows
- Linux
Next Steps
System Health Agent
MCP-based system diagnostics — CPU, memory, disk, GPU via PowerShell
Wi-Fi Troubleshooter
Full network diagnostic and auto-fix using registered C++ tools
Framework Overview
Architecture, agent execution flow, how tools work, and project structure
Integration Guide
Add gaia_core to your own CMake project via FetchContent, find_package, or shared library
Testing Guide
Unit tests, integration tests, CI pipeline, and adding new tests
API Reference
Error handling, thread safety, security, deployment, and complete class API
Custom Agent
Custom prompts, typed tools, MCP servers, output capture, and AgentConfig tuning