<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>OpenCode Archives - 老路日常</title>
	<atom:link href="https://lusdaily.com/tag/opencode/feed/" rel="self" type="application/rss+xml" />
	<link>https://lusdaily.com/tag/opencode/</link>
	<description>老路日常</description>
	<lastBuildDate>Wed, 22 Jul 2026 04:32:13 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.4</generator>

<image>
	<url>https://lusdaily.com/wp-content/uploads/2026/06/cropped-333-e1782726521802-32x32.png</url>
	<title>OpenCode Archives - 老路日常</title>
	<link>https://lusdaily.com/tag/opencode/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Claude Code 有后门被封号？试试 OpenCode 平替，开源免费还能接白嫖最新模型</title>
		<link>https://lusdaily.com/opencode-claude-code-alternative/</link>
		
		<dc:creator><![CDATA[老路日常]]></dc:creator>
		<pubDate>Thu, 09 Jul 2026 07:56:07 +0000</pubDate>
				<category><![CDATA[Vibe Coding]]></category>
		<category><![CDATA[建站教程]]></category>
		<category><![CDATA[AI编程]]></category>
		<category><![CDATA[Claude Code]]></category>
		<category><![CDATA[OpenCode]]></category>
		<category><![CDATA[开源]]></category>
		<guid isPermaLink="false">https://lusdaily.com/?p=198</guid>

					<description><![CDATA[<p>最近 Claude Code 封号的话题在圈子里闹得挺凶，只要在国内用Claude Code原生模型，都会被封&#46;&#46;&#46;</p>
<p>The post <a href="https://lusdaily.com/opencode-claude-code-alternative/">Claude Code 有后门被封号？试试 OpenCode 平替，开源免费还能接白嫖最新模型</a> appeared first on <a href="https://lusdaily.com">老路日常</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">最近 Claude Code 封号的话题在圈子里闹得挺凶，只要在国内用Claude Code原生模型，都会被封号，尤其是还看到一个兄弟说，只要到了杭州必被封号。</p>



<p class="wp-block-paragraph">另外就是传的沸沸扬扬的后门封号理论，是指Claude Code会自动检测你的时区，语言等等来判断你是不是身在国内，有关部门也一再发了提醒，建议大家卸载。</p>



<p class="wp-block-paragraph">那么，还有和Claude Code交互和体验类似的Agent么？答案是 OpenCode ，全开源免费的编码辅助工具，更nb的是经常可以白嫖体验到最新的模型，当然，你想接入Deepseek api也是完全没有问题。 </p>
</blockquote>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="1024" height="547" src="https://lusdaily.com/wp-content/uploads/2026/07/image-37-1024x547.png" alt="" class="wp-image-200" srcset="https://lusdaily.com/wp-content/uploads/2026/07/image-37-1024x547.png 1024w, https://lusdaily.com/wp-content/uploads/2026/07/image-37-300x160.png 300w, https://lusdaily.com/wp-content/uploads/2026/07/image-37-768x410.png 768w, https://lusdaily.com/wp-content/uploads/2026/07/image-37-1536x820.png 1536w, https://lusdaily.com/wp-content/uploads/2026/07/image-37-520x278.png 520w, https://lusdaily.com/wp-content/uploads/2026/07/image-37-940x502.png 940w, https://lusdaily.com/wp-content/uploads/2026/07/image-37.png 1730w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<h2 class="wp-block-heading">个人想说的：Claude Code 到底有没有问题？</h2>



<p class="wp-block-paragraph">Claude Code 本身是个很好用的工具，我做了几个项目感觉还都是不错，生态也完整，大家讨论的几个点无非是这些：</p>



<ol class="wp-block-list">
<li><strong>闭源</strong> — 你看不到它往服务器传了什么数据</li>



<li><strong>账号风险</strong> — API Key 或者 Claude 账号，国内使用麻烦不说，被封了你的钱和额度都打水漂</li>



<li><strong>不用原生降智</strong> — 这个我觉得还OK，接入Deepseek v4 pro，处理一般的项目都没啥问题</li>
</ol>



<p class="wp-block-paragraph">至于是不是、有没有「后门」我不下定论，但<strong>如果一个工具让你心里不踏实，那就换一个让自己踏实的。</strong></p>



<h2 class="wp-block-heading">OpenCode 是什么？</h2>



<p class="wp-block-paragraph">OpenCode（anomalyco/opencode）是一个<strong>开源</strong>的 AI 编程助手，直接在终端里用（现在也有桌面端了），功能跟 Claude Code 非常像：</p>



<ul class="wp-block-list">
<li>支持 Claude、GPT、DeepSeek 等十几家模型 ，更有经常更新的免费模型额度给你白嫖</li>



<li>可以直接读写文件、执行命令</li>



<li>有代码补全、搜索、重构功能</li>



<li><strong>开源</strong> — 代码全公开，不会偷偷传数据</li>



<li><strong>184k Star</strong> — 社区活跃，一直在更新</li>
</ul>



<h2 class="wp-block-heading">安装</h2>



<p class="wp-block-paragraph">OpenCode 在国内安装很方便</p>



<p class="wp-block-paragraph"><strong>一行命令：</strong></p>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">npm i -g opencode-ai@latest</pre>



<p class="wp-block-paragraph">装完之后在终端输入 <code>opencode</code> 就能启动了。可以输入/model来切换模型</p>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="547" src="https://lusdaily.com/wp-content/uploads/2026/07/image-38-1024x547.png" alt="" class="wp-image-201" srcset="https://lusdaily.com/wp-content/uploads/2026/07/image-38-1024x547.png 1024w, https://lusdaily.com/wp-content/uploads/2026/07/image-38-300x160.png 300w, https://lusdaily.com/wp-content/uploads/2026/07/image-38-768x410.png 768w, https://lusdaily.com/wp-content/uploads/2026/07/image-38-1536x820.png 1536w, https://lusdaily.com/wp-content/uploads/2026/07/image-38-520x278.png 520w, https://lusdaily.com/wp-content/uploads/2026/07/image-38-940x502.png 940w, https://lusdaily.com/wp-content/uploads/2026/07/image-38.png 1730w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">默认就有很多免费模型给你白嫖体验，标记free的都是给你玩的。</p>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="547" src="https://lusdaily.com/wp-content/uploads/2026/07/image-39-1024x547.png" alt="" class="wp-image-202" srcset="https://lusdaily.com/wp-content/uploads/2026/07/image-39-1024x547.png 1024w, https://lusdaily.com/wp-content/uploads/2026/07/image-39-300x160.png 300w, https://lusdaily.com/wp-content/uploads/2026/07/image-39-768x410.png 768w, https://lusdaily.com/wp-content/uploads/2026/07/image-39-1536x820.png 1536w, https://lusdaily.com/wp-content/uploads/2026/07/image-39-520x278.png 520w, https://lusdaily.com/wp-content/uploads/2026/07/image-39-940x502.png 940w, https://lusdaily.com/wp-content/uploads/2026/07/image-39.png 1730w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">当然也支持api接入，输入/connect进行配置</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="547" src="https://lusdaily.com/wp-content/uploads/2026/07/image-40-1024x547.png" alt="" class="wp-image-203" srcset="https://lusdaily.com/wp-content/uploads/2026/07/image-40-1024x547.png 1024w, https://lusdaily.com/wp-content/uploads/2026/07/image-40-300x160.png 300w, https://lusdaily.com/wp-content/uploads/2026/07/image-40-768x410.png 768w, https://lusdaily.com/wp-content/uploads/2026/07/image-40-1536x820.png 1536w, https://lusdaily.com/wp-content/uploads/2026/07/image-40-520x278.png 520w, https://lusdaily.com/wp-content/uploads/2026/07/image-40-940x502.png 940w, https://lusdaily.com/wp-content/uploads/2026/07/image-40.png 1730w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">支持超多厂商：OpenAI、Anthropic、Google Gemini、DeepSeek…</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="547" src="https://lusdaily.com/wp-content/uploads/2026/07/image-41-1024x547.png" alt="" class="wp-image-204" srcset="https://lusdaily.com/wp-content/uploads/2026/07/image-41-1024x547.png 1024w, https://lusdaily.com/wp-content/uploads/2026/07/image-41-300x160.png 300w, https://lusdaily.com/wp-content/uploads/2026/07/image-41-768x410.png 768w, https://lusdaily.com/wp-content/uploads/2026/07/image-41-1536x820.png 1536w, https://lusdaily.com/wp-content/uploads/2026/07/image-41-520x278.png 520w, https://lusdaily.com/wp-content/uploads/2026/07/image-41-940x502.png 940w, https://lusdaily.com/wp-content/uploads/2026/07/image-41.png 1730w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h2 class="wp-block-heading">使用体验</h2>



<p class="wp-block-paragraph">和Claude一样，你可以在VS Code里安装插件来集成，在VS Code的扩展里直接搜索opencode就好了，第一个就是</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="717" src="https://lusdaily.com/wp-content/uploads/2026/07/image-42-1024x717.png" alt="" class="wp-image-205" srcset="https://lusdaily.com/wp-content/uploads/2026/07/image-42-1024x717.png 1024w, https://lusdaily.com/wp-content/uploads/2026/07/image-42-300x210.png 300w, https://lusdaily.com/wp-content/uploads/2026/07/image-42-768x538.png 768w, https://lusdaily.com/wp-content/uploads/2026/07/image-42-520x364.png 520w, https://lusdaily.com/wp-content/uploads/2026/07/image-42-940x658.png 940w, https://lusdaily.com/wp-content/uploads/2026/07/image-42.png 1451w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">安装好之后，右上角就有opencode的扩展插件打开快捷方式了，点开就能打开</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="717" src="https://lusdaily.com/wp-content/uploads/2026/07/image-43-1024x717.png" alt="" class="wp-image-206" srcset="https://lusdaily.com/wp-content/uploads/2026/07/image-43-1024x717.png 1024w, https://lusdaily.com/wp-content/uploads/2026/07/image-43-300x210.png 300w, https://lusdaily.com/wp-content/uploads/2026/07/image-43-768x538.png 768w, https://lusdaily.com/wp-content/uploads/2026/07/image-43-520x364.png 520w, https://lusdaily.com/wp-content/uploads/2026/07/image-43-940x658.png 940w, https://lusdaily.com/wp-content/uploads/2026/07/image-43.png 1451w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">按tab键可以切换build和plan模式，用过Claude Code应给对这个不陌生，很近似的效果。</p>



<h3 class="wp-block-heading">跟 Claude Code 比怎么样？</h3>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th>对比项</th><th>Claude Code</th><th>OpenCode</th></tr></thead><tbody><tr><td>开源</td><td>❌ 闭源</td><td>✅ <strong>MIT 协议</strong></td></tr><tr><td>模型选择</td><td>仅 Anthropic（可以用cc-switch接入其他API）</td><td>✅ <strong>十几家随意换</strong></td></tr><tr><td>费用</td><td>订阅</td><td>✅ <strong>免费模型体验 + 自己 API Key</strong></td></tr><tr><td>安装</td><td>npm</td><td><strong>npm（现在也有桌面端了，我更习惯CLI）</strong></td></tr><tr><td>代码质量</td><td>⭐⭐⭐⭐⭐</td><td>⭐⭐⭐⭐（略差但够用，超大项目上下文处理还是稍弱）</td></tr><tr><td>中文理解</td><td>⭐⭐⭐⭐⭐</td><td>⭐⭐⭐⭐⭐（用国内模型完全没问题）</td></tr><tr><td>活跃度</td><td>闭源，不可见</td><td>✅ <strong>最新的发布版是2天前</strong></td></tr><tr><td>社区</td><td>无</td><td>184k Star，14k+ commits</td></tr></tbody></table></figure>



<p class="wp-block-paragraph"><strong>结论：</strong> Claude Code 在代码生成质量上仍然强一些，但 OpenCode 已经足够日常使用了。考虑到它开源、免费、模型自由切换，作为一个平替完全合格。</p>



<h2 class="wp-block-heading">最后的建议</h2>



<p class="wp-block-paragraph">如果你在用 Claude Code 而且没遇到问题，<strong>可以继续用</strong>（我就在继续用，可以参考老路的这篇 <strong><a href="https://lusdaily.com/vibe-coding-ai-api-monitor/" target="_blank" rel="noreferrer noopener">Vibe Coding</a></strong> 的内容）。工具就是工具，用着顺手最重要。</p>



<p class="wp-block-paragraph">但如果你有以下情况，建议试试 OpenCode：</p>



<ul class="wp-block-list">
<li>❗ 担心闭源工具的安全问题</li>



<li>❗ Claude 账号被封了</li>



<li>❗ 没啥复杂项目，只想白嫖模型做体验</li>



<li>❗ 就想用开源的东西</li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<p class="wp-block-paragraph"><em>OpenCode GitHub 地址：<a href="https://github.com/anomalyco/opencode" target="_blank" rel="noreferrer noopener">https://github.com/anomalyco/opencode</a> </em></p>



<p class="wp-block-paragraph"><em>之前那篇<strong> <a href="https://lusdaily.com/vibe-coding-ai-api-monitor/" target="_blank" rel="noreferrer noopener">Vibe Coding  桌面插件</a></strong>工具已开源：<a href="https://github.com/ulysis6/ai-api-balance-monitor" target="_blank" rel="noreferrer noopener">https://github.com/ulysis6/ai-api-balance-monitor</a></em></p>



<figure class="wp-block-embed aligncenter is-type-wp-embed"><div class="wp-block-embed__wrapper">
<div class="video-container"><blockquote class="wp-embedded-content" data-secret="CToqiFlnqk"><a href="https://lusdaily.com/vibe-coding-ai-api-monitor/">Vibe Coding 初体验：4小时，我用 VS Code + Claude Code + DeepSeek 搓了一个桌面小插件</a></blockquote><iframe loading="lazy" class="wp-embedded-content" sandbox="allow-scripts" security="restricted"  title="《 Vibe Coding 初体验：4小时，我用 VS Code + Claude Code + DeepSeek 搓了一个桌面小插件 》—老路日常" src="https://lusdaily.com/vibe-coding-ai-api-monitor/embed/#?secret=7XqW6lvcyL#?secret=CToqiFlnqk" data-secret="CToqiFlnqk" width="600" height="338" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe></div>
</div></figure>
<p>The post <a href="https://lusdaily.com/opencode-claude-code-alternative/">Claude Code 有后门被封号？试试 OpenCode 平替，开源免费还能接白嫖最新模型</a> appeared first on <a href="https://lusdaily.com">老路日常</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
