docs: add ACP providers guide for claude-acp and codex-acp (#7800)

Signed-off-by: Adrian Cole <adrian@tetrate.io>
This commit is contained in:
Adrian Cole
2026-03-11 21:02:23 +08:00
committed by GitHub
parent e3dcf6989f
commit 55023ca873
2 changed files with 208 additions and 0 deletions
@@ -67,6 +67,19 @@ goose also supports special "pass-through" providers that work with existing CLI
CLI providers are cost-effective alternatives that use your existing subscriptions. They work differently from API providers as they execute CLI commands and integrate with the tools' native capabilities. See the [CLI Providers guide](/docs/guides/cli-providers) for detailed setup instructions.
:::
### ACP Providers
goose supports [Agent Client Protocol (ACP)](https://agentclientprotocol.com/) agents as providers. ACP providers pass goose extensions through to the agent as MCP servers.
| Provider | Description | Requirements |
|-----------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Claude ACP](https://github.com/zed-industries/claude-agent-acp) (`claude-acp`) | Uses Claude Code via ACP. Passes goose extensions to the agent as MCP servers. | `npm install -g @zed-industries/claude-agent-acp`, active Claude Code subscription |
| [Codex ACP](https://github.com/zed-industries/codex-acp) (`codex-acp`) | Uses OpenAI Codex via ACP. Passes goose extensions to the agent as MCP servers. | `npm install -g @zed-industries/codex-acp`, active ChatGPT Plus/Pro subscription |
:::tip ACP Providers
See the [ACP Providers guide](/docs/guides/acp-providers) for detailed setup instructions.
:::
## Configure Provider and Model
To configure your chosen provider, see available options, or select a model, visit the `Models` tab in goose Desktop or run `goose configure` in the CLI.
+195
View File
@@ -0,0 +1,195 @@
---
sidebar_position: 46
title: ACP Providers
sidebar_label: ACP Providers
description: Use ACP agents like Claude Code and Codex as goose providers with extension support
---
# ACP Providers
goose supports [Agent Client Protocol (ACP)](https://agentclientprotocol.com/) agents as providers. ACP is a standard protocol for communicating with coding agents, and there's a growing [registry](https://github.com/agentclientprotocol/registry) of agents that implement it.
ACP providers pass goose [extensions](/docs/getting-started/using-extensions) through to the agent as MCP servers, so the agent can call your extensions directly.
:::warning Limitations
- **No session fork or resume**: You can start new sessions, but `goose session resume` and `goose session fork` are not supported yet.
- **ACP session ID differs from goose session ID**: Telemetry fields may not correlate across the two.
:::
## Available ACP Providers
### Claude ACP
Wraps [claude-agent-acp](https://github.com/zed-industries/claude-agent-acp), an ACP adapter for Anthropic's Claude Code. Uses the same Claude subscription as the `claude-code` CLI provider.
**Requirements:**
- Node.js and npm
- Active Claude Code subscription
- Authenticated with your Anthropic account (`claude` CLI working)
### Codex ACP
Wraps [codex-acp](https://github.com/zed-industries/codex-acp), an ACP adapter for OpenAI's Codex. Uses the same ChatGPT subscription as the `codex` CLI provider. Codex's sandbox blocks network by default — goose automatically enables network access when HTTP MCP servers are configured.
**Requirements:**
- Node.js and npm
- Active ChatGPT Plus/Pro subscription or OpenAI API credits
- Authenticated with your OpenAI account (`codex` CLI working)
## Setup Instructions
### Claude ACP
1. **Install the ACP adapter**
```bash
npm install -g @zed-industries/claude-agent-acp
```
2. **Authenticate with Claude**
Ensure your Claude CLI is authenticated and working
3. **Configure goose**
Set the provider environment variable:
```bash
export GOOSE_PROVIDER=claude-acp
```
Or configure through the goose CLI using `goose configure`:
```bash
┌ goose-configure
◇ What would you like to configure?
│ Configure Providers
◇ Which model provider should we use?
│ Claude Code
◇ Model fetch complete
◇ Enter a model from that provider:
│ default
```
### Codex ACP
1. **Install the ACP adapter**
```bash
npm install -g @zed-industries/codex-acp
```
2. **Authenticate with OpenAI**
Run `codex` and follow the authentication prompts. You can use your ChatGPT account or API key.
3. **Configure goose**
Set the provider environment variable:
```bash
export GOOSE_PROVIDER=codex-acp
```
Or configure through the goose CLI using `goose configure`:
```bash
┌ goose-configure
◇ What would you like to configure?
│ Configure Providers
◇ Which model provider should we use?
│ Codex CLI
◇ Model fetch complete
◇ Enter a model from that provider:
│ gpt-5.2-codex
```
## Usage Examples
### Basic Usage
```bash
goose session
```
### Using with Extensions
Extensions configured via `--with-extension` or `--with-streamable-http-extension` are passed through to the ACP agent:
```bash
GOOSE_PROVIDER=claude-acp goose run \
--with-extension 'npx -y @modelcontextprotocol/server-everything' \
-t 'Use the echo tool to say hello'
```
```bash
GOOSE_PROVIDER=codex-acp goose run \
--with-streamable-http-extension 'https://mcp.kiwi.com' \
-t 'Search for flights from BKI to SYD tomorrow'
```
## Configuration Options
### Claude ACP Configuration
| Environment Variable | Description | Default |
|----------------------|---------------------|-----------|
| `GOOSE_PROVIDER` | Set to `claude-acp` | None |
| `GOOSE_MODEL` | Model to use | `default` |
**Known Models:**
- `default` (opus)
- `sonnet`
- `haiku`
**Permission Modes (`GOOSE_MODE`):**
| Mode | Session Mode | Behavior |
|-----------------|---------------------|-------------------------------------------------------|
| `auto` | `bypassPermissions` | Skips all permission checks |
| `smart-approve` | `acceptEdits` | Auto-accepts file edits, prompts for risky operations |
| `approve` | `default` | Prompts for all permission-required operations |
| `chat` | `plan` | Planning only, no tool execution |
See [claude-agent-acp](https://github.com/zed-industries/claude-agent-acp) for session mode details.
### Codex ACP Configuration
| Environment Variable | Description | Default |
|----------------------|--------------------|-----------------|
| `GOOSE_PROVIDER` | Set to `codex-acp` | None |
| `GOOSE_MODEL` | Model to use | `gpt-5.2-codex` |
**Known Models:**
- `gpt-5.2-codex`
- `gpt-5.2`
- `gpt-5.1-codex-max`
- `gpt-5.1-codex-mini`
**Permission Modes (`GOOSE_MODE`):**
| Mode | Approval / Sandbox | Behavior |
|-----------------|-----------------------------|----------------------------------------------------------------|
| `auto` | No approvals, full access | Bypasses all approvals and sandbox restrictions |
| `smart-approve` | On-request, workspace-write | Workspace write access, prompts for operations outside sandbox |
| `approve` | On-request, read-only | Read-only sandbox, prompts for all write operations |
| `chat` | No approvals, read-only | Read-only sandbox, no tool execution |
See [codex-acp](https://github.com/zed-industries/codex-acp) for approval policy and sandbox details.
## Error Handling
ACP providers depend on external npm packages, so ensure:
- The ACP adapter binary is installed and in your PATH (`claude-agent-acp` or `codex-acp`)
- The underlying CLI tool is authenticated and working
- Subscription limits are not exceeded
- Node.js and npm are installed
If goose can't find the binary, session startup will fail with an error. Run `which claude-agent-acp` or `which codex-acp` to verify installation.