Agent工具接入

Goose

在 Goose 中配置 AIGoCode 并使用兼容模型完成 Agent 任务

Goose 是一个可扩展的 Agent 工具。安装后,在首次配置向导中填写 AIGoCode 的地址、API Key 和模型即可开始使用。

安装 Goose

在终端运行官方安装脚本:

curl -fsSL https://github.com/aaif-goose/goose/releases/download/stable/download_cli.sh | bash

安装完成后,重新打开终端并验证:

goose --version

Goose 版本验证

配置 AIGoCode

在用户端控制台创建相应分组的 API Key。

选择 ChatGPT API(Azure)分组

选择 Claude Code(可外接)分组

运行配置向导:

goose configure

选择 Custom Providers → Add A Custom Provider,再按所选协议填写:

配置项OpenAI 兼容Anthropic Messages
API 类型OpenAI CompatibleAnthropic Compatible
Provider 名称AIGoCodeAIGoCode
分组ChatGPT API(Azure)Claude Code(可外接)
Provider API URLhttps://api.aigocode.devhttps://api.aigocode.dev
API base pathv1/chat/completionsv1/messages
API Key对应分组的 Key对应分组的 Key
模型gpt-6-astraclaude-opus-5-5
需要鉴权 / 流式响应Yes / YesYes / Yes

用户端按表格填写 API 地址。

Goose 用户端配置

完成配置后,进入项目目录并运行:

goose

验证接入

在 Goose 中发送一条消息,收到模型回复即表示接入完成。随后可在 AIGoCode 控制台的用量记录中确认请求。

Goose 接入验证

核对 API Key 分组、API 地址、协议和模型名称。

本页目录