Skip to main content
GAIA is an agent harness you can run inside your own product, not only an app you open. The agent, its tools and the model all run on the user’s machine, so the data your app hands it stays there unless you choose a cloud model. Start with 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

  • 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_mb field of gaiacpp -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 --mcp from launch to answering tools/list, and the Python agent from launch to rejecting an unknown flag. Neither loads a model to start.
  • One task, end to end: gaiacpp -p and the Python agent’s gaia -p asked 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 where gaiacpp made 6, for memory and statistics. A real model adds the same time to both.
  • Idle over MCP: gaiacpp --mcp holds about 10 MB on Windows while it waits.
  • No figure includes the model, which the model server holds.
What 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 prebuilt gaiacpp for each platform, with gaiacpp-SHA256SUMS.txt beside it.
In a product, pin a release instead of 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 at gaiacpp and the agent answers, tools and all.
Once it is listening it prints one JSON line on stdout, so the program that started it learns the address:
What to know
  • --server-key-env is 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 answers GET /health without 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:
The answer goes to stdout and the exit code is 0 or 1. The JSON record also carries the steps taken, the tokens used and 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.
Any MCP client takes the same command:
What to know
  • The tools stay inside the --cwd folder 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 as python or make, also needs --full-access.
  • GAIA is also an MCP client: gaiacpp --mcp-config mcp.json gives 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 framework gaiacpp is built on, for an agent of your own inside a C++ app. Its dependencies are fetched for you.
What to know
  • Needs CMake 3.14 or newer and a C++17 compiler.
  • Pin GIT_TAG to a release tag. main changes many times a day.
  • See Integration for submodule, find_package and 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 over gaiacpp serve when your own interface has to answer approval prompts, or when you need a tool only the Python agent has.
From Node, the same package downloads the agent, checks its SHA-256 against a manifest shipped in the package, starts it and hands you its address and token:
The answer is a stream of Server-Sent Events that ends with exactly one 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 /version reports 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.
The package’s README and SPEC hold the full endpoint and event reference. The Python agent also has an OpenAI-compatible server, 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

Subclass Agent 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.
What to know
  • 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: gaiacpp adds 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.
Look elsewhere when
  • 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.