feat: support codex acp provider (#2774)

This commit is contained in:
yetone
2025-10-16 01:26:04 +08:00
committed by GitHub
parent 4fc83dc308
commit 4a68e29165
6 changed files with 60 additions and 4 deletions

View File

@@ -1208,6 +1208,22 @@ To use ACP-compatible agents with Avante.nvim, you need to configure an ACP prov
}
```
#### Goose with ACP
```lua
{
provider = "goose",
-- other configuration options...
}
```
#### Codex with ACP
```lua
{
provider = "codex",
-- other configuration options...
}
```
### ACP Configuration
ACP providers are configured in the `acp_providers` section of your configuration:
@@ -1231,6 +1247,17 @@ ACP providers are configured in the `acp_providers` section of your configuratio
ANTHROPIC_API_KEY = os.getenv("ANTHROPIC_API_KEY"),
},
},
["goose"] = {
command = "goose",
args = { "acp" },
},
["codex"] = {
command = "codex-acp",
env = {
NODE_NO_WARNINGS = "1",
OPENAI_API_KEY = os.getenv("OPENAI_API_KEY"),
},
},
},
-- other configuration options...
}