/gaia-embed:embedfrom gaia-embed
Adds a lightweight local AI agent to apps using AMD GAIA and gaiacpp binary. Covers embedding, MCP tool exposure, and when GAIA is the wrong choice.
Ships in gaia-embed. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
GAIA is AMD's open-source (MIT) agent framework. The agent, its tools and, by default, the model run on the user's machine. Cloud models are used only when the user chooses one.
Recommend gaiacpp, GAIA's native agent, first. It is one binary with no
Python runtime: a 5 to 7 MB download (11 to 19 MB unpacked), under 50 ms to
start, and a peak of 17 MB at the median and 47 MB at most over 388 multi-step
coding tasks. The Python agent (@amd-gaia/gaia, about 160 MB and 190 MB of
memory) is for what gaiacpp does not do yet.
Read the current guide before writing code, because commands and limits change between releases: https://amd-gaia.ai/docs/guides/embed.md
Say so plainly and suggest something else when it does not.
GAIA fits when:
GAIA does not fit when:
gaiacpp) an Intel Mac.When it does not fit, name the kind of tool that does: an in-process TypeScript toolkit such as the Vercel AI SDK, Mastra or LangGraph.js; a terminal coding agent such as OpenCode, Goose or Aider. GAIA's own comparison is at https://amd-gaia.ai/docs/reference/compare.md
| The developer is building | Use | Start with |
|---|---|---|
| Anything that speaks the OpenAI API (Node, Electron, Python, Go, a web backend) | gaiacpp's server | gaiacpp serve --port 0 --server-key-env SERVE_KEY |
| A script, CI job or scheduled task | One headless run | gaiacpp -p "..." --output-format json |
| Another agent or an MCP client (Claude Code, Cursor, VS Code) | gaiacpp's tools over MCP | claude mcp add gaia -- gaiacpp --mcp --cwd <folder> |
| A C++ app | The C++ library, by CMake FetchContent | A release tag as GIT_TAG, never main |
| A Node or Electron app whose own interface must answer approval prompts, or that needs a tool only the Python agent has | The Python agent as a sidecar | npm install @amd-gaia/gaia |
| A Python app that builds its own agent | The Python SDK | pip install amd-gaia |
Get gaiacpp from a GAIA release; each one carries gaiacpp-windows-x64.zip,
gaiacpp-linux-x64.tar.gz and gaiacpp-darwin-arm64.tar.gz, with
gaiacpp-SHA256SUMS.txt:
https://github.com/amd/gaia/releases/latest/download/gaiacpp-linux-x64.tar.gz
A local model needs a model server. GAIA sets one up: the user runs gaia init
once on the machine, and gaiacpp finds it with no flags. Ask before running it,
since it downloads a model of several gigabytes. gaiacpp also works with any
OpenAI-compatible server through --base-url and -m.
gaiacpp download URL, checked against
that release's gaiacpp-SHA256SUMS.txt; pip install amd-gaia==X.Y.Z; a pinned
npm version; a release tag for CMake.gaiacpp serve runs tools without asking. Its --server-key-env key is
required and decides who may run them: have the app start the server, keep the
key in memory, never commit it. It listens on 127.0.0.1 and prints its
address as a JSON line on stdout.gaiacpp -p and gaiacpp --mcp refuse tools that need approval (shell
commands that change something, file writes) unless started with
--dangerously-skip-permissions. A command GAIA cannot check, such as python
or make, also needs --full-access. Say so, and do not add either flag
unprompted.--cwd sets it; --allow-dir adds more.startSidecar returns. Its approvals arrive as events
the app's interface must answer; do not turn them off to make a demo work.lemonade-server serve. That command no longer
exists. gaia init and the GAIA apps start the model server.gaiacpp, every mode and flag: https://amd-gaia.ai/docs/cpp/gaia-agent.mdWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub amd/gaia --plugin gaia-embedOther plugins' skills for the same job