gaiacpp, GAIA’s native agent. It is one binary with no Python
runtime, so it adds little to your app’s download and almost nothing to the
user’s memory. The Python agent and the SDKs are there for what gaiacpp does not
do yet.
Pick a route
Working in Claude Code? The
gaia-embed plugin gives it this
page’s decisions and commands, so you can ask it to do the integration.
Why gaiacpp
How these were measured
How these were measured
- Download: the GAIA v0.27.1 release files. The Python agent’s sizes are the binaries the npm package downloads.
- gaiacpp memory: the
peak_rss_mbfield ofgaiacpp -p --output-format json, over 388 coding tasks on Linux, a median of 36 steps each and up to 297. The 90th percentile was 28 MB. In CI, 200 scripted runs that include oversized replies on purpose peak at a median of 11 MB on Windows, 9 MB on macOS and 15 MB on Linux, and a run over 128 MB, or a median over 30 MB, fails the build. See C++ testing. - Python agent memory: Windows, a scripted model server, 40 turns.
- Start-up: one Windows PC, warm cache:
gaiacpp --mcpfrom launch to answeringtools/list, and the Python agent from launch to rejecting an unknown flag. Neither loads a model to start. - One task, end to end:
gaiacpp -pand the Python agent’sgaia -pasked to read a file and answer, against a scripted model server that replies at once, so the time and memory are the agent’s own. The median of five runs each on a Ryzen AI Max+ 395 PC running Windows, with the Python agent from source on Python 3.12. Both returned the right answer; the Python agent also made 26 requests to the model server wheregaiacppmade 6, for memory and statistics. A real model adds the same time to both. - Idle over MCP:
gaiacpp --mcpholds about 10 MB on Windows while it waits. - No figure includes the model, which the model server holds.
gaiacpp does not have yet: document-to-speech, the Claude provider, and
saved sessions. It has builds for Windows x64, Linux x64 and macOS on Apple Silicon;
there is no arm64 Linux, arm64 Windows or Intel Mac build. See
the two harnesses.
Get gaiacpp
Every GAIA release carries a prebuiltgaiacpp for each platform, with gaiacpp-SHA256SUMS.txt beside it.
latest
(releases/download/v0.27.1/...) and check the file against
gaiacpp-SHA256SUMS.txt from that release.
Every route needs a model server. After gaia init (see Install),
gaiacpp finds GAIA’s Lemonade server and model
with no flags. Without GAIA, point it at any OpenAI-compatible server with
--base-url and -m. See Choosing the model endpoint.
The OpenAI-compatible server
Point any OpenAI client atgaiacpp and the agent answers, tools and all.
--server-key-envis required, and clients send that key as a bearer token. In this mode tools run without asking, so whoever holds the key decides what runs. Start the server from your app, keep the key in memory, and never ship it in source.- It binds
127.0.0.1, refuses browser requests unless you allow their origin with--allow-origin, and answersGET /healthwithout a key for readiness checks. - Each request carries its whole conversation; the server keeps nothing between requests and runs one at a time (a second gets 409).
- With
stream: true, steps and tool calls arrive as they happen. See Server mode for every route.
One headless run
For a script, one command in and one answer out:peak_rss_mb, the run’s peak
memory. Tools that change something (shell commands that change something, file
writes) are refused unless you pass --dangerously-skip-permissions, and each
refusal is reported on stderr. A command GAIA cannot check, such as python or
make, also needs --full-access, which lifts the folder limit too. See
Headless runs.
MCP
gaiacpp --mcp gives another program’s agent GAIA’s tools (files, shell, git,
documents, code search, web search and fetch, memory) over MCP. It contacts no
model, so the calling agent’s model does the thinking.
- The tools stay inside the
--cwdfolder and any folder added with--allow-dir. - Nobody can answer an approval prompt over MCP, so a tool that changes something
is refused unless the server was started with
--dangerously-skip-permissions. A command GAIA cannot check, such aspythonormake, also needs--full-access. - GAIA is also an MCP client:
gaiacpp --mcp-config mcp.jsongives the agent other MCP servers’ tools. See MCP servers. - The Python agent has its own HTTP bridge,
gaia mcp start, which exposes whole agents rather than tools. See MCP.
The C++ library
The C++17 frameworkgaiacpp is built on, for an agent of your own inside a C++
app. Its dependencies are fetched for you.
- Needs CMake 3.14 or newer and a C++17 compiler.
- Pin
GIT_TAGto a release tag.mainchanges many times a day. - See Integration for submodule,
find_packageand shared library builds.
The Python agent as a sidecar
The Python agent, every tool included, as a program your app starts and talks to over HTTP. This is the route the GAIA desktop app uses. Choose it overgaiacpp serve when your own interface has to answer approval prompts, or when
you need a tool only the Python agent has.
final or
error event. Tool calls that need the user’s approval arrive as events your app
answers, so your UI decides how to ask.
What to know
- The agent it downloads is 156 to 169 MB, and uses about 190 MB of memory once running.
- It binds to
127.0.0.1, and every/v1/gaia/*request needs a bearer token minted fresh at each start. - The contract is versioned.
GET /versionreports it; a change in the major number is a breaking change, and a higher minor only adds things. See Releases and stability. - Needs Node.js 18 or newer.
- The agent has builds for Windows x64, macOS (Apple Silicon and Intel) and Linux x64 (glibc 2.34 or newer; GAIA’s model server needs 2.38, so a local model means Ubuntu 24.04 or newer). There is no arm64 Linux or arm64 Windows build.
gaia api start, which
refuses tools that need approval instead of running them. It needs a source
install of GAIA; see API Server. For headless
runs it has gaia -p; see the CLI reference.
The Python SDK
SubclassAgent in your own process. You write a system prompt and the tools;
the base class runs the loop, calls the model, parses tool calls and recovers
from errors.
- Needs Python 3.10 or newer.
- Ready-made tool sets (documents, files, shell, web, SQL) are mixins you add by name. See Agent System and the SDK reference.
When GAIA fits, and when it does not
GAIA fits when- The agent has to run on the user’s own machine, and their files and prompts should stay there.
- You want a whole harness, not a model client: the tool loop, folder limits and approval for risky actions, document search, memory and skills already built and tested.
- The agent must stay small:
gaiacppadds a few megabytes to your download and tens of megabytes of memory. - Your users are on Windows, macOS (Apple Silicon) or Linux PCs, and all the more so on AMD Ryzen AI hardware, where the models run on the integrated GPU, or on the NPU when the user chooses it.
- You need a permissive licence. GAIA is MIT.
- You need a hosted, multi-tenant agent service. GAIA runs one user’s agent on one machine; it is not a cloud backend.
- Your target is a phone, a browser tab, arm64 Linux or arm64 Windows.
- The machine has less than 8 GB of RAM and you want a local model. A cloud model you opt into works there; a local one does not.
- You need a 1.0 API guarantee today. GAIA is on 0.x: stable releases are tested and gated, but a minor release can still change an API. Pin a version and read Releases and stability for exactly what is promised.