欣淇
发布于 2026-05-11 / 1 阅读
0
0

🦆 Goose45k Stars AI /CLI/API Linux Foundation:

🦆 Goose:45k Stars 的开源 AI 代理,桌面/CLI/API 全都要,Linux Foundation 出品

项目地址:https://github.com/aaif-goose/goose | ⭐ 45k | 🦀 Rust | AAIF/Linux Foundation


老实说,市面上 AI 编程助手一堆——Claude Code、Codex、Cursor、Copilot,每个都有自己的客户端、自己的生态,用起来总觉得被绑死了。你换个模型提供商试试?得重新配一套工具链。

Goose 这项目直接解决了这个问题:一个统一的 AI 代理,桌面 App、CLI、API 三种形态全都有,底层用 Rust 写,性能拉满。 更骚的是它支持 15+ 模型提供商——Anthropic、OpenAI、Google、Ollama、OpenRouter 随便切,还有 MCP 协议接 70+ 扩展。你换个模型换个后端,配置改一行就行。

而且它是 Linux Foundation 旗下的 Agentic AI Foundation (AAIF) 在维护,不是哪个公司的玩具项目。

🦆 Goose: 45k Stars Open-Source AI Agent — Desktop, CLI, and API, Backed by the Linux Foundation

Repo: https://github.com/aaif-goose/goose | ⭐ 45k | 🦀 Rust | AAIF/Linux Foundation


Let's be honest — there are tons of AI coding assistants out there: Claude Code, Codex, Cursor, Copilot. Each has its own client, its own ecosystem, and switching providers means reconfiguring your entire toolchain.

Goose solves this: a unified AI agent that comes in three forms — Desktop app, CLI, and API — all built in Rust for performance. The kicker? It supports 15+ model providers — Anthropic, OpenAI, Google, Ollama, OpenRouter, you name it. Plus 70+ extensions via the Model Context Protocol. Switching models or backends is a one-line config change.

And it's maintained by the Agentic AI Foundation (AAIF) under the Linux Foundation. This isn't a toy project from some startup.


一、装一个,三种姿势用

Goose 不像其他 AI 工具只有一种使用方式,它给你三个选项:

# 🖥️ 桌面版(macOS)
brew install --cask block-goose

# 🔧 CLI 版(Linux/macOS)
curl -fsSL https://github.com/aaif-goose/goose/releases/download/stable/download_cli.sh | bash

# 📦 Windows 桌面版
# 去 https://goose-docs.ai 下载安装包

装完跑一下 goose configure,选你的模型提供商就行。


二、配一个,全家通用

核心配置就是一个 YAML 文件:

# ~/.config/goose/config.yaml

# 模型配置
GOOSE_PROVIDER: "anthropic"
GOOSE_MODEL: "claude-4-5-sonnet"
GOOSE_TEMPERATURE: 0.7

# 规划模型(可选,用于复杂任务拆分)
GOOSE_PLANNER_PROVIDER: "openai"
GOOSE_PLANNER_MODEL: "gpt-4"

# 权限模式
GOOSE_MODE: "smart_approve"

想换 OpenAI?一行搞定:

export GOOSE_PROVIDER=openai
export GOOSE_MODEL=gpt-4


三、常用操作,一行搞定

# 查看版本和诊断信息
goose info

# 交互式对话(默认模式)
goose

# 自动更新到最新版
goose update

# Shell 补全
eval "$(goose completion zsh)"
source ~/.zshrc

最骚的是 goose 直接回车就是交互模式,跟 Claude Code 一样,但底层用啥模型你自己说了算。


四、MCP 扩展生态

70+ 扩展通过 MCP 协议接入,每个都是一个能力模块:

extensions:
  developer:
    bundled: true     # 内置扩展
    enabled: true
  computer_controller:
    bundled: true     # 控制你的电脑
    enabled: true
  github:
    type: "stdio"
    cmd: "mcp-server-github"
    args: []


五、跟其他方案对比

跟 Claude Code 比,Goose 不锁死单一供应商——换个 GOOSE_PROVIDER 环境变量就行。

跟 Codex CLI 比,Goose 有桌面 App,新手不用碰终端。

跟 OpenClaw 比,Goose 有完整 CLI,可以嵌入 CI/CD 流水线。

三者都支持 MCP 协议,但 Goose 还额外支持 ACP(Agent Client Protocol),多一层互操作性。

别踩的坑: Goose 的配置文件路径是 ~/.config/goose/config.yaml,不是项目根目录。第一次配置时记得 goose configure 走一遍交互式向导,手写 YAML 容易漏字段。


总结三点:

  • 跨供应商:一个客户端跑所有 LLM,换模型改一行环境变量
  • 三形态合一:桌面 App 给新手,CLI 给开发者,API 给自动化
  • Linux Foundation 背书:不是短期项目,有持续维护保障
  • 标签:#AI #Agent #MCP #Rust #OpenSource


    评论