
用 Go 重写的 Claude 代码......Go中高性能 AI 代理运行时。MCP 服务器,CLI 工具编排,会话管理,Kiro 集成。单一二进制,零依赖。
概览
GoCode——开源的Claude代码替代方案。内置Go。支持任何模型。 一个二进制。零依赖。200+模型。一支代理团队。灵感来自最优秀的终端AI代理。用Go从零构建。比其他所有都快。 去安装 github.com/AlleyBo55/gocode/cmd/gocode@latest 我们很喜欢Claude Code为基于终端的AI编码所做的贡献。但我们想要更快、模型无关且无依赖的东西。 所以我们从零开始用 Go 构建了 gocode——灵感来自终端人工智能代理中最好的理念,但架构完全原创。每个子系统都是从零开始设计和编写的:提供者层、代理运行时、工具执行器、编排器、内存系统、规划引擎。所有这些。 结果是:一个12MB的二进制文件,起始时间不到10毫秒,支持11家供应商的200+型号,并具备大多数代理根本不会尝试的功能。 大多数终端代理会把你锁定在一个供应商。
概述(AI 翻译)
GoCode——开源的Claude代码替代方案。内置Go。支持任何模型。
一个二进制文件。零依赖。任何型号,包括你笔记本上的那个。一个12MB的Go二进制文件,起始时间为毫秒,告诉你每个型号的实际价格。
去安装 github.com/AlleyBo55/gocode/cmd/gocode@latest
60秒后开始
选择与你现有路径匹配的路径。每条路径只需一个指令即可完成 来自一名在职经纪人。
什么都没有。没有账户,没有密钥。 安装Ollama,然后:
每个托管模型一个密钥。 获取一个钥匙,openrouter.ai/keys:
你已经拥有的提供商密钥:
然后在你信任模型之前,有两个值得了解的命令:
如果你在没有设置的情况下输入gocode,它会打印出这三条路径
而不是错误。
为什么要用gocode
我们很喜欢Claude Code为基于终端的AI编码所做的贡献。但我们想要更快、模型无关且无依赖的东西。
所以我们从零开始用 Go 编写了 gocode——灵感来自终端人工智能代理中最优秀的理念,但架构完全原创。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
gocode — The Open-Source Claude Code Alternative. Built in Go. Works With Any Model.
One binary. Zero dependencies. Any model, including the one on your laptop.A 12 MB Go binary that starts in milliseconds and tells you what each model actually costs.
go install github.com/AlleyBo55/gocode/cmd/gocode@latest
Start in 60 seconds
Pick the path that matches what you have. Each one is a single command away from a working agent.
Nothing. No account, no key. Install Ollama, then:
ollama pull qwen2.5-coder:7b
gocode # finds Ollama, uses your local model, says so
One key for every hosted model. Get one at openrouter.ai/keys:
export OPENROUTER_API_KEY=sk-or-...
gocode --model anthropic/claude-sonnet-4-6
A provider key you already have:
export ANTHROPIC_API_KEY=sk-ant-... # or OPENAI_API_KEY, GEMINI_API_KEY, GROQ_API_KEY, ...
gocode
Then two commands worth knowing before you trust a model with your code:
gocode doctor --model qwen2.5-coder:7b # can it stream, follow a system prompt, call tools, call several at once?
gocode chat --max-cost 2 # hard stop at $2 of estimated spend, before the next tool runs
If you type gocode with nothing set up, it prints exactly these three paths
instead of an error.
Why gocode
We loved what Claude Code did for terminal-based AI coding. But we wanted something faster, model-agnostic, and dependency-free.
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →