> ## Documentation Index
> Fetch the complete documentation index at: https://amd-gaia.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Claude Code plugins

> Two GAIA plugins for Claude Code: gaia hands tasks to gaiacpp, GAIA's native agent, as a subagent on a local or cloud model and adds its tools over MCP; gaia-embed teaches Claude Code how to add a local AI agent to your app

GAIA has two plugins for [Claude Code](https://claude.com/claude-code). Install
the one that matches what you are doing:

| Plugin | For | What it adds |
| - | - | - |
| `gaia` | Using GAIA while you work in Claude Code | A `gaia` subagent that runs tasks on GAIA's model, and GAIA's tools over MCP |
| `gaia-embed` | Building an app that ships a local AI agent | A skill that knows GAIA's ways in, their commands and their limits |

Both come from the same marketplace. In a Claude Code session:

```text theme={null}
/plugin marketplace add amd/gaia
/plugin install gaia@amd-gaia
/plugin install gaia-embed@amd-gaia
```

## gaia: GAIA as a subagent and a toolbox

The `gaia` plugin runs [`gaiacpp`](https://amd-gaia.ai/docs/cpp/gaia-agent), GAIA's native agent, an 11 to
19 MB binary that starts in under 50 ms. GAIA's installer puts it in `~/.gaia/bin`.

Don't have GAIA yet? Install the plugin anyway. The first time you ask for GAIA,
Claude Code says it is missing and offers to set it up, asking before each step:

1. It runs GAIA's install script (about 100 MB, no model yet).
2. You choose the model: one on this PC (`gaia init`, a download of about 6 GB), a
   Fireworks cloud model with your own API key, or a model server you already run.
3. It checks that GAIA answers, then hands your task to it.

The `gaia` agent works right away. Restart Claude Code to start the MCP server; if
it still shows as failed, reconnect it from `/mcp`.

Later, ask Claude Code to change GAIA's model: another local model (`gaia config
set default_model`, then `gaia init`), a Fireworks cloud model, or back to local.
Your API key never goes through the chat: you paste it into `gaia-cli`'s
`/provider` screen, or set `FIREWORKS_API_KEY` yourself.

| Part | What it does |
| - | - |
| `gaia` subagent | Hands a task to `gaiacpp -p`, which runs the whole GAIA agent on GAIA's model and returns its answer |
| `gaia` MCP server | `gaiacpp --mcp` in the project folder: document search, code search, web search and page reading, system information, and file and shell tools. It runs no model of its own |
| `/gaia:tools` | When GAIA's tools help, and how to install `gaiacpp` when the server did not start |

### The subagent

Claude Code sends a task to the `gaia` subagent when you ask for GAIA or a local
model to do it, or when the work suits it: reading or summarizing many files,
questions about documents, web research. You can also ask for it by name:

```text theme={null}
Use the gaia agent to summarize every PDF in docs/contracts
```

The task runs on the model GAIA is set up with, not on Claude:

| Model | How it is chosen |
| - | - |
| A local model on this PC (the default) | `gaia init` sets it up and saves it as `default_model` in `~/.gaia/config.json` |
| A cloud model | Chosen in GAIA (see [Choose an AI provider](https://amd-gaia.ai/docs/guides/ai-providers.md)), which runs with the key saved there, or in `gaiacpp`'s [settings file](https://amd-gaia.ai/docs/cpp/gaia-agent.md#settings-file), for example `{"provider": "fireworks"}` with `FIREWORKS_API_KEY` set |

With a local model, the task's files and prompts stay on your PC. Claude sees the
task the subagent writes and GAIA's answer.

By default the run reads files, searches them and searches the web, and refuses
to write files or run commands that change something. The subagent lifts that
only when you ask in the conversation for GAIA to make changes.

### The MCP server

The server's tools stay inside the project folder. A tool that changes something
(a file write, a shell command that changes something) is refused, because nobody
can answer an approval prompt over MCP. The plugin leaves GAIA's memory alone
(`--no-memory`) and starts no helper agents.

To add the same server by hand, with your own folder and flags:

```bash theme={null}
claude mcp add gaia -- gaiacpp --mcp --cwd /path/to/project
```

Add `--dangerously-skip-permissions` to let it write files and run commands that
change something. A command GAIA cannot check, such as `python` or `make`, also
needs `--full-access`, which lifts the folder limit too.

## gaia-embed: add GAIA to your app

`/gaia-embed:embed` checks that GAIA fits the app, picks one of the
[ways to embed it](https://amd-gaia.ai/docs/guides/embed.md), and gives the first commands. It says so when
GAIA is the wrong choice. Claude Code also loads it by itself when you ask it to
add a local or on-device agent to an app.

This plugin holds instructions only. It installs nothing, starts nothing and sends
nothing anywhere; Claude Code asks you before it runs any command the skill
suggests.

## Other agents

The skills and the subagent are plain Markdown files under
[`plugins/`](https://github.com/amd/gaia/tree/main/plugins), in the format several
coding agents read. Any agent can also read
[amd-gaia.ai/llms.txt](https://amd-gaia.ai/llms.txt), a short guide to GAIA
written for agents, and the same `gaiacpp --mcp` command works in any MCP client.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.