# Version requirements

<Callout type="info" title="Note">
  Agent Firewall is part of [AI Governance](/beta-docs/@main/ai-coder/ai-governance/), which is included with a Premium license.
</Callout>

## Recommended Versions [#recommended-versions]

It's recommended to use **Coder v2.30.0 or newer** and **Claude Code module v4.7.0 or newer**.

### Coder v2.30.0+ [#coder-v2300]

Since Coder v2.30.0, Agent Firewall is embedded inside the Coder binary, and you don't need to install it separately.
The `coder agent-firewall` subcommand is available directly from the Coder CLI.

### Claude Code Module v4.7.0+ [#claude-code-module-v470]

Since Claude Code module v4.7.0, the embedded `coder agent-firewall` subcommand is used by default.
This means you don't need to set `boundary_version`; the boundary version is tied to your Coder version.

## Compatibility with Older Versions [#compatibility-with-older-versions]

<a id="using-coder-before-v2300-with-claude-code-module-v470"></a>

### Coder before v2.30.0 with Claude Code module v4.7.0+ [#coder-before-v2300-with-claude-code-module-v470]

If you're using Coder before v2.30.0 with Claude Code module v4.7.0 or newer, the `coder agent-firewall` subcommand isn't available in your Coder installation.
In this case, you need to:

1. Set `use_boundary_directly = true` in your Terraform module configuration
2. Explicitly set `boundary_version` to specify which Agent Firewall version to install

Example configuration:

```tf
module "claude-code" {
  source              = "dev.registry.coder.com/coder/claude-code/coder"
  version             = "4.7.0"
  enable_boundary     = true
  use_boundary_directly = true
  boundary_version    = "0.6.0"
}
```

<a id="using-claude-code-module-before-v470"></a>

### Claude Code module before v4.7.0 [#claude-code-module-before-v470]

If you're using Claude Code module before v4.7.0, the module expects to use Agent Firewall directly.
You need to explicitly set `boundary_version` in your Terraform configuration:

```tf
module "claude-code" {
  source              = "dev.registry.coder.com/coder/claude-code/coder"
  version             = "4.6.0"
  enable_boundary     = true
  boundary_version    = "0.6.0"
}
```

## Summary [#summary]

| Coder Version | Claude Code Module Version | Configuration Required                                |
| ------------- | -------------------------- | ----------------------------------------------------- |
| v2.30.0+      | v4.7.0+                    | No additional configuration needed                    |
| \< v2.30.0    | v4.7.0+                    | `use_boundary_directly = true` and `boundary_version` |
| Any           | \< v4.7.0                  | `boundary_version`                                    |
