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

# Install the plugin

> Add the Actual.AI Plugin to Claude Code or Codex so its checks, rule briefs and overrides run in your sessions.

The plugin runs the checks inside your coding agent. It checks a plan before you approve it and the agent's changes at the end of each turn, briefs the agent on the rules for each file it reads, and lets you override a denied rule from the session. The [Actual CLI](https://docs.actual.ai/install-cli.md) does the checking, so you install both. In a repository with no rule files under `.actual/rules/`, the plugin stays silent.

The plugin lives in [actual-software/actual-skill](https://github.com/actual-software/actual-skill) and installs from its `main` branch. Its plugin id is `actual-cli` and its marketplace id is `actual-cli-skills`.

## Claude Code

Run each command on its own, as a message in a Claude Code session.

**1. Add the marketplace**

```text theme={null}
/plugin marketplace add actual-software/actual-skill
```

**2. Install the plugin**

```text theme={null}
/plugin install actual-cli@actual-cli-skills
```

**3. Reload plugins**

```text theme={null}
/reload-plugins
```

**4. Run the skill**

```text theme={null}
/actual
```

The first time you run it, the skill looks for the Actual CLI. When it's missing, the skill asks before installing it with `npm install -g @actualai/actual`, then confirms the install with `actual --version`. To use Homebrew or a downloaded binary instead, see [Install the CLI](https://docs.actual.ai/install-cli.md).

## Codex

Add the repository as a plugin marketplace, then install the plugin:

```bash theme={null}
codex plugin marketplace add actual-software/actual-skill
codex plugin add actual-cli@actual-cli-skills
```

Codex runs a plugin's hooks only once you trust them. Open `/hooks` in the Codex CLI (or **Settings → Hooks** in the app), review the plugin's hooks and trust them. Codex records that trust against the plugin's content, so after each update the hooks show as modified and stay off until you review them again.

Governance in Codex needs Actual CLI 0.15.0 or later. Codex checks a plan when the turn that proposes it ends, so you see the first draft of a plan that conflicts with your rules before the agent revises it. [Codex](https://docs.actual.ai/guides/codex.md) covers this and the other differences.

To update, refresh the marketplace and add the plugin again, which installs the new version. Then trust its hooks again in `/hooks`:

```bash theme={null}
codex plugin marketplace upgrade actual-cli-skills
codex plugin add actual-cli@actual-cli-skills
```

Codex's public plugin directory doesn't list plugins that carry hooks, so you won't find the plugin there.

## The skill on its own

These installs add the plugin's skills without the checks, rule briefs or overrides, which need the plugin's hooks in Claude Code or Codex. The `actual` skill still runs and troubleshoots the Actual CLI for your agent, and on first use it offers to install the CLI when it isn't on your `PATH`.

With skills.sh:

```bash theme={null}
npx skills add actual-software/actual-skill
```

This installs the plugin's skills, the `actual` skill among them, into the agents you pick.

In Codex:

```text theme={null}
$skill-installer install the actual skill from actual-software/actual-skill
```

Start a prompt with `$actual` to call the skill directly.

By hand, clone the repository, then link the skill into your agent's global skills directory:

```bash theme={null}
git clone https://github.com/actual-software/actual-skill.git ~/.local/share/actual-skill

# OpenCode
ln -s ~/.local/share/actual-skill/skills/actual ~/.config/opencode/skills/actual

# Cursor
ln -s ~/.local/share/actual-skill/skills/actual ~/.cursor/skills/actual

# Claude Code, in place of the marketplace
ln -s ~/.local/share/actual-skill/skills/actual ~/.claude/skills/actual

# Codex, in place of $skill-installer
ln -s ~/.local/share/actual-skill/skills/actual ~/.agents/skills/actual
```

## Updates in Claude Code

Claude Code updates the plugin for you once auto-update is on for the `actual-cli-skills` marketplace. It's off by default for a third-party marketplace, so turn it on once: run `/plugin`, open the **Marketplaces** tab, select `actual-cli-skills` and choose **Enable auto-update**.

The same switch in a settings file is `"autoUpdate": true` on the marketplace's `extraKnownMarketplaces` entry. In `~/.claude/settings.json`, add that line to the `actual-cli-skills` entry if one is there, or add the whole entry:

```json theme={null}
{
  "extraKnownMarketplaces": {
    "actual-cli-skills": {
      "source": { "source": "github", "repo": "actual-software/actual-skill" },
      "autoUpdate": true
    }
  }
}
```

Re-adding the marketplace with `claude plugin marketplace add` rewrites this entry without the `autoUpdate` line, so add the line back if you do. An organization can put the same entry in its [managed settings](https://code.claude.com/docs/en/plugins/org#set-update-policy) to turn auto-update on for everyone, which also locks the toggle in `/plugin`.

With auto-update on, Claude Code checks for a new version in the background, up to ten minutes after the first message of each interactive session. The new version loads in your next session, or straight away if you run `/reload-plugins` when Claude Code tells you the plugin was updated. Setting `DISABLE_AUTOUPDATER`, `DISABLE_UPDATES` or `CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC` turns these background updates off unless `FORCE_AUTOUPDATE_PLUGINS=1` is set as well.

To update by hand, refresh the marketplace, then update the plugin:

```bash theme={null}
claude plugin marketplace update actual-cli-skills
claude plugin update actual-cli@actual-cli-skills
```

Then restart Claude Code, or run `/reload-plugins` in a session that's already open. If `claude plugin update` reports that the plugin is already at the latest version, there's no newer version yet.

## Requirements

* **Claude Code or Codex** for the checks, rule briefs and overrides. The skill on its own also runs in ChatGPT, Cursor and OpenCode.
* **Rule files under `.actual/rules/`** in the repository. From your terminal, `actual adr new` writes a decision and its rule file; [Decisions and rule files](https://docs.actual.ai/concepts/decisions-and-rule-files.md) covers the other way in, through Actual AI.
* **Actual CLI 0.8.0 or later.** In Claude Code, each session start in a repository with rules compares the installed CLI with the version the plugin needs, and offers the upgrade with the command for however you installed it. A declined offer doesn't come back as an interruption after a compaction or a resume.
* **Claude Code 2.1.287 or later** for the override dialog, overrides typed in the session and briefing on shell reads. On 2.1.285 and 2.1.286, set `CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1` to turn them on.

Some features need a newer CLI:

| Feature | Actual CLI | How to tell |
| - | - | - |
| Rule files with a YAML header | 0.9.0 or later | `actual rules brief --help` names `adr-header-v2` |
| The `actual adr` commands | 0.14.0 or later | `actual --version` |
| Governance in Codex | 0.15.0 or later | `actual plan-check --help` names `codex-hook` |

To upgrade, run `npm install -g @actualai/actual@latest` or `brew upgrade actual-software/actual/actual`, matching how you installed it. [Install the CLI](https://docs.actual.ai/install-cli.md#updates-by-install-method) has the command for each install method.


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