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

# AI Integrations

> Integrate Root.io with AI coding assistants for automatic vulnerability detection

Root.io integrates with AI coding assistants to automatically detect and patch vulnerabilities as you code. When you edit package manifests (`package.json`, `pom.xml`, `requirements.txt`, etc.), your AI assistant checks for available Root.io patches and offers to apply them.

## Prerequisites

Before setting up any AI integration, you need:

1. **Root.io account and API key** - See [Authentication](/getting-started/authentication) for setup instructions
2. **`rootio_patcher` CLI installed** - See [Root Patcher CLI](/rlc/patcher#installation) for installation
3. **Package registry configured** - See [Getting Started with RLC](/rlc/getting-started) for npm, pip, and Maven configuration

## Supported Platforms

| Platform                                    | Detection Method             | Installation Type        |
| ------------------------------------------- | ---------------------------- | ------------------------ |
| [Claude Code](/ai-integrations/claude-code) | Automatic (PostToolUse hook) | Plugin + Hook + Skill    |
| [Codex](/ai-integrations/codex)             | Automatic (plugin)           | Marketplace registration |

<Note>
  GitHub Copilot and Cursor integrations coming soon.
</Note>

## How It Works

Once configured, your AI assistant automatically:

1. **Detects dependency changes** - When you edit package files, the integration triggers
2. **Scans for vulnerabilities** - Runs `rootio_patcher` in dry-run mode to check for patches
3. **Suggests fixes** - If patches are available, the AI offers to apply them
4. **Applies patches** - With your approval, runs the patcher to update your dependencies

The integration is non-intrusive - it only activates when you're working with dependency files and doesn't interfere with normal coding.

## Next Steps

Choose your AI assistant to get started:

* [Set up Claude Code integration](/ai-integrations/claude-code)
* [Set up Codex integration](/ai-integrations/codex)
