Metadata-Version: 2.4
Name: amd-gaia
Version: 0.27.2rc10
Summary: AMD GAIA: open-source agent framework and SDK for building, running and embedding local AI agents.
Home-page: https://github.com/amd/gaia
Author: AMD
License: MIT
Project-URL: Homepage, https://amd-gaia.ai
Project-URL: Documentation, https://amd-gaia.ai/docs
Project-URL: Release notes, https://amd-gaia.ai/docs/releases
Project-URL: Issues, https://github.com/amd/gaia/issues
Keywords: ai-agents,local-ai,agent-framework,agent-harness,agent-sdk,local-llm,mcp,rag,amd,ryzen-ai
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE.md
License-File: THIRD_PARTY_NOTICES.md
License-File: licenses/GCC-exception-3.1.txt
License-File: licenses/LGPL-2.1.txt
Requires-Dist: openai>=1.58.0
Requires-Dist: pydantic>=2.9.2
Requires-Dist: pyyaml>=6.0.1
Requires-Dist: numpy>=1.24.0
Requires-Dist: psutil>=5.9.0
Requires-Dist: python-dateutil>=2.8.2
Requires-Dist: python-dotenv
Requires-Dist: aiohttp
Requires-Dist: rich
Requires-Dist: requests>=2.32.3
Requires-Dist: charset-normalizer>=3.0
Requires-Dist: httpx<1.0,>=0.27.0
Requires-Dist: idna>=3.0
Requires-Dist: truststore>=0.10.3
Requires-Dist: beautifulsoup4
Requires-Dist: watchdog<7,>=2.1.0
Requires-Dist: pillow>=9.0.0
Requires-Dist: apscheduler<4.0,>=3.10.0
Requires-Dist: tzlocal>=4.0
Requires-Dist: tomli-w>=1.0.0
Requires-Dist: tomli>=2.0.0; python_version < "3.11"
Requires-Dist: keyring<26.0.0,>=24.0.0
Requires-Dist: discord.py<3,>=2.7
Requires-Dist: tavily-python>=0.5.0
Requires-Dist: anthropic<3.0.0,>=0.49.0
Requires-Dist: cryptography>=42.0.0; sys_platform != "darwin" or platform_machine != "x86_64"
Requires-Dist: cryptography<49,>=42.0.0; sys_platform == "darwin" and platform_machine == "x86_64"
Requires-Dist: pywin32; sys_platform == "win32"
Provides-Extra: browser
Requires-Dist: playwright>=1.45.0; extra == "browser"
Provides-Extra: image
Requires-Dist: term-image<0.8,>=0.7.0; extra == "image"
Provides-Extra: api
Requires-Dist: fastapi>=0.115.0; extra == "api"
Requires-Dist: uvicorn>=0.32.0; extra == "api"
Requires-Dist: python-multipart>=0.0.9; extra == "api"
Requires-Dist: httpx<1.0,>=0.27.0; extra == "api"
Requires-Dist: psutil>=5.9.0; extra == "api"
Provides-Extra: ui
Requires-Dist: fastapi>=0.115.0; extra == "ui"
Requires-Dist: uvicorn>=0.32.0; extra == "ui"
Requires-Dist: python-multipart>=0.0.9; extra == "ui"
Requires-Dist: httpx<1.0,>=0.27.0; extra == "ui"
Requires-Dist: psutil>=5.9.0; extra == "ui"
Requires-Dist: keyring<26.0.0,>=24.0.0; extra == "ui"
Requires-Dist: faiss-cpu>=1.7.0; extra == "ui"
Requires-Dist: numpy>=1.24.0; extra == "ui"
Requires-Dist: pypdfium2<6,>=5.0.0; extra == "ui"
Requires-Dist: pypdf>=6.21.0; extra == "ui"
Requires-Dist: python-pptx>=0.6.21; extra == "ui"
Requires-Dist: python-docx>=1.1.0; extra == "ui"
Requires-Dist: openpyxl>=3.1.0; extra == "ui"
Requires-Dist: reportlab>=4.0.0; extra == "ui"
Provides-Extra: diarize
Requires-Dist: sherpa-onnx<3,>=1.13; extra == "diarize"
Provides-Extra: media-url
Requires-Dist: yt-dlp>=2025.1.1; extra == "media-url"
Provides-Extra: mcp
Requires-Dist: mcp<3.0,>=2.0.0; extra == "mcp"
Requires-Dist: starlette; extra == "mcp"
Requires-Dist: uvicorn; extra == "mcp"
Provides-Extra: telegram
Requires-Dist: psutil>=5.9.0; extra == "telegram"
Provides-Extra: slack
Requires-Dist: slack-sdk>=3.27; extra == "slack"
Requires-Dist: psutil>=5.9.0; extra == "slack"
Provides-Extra: dev
Requires-Dist: pytest; extra == "dev"
Requires-Dist: pytest-cov; extra == "dev"
Requires-Dist: pytest-mock; extra == "dev"
Requires-Dist: pytest-asyncio; extra == "dev"
Requires-Dist: pytest-xdist; extra == "dev"
Requires-Dist: pyfakefs; extra == "dev"
Requires-Dist: matplotlib; extra == "dev"
Requires-Dist: black; extra == "dev"
Requires-Dist: pylint; extra == "dev"
Requires-Dist: isort; extra == "dev"
Requires-Dist: flake8; extra == "dev"
Requires-Dist: mypy; extra == "dev"
Requires-Dist: bandit; extra == "dev"
Requires-Dist: cvss<4.0,>=3.6; extra == "dev"
Requires-Dist: responses; extra == "dev"
Requires-Dist: requests; extra == "dev"
Requires-Dist: httpx<0.30.0,>=0.27.0; extra == "dev"
Requires-Dist: respx<0.24.0,>=0.21.0; extra == "dev"
Requires-Dist: keyring<26.0.0,>=24.0.0; extra == "dev"
Requires-Dist: tiktoken<1.0.0,>=0.7.0; extra == "dev"
Provides-Extra: eval
Requires-Dist: numpy<2.3.0,>=2.0; extra == "eval"
Requires-Dist: pypdf>=6.21.0; extra == "eval"
Requires-Dist: reportlab; extra == "eval"
Requires-Dist: tiktoken<1.0.0,>=0.7.0; extra == "eval"
Requires-Dist: pyarrow; extra == "eval"
Provides-Extra: talk
Requires-Dist: sounddevice; extra == "talk"
Requires-Dist: websockets; extra == "talk"
Provides-Extra: notify
Requires-Dist: plyer<3,>=2.1.0; extra == "notify"
Provides-Extra: youtube
Requires-Dist: llama-index-readers-youtube-transcript; extra == "youtube"
Provides-Extra: rag
Requires-Dist: faiss-cpu>=1.7.0; extra == "rag"
Requires-Dist: numpy>=1.24.0; extra == "rag"
Requires-Dist: pypdfium2<6,>=5.0.0; extra == "rag"
Requires-Dist: pypdf>=6.21.0; extra == "rag"
Requires-Dist: python-pptx>=0.6.21; extra == "rag"
Requires-Dist: python-docx>=1.1.0; extra == "rag"
Requires-Dist: openpyxl>=3.1.0; extra == "rag"
Requires-Dist: reportlab>=4.0.0; extra == "rag"
Provides-Extra: lint
Requires-Dist: black; extra == "lint"
Requires-Dist: pylint; extra == "lint"
Requires-Dist: isort; extra == "lint"
Requires-Dist: flake8; extra == "lint"
Requires-Dist: mypy; extra == "lint"
Requires-Dist: bandit; extra == "lint"
Provides-Extra: publish
Requires-Dist: build>=1.0.0; extra == "publish"
Requires-Dist: setuptools>=61.0; extra == "publish"
Requires-Dist: twine>=5.0.0; extra == "publish"
Dynamic: author
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: license-file
Dynamic: project-url
Dynamic: provides-extra
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# <img src="https://raw.githubusercontent.com/amd/gaia/main/src/gaia/img/gaia.ico" alt="GAIA Logo" width="64" height="64" style="vertical-align: middle;"> AMD GAIA: open-source agent framework and SDK for local AI agents

[![GAIA CLI Tests](https://github.com/amd/gaia/actions/workflows/test_gaia_cli_linux.yml/badge.svg)](https://github.com/amd/gaia/tree/main/tests "Check out our cli tests")
[![Latest Release](https://img.shields.io/github/v/release/amd/gaia)](https://github.com/amd/gaia/releases/latest "Download the latest release")
[![PyPI](https://img.shields.io/pypi/v/amd-gaia)](https://pypi.org/project/amd-gaia/)
[![GitHub downloads](https://img.shields.io/github/downloads/amd/gaia/total.svg)](https://github.com/amd/gaia/releases)
[![OS - Windows](https://img.shields.io/badge/OS-Windows-blue)](https://amd-gaia.ai/docs/quickstart "Windows installation")
[![OS - Linux](https://img.shields.io/badge/OS-Linux-green)](https://amd-gaia.ai/docs/quickstart "Linux installation")
[![OS - macOS](https://img.shields.io/badge/OS-macOS-lightgrey)](https://amd-gaia.ai/docs/guides/install "macOS installation")
[![Python 3.10+](https://img.shields.io/badge/Python-3.10+-blue?logo=python&logoColor=white)](https://www.python.org/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Discord](https://img.shields.io/badge/Discord-Join%20Community-7289DA?logo=discord&logoColor=white)](https://discord.com/invite/5xXzkMu8Zk)

**GAIA** is AMD's open-source (MIT) agent framework and harness, with Python and C++ SDKs, for building, running and embedding local AI agents. Its native agent, **gaiacpp**, is one 11 to 19 MB binary that typically uses under 30 MB of memory. It runs models **on your own PC by default**, on Windows, macOS (Apple Silicon) and Linux, is tuned for AMD Ryzen AI PCs, and can use cloud models when you opt in.

GAIA is also an agent factory: it uses coding-agent skills, evals and an auto-fix loop to build and improve agent harnesses. Local inference keeps your data private, avoids cloud usage fees, and supports air-gapped deployment with hardware-accelerated performance.

Anyone can build an agent harness with GAIA. The **GAIA agent** is the one we built to show what it can do: conversation, documents, data, web, memory and skills in one agent.

| I want to... | Start here |
|--------------|-----------|
| **Use GAIA**: run the flagship agent in the desktop app or terminal | [Install GAIA](https://amd-gaia.ai/docs/guides/install), then the [GAIA agent guide](https://amd-gaia.ai/docs/guides/gaia) |
| **Build with GAIA**: make an agent harness with skills, evals and the SDK | [Composing skills](https://amd-gaia.ai/docs/guides/composing-skills), [Agent evals](https://amd-gaia.ai/docs/guides/eval), [SDK reference](https://amd-gaia.ai/docs/sdk) |
| **Embed GAIA**: put gaiacpp, the native agent, inside your own app, behind any OpenAI client, MCP or a script | [Embed GAIA in your app](docs/guides/embed.mdx) |
| **Give your agent GAIA's tools**: files, shell, documents, code search and web search over MCP | `gaiacpp --mcp`, see [MCP](docs/integrations/mcp.mdx) |
| **Use GAIA from Claude Code**: a plugin that runs gaiacpp as a subagent on your local model, and one that knows how to add GAIA to an app | [Claude Code plugins](docs/integrations/claude-code.mdx) |

The terminal UI also supports optional **Fireworks AI** and **AMD LLM Gateway** chat through Lemonade. Use `/provider` to connect and choose a model; cloud chat sends conversation history to the selected provider. See [AI provider setup](docs/guides/ai-providers.mdx). To make GAIA refuse every cloud AI model, run `gaia config set network_policy local_ai_only`.

A stable release ships only after a release gate (lint, the full unit suite, installer builds and install tests) and a maintainer's approval; release candidates are opt-in test builds. See [Releases and stability](docs/reference/stability.mdx).

<p align="center">
  <a href="https://amd-gaia.ai/docs/quickstart"><strong>Get Started →</strong></a>
</p>

---

## Download

[![Download for Windows](https://img.shields.io/badge/Download-Windows-0078d4?style=for-the-badge&logo=windows)](https://amd-gaia.ai/#install)
[![Download for macOS](https://img.shields.io/badge/Download-macOS-000000?style=for-the-badge&logo=apple)](https://amd-gaia.ai/#install)
[![Download for Linux](https://img.shields.io/badge/Download-Linux-FCC624?style=for-the-badge&logo=linux&logoColor=black)](https://amd-gaia.ai/#install)

One download for users: on Windows, one installer offers the desktop app, the terminal, or both. See [Install GAIA](https://amd-gaia.ai/docs/guides/install) for every platform, and its [For developers](https://amd-gaia.ai/docs/guides/install#for-developers) section for script, `pip`/`uv` and source installs.

> **Email:** the GAIA agent reads and searches your Gmail or Outlook inbox once you connect the Google or Microsoft connector — see [Email](https://amd-gaia.ai/docs/guides/email). There is no separate email agent to install.

---

## Why GAIA?

| Feature | Description |
|---------|-------------|
| **Local Inference** | Run models on your machine for sensitive workloads and air-gapped deployments |
| **No Cloud Inference Fees** | Local models require no API subscription; optional cloud providers have their own pricing |
| **Privacy-First** | HIPAA-compliant, GDPR-friendly—ideal for healthcare, finance, and enterprise |
| **Ryzen AI Optimized** | Hardware-accelerated inference using NPU + iGPU on AMD Ryzen AI processors |

---

## Build with GAIA

The SDK is the base layer under the GAIA agent. A minimal harness is a class with a prompt and tools:

```python
from gaia.agents.base.agent import Agent
from gaia.agents.base.tools import tool

class MyAgent(Agent):
    """A simple agent with custom tools."""

    def _get_system_prompt(self) -> str:
        return "You are a helpful assistant."

    def _register_tools(self):
        @tool
        def get_weather(city: str) -> dict:
            """Get weather for a city."""
            return {"city": city, "temperature": 72, "conditions": "Sunny"}

agent = MyAgent()
result = agent.process_query("What's the weather in Austin?")
print(result)
```

**[See the full quickstart guide →](https://amd-gaia.ai/docs/quickstart)**

---

## Key Capabilities

- **Agent Factory** — Skills, an eval benchmark, and `gaia eval agent --fix`, which patches failing scenarios and re-runs them ([guide](https://amd-gaia.ai/docs/guides/eval))
- **Agent SDK** — Base class with tool orchestration, state management, and error recovery
- **Agent UI** — Privacy-first desktop app with chat, file browser, document indexing, and tool execution
- **RAG System** — Document indexing and semantic search for Q&A over 50+ file formats
- **Voice Integration** — Whisper ASR + Kokoro TTS for speech interaction (P0 enabling technology)
- **Vision Models** — Extract text from images with Qwen3-VL-4B
- **MCP Integration** — Connect to any MCP server for external tool access
- **Skills** — Extend the GAIA agent with a `SKILL.md`, no code required ([guide](https://amd-gaia.ai/docs/guides/starter-skills))

---

## gaiacpp: the GAIA agent in 11 to 19 MB

`gaiacpp` is the GAIA agent as one native program, with no Python runtime. It reads and writes files, runs shell commands, edits code, searches documents and the web, and remembers, while the model runs separately on the model server.

| | `gaiacpp` | The Python agent |
|---|---|---|
| Download | 11 MB (Windows), 14 MB (macOS), 19 MB (Linux); 5 to 7 MB compressed | 156 to 169 MB |
| Peak memory over 388 coding tasks | 17 MB at the median, 47 MB at most | About 190 MB after one turn |
| Start-up | Under 50 ms to start and list its 40 tools | About 5 seconds |
| One task, end to end, model time left out | 0.08 s and 11 MB | 5.9 s and 218 MB |

Memory is the agent's own `peak_rss_mb`, measured on Linux over tasks of up to 297 steps; CI fails a build where a scripted run passes 128 MB or the median passes 30 MB. Start-up was timed on Windows. See [How these were measured](docs/guides/embed.mdx#why-gaiacpp).

It runs the way you need it: `gaiacpp` in a terminal, `gaiacpp -p` for scripts, `gaiacpp serve` as an OpenAI-compatible server, `gaiacpp --mcp` for another agent, and as the agent of the desktop app and the terminal UI. Every [release](https://github.com/amd/gaia/releases) carries it for Windows x64, Linux x64 and macOS on Apple Silicon. See the [gaiacpp guide](docs/cpp/gaia-agent.mdx).

The GAIA agent has two interchangeable programs behind it, and the desktop app and the terminal run either one:

| Harness | What it is | Source |
|---------|------------|--------|
| **`gaiacpp`** | The native C++ harness: small and fast, with fewer tools than the Python one so far | [`cpp/agents/gaiacpp/`](cpp/agents/gaiacpp/) on the framework in [`cpp/`](cpp/README.md) |
| **`gaiapy`** | The Python harness: every tool and feature, and what the apps start until you choose `gaiacpp` | [`hub/agents/gaia/python/`](hub/agents/gaia/python/) on the SDK in [`src/gaia/`](src/gaia/) |

Switch in the desktop app under Settings › Agent & model, or with `/agent gaiacpp` in the terminal. See [The two harnesses](docs/reference/harnesses.mdx).

---

## C++ Framework

`gaiacpp` is built on a C++17 port of the GAIA base agent framework, under [`cpp/`](cpp/README.md). It implements the same agent loop, tool registry, and MCP client interface without any Python dependency — suitable for embedding in native applications or resource-constrained environments.

```cpp
#include <gaia/agent.h>

class MyAgent : public gaia::Agent {
protected:
    std::string getSystemPrompt() const override {
        return "You are a helpful assistant.";
    }
};
```

**[C++ build and usage instructions →](cpp/README.md)**

---

## Quick Install

```bash
pip install amd-gaia
```

That installs the SDK and `gaia llm`. `gaia chat` and `gaia -p` run the GAIA agent, which a plain `gaia init` installs together with the packages it needs.

For complete setup instructions including Lemonade Server, see the **[Quickstart Guide](https://amd-gaia.ai/docs/quickstart)**.

---

## System Requirements

| Requirement | Minimum | Recommended |
|-------------|---------|-------------|
| **Processor** | AMD Ryzen AI 300-series (Apple Silicon on macOS) | AMD Ryzen AI Max+ 395 |
| **OS** | Windows 10/11, macOS 14+ (Apple Silicon), Linux (glibc 2.38+) | - |
| **RAM** | 16GB | 64GB |

---

## Documentation

- **[Quickstart](https://amd-gaia.ai/docs/quickstart)** — Install GAIA and build a first harness in 10 minutes
- **[SDK Reference](https://amd-gaia.ai/docs/sdk)** — Complete API documentation
- **[Guides](https://amd-gaia.ai/docs/guides)** — Chat, Voice, RAG, and more
- **[FAQ](https://amd-gaia.ai/docs/reference/faq)** — Frequently asked questions

---

## Releases

See the full [Release Notes](https://amd-gaia.ai/docs/releases) on the documentation site, or browse [GitHub Releases](https://github.com/amd/gaia/releases).

### Release Process

To publish a new release (e.g. `v0.17.0`), create a release PR that updates these 3 files:

| # | File | What to change |
|---|------|----------------|
| 1 | `src/gaia/version.py` | Set `__version__ = "0.17.0"` |
| 2 | `docs/releases/v0.17.0.mdx` | Create release notes (see [format guide](https://amd-gaia.ai/docs/releases)) |
| 3 | `docs/docs.json` | Add `"releases/v0.17.0"` to the Releases tab pages array |

Then run `python util/release_versions.py --stamp`. It writes every version field that follows `version.py`, including the `docs.json` navbar label, the Agent UI package, and the Terminal UI's hub manifest; lint fails if one drifts. Commit what it changed with the PR, then merge and tag:

```bash
git tag v0.17.0 && git push origin v0.17.0
```

CI validates all three files are consistent with the tag before publishing to [GitHub Releases](https://github.com/amd/gaia/releases) and [PyPI](https://pypi.org/project/amd-gaia/).

---

## Contributing

We welcome contributions! See our [Contributing Guide](CONTRIBUTING.md) for details.

- **Build agents** in your own repository using GAIA as a dependency
- **Improve the framework** — check [GitHub Issues](https://github.com/amd/gaia/issues) for open tasks
- **Add documentation** — examples, tutorials, and guides

---

## Contact

- **Email**: [gaia@amd.com](mailto:gaia@amd.com)
- **Discord**: [Join our community](https://discord.com/invite/5xXzkMu8Zk)
- **Issues**: [GitHub Issues](https://github.com/amd/gaia/issues)

---

## License

[MIT License](./LICENSE.md)

Copyright(C) 2024-2026 Advanced Micro Devices, Inc. All rights reserved.
SPDX-License-Identifier: MIT
