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

# AI Plugin

> Install the Control Plane AI Plugin in Claude Code, Codex, or Antigravity CLI.

## Install

> [tab] Claude Code
>
> Add the marketplace, install the plugin, then reload:
>
> ```text theme={null}
> /plugin marketplace add https://github.com/controlplane-com/ai-plugin.git
> /plugin install cpln@controlplane
> /reload-plugins
> ```
>
> > [!TIP]
> >
> > To enable auto-update, run `/plugin`, use the `<` / `>` arrow keys to navigate to the **Marketplaces** tab, select **controlplane**, and choose **Enable auto-update**. Otherwise update manually with `/plugin marketplace update controlplane` followed by `/reload-plugins`.
>
> Alternatively, install from [Anthropic's community plugin marketplace](https://github.com/anthropics/claude-plugins-community), where every listing has passed Anthropic's review:
>
> ```text theme={null}
> /plugin marketplace add anthropics/claude-plugins-community
> /plugin install cpln@claude-community
> /reload-plugins
> ```

> [tab] Codex
>
> Add the plugin marketplace:
>
> ```bash theme={null}
> codex plugin marketplace add https://github.com/controlplane-com/ai-plugin.git
> ```
>
> Start Codex, open `/plugins`, navigate to **Control Plane**, then install the `cpln` plugin.
>
> > [!TIP]
> >
> > **Trust the plugin's hook (recommended).** Codex runs a plugin's hooks only after you trust them. When Codex starts with a new or changed hook, it shows **Hooks need review**: choose **Review hooks** and trust the Control Plane `SessionStart` hook, or trust it later from `/hooks`. Once trusted, the hook loads the Control Plane core rules at the start of each session.
>
> > [!TIP]
> >
> > Codex does not auto-update plugin marketplaces. When a new release is published, run the upgrade command and restart Codex:
> >
> > ```bash theme={null}
> > codex plugin marketplace upgrade controlplane
> > ```

> [tab] Antigravity CLI
>
> Install the plugin straight from GitHub:
>
> ```bash theme={null}
> agy plugin install https://github.com/controlplane-com/ai-plugin/plugins/cpln
> ```
>
> Confirm it loaded with `agy plugin list`.

## Sign in

> [!NOTE]
>
> The plugin bundles the MCP server. It connects Claude Code on the `full` [toolset profile](https://docs.controlplane.com/ai/mcp.md#toolset-profiles) and Codex and Antigravity CLI on `core`, and it loads the Control Plane skills itself.

Each tool triggers OAuth its own way — see your tool's setup page for the specifics. Once your browser lands on Control Plane:

**1. Sign in to Control Plane**

Use Google, GitHub, Microsoft, or SAML.

**2. Authorize orgs**

Pick the orgs this AI client may access and click **Authorize**.

## Try it

```text Troubleshoot a workload theme={null}
/cpln:troubleshoot my-api --gvc production
```

```text Set up secret access theme={null}
My "my-api" workload needs to read the "db-password" secret.
```

```text Migrate a Kubernetes manifest theme={null}
/cpln:migrate-k8s ./k8s/deployment.yaml
```

```text Natural language theme={null}
Deploy this app on Frankfurt and give me the public URL.
```

```text Create an app from scratch theme={null}
Create me a small Flask app that shows a random quote and deploy it to org "my-org".
```

> [!NOTE]
>
> With the MCP server connected, the assistant uses its tools for everything they cover, reads included. It runs the `cpln` CLI only for what the tools can't do: building an app folder on your machine with `cpln image build`, `cpln workload connect`, `cpln workload exec`, port-forward, and `cpln cp`.

## Next steps

> [card] [Usage Examples](https://docs.controlplane.com/ai/examples.md)
>
> Practical prompts for common Control Plane workflows

> [card] [AI Plugin on GitHub](https://github.com/controlplane-com/ai-plugin)
>
> Source, full inventory of skills, agents, commands, and guardrails
