<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Hanns Juarez on Medium]]></title>
        <description><![CDATA[Stories by Hanns Juarez on Medium]]></description>
        <link>https://medium.com/@hannsflip?source=rss-f1893bbf2c3d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*aZeUwSI2kTmrJglt</url>
            <title>Stories by Hanns Juarez on Medium</title>
            <link>https://medium.com/@hannsflip?source=rss-f1893bbf2c3d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 23:43:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hannsflip/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Easier setup to run a 3D office for your AI agents: OpenRig + Herdr on a cloud VPS agent 37]]></title>
            <link>https://medium.com/@hannsflip/easier-setup-to-run-a-3d-office-for-your-ai-agents-openrig-herdr-on-a-cloud-vps-agent-37-1bca30b60bcd?source=rss-f1893bbf2c3d------2</link>
            <guid isPermaLink="false">https://medium.com/p/1bca30b60bcd</guid>
            <category><![CDATA[context-engineering]]></category>
            <category><![CDATA[hardness]]></category>
            <category><![CDATA[multi-agent-systems]]></category>
            <category><![CDATA[openrig]]></category>
            <category><![CDATA[ai-agent]]></category>
            <dc:creator><![CDATA[Hanns Juarez]]></dc:creator>
            <pubDate>Sat, 14 Nov 2026 17:21:41 GMT</pubDate>
            <atom:updated>2026-11-14T17:21:41.388Z</atom:updated>
            <content:encoded><![CDATA[<p>Nov 14, 2026 · @Josh</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ugxVSmZf6Qv5Rz-w5KoR3A.png" /></figure><p>By the end of this guide, a team of AI coding agents runs 24/7 on a cloud VPS, and you watch them as characters in a 3D office in your browser. You can click any agent to read its screen and answer its questions.</p><p>Three open-source tools do the work:</p><ul><li><a href="https://github.com/mvschwarz/openrig"><strong>OpenRig</strong></a> runs the agents. You describe a team (a “rig”) in YAML, and OpenRig starts each agent (a “seat”) in its own tmux session, using Claude Code or Codex.</li><li><a href="https://herdr.dev/"><strong>Herdr</strong></a> is a terminal multiplexer built for agents. It keeps terminals alive on the VPS while your laptop sleeps, and lets you attach from your PC or phone over SSH.</li><li><a href="https://github.com/auszed/OpenRig_Space"><strong>OpenRig Space</strong></a> is the 3D office. It is a small server that runs next to OpenRig, reads what every seat is doing, and draws it in your browser.</li></ul><p>The VPS does all the work. Your PC only shows the screens, through SSH. Nothing is opened to the internet.</p><p>[embed: node/ee32b10a-c816]</p><p>The browser never talks to OpenRig directly: the office server reads OpenRig on the VPS, and only the SSH tunnel reaches it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/539/1*B_j9qA5aVBkfWh_80SmsPw.png" /></figure><h3>What you need</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*YYTSDjPTvfI5HkKe6OUnbg.png" /></figure><p>In every command, replace &lt;user&gt;@&lt;server&gt; with your own SSH login, for example node@myvps.example.com. Commands marked <strong>PC</strong> run on your computer; commands marked <strong>VPS</strong> run on the server.</p><h3>Step 1: Connect to the VPS and fix its startup files</h3><p>Everything else depends on a working SSH login, so test it first.</p><p><strong>PC:</strong></p><pre>ssh &lt;user&gt;@&lt;server&gt; hostname</pre><p>It should print the server’s name. The first time, SSH asks you to trust the server’s key; answer yes. Do this once in a terminal before using Herdr, because Herdr cannot answer that question for you.</p><p>Many minimal images have no ~/.bashrc or ~/.profile, so tools you install later are &quot;not found&quot;. Create both files once, so every login (including Herdr&#39;s) finds tools in your home folder.</p><p><strong>VPS</strong> (log in with ssh &lt;user&gt;@&lt;server&gt; first):</p><pre>cat &gt;&gt; ~/.bashrc &lt;&lt;&#39;EOF&#39;<br>export PATH=&quot;$HOME/.local/bin:$HOME/.npm-global/bin:$PATH&quot;<br>EOF<br>echo &#39;[ -f ~/.bashrc ] &amp;&amp; . ~/.bashrc&#39; &gt;&gt; ~/.profile<br>source ~/.bashrc</pre><p>~/.local/bin is where Herdr, Claude Code and OpenCode install. ~/.npm-global/bin is where npm tools go (Step 3).</p><h3>Step 2: Install Herdr on both machines</h3><p>Herdr has two halves. The <strong>server </strong>runs on the VPS and keeps your terminals and agents alive. The <strong>client </strong>on your PC only draws the screen. SSH does not copy programs, so Herdr must be installed on the VPS as well as on your PC.</p><ol><li><strong>PC -&gt; client:</strong> install Herdr following <a href="https://herdr.dev/">herdr.dev</a> (Windows support is in beta at the time of writing).</li><li><strong>VPS -&gt; server:</strong> install it from your PC in one command:</li></ol><p>Then run this commands to connect to the openrig system</p><pre>ssh &lt;user&gt;@&lt;server&gt; &quot;curl -fsSL https://herdr.dev/install.sh | sh&quot;<br><br># isntall tmux to manage the agents in different terminals<br>ssh root@&lt;server&gt; &quot;apt-get update &amp;&amp; apt-get install -y tmux&quot;</pre><p>install the hardness like opencode, pi, claude code or codex using cli(terminal)</p><p>this its how i install the openrig service</p><pre>npm install -g @openrig/cli<br>rig setup --dry-run   # shows what it will change<br>rig setup<br>rig doctor</pre><p>This its how i manage the app i put the projects i will be managing with openrig inside projects and then in teams i should be seeing the teams of agent to group them as an organization</p><pre>/home/node/<br>├── openrig-teams/   your team definitions (rig.yaml files)<br>└── projects/        code the agents work on, one folder per project</pre><p>From now on, open terminal panes on the VPS from Herdr. Everything you type there runs on the server and keeps running when you disconnect.</p><h3>Step 3: Start OpenRig and launch your teams</h3><p><strong>VPS, start the OpenRig daemon:</strong></p><pre>rig daemon start</pre><p>OpenRig’s own kernel team (its operator and helpers) starts with it. Your teams do not appear until you launch them: copying a folder does not register anything, and each rig up starts exactly one team.</p><p><strong>VPS, launch a team.</strong> Give each team its own working folder, even an empty one, so agents do not work in your home folder:</p><pre># create a folder<br>mkdir -p ~/projects/growth-work<br><br>#create a team with a plan <br>rig up ~/openrig-teams/growth/rig.yaml --cwd ~/projects/growth-work --plan   # preview<br><br># this just create a team <br>rig up ~/openrig-teams/growth/rig.yaml --cwd ~/teams<br><br><br># to get down a team use this one<br>rig down &lt;team&gt;</pre><p>New seats show <strong>needs you</strong> until you answer Claude’s first-launch question (usually “trust this folder?”). Select the seat, choose <strong>term</strong>, and answer. When you later have a git repo, clone it into the team’s empty folder, or restart the team with rig down &lt;team&gt; and a new --cwd.</p><h3>Step 4: Install and run OpenRig Space, the 3D office</h3><p>OpenRig Space is public: <a href="https://github.com/auszed/OpenRig_Space">github.com/auszed/OpenRig_Space</a>. It is built with Svelte 5, Threlte (three.js) and Bun, and runs on the VPS next to OpenRig.</p><p><strong>VPS, in a new Herdr pane:</strong></p><pre>cd ~/projects<br>git clone https://github.com/auszed/OpenRig_Space.git<br>cd OpenRig_Space<br>npm install -g bun        # Bun runtime, into ~/.npm-global<br>bun install               # first time only<br>bun run build             # builds the frontend<br>rig daemon start          # fine if it says it is already running<br>bun run start             # serves http://127.0.0.1:16877</pre><p>Leave this pane running. Because it lives in Herdr, the office keeps running after you detach or close your laptop.</p><p>Settings, as environment variables before bun run start:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/838/1*PpLxgvRFYzck6JyZRV9q-Q.png" /></figure><p>The server only listens on 127.0.0.1in the VPS server and only answers requests addressed to localhost, so it cannot be reached from the internet. You reach it through a tunnel in the next step.</p><h3>Step 5: Open the office from your PC through an SSH tunnel</h3><p>A tunnel makes port 16877 on your PC lead to port 16877 on the VPS, over your normal SSH login.</p><p><strong>PC:</strong></p><pre>ssh -N -L 16877:127.0.0.1:16877&lt;user&gt;@&lt;server&gt;</pre><p>The command prints nothing and seems to hang. That is correct: the tunnel is open while it runs. Leave the window open and browse to <a href="http://localhost:47831."><strong>http://localhost:</strong></a>16877<a href="http://localhost:47831.">.</a> Press Ctrl+C to close it.</p><p>To make it a one-word command, add this to ~/.ssh/config on your PC (on Windows, C:\Users\&lt;you&gt;\.ssh\config), then run ssh -N office:</p><pre>Host office<br>  HostName &lt;server&gt;<br>  User &lt;user&gt;<br>  IdentityFile ~/.ssh/&lt;your-key&gt;<br>  LocalForward 16877127.0.0.1:16877</pre><p><strong>If your provider uses a tunnel or proxy command for SSH</strong> (Agent37 does), keep using the provider’s full hostname, such as node@&lt;id&gt;.agent37.app, in the ssh -N -L command instead of a short alias. That is what makes your SSH config start the provider&#39;s tunnel.</p><p>In the office, each agent is a character at a desk: typing means working, still means idle, an orange bubble means it needs you, grey means unknown. Click one to read its screen, see its tasks or type it a message. Its message box and answer buttons act on the real agent, so clicking “Yes” really approves the command shown.</p><h3>Wrap-up</h3><p>The daily routine is three commands. On the VPS: rig daemon start, then bun run start in ~/projects/OpenRig_Space (both in Herdr panes, so they survive disconnects). On your PC: ssh -N -L 16877:127.0.0.1:16877&lt;user&gt;@&lt;server&gt;, then open <a href="http://localhost:47831.">http://localhost:16877</a></p><p>OpenRig Space is open source under Apache-2.0. Themes and the floor plan are plain data, so you can restyle the office or add rooms; see the repo’s README.</p><h3>Sources</h3><ul><li><a href="https://github.com/auszed/OpenRig_Space">OpenRig Space repository</a></li><li><a href="https://github.com/mvschwarz/openrig">OpenRig README</a></li><li><a href="https://herdr.dev/docs/how-to-work/">Herdr: how to work with Herdr</a></li><li><a href="https://code.claude.com/docs/en/setup">Claude Code setup</a></li><li><a href="https://opencode.ai/v2/docs/">OpenCode 2 docs</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1bca30b60bcd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The LLM “Impossible Trinity”: Navigating Trade-offs in 2026]]></title>
            <link>https://medium.com/@hannsflip/the-llm-impossible-trinity-navigating-trade-offs-in-2026-3a22c6e3d8e5?source=rss-f1893bbf2c3d------2</link>
            <guid isPermaLink="false">https://medium.com/p/3a22c6e3d8e5</guid>
            <dc:creator><![CDATA[Hanns Juarez]]></dc:creator>
            <pubDate>Sun, 08 Feb 2026 11:58:23 GMT</pubDate>
            <atom:updated>2026-02-08T12:04:03.802Z</atom:updated>
            <content:encoded><![CDATA[<p>When writing your post, you’ll want to focus on the <strong>“AI Decision Triangle”</strong></p><p>In the world of AI engineering, you generally have to pick two: <strong>Cheap, Fast, or Accurate.</strong> If you want all three, you usually have to compromise on a fourth, hidden factor.</p><p>Based on the latest research and industry trends for 2026, here is the breakdown of the primary and secondary trade-offs you can use for your post.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dgZxaY77FIBtoxAGmQqdxQ.jpeg" /><figcaption>Image made with Gemini</figcaption></figure><h3>1. The Core Trade-off: The “Impossible” Triangle</h3><p>This is the framework your customers are likely struggling with. You can’t maximize one without pulling away from the others:</p><ul><li><strong>Cheap + Fast = Lower Accuracy:</strong> This is the realm of “Small Language Models” (SLMs) or heavily compressed (quantized) models. They respond instantly and cost almost nothing, but they might “hallucinate” more or fail at complex reasoning.</li><li><strong>Fast + Accurate = High Cost:</strong> This requires massive hardware (GPUs) or premium API tiers. You’re essentially paying a “speed premium” to have a high-intelligence model respond without delay.</li><li><strong>Accurate + Cheap = High Latency (Slow):</strong> This is often achieved through “Inference-Time Compute” (like OpenAI’s o1 or Anthropic’s “thinking” models). The model “thinks” longer to get the right answer, or you use “chains of thought” that require multiple slow steps to save on using a more expensive single-shot model.</li></ul><h3>2. The “Hidden” Trade-offs</h3><p>Beyond the big three, my research found three additional trade-offs that experts are discussing right now:</p><h4>A. Context Density vs. Quality (The “Lost in the Middle” Problem)</h4><p>Customers often want to feed the LLM thousands of pages of data (<strong>RAG</strong>).</p><ul><li><strong>The Trade-off:</strong> The more data you cram into the “context window” to make it <strong>Accurate</strong>, the <strong>Slower</strong> it gets (latency increases linearly with context) and the more it <strong>Costs</strong>. Furthermore, models often “forget” information in the middle of long documents, meaning more context can actually lead to <em>less</em> accuracy.</li></ul><p>The higher the tokens it pass the less memory its normally this its encode using the positional encoder in the LLMs in the x access we had the memry of the past tokens so this could impact in the specific answer of the LLMs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*fM5bb-kY2miamYUk.png" /><figcaption>Imge extracted from this post and make reference to the Positional Encoding. <a href="https://kazemnejad.com/blog/transformer_architecture_positional_encoding/">https://kazemnejad.com/blog/transformer_architecture_positional_encoding/</a></figcaption></figure><h4>B. Specificity vs. Generalization</h4><ul><li><strong>The Trade-off:</strong> If you fine-tune a model to be 100% <strong>Accurate</strong> for a specific task (like legal coding), it often loses its “general intelligence.” It becomes a “stochastic parrot” for your specific niche but can no longer handle creative or edge-case tasks. We often add some layers or just retrain the model passing the new information to update the weights but this will change the overall behavior of the model.</li></ul><h4>C. Privacy vs. Performance</h4><ul><li><strong>The Trade-off:</strong> Local, on-device LLMs provide maximum <strong>Privacy</strong> and can be <strong>Cheap</strong> (no API fees), but they are limited by the user’s hardware. Moving to the cloud gives you the <strong>Speed</strong> and <strong>Accuracy</strong> of massive server farms but forces you to trade off data privacy.</li></ul><h3>Pro-tip for your Post: “The Sweet Spot”</h3><p>You might want to mention that the industry is moving toward <strong>“Model Routing.”</strong> Instead of one LLM for everything, smart systems use a “Cheap/Fast” model for simple questions (like “Hello”) and only “wake up” the “Accurate/Expensive” model for hard logic. This is the only way to “cheat” the triangle!</p><p>Instead of chasing a “perfect” model that doesn’t exist, the goal is to build an <strong>orchestrator</strong>. This system analyzes the user’s intent and decides exactly how much “intelligence” to buy for that specific request. It’s about getting the best possible answer within the constraints of your budget.</p><h4>Quality through Complexity (and its Risks)</h4><p>If a customer demands high accuracy, you can force the LLM to follow strict guidelines within a massive prompt and then have a second “agent” verify the output. While this significantly improves accuracy, it comes with two major warnings:</p><ol><li><strong>Token Consumption:</strong> Costs will scale quickly as you add more layers.</li><li><strong>The Complexity Trap:</strong> Adding too many steps increases the surface area for hallucinations. Every additional link in the chain is a potential point of failure.</li></ol><h4>The Solution: Small, Reliable Agents</h4><p>Whenever possible, lean on <strong>simple logic</strong>. Before jumping to a complex LLM chain, use traditional <strong>NLP tools</strong> to analyze keywords and intent — sometimes a simple script can grasp the right answer faster and more reliably than a generative model.</p><ul><li>NLTK</li><li>Spacy</li></ul><h4>The “Bottom-Up” Philosophy</h4><p>If you take one thing away from this post, let it be this: <strong>Scale from small to large.</strong></p><p>Just like the history of computer systems, architecture should be modular. Start with a single agent. If you find the prompt is becoming too bloated or the document load is too heavy for the model to process accurately, break it down. Separate the tasks into smaller sections using specialized agents with specific tools.</p><blockquote><strong><em>Modular design isn’t just a coding best practice it’s the way to keep LLMs reliable.</em></strong></blockquote><p><strong>I’d love to hear your thoughts in the comments! How are you balancing agent complexity with your token budget? I’ll be reading and responding to your insights.</strong></p><h3>References :</h3><blockquote><strong>Research Paper : </strong><a href="https://arxiv.org/abs/1706.03762"><strong>Attention is all you need</strong></a></blockquote><blockquote><a href="https://medium.com/@sachinsoni600517/positional-encoding-in-transformer-2cc4ec703076">Positional Encoding in Transformer</a></blockquote><blockquote><a href="https://towardsdatascience.com/why-and-how-to-achieve-longer-context-windows-for-llms-5f76f8656ea9/">Why and How to Achieve Longer Context Windows for LLMs</a></blockquote><blockquote><a href="https://arxiv.org/pdf/2410.05076">TIDALDECODE: FAST AND ACCURATE LLM DECODING WITH POSITION PERSISTENT SPARSE ATTENTION</a> Example on how the Qkv works</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3a22c6e3d8e5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Zero to Local AI: Running OpenCode with Ollama on Your Machine]]></title>
            <link>https://medium.com/@hannsflip/from-zero-to-local-ai-running-opencode-with-ollama-on-your-machine-8a12cc4f551e?source=rss-f1893bbf2c3d------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a12cc4f551e</guid>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[llm-applications]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[ollama]]></category>
            <dc:creator><![CDATA[Hanns Juarez]]></dc:creator>
            <pubDate>Sun, 16 Nov 2025 10:47:21 GMT</pubDate>
            <atom:updated>2025-11-16T10:54:28.757Z</atom:updated>
            <content:encoded><![CDATA[<p>Setting up a local AI coding assistant can feel intimidating, but with OpenCode and Ollama, you can have a powerful coding companion running entirely on your machine, no API keys, no cloud costs, complete privacy. In this guide, I’ll walk you through the entire process from scratch.</p><h3>Why OpenCode + Ollama?</h3><p>Before diving into the setup, let’s understand what we’re building. OpenCode is a command-line tool for agentic coding that delegates tasks to AI models. Ollama lets you run open-source language models locally. Together, they create a fully self-contained development environment that never leaves your computer.</p><p>The benefits are clear: privacy, no subscription costs, offline capability, and the ability to experiment with different models instantly.</p><h3>Prerequisites</h3><p>You’ll need:</p><ul><li>A computer with at least 8GB RAM (16GB+ recommended for larger models)</li><li>A GPU is helpful but not required</li><li>Basic command-line familiarity</li><li>About 30 minutes for the complete setup</li></ul><h3>Step 1: Install Ollama</h3><p>Start by downloading and installing Ollama for your operating system.</p><p><strong>For macOS and Windows:</strong> Head to <a href="https://ollama.ai/">ollama.ai</a> and download the installer. Run it and follow the prompts. The installation is straightforward and similar to any other application.</p><p><strong>For Linux:</strong> Open your terminal and run:</p><pre>curl https://ollama.ai/install.sh | sh</pre><p>Once installed, verify it’s working by opening a terminal and typing:</p><pre>ollama --version</pre><h3>Step 2: Install OpenCode</h3><p>OpenCode is installed via npm, so you’ll need Node.js first if you don’t have it.</p><p><strong>Install Node.js:</strong> Download from <a href="https://nodejs.org/">nodejs.org</a>. Choose the LTS version.</p><p><strong>Install OpenCode:</strong> Once Node.js is installed, open your terminal and run:</p><pre>npm install -g opencode</pre><p>Verify the installation:</p><pre>opencode --version</pre><h3>Step 3: Pull Your First Model</h3><p>Now comes the fun part. Ollama has a library of open-source models ready to download. We’ll start with Dolphin 3, which has excellent tool-calling support for coding tasks.</p><p>Open your terminal and run:</p><pre>ollama pull dolphin3:latest</pre><p>This downloads the model (usually 2–8GB depending on the model). Grab a coffee — this takes a few minutes depending on your internet speed.</p><p>Want to add more models? Pull them now:</p><pre>ollama pull deepseek-r1:1.5b</pre><p>You can explore more models at <a href="https://ollama.ai/models">ollama.ai/models</a>.</p><h3>Step 4: Start the Ollama Server</h3><p>Before using OpenCode, you need Ollama running in the background. Open a terminal window and run:</p><pre>ollama serve</pre><p>You’ll see output showing Ollama is listening on http://127.0.0.1:11434. Keep this terminal window open while you use OpenCode.</p><h3>Step 5: Configure OpenCode</h3><p>This is the critical step where everything comes together. Create or edit your OpenCode configuration file.</p><p><strong>Locate the config file:</strong></p><ul><li><strong>macOS/Linux:</strong> ~/.config/opencode/config.json</li><li><strong>Windows:</strong> %USERPROFILE%\.config\opencode\config.json</li></ul><p>If the directory doesn’t exist, create it.</p><p><strong>Create/edit config.json:</strong></p><pre>{<br>  &quot;$schema&quot;: &quot;https://opencode.ai/config.json&quot;,<br>  &quot;model&quot;: &quot;ollama/dolphin3:latest&quot;,<br>  &quot;provider&quot;: {<br>    &quot;ollama&quot;: {<br>      &quot;npm&quot;: &quot;@ai-sdk/openai-compatible&quot;,<br>      &quot;name&quot;: &quot;Ollama&quot;,<br>      &quot;options&quot;: {<br>        &quot;baseURL&quot;: &quot;http://127.0.0.1:11434/v1&quot;<br>      },<br>      &quot;models&quot;: {<br>        &quot;dolphin3:latest&quot;: {<br>          &quot;name&quot;: &quot;dolphin3:latest&quot;,<br>          &quot;reasoning&quot;: true,<br>          &quot;tools&quot;: true<br>        },<br>        &quot;deepseek-r1:1.5b&quot;: {<br>          &quot;name&quot;: &quot;deepseek-r1:1.5b&quot;,<br>          &quot;reasoning&quot;: true,<br>          &quot;tools&quot;: true<br>        }<br>      }<br>    }<br>  }<br>}</pre><p>Let me break down what each part does:</p><ul><li><strong>&quot;model&quot;: &quot;ollama/dolphin3:latest&quot;</strong> — Your default model. Change this to switch which model OpenCode uses by default.</li><li><strong>&quot;baseURL&quot;: &quot;http://127.0.0.1:11434/v1&quot;</strong> — Points to your local Ollama server. This is crucial on Windows—use 127.0.0.1 instead of localhost.</li><li><strong>&quot;models&quot; section</strong> — Lists all available models. You can add as many as you want here.</li></ul><h3>Step 6: Test Your Setup</h3><p>Now for the moment of truth. Open a new terminal (keep the Ollama server running in another window) and try:</p><pre>opencode &quot;write a hello world function in Python&quot;</pre><p>If everything is configured correctly, you’ll see OpenCode start using your local Dolphin 3 model to generate code.</p><h3>Step 7: Using Multiple Models</h3><p>Want to switch models? Easy. Use the --model flag:</p><pre>opencode --model ollama/deepseek-r1:1.5b &quot;create a REST API in Node.js&quot;</pre><p>Or change your default in the config file and run normally:</p><pre>opencode &quot;your prompt here&quot;</pre><h3>Troubleshooting Common Issues</h3><p><strong>Error: “Unable to connect. Is the computer able to access the url?”</strong></p><p>Make sure your Ollama server is running (ollama serve in another terminal) and your config uses http://127.0.0.1:11434/v1 on Windows.</p><p><strong>Error: “Model not found”</strong></p><p>Pull the model first: ollama pull deepseek-r1:1.5b</p><p><strong>Slow responses</strong></p><p>This depends on your hardware. Smaller models (1.5B-8B parameters) run faster on consumer hardware. Larger models need more VRAM.</p><h3>Performance Tips</h3><ul><li><strong>Start small:</strong> Test with smaller models (1.5B-8B) before moving to larger ones</li><li><strong>GPU acceleration:</strong> If you have an NVIDIA GPU, Ollama automatically uses CUDA for faster inference</li><li><strong>Context window:</strong> You can increase the context window for better understanding of longer code, but it uses more memory</li><li><strong>Keep one model loaded:</strong> Set OLLAMA_KEEP_ALIVE to control how long models stay in memory</li></ul><h3>Next Steps</h3><p>Now that you have a working setup, explore what’s possible:</p><ul><li>Try different models and see which works best for your coding style</li><li>Experiment with prompts to get better code suggestions</li><li>Combine OpenCode with your IDE for a smooth workflow</li><li>Customize your config to add more models as you discover them</li></ul><h3>What Can You Build With This Setup?</h3><p>Now that you have a fully functional local AI development environment, let’s explore what’s actually possible. This setup is incredibly versatile and can handle a wide range of development tasks.</p><h3>Web Development</h3><p>Build full-stack applications with guidance from your AI assistant. OpenCode can help you scaffold React components, write backend APIs in Node.js or Python, set up databases, and debug issues — all without leaving your terminal. Perfect for prototyping startups or learning new frameworks.</p><h3>Data Science &amp; Analytics</h3><p>Process datasets, write data cleaning scripts, build machine learning models, and create visualizations. Your local AI can help you write pandas operations, matplotlib charts, and even scikit-learn pipelines. Everything stays on your machine, which is great for handling sensitive data.</p><h3>Automation Scripts</h3><p>Create scripts to automate repetitive tasks on your computer. From batch file processing to system administration scripts to API integrations, OpenCode can help you write robust automation without relying on cloud services.</p><h3>Mobile App Development</h3><p>Generate boilerplate code for React Native or Flutter apps. Your AI assistant can help with state management, navigation setup, and component architecture — accelerating your mobile development process significantly.</p><h3>DevOps &amp; Infrastructure</h3><p>Write Docker configurations, Kubernetes manifests, CI/CD pipelines, and infrastructure-as-code templates. The AI can help you understand best practices and generate deployment scripts tailored to your needs.</p><h3>Game Development</h3><p>Whether you’re using Unity, Godot, or custom JavaScript game engines, OpenCode can help with game logic, physics calculations, and asset management scripts. Great for game jams and prototyping.</p><h3>Open Source Contributions</h3><p>Help maintain open source projects by generating documentation, writing tests, fixing bugs, or implementing features. Your local setup means you can iterate quickly without worrying about API rate limits.</p><h3>Educational Projects</h3><p>Learning a new programming language? Building a portfolio? Creating tutorials? OpenCode accelerates your learning by providing instant code suggestions and explanations.</p><h3>Conclusion</h3><p>You now have a fully functional, local AI coding assistant. No cloud dependencies, no API costs, no data leaving your machine. This is the future of development tools — powerful, private, and accessible.</p><p>The beauty of this setup is its flexibility. As better models are released and added to Ollama, you can simply pull them and start using them. Welcome to local AI development.</p><p>Happy coding!</p><p><em>Have questions or run into issues? Share them in the comments below, and I’ll help troubleshoot.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a12cc4f551e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>