<?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 &#8211; iAIFeed</title>
	<atom:link href="https://www.iaifeed.com/tag/opencode/feed" rel="self" type="application/rss+xml" />
	<link>https://www.iaifeed.com</link>
	<description>iAIFeed</description>
	<lastBuildDate>Mon, 21 Sep 2026 12:42:18 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.2</generator>

<image>
	<url>https://www.iaifeed.com/wp-content/uploads/2026/07/cropped-iaifeed1-80x80.png</url>
	<title>opencode &#8211; iAIFeed</title>
	<link>https://www.iaifeed.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to Configure OpenCode Models for Cheap, Fast Coding</title>
		<link>https://www.iaifeed.com/how-to-configure-opencode-models-for-cheap-coding</link>
					<comments>https://www.iaifeed.com/how-to-configure-opencode-models-for-cheap-coding#respond</comments>
		
		<dc:creator><![CDATA[iamltlb]]></dc:creator>
		<pubDate>Mon, 21 Sep 2026 12:42:18 +0000</pubDate>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[opencode]]></category>
		<guid isPermaLink="false">https://www.iaifeed.com/how-to-configure-opencode-models-for-cheap-coding</guid>

					<description><![CDATA[OpenCode lets you mix models per task. Set up a cheap default, a strong planner, and local fallback so token bills stay predictable.]]></description>
										<content:encoded><![CDATA[<p>OpenCode is unusual among coding agents in that you route different models to different jobs. A cheap model handles boilerplate and search; a frontier model handles the hard plan. Configured well, this cuts a monthly token bill by more than half without losing quality on the tasks that matter.</p>
<h2>How does OpenCode choose a model?</h2>
<p>OpenCode reads its config from <code>~/.config/opencode/opencode.json</code>. Each provider block names a provider, its models, and the API key source. You can mark a default model and override it per session with a slash command. There is no hidden router deciding for you — the model used is the one you named, which makes costs predictable.</p>
<h2>How do you set a cheap default?</h2>
<p>Start cheap and escalate on purpose:</p>
<ol>
<li>Set a small, fast model as default — something in the Haiku or GPT-mini class.</li>
<li>Keep one frontier model configured for planning and hard debugging.</li>
<li>Switch mid-session when a task stalls: <code>/model anthropic/claude-sonnet</code>.</li>
<li>Add a local model as offline fallback for trivial edits.</li>
</ol>
<p>The pattern that saves the most money is planning cheap first. Let the small model attempt the change. Escalate only when tests fail twice.</p>
<h2>How much can you actually save?</h2>
<p>A typical day of light coding uses 200k-500k tokens. Run entirely on a frontier model that is $2-$6. Mix in a cheap default for the 70% of turns that are reads, searches, and small edits, and the same day lands closer to $0.80-$2.00. That is a 60-70% cut for work that rarely needed the big model.</p>
<h2>Should you run models locally?</h2>
<p>For autocomplete-like edits and commit messages, a local 7B-14B model on a modern laptop is fine and free. For repo-wide refactors it is frustrating: small models lose context and invent file paths. Keep local as the fallback, not the primary. If you already run <a href="https://www.iaifeed.com/ai-tool/droid">droid</a> on your own keys, the same key file can serve both tools.</p>
<h2>What breaks?</h2>
<p>Two gotchas. First, model names change often — a stale config silently fails or falls back. Second, mixing providers means mixing context limits; a 128k-context plan does not fit in a 32k local model. Pin explicit context windows in config so a large file does not blow the request size limit mid-task.</p>
<h2>Quick Summary</h2>
<ul>
<li>OpenCode config lives at <code>~/.config/opencode/opencode.json</code>.</li>
<li>Set a cheap small model as default, keep a frontier model for planning.</li>
<li>Mixing models can cut a day&#8217;s spend from ~$2-$6 to ~$0.80-$2.00.</li>
<li>Local models work for trivial edits but fail on repo-wide work.</li>
<li>Pin context limits — provider switching can break large tasks.</li>
</ul>
<p><em>Last updated September 2026.</em></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.iaifeed.com/how-to-configure-opencode-models-for-cheap-coding/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Install OpenCode and Finish Your First Task</title>
		<link>https://www.iaifeed.com/how-to-install-opencode-and-finish-your-first-task</link>
					<comments>https://www.iaifeed.com/how-to-install-opencode-and-finish-your-first-task#respond</comments>
		
		<dc:creator><![CDATA[iamltlb]]></dc:creator>
		<pubDate>Mon, 21 Sep 2026 12:42:01 +0000</pubDate>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[opencode]]></category>
		<guid isPermaLink="false">https://www.iaifeed.com/how-to-install-opencode-and-finish-your-first-task</guid>

					<description><![CDATA[OpenCode is an open-source terminal coding agent. Here is how to install it, connect any model, and complete a real edit in a few minutes.]]></description>
										<content:encoded><![CDATA[<p>OpenCode is a free, open-source AI coding agent that runs in your terminal and works with almost any model provider. You install it with one script or npm command, run <code>opencode</code> inside a project, and describe what you want changed. Your first edit is a 5-minute job.</p>
<h2>What is OpenCode?</h2>
<p>OpenCode is a text-based coding agent maintained in the open on GitHub. Unlike IDE plugins, it is provider-neutral: it talks to Anthropic, OpenAI, Google, or a local model through a config file. It reads your project tree, proposes diffs, and runs shell commands with your consent. That neutrality is the main reason developers pick it over lock-in tools.</p>
<h2>How do you install OpenCode?</h2>
<p>Two supported routes:</p>
<ul>
<li>Install script: <code>curl -fsSL https://opencode.ai/install | bash</code></li>
<li>Package managers: <code>npm i -g opencode-ai</code>, or Homebrew on macOS with <code>brew install opencode</code></li>
</ul>
<p>After install, run <code>opencode auth login</code> and pick your provider. The key is stored locally under <code>~/.local/share/opencode</code>. No account is required to use your own API key.</p>
<h2>How do you complete your first task?</h2>
<p>Change into a repo and launch the agent:</p>
<ol>
<li><code>cd ~/projects/my-api</code></li>
<li><code>opencode</code></li>
<li>Type a concrete request: &#8220;Add a /health endpoint that returns 200 with a JSON body containing uptime.&#8221;</li>
<li>Review the diff it shows, then approve with <code>y</code>.</li>
</ol>
<p>OpenCode edits only after you confirm, so the worst case is a rejected patch, not a wrecked working tree. If the plan looks off, reply with a correction instead of starting over — it keeps the context.</p>
<h2>Is OpenCode free?</h2>
<p>The tool is free and open source. You pay for whichever model you connect. With a cheap model a small task runs a few thousand tokens, well under $0.05. With a frontier model the same task may cost $0.20-$0.50. There is no per-seat license and no usage cap imposed by OpenCode itself.</p>
<h2>OpenCode vs IDE agents</h2>
<p>If you want autocomplete and inline hints, an editor plugin wins. OpenCode targets the opposite workflow: give an agent a goal and let it touch many files. It pairs well with <a href="https://www.iaifeed.com/ai-tool/droid">droid</a>, which leans more autonomous, while OpenCode stays easier to script and embed in pipelines.</p>
<h2>Quick Summary</h2>
<ul>
<li>OpenCode is a free, open-source terminal coding agent.</li>
<li>Install via <code>curl -fsSL https://opencode.ai/install | bash</code> or <code>npm i -g opencode-ai</code>.</li>
<li>It is provider-neutral — bring any API key, no account needed.</li>
<li>First task takes about 5 minutes; it always asks before editing.</li>
<li>Best for developers who want a scriptable agent, not autocomplete.</li>
</ul>
<p><em>Last updated September 2026.</em></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.iaifeed.com/how-to-install-opencode-and-finish-your-first-task/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
