<?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 Yavuz Selim Şen on Medium]]></title>
        <description><![CDATA[Stories by Yavuz Selim Şen on Medium]]></description>
        <link>https://medium.com/@yavuzselimice?source=rss-5a191dc74988------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*q3tMPowl0FUi8DHw</url>
            <title>Stories by Yavuz Selim Şen on Medium</title>
            <link>https://medium.com/@yavuzselimice?source=rss-5a191dc74988------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 17:58:04 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@yavuzselimice/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[Keep Coding When You Hit a Usage Limit: Wiro + OpenCode]]></title>
            <link>https://medium.com/@yavuzselimice/keep-coding-when-you-hit-a-usage-limit-wiro-opencode-588913998135?source=rss-5a191dc74988------2</link>
            <guid isPermaLink="false">https://medium.com/p/588913998135</guid>
            <category><![CDATA[ai-coding]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Yavuz Selim Şen]]></dc:creator>
            <pubDate>Sat, 03 Oct 2026 23:12:11 GMT</pubDate>
            <atom:updated>2026-10-03T23:12:11.154Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PgsXXopYcgiHnJ-vPTWJeg.png" /></figure><h3>A practical Windows setup for using Wiro credits to read files, edit code, and run tests with OpenCode</h3><p>Running into an AI coding tool’s usage limit halfway through a feature or bug fix is frustrating. I had credits sitting in Wiro and wanted to find out whether I could use them to keep working on local projects.</p><p>The setup that worked was straightforward: <strong>add Wiro to OpenCode as a custom model provider.</strong> OpenCode supplies the coding tools, while Wiro handles the model requests. I could chat with a model, have it read project files, make changes, and run tests in my terminal. There was no need to fork OpenCode, write a plugin, or build a separate agent engine.</p><p>In my Windows test, Claude Opus 5 fixed a broken function and turned three failing tests into three passing tests. With GPT 5.6 Sol, I also verified file reading, file creation, and test execution. My separate Opus 5.5 check was narrower: I verified a file-reading tool call, not a complete edit-and-test cycle.</p><p>This setup does not reset another subscription’s limit. <strong>Model calls are billed against your Wiro balance, and Wiro’s own access and usage limits still apply.</strong> I see it as another way to continue working when I need it. <a href="https://wiro.ai/llm">Wiro Gateway</a>, <a href="https://wiro.ai/docs/pricing">Wiro pricing</a></p><p>The instructions below are based on my tests on <strong>October 4, 2026, using Windows and OpenCode 1.18.34</strong>. PowerShell is the main path; I have included the relevant macOS and Linux differences.</p><p>All commands and the complete configuration are included below, so there is no separate setup file to download.</p><h3>1. Install Node.js and OpenCode</h3><p>Open PowerShell from the Windows Start menu and run:</p><pre>node --version<br>npm.cmd --version</pre><p>Both commands should print a version number. npm.cmd avoids PowerShell execution-policy errors that can affect npm.ps1. If either command is unavailable, install <a href="https://nodejs.org/en/download">Node.js LTS</a>, close the terminal, open a new one, and check again.</p><p>If OpenCode is not installed, run:</p><pre>npm.cmd install -g opencode-ai@1.18.34<br>opencode --version</pre><p>Here, opencode-ai@1.18.34 means the package name followed by its pinned version; it is not an email address. I have pinned it to match the tested setup. If you already use OpenCode, check opencode --version before changing your installation. On macOS or Linux, use npm instead of npm.cmd. Other installation methods are covered in the <a href="https://opencode.ai/docs/">official documentation</a>.</p><p><strong>Version compatibility:</strong> This article uses the V1 configuration format, including provider, npm, and options. The V2 migration documentation says supported V1 settings can be read, but my live tests were on V1. Keep this example in its original format rather than mixing V1 and V2 field names. <a href="https://opencode.ai/v2/docs/migrate-v1/">V1 migration guide</a></p><h3>2. Get your Wiro project credentials</h3><p>Sign in to the <a href="https://wiro.ai/panel">Wiro dashboard</a>. Under <strong>Projects → New Project</strong>, create a project such as OpenCode, or use a suitable existing project. Choose an authentication method and save the displayed credentials securely; the secret may not be shown again. <a href="https://wiro.ai/docs/projects">Wiro projects</a></p><p>The value you will enter in OpenCode depends on that method:</p><ul><li><strong>API Key Only:</strong> Enter your API key alone.</li><li><strong>Signature-Based:</strong> Enter your API key and secret together, separated by a colon.</li></ul><p>The format for the second option is:</p><pre>API_KEY:API_SECRET</pre><p>Replace both placeholders with your own values. Do not add quotation marks, spaces, line breaks, or a Bearer prefix. OpenCode builds the HTTP header. This is authentication for Wiro&#39;s <strong>Direct LLM Gateway</strong>; do not apply the HMAC signing steps from its separate Run API. <a href="https://wiro.ai/docs/completions-api">Gateway authentication</a></p><p>Keep credentials out of posts, screenshots, and Git repositories. The configuration below deliberately contains no key.</p><h3>3. Create a small test folder</h3><p>Start with an empty folder, separate from your real project. If wiro-test already exists and contains files, use another name in both commands:</p><pre>New-Item -ItemType Directory -Force &quot;$HOME\Documents\wiro-test&quot; | Out-Null<br>Set-Location &quot;$HOME\Documents\wiro-test&quot;<br>notepad opencode.json</pre><p>Allow Notepad to create the file if prompted. Paste the entire JSON below and save it. Copy only the content from the opening { through the closing }.</p><p>The filename must be <strong>opencode.json</strong>, not opencode.json.txt. Enable filename extensions in File Explorer if you need to check.</p><p>On macOS or Linux, run mkdir -p ~/wiro-test, then cd ~/wiro-test, and create the same file with your editor. It belongs in the project&#39;s root directory. <a href="https://opencode.ai/docs/config/">Configuration locations</a></p><pre>{<br>  &quot;$schema&quot;: &quot;https://opencode.ai/config.json&quot;,<br>  &quot;model&quot;: &quot;wiro/claude/opus-5&quot;,<br>  &quot;small_model&quot;: &quot;wiro/openai/gpt-5-4-mini&quot;,<br>  &quot;enabled_providers&quot;: [&quot;wiro&quot;],<br>  &quot;share&quot;: &quot;disabled&quot;,<br>  &quot;permission&quot;: {<br>    &quot;edit&quot;: &quot;ask&quot;,<br>    &quot;bash&quot;: &quot;ask&quot;<br>  },<br>  &quot;provider&quot;: {<br>    &quot;wiro&quot;: {<br>      &quot;npm&quot;: &quot;@ai-sdk/openai-compatible&quot;,<br>      &quot;name&quot;: &quot;Wiro&quot;,<br>      &quot;options&quot;: {<br>        &quot;baseURL&quot;: &quot;https://llm.wiro.ai/v1&quot;,<br>        &quot;timeout&quot;: 180000<br>      },<br>      &quot;models&quot;: {<br>        &quot;claude/opus-5&quot;: {<br>          &quot;name&quot;: &quot;Wiro - Claude Opus 5&quot;,<br>          &quot;tool_call&quot;: true,<br>          &quot;temperature&quot;: false,<br>          &quot;limit&quot;: { &quot;context&quot;: 200000, &quot;output&quot;: 8192 }<br>        },<br>        &quot;claude/opus-5-5&quot;: {<br>          &quot;name&quot;: &quot;Wiro - Claude Opus 5.5&quot;,<br>          &quot;tool_call&quot;: true,<br>          &quot;temperature&quot;: false,<br>          &quot;modalities&quot;: { &quot;input&quot;: [&quot;text&quot;], &quot;output&quot;: [&quot;text&quot;] },<br>          &quot;limit&quot;: { &quot;context&quot;: 200000, &quot;output&quot;: 8192 }<br>        },<br>        &quot;openai/gpt-5-6-sol&quot;: {<br>          &quot;name&quot;: &quot;Wiro - GPT 5.6 Sol&quot;,<br>          &quot;tool_call&quot;: true,<br>          &quot;temperature&quot;: false,<br>          &quot;limit&quot;: { &quot;context&quot;: 200000, &quot;output&quot;: 8192 }<br>        },<br>        &quot;openai/gpt-5-4-mini&quot;: {<br>          &quot;name&quot;: &quot;Wiro - GPT 5.4 Mini&quot;,<br>          &quot;tool_call&quot;: true,<br>          &quot;temperature&quot;: false,<br>          &quot;limit&quot;: { &quot;context&quot;: 200000, &quot;output&quot;: 8192 }<br>        }<br>      }<br>    }<br>  }<br>}</pre><p><strong>Provider and permissions:</strong> This example restricts the initial session to Wiro models. small_model also routes auxiliary work, such as title generation, through Wiro. File edits and terminal commands require approval because of the explicit permission settings; read each requested action before approving it. <a href="https://opencode.ai/docs/config/#models">Model settings</a>, <a href="https://opencode.ai/docs/permissions/">permissions</a></p><p><strong>Model limits:</strong> The 200,000-token context and 8,192-token output values are application limits chosen for this test, not claims about the models’ maximum capabilities. The Opus 5.5 API response had empty context and pricing fields. Check current model information before raising these limits for longer tasks.</p><p><strong>Gateway address:</strong> Use https://llm.wiro.ai/v1. Do not append /chat/completions; the client adds it. A URL beginning with https://api.wiro.ai/v1/Run/ belongs to a different API flow. <a href="https://opencode.ai/docs/providers/#custom-provider">Custom providers</a>, <a href="https://wiro.ai/llm">Wiro Gateway</a></p><h3>4. Connect Wiro inside OpenCode</h3><p>From the same folder, run:</p><pre>opencode --pure</pre><p>--pure starts the initial test without loading external plugins. Wiro does not require one.</p><p>Once OpenCode opens, enter this in its message field:</p><pre>/connect</pre><p>Choose <strong>Other</strong>, enter <strong>wiro</strong> as the provider ID, and paste the credential value from step 2 into the API key field. If Wiro is already connected, you only need to repeat this when updating the credential.</p><p>/connect saves the credential; the JSON file defines the models. Both /connect and /models are commands <strong>inside OpenCode</strong>, not PowerShell commands. <a href="https://opencode.ai/docs/providers/#custom-provider">Connection instructions</a></p><h3>5. Select a Wiro model</h3><p>Inside OpenCode, enter:</p><pre>/models</pre><p>Search for wiro and choose <strong>Wiro - Claude Opus 5</strong> for the first test. Check the provider name so you select the Wiro entry.</p><p>The configuration also lists Opus 5.5, GPT 5.6 Sol, and GPT 5.4 Mini. Appearing in the menu does not guarantee that your account can run a model: access and balance are checked when you make a request.</p><p>If the list is empty, close OpenCode and reopen it <strong>from the folder containing </strong><strong>opencode.json</strong>. You can also inspect the loaded model list from PowerShell:</p><pre>opencode models wiro --pure</pre><p>One expected identifier is wiro/claude/opus-5. <a href="https://opencode.ai/docs/cli/">CLI reference</a></p><h3>6. Verify an actual coding workflow</h3><p>Use <strong>Build</strong> mode. If the interface shows <strong>Plan</strong>, press Tab to switch. Plan mode is for planning and review; this test needs file changes. <a href="https://opencode.ai/docs/agents/">OpenCode agents</a></p><p>Send this prompt:</p><blockquote>Create a small Node.js example in this folder without external packages. In sum.cjs, export a sum(a, b) function that adds two numbers using CommonJS. In sum.test.cjs, write three tests for positive numbers, negative numbers, and zero using Node’s built-in node:test and node:assert/strict modules. Then actually run node — test sum.test.cjs. If a test fails, fix the problem and run it again. Work only in this folder; do not read API keys or other private files. Report how many tests passed.</blockquote><p>Approve the file and terminal actions belonging to this test. Success means two files exist in the folder and the terminal reports <strong>3 passing tests and 0 failures</strong>.</p><p>To check independently, enter /exit in OpenCode or open another terminal in the same folder, then run:</p><pre>node --test sum.test.cjs</pre><p>Inspect the files in your editor as well. A successful chat response alone does not verify that the files were written or the tests ran.</p><h3>7. Move the setup into your project</h3><p>After the test works, copy opencode.json into your project&#39;s root directory and open a terminal there. The key is read from OpenCode&#39;s local credential store; it is not in this file.</p><p>If the project already has opencode.json or opencode.jsonc, back it up and merge the settings. Add the wiro object inside the existing provider object; do not create a duplicate provider key. Check commas carefully. Preserve existing entries in enabled_providers when adding wiro, and remove wiro from disabled_providers if present. Set small_model to wiro/openai/gpt-5-4-mini if you want auxiliary calls to use Wiro too. Project settings can override global settings. <a href="https://opencode.ai/docs/config/">Configuration merging</a></p><p>With the credential saved, launch your chosen model directly:</p><pre>opencode --model wiro/claude/opus-5</pre><p>For GPT 5.6 Sol:</p><pre>opencode --model wiro/openai/gpt-5-6-sol</pre><p>For Opus 5.5:</p><pre>opencode --model wiro/claude/opus-5-5</pre><p>For a global setup, merge the provider definition into ~/.config/opencode/opencode.json, or %USERPROFILE%\.config\opencode\opencode.json on Windows. Back up any existing file first. The example&#39;s enabled_providers setting hides other providers; leave that restriction out of your global configuration if you use several providers.</p><h3>Troubleshooting</h3><ul><li><strong>Command not found:</strong> Open a fresh terminal after installation and rerun the Node.js and OpenCode version checks.</li><li><strong>PowerShell blocks a </strong><strong>.ps1 file:</strong> Use npm.cmd and opencode.cmd without changing the global execution policy.</li><li><strong>Configuration is invalid:</strong> Check JSON commas and brackets, and remove any accidentally copied Markdown fences.</li><li><strong>Wiro models are missing:</strong> Check the filename, working directory, and matching wiro provider ID in the file and /connect.</li><li><strong>401 or authentication failure:</strong> Confirm the project&#39;s authentication method. Signature-Based requires both key and secret. Check for revoked or incorrectly copied credentials.</li><li><strong>Model missing or access denied:</strong> Check the exact model ID and project or team permissions, especially the spelling claude/opus-5-5.</li><li><strong>The helper model is unavailable:</strong> If you cannot access GPT 5.4 Mini, change small_model to an accessible main model, such as wiro/claude/opus-5 if that model works for your account.</li><li><strong>Insufficient balance or usage limit:</strong> Check Wiro credits and project spending limits.</li><li><strong>429:</strong> Reduce request frequency or concurrent tasks, wait, and retry.</li><li><strong>A delay before output begins:</strong> The first visible response may take time. Check the current Gateway documentation for its streaming behavior.</li><li><strong>Code explanations without file changes:</strong> Check Build mode, requested permissions, and tool-call support.</li><li><strong>Truncated output or a full context:</strong> Break the task into smaller pieces or adjust limits using Wiro’s model information.</li><li><strong>OpenCode shows a </strong><strong>$0 cost:</strong> Pricing metadata may be missing. Check actual usage in Wiro; do not assume the calls are free.</li></ul><p>For request behavior, see the <a href="https://wiro.ai/docs/completions-api">Wiro Gateway documentation</a>. For local issues, see <a href="https://opencode.ai/docs/troubleshooting/">OpenCode troubleshooting</a>.</p><h3>A few practical boundaries</h3><p>The model runs remotely. Relevant code, conversation context, and tool results are sent through the API to generate responses; file edits and terminal commands execute on your computer. A small folder without private data is a useful first test. <a href="https://opencode.ai/docs/tools/">OpenCode tools</a>, <a href="https://wiro.ai/llm">Wiro client-side tools</a></p><p>A task can involve multiple model calls. Long conversations, large files, and repeated attempts can increase credit usage. Monitor the Wiro project usage screen and use supported spending limits to match your budget. <a href="https://wiro.ai/docs/projects">Project usage</a></p><p>Saving a key with /connect creates a persistent local credential. It does not disappear after a test. To remove it, run opencode auth logout wiro in PowerShell. You can also revoke the key in the Wiro dashboard. <a href="https://opencode.ai/docs/providers/#credentials">OpenCode credentials</a></p><p>For me, the benefit is practical: the Wiro balance I already had can also support coding work. With an accessible model and enough credit, I have another route back into the same project when a usage limit interrupts the work.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=588913998135" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Limit doldu, kod yarım kalmasın: Wiro + OpenCode rehberi]]></title>
            <link>https://medium.com/@yavuzselimice/limit-doldu-kod-yar%C4%B1m-kalmas%C4%B1n-wiro-opencode-rehberi-cc43f83a311a?source=rss-5a191dc74988------2</link>
            <guid isPermaLink="false">https://medium.com/p/cc43f83a311a</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[ai-coding]]></category>
            <dc:creator><![CDATA[Yavuz Selim Şen]]></dc:creator>
            <pubDate>Sat, 03 Oct 2026 23:10:39 GMT</pubDate>
            <atom:updated>2026-10-03T23:10:39.881Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x1Gh_fVbGqPeGIHSXvgTIQ.png" /></figure><p>Bir özellik geliştirirken ya da hata çözerken kullandığımız yapay zekâ aracının limitine takılabiliyoruz. Ben de Wiro’da duran kredilerimi böyle zamanlarda kodlama için kullanabilir miyim diye araştırdım.</p><p>Denediğim çözüm: <strong>Wiro’yu OpenCode’a ayrı bir model sağlayıcısı olarak bağlamak.</strong> Böylece Wiro üzerinden seçtiğim modelle sohbet edebiliyor, bilgisayarımdaki proje dosyalarını okutabiliyor, kod düzenletebiliyor ve terminalde test çalıştırabiliyorum. OpenCode’u forklamak, eklenti yazmak veya ayrıca bir agent motoru geliştirmek gerekmedi.</p><p>Windows’taki denememde Claude Opus 5 hatalı bir fonksiyonu düzeltti; başlangıçta başarısız olan üç testin tamamı geçti. GPT 5.6 Sol ile de dosya okuma, test çalıştırma ve dosya oluşturmayı doğruladım. Opus 5.5’i ayrıca dosya okuma aracıyla denedim; onun için yaptığım kontrol daha dar kapsamlıydı.</p><p>Bu yöntem başka bir üyeliğin limitini sıfırlamıyor. <strong>Model çağrıları Wiro bakiyesinden ücretleniyor; Wiro’nun kendi erişim ve kullanım sınırları geçerli.</strong> Ben bunu ihtiyaç anında kullanılabilecek bir B planı olarak görüyorum. <a href="https://wiro.ai/llm">Wiro Gateway</a>, <a href="https://wiro.ai/docs/pricing">ücretlendirme</a></p><p>Bu rehber, kurulumdan ilk dosya düzenleme ve test döngüsüne kadar bütün adımları içeriyor. Gerekli komutlar ve ayar dosyasının tamamı aşağıda; ek dosya indirmen gerekmiyor.</p><p><strong>Kurulum notu:</strong> Bu rehber 4 Ekim 2026’da Windows ve OpenCode <strong>1.18.34</strong> ile yaptığım testlere dayanıyor. Ana anlatım PowerShell için; macOS/Linux farklarını da ilgili adımlara ekledim.</p><h3>1. Bilgisayarında Node.js ve OpenCode olsun</h3><p>Windows’ta Başlat menüsünden <strong>PowerShell</strong> aç. Şu komutları sırayla çalıştır:</p><pre>node --version<br>npm.cmd --version</pre><p>İkisinde de sürüm numarası görmelisin. Komut bulunamazsa <a href="https://nodejs.org/en/download">Node.js’in LTS sürümünü</a> işletim sistemine uygun yükleyiciyle kur. Terminali kapatıp yeniden aç ve tekrar kontrol et.</p><p>OpenCode henüz kurulu değilse:</p><pre>npm.cmd install -g opencode-ai@1.18.34<br>opencode --version</pre><p>Burada sürümü özellikle sabitledim; anlatılan kurulumla aynı sürümü kullanmış olacaksın. OpenCode zaten kuruluysa önce opencode --version ile kontrol et; bu rehber için mevcut kurulumunun üzerine düşünmeden başka sürüm kurma. Windows’ta npm.cmd, npm’in komut dosyasını doğrudan çağırır; bazı PowerShell kurulumlarında görülen .ps1 yürütme ilkesi hatasını önlemek için bu biçimi kullandım. macOS/Linux’ta npm.cmd yerine npm yazılır. opencode-ai@1.18.34 bir paket adı ve sürümüdür; e-posta adresi değildir. <a href="https://opencode.ai/docs/">Resmî kurulum seçenekleri</a></p><p>OpenCode V2 kullanıyorsan aşağıdaki ayarlar <strong>V1 biçimindedir</strong>: provider, npm, options. V2 belgesi desteklenen V1 ayarlarının okunabildiğini belirtiyor; alan adlarını yarım yamalak V2 biçimine çevirmeden kullan. Bu yazıdaki canlı testler V1 üzerinde yapıldı. <a href="https://opencode.ai/v2/docs/migrate-v1/">Sürüm uyumluluğu</a></p><h3>2. Wiro’dan proje API bilgilerini al</h3><p><a href="https://wiro.ai/panel">Wiro paneline</a> giriş yap. <strong>Projects → New Project</strong> bölümünden örneğin OpenCode adında bir proje oluştur; mevcut uygun bir projeni de kullanabilirsin. Kimlik doğrulama yöntemini seç ve gösterilen bilgileri güvenli bir yere kaydet. Secret tekrar gösterilmeyebilir. <a href="https://wiro.ai/docs/projects">Wiro proje oluşturma</a></p><p>OpenCode’un API key alanına yazacağın değer, proje türüne göre değişiyor:</p><ul><li><strong>API Key Only:</strong> Yalnızca kendi API key’in</li><li><strong>Signature-Based:</strong> Kendi API key’in ve secret’ın, aralarında : olacak şekilde</li></ul><p>Signature örneğinin <strong>biçimi</strong> şöyle:</p><pre>API_KEY:API_SECRET</pre><p>Bu bir örnek; kelimelerin yerine kendi değerlerini kullan. Tırnak, boşluk, satır sonu veya başına Bearer ekleme. OpenCode gereken HTTP başlığını kendisi oluşturur. Bu kullanım Direct LLM Gateway içindir; Wiro’nun ayrı Run API’sindeki HMAC imza adımlarını uygulamayacaksın. <a href="https://wiro.ai/docs/completions-api">Gateway kimlik doğrulaması</a></p><p>API bilgilerini gönderiye, ekran görüntüsüne ya da Git deposuna koyma. Aşağıdaki yapılandırma dosyasında bilerek anahtar bulunmuyor.</p><h3>3. İlk deneme için boş bir klasör aç</h3><p>Önce gerçek projenden bağımsız küçük bir deneme yapalım. Belgeler klasöründe daha önce oluşturduğun wiro-deneme varsa içeriğini kontrol et; boş değilse aşağıdaki iki yolda da örneğin wiro-deneme-2 adını kullan. PowerShell’de:</p><pre>New-Item -ItemType Directory -Force &quot;$HOME\Documents\wiro-deneme&quot; | Out-Null<br>Set-Location &quot;$HOME\Documents\wiro-deneme&quot;<br>notepad opencode.json</pre><p>Not Defteri dosyayı oluşturmayı sorarsa onayla. Aşağıdaki JSON’un tamamını dosyaya yapıştırıp kaydet. Yalnızca { ile başlayıp } ile biten içeriği kopyala.</p><p>Dosyanın adı tam olarak <strong>opencode.json</strong> olmalı; opencode.json.txt olmamalı. Dosya Gezgini’nde dosya uzantılarını görünür yaparak kontrol edebilirsin.</p><p>macOS/Linux’ta mkdir -p ~/wiro-deneme ve ardından cd ~/wiro-deneme komutlarını çalıştır; aynı dosyayı kullandığın metin veya kod editörüyle oluştur. Bu dosya projenin kök klasöründe duracak. <a href="https://opencode.ai/docs/config/">Yapılandırma konumları</a></p><pre>{<br>  &quot;$schema&quot;: &quot;https://opencode.ai/config.json&quot;,<br>  &quot;model&quot;: &quot;wiro/claude/opus-5&quot;,<br>  &quot;small_model&quot;: &quot;wiro/openai/gpt-5-4-mini&quot;,<br>  &quot;enabled_providers&quot;: [&quot;wiro&quot;],<br>  &quot;share&quot;: &quot;disabled&quot;,<br>  &quot;permission&quot;: {<br>    &quot;edit&quot;: &quot;ask&quot;,<br>    &quot;bash&quot;: &quot;ask&quot;<br>  },<br>  &quot;provider&quot;: {<br>    &quot;wiro&quot;: {<br>      &quot;npm&quot;: &quot;@ai-sdk/openai-compatible&quot;,<br>      &quot;name&quot;: &quot;Wiro&quot;,<br>      &quot;options&quot;: {<br>        &quot;baseURL&quot;: &quot;https://llm.wiro.ai/v1&quot;,<br>        &quot;timeout&quot;: 180000<br>      },<br>      &quot;models&quot;: {<br>        &quot;claude/opus-5&quot;: {<br>          &quot;name&quot;: &quot;Wiro - Claude Opus 5&quot;,<br>          &quot;tool_call&quot;: true,<br>          &quot;temperature&quot;: false,<br>          &quot;limit&quot;: { &quot;context&quot;: 200000, &quot;output&quot;: 8192 }<br>        },<br>        &quot;claude/opus-5-5&quot;: {<br>          &quot;name&quot;: &quot;Wiro - Claude Opus 5.5&quot;,<br>          &quot;tool_call&quot;: true,<br>          &quot;temperature&quot;: false,<br>          &quot;modalities&quot;: { &quot;input&quot;: [&quot;text&quot;], &quot;output&quot;: [&quot;text&quot;] },<br>          &quot;limit&quot;: { &quot;context&quot;: 200000, &quot;output&quot;: 8192 }<br>        },<br>        &quot;openai/gpt-5-6-sol&quot;: {<br>          &quot;name&quot;: &quot;Wiro - GPT 5.6 Sol&quot;,<br>          &quot;tool_call&quot;: true,<br>          &quot;temperature&quot;: false,<br>          &quot;limit&quot;: { &quot;context&quot;: 200000, &quot;output&quot;: 8192 }<br>        },<br>        &quot;openai/gpt-5-4-mini&quot;: {<br>          &quot;name&quot;: &quot;Wiro - GPT 5.4 Mini&quot;,<br>          &quot;tool_call&quot;: true,<br>          &quot;temperature&quot;: false,<br>          &quot;limit&quot;: { &quot;context&quot;: 200000, &quot;output&quot;: 8192 }<br>        }<br>      }<br>    }<br>  }<br>}</pre><p>Bu örnek ilk denemeyi Wiro modelleriyle sınırlar. small_model, başlık oluşturma gibi yardımcı model işlerinin de Wiro üzerinden yapılmasını sağlar. Dosya değişiklikleri ve terminal komutları için onay ister; seçtiğin işlemi okuyup uygun olanı onayla. Bu onay davranışını özellikle yukarıdaki ayarlara ekledim. <a href="https://opencode.ai/docs/config/#models">Model ayarları</a>, <a href="https://opencode.ai/docs/permissions/">izinler</a></p><p>Buradaki <strong>200.000 bağlam / 8.192 çıktı</strong> değerleri ilk deneme için seçilmiş uygulama sınırlarıdır; modellerin ilan edilen en yüksek kapasiteleri değildir. Özellikle Opus 5.5’in API yanıtında bağlam ve fiyat alanları boştu. Uzun görevlerde sınırları artırmadan önce ilgili modelin güncel bilgilerini kontrol etmek gerekir.</p><p>Bağlantı adresi <strong>https://llm.wiro.ai/v1</strong> olmalı. Sonuna /chat/completions ekleme; istemci ekliyor. https://api.wiro.ai/v1/Run/... ise farklı bir API akışı. <a href="https://opencode.ai/docs/providers/#custom-provider">Özel sağlayıcı ayarları</a>, <a href="https://wiro.ai/llm">Wiro Gateway</a></p><h3>4. OpenCode’u aç ve Wiro anahtarını kaydet</h3><p>Aynı klasörde PowerShell’e şunu yaz:</p><pre>opencode --pure</pre><p>--pure, ilk denemede harici eklentileri yüklemeden açar. Wiro için bir eklenti gerekmez. OpenCode arayüzü açıldıktan sonra mesaj alanına şunu yazıp Enter’a bas:</p><pre>/connect</pre><p>Listeden <strong>Other / Diğer</strong> seç. Sağlayıcı kimliği istendiğinde tam olarak <strong>wiro</strong> yaz. API key alanına 2. adımda hazırladığın değeri yapıştır ve onayla. Daha önce Wiro bağladıysan bu adımı tekrar yapman gerekmez; anahtar değiştiyse güncelle.</p><p><strong>Dikkat:</strong> /connect ve /models komutları PowerShell’e değil, <strong>OpenCode’un içindeki mesaj alanına</strong> yazılır. /connect anahtarı kaydeder; modelleri ise az önce oluşturduğumuz dosya tanımlar. <a href="https://opencode.ai/docs/providers/#custom-provider">OpenCode bağlantı adımları</a></p><h3>5. Wiro modelini seç</h3><p>OpenCode içinde:</p><pre>/models</pre><p>Arama alanına wiro yaz ve ilk deneme için <strong>Wiro - Claude Opus 5</strong> seç. Model adında Wiro yazdığını kontrol et; aynı modelin başka sağlayıcıdaki sürümünü seçme.</p><p>Listede Opus 5.5, GPT 5.6 Sol ve GPT 5.4 Mini de bulunacak. Bir modelin listede görünmesi, hesabının o modeli kesinlikle çalıştırabildiği anlamına gelmez; erişim ve bakiye kontrolü çağrı sırasında da yapılır.</p><p>Liste boşsa OpenCode’u kapatıp <strong>opencode.json dosyasının bulunduğu klasörde</strong> yeniden aç. PowerShell’de şu komut da yapılandırmanın okunup okunmadığını gösterir:</p><pre>opencode models wiro --pure</pre><p>Beklenen model kimliklerinden biri wiro/claude/opus-5 olmalı. <a href="https://opencode.ai/docs/cli/">Model listeleme komutu</a></p><h3>6. Sohbetten gerçek kodlamaya geç</h3><p>Arayüzde <strong>Build</strong> modunda ol. <strong>Plan</strong> görünüyorsa Tab tuşuyla Build’e geç. Plan modu fikir ve inceleme içindir; dosya değişikliği isteyen bu denemeyi Build’de yapacağız. <a href="https://opencode.ai/docs/agents/">OpenCode agent modları</a></p><p>Şu mesajı gönder:</p><blockquote>Bu klasörde dış paket kullanmadan küçük bir Node.js örneği oluştur. sum.cjs dosyasında iki sayıyı toplayan sum(a, b) fonksiyonunu CommonJS biçiminde dışa aktar. sum.test.cjs dosyasında Node’un yerleşik node:test ve node:assert/strict modülleriyle pozitif sayılar, negatif sayılar ve sıfır için üç test yaz. Sonra node — test sum.test.cjs komutunu gerçekten çalıştır. Hata varsa düzelt ve yeniden çalıştır. Sadece bu klasörde çalış; API anahtarı veya başka özel dosya okuma. Sonuçta kaç testin geçtiğini söyle.</blockquote><p>Dosya ve terminal izinleri sorulduğunda bu denemeye ait işlemleri onayla. Başarı ölçütü, yalnızca bir kod bloğu görmek değil: klasörde iki dosyanın oluşması ve terminal çıktısında <strong>3 başarılı test / 0 başarısız test</strong> görülmesi.</p><p>İstersen OpenCode içinde /exit yazarak PowerShell’e dön veya aynı klasörde ikinci bir terminal aç. Sonucu kendin de doğrula:</p><pre>node --test sum.test.cjs</pre><p>Dosyaları Dosya Gezgini veya editöründen de inceleyebilirsin.</p><h3>7. Kendi projende kullan</h3><p>Deneme çalıştıktan sonra opencode.json dosyasını çalışacağın projenin köküne kopyala ve terminali o klasörde aç. Dosyada API bilgisi yok; anahtar bilgisayarındaki OpenCode kimlik bilgisi deposundan okunur.</p><p>Projede zaten opencode.json veya opencode.jsonc varsa üzerine yazma. Mevcut dosyayı yedekle, örnekteki wiro nesnesini mevcut provider nesnesine ekle; aynı isimli ikinci bir provider oluşturma. JSON’da nesneler arasındaki virgüllere dikkat et. Mevcut enabled_providers listesi varsa diğerlerini koruyarak wiro ekle; disabled_providers içinde wiro varsa çıkar. Yardımcı çağrıların da Wiro üzerinden gitmesi için small_model değerini wiro/openai/gpt-5-4-mini yap. Projeye özel ayarlar genel ayarların üzerine uygulanabilir. <a href="https://opencode.ai/docs/config/">Ayarların birleştirilmesi</a></p><p>Anahtar daha önce kaydedildiği için tekrar /connect yapmadan açabilirsin:</p><pre>opencode --model wiro/claude/opus-5</pre><p>GPT seçmek için:</p><pre>opencode --model wiro/openai/gpt-5-6-sol</pre><p>Opus 5.5 seçmek için:</p><pre>opencode --model wiro/claude/opus-5-5</pre><p>Her projeye dosya kopyalamak istemezsen sağlayıcı tanımını genel ~/.config/opencode/opencode.json dosyasına ekleyebilirsin. Windows’taki karşılığı %USERPROFILE%\.config\opencode\opencode.json. Mevcut genel dosyayı da yedekleyip birleştir; içindeki diğer ayarları silme. İlk denemeyi yalnızca Wiro’yla sınırlayan enabled_providers satırını genel ayarlara taşımak, diğer sağlayıcılarını gizler; çoklu sağlayıcı kullanıyorsan bu satırı genel dosyana ekleme.</p><h3>Takılabileceğin noktalar</h3><ul><li><strong>node, </strong><strong>npm veya </strong><strong>opencode bulunamıyor:</strong> Kurulumdan sonra yeni terminal aç. Node.js ve OpenCode sürüm komutlarını yeniden dene.</li><li><strong>PowerShell </strong><strong>.ps1 çalıştırmayı engelliyor:</strong> Genel güvenlik ayarını değiştirmek yerine npm.cmd ve opencode.cmd komutlarını kullan.</li><li><strong>Configuration is invalid:</strong> JSON’daki virgül ve parantezleri kontrol et; dosyaya Markdown çitlerini kopyalamadığından emin ol.</li><li><strong>Wiro modelleri görünmüyor:</strong> Dosya adı ve bulunduğun klasörü kontrol et. Sağlayıcı kimliği hem dosyada hem /connect içinde wiro olmalı.</li><li><strong>401 / kimlik doğrulama hatası:</strong> Projen API Key Only mı, Signature mı? İkinci türde key:secret birlikte gerekli. Anahtar iptal edilmiş veya yanlış kopyalanmış olabilir.</li><li><strong>Model bulunamadı / erişim reddedildi:</strong> Tam model kimliğini, proje ve ekip izinlerini kontrol et. Özellikle claude/opus-5-5 yazımına dikkat et.</li><li><strong>Yardımcı mini modelde erişim hatası:</strong> small_model değerini erişebildiğin bir Wiro modeline, örneğin wiro/claude/opus-5 değerine çevir.</li><li><strong>Bakiye yetersiz / kullanım sınırı:</strong> Wiro panelindeki kredi ve proje harcama limitlerini kontrol et.</li><li><strong>429:</strong> İstek hızı veya eşzamanlı kullanım sınırına takılmış olabilirsin. Yeni görevleri azaltıp bekleyerek yeniden dene.</li><li><strong>Yanıt başlamadan bekliyor:</strong> İlk yanıt gecikebilir. İsteğin durumunu ve güncel gateway belgesindeki akış davranışını kontrol et; peş peşe yeni görevler başlatma.</li><li><strong>Kod anlatıyor ama dosyayı değiştirmiyor:</strong> Build modunu, istenen dosya/terminal izinlerini ve araç çağrısı desteğini kontrol et.</li><li><strong>Yanıt yarıda kesiliyor / bağlam doluyor:</strong> İlk deneme sınırları uzun işlere yetmeyebilir. İşi küçült veya Wiro’nun bildirdiği model limitlerine göre ayarla.</li><li><strong>OpenCode maliyeti </strong><strong>$0 gösteriyor:</strong> Fiyat metadatası eksik olabilir. Ücretsiz olduğunu varsayma; gerçek tüketimi Wiro panelinden takip et.</li></ul><p>İstek ve model özellikleri için <a href="https://wiro.ai/docs/completions-api">Wiro Gateway belgeleri</a>, yerel sorunlar için <a href="https://opencode.ai/docs/troubleshooting/">OpenCode sorun giderme rehberi</a> yardımcı olur.</p><h3>Kredi ve dosyalarla ilgili iki pratik not</h3><p>Model uzakta çalışır. OpenCode’un okuduğu ilgili kod parçaları, sohbet bağlamı ve araç sonuçları yanıt üretmek için API’ye gider; dosya düzenleme ve terminal komutları ise senin bilgisayarında yürür. İlk denemeyi özel verisi olmayan küçük bir klasörde yapmak bu yüzden de iyi bir başlangıç. <a href="https://opencode.ai/docs/tools/">OpenCode araçları</a>, <a href="https://wiro.ai/llm">Wiro’nun istemcide çalışan araçları</a></p><p>Bir görev birden fazla model çağrısı içerebilir. Uzun sohbet, büyük dosyalar ve tekrarlar kredi tüketimini artırabilir. Wiro’nun proje kullanım ekranını takip et; desteklediği harcama sınırlarını kendi bütçene göre ayarla. Anahtarı /connect ile kaydetmek kalıcı bir yerel kayıt oluşturur; “test için kullandım” diye kendiliğinden silinmez. Gerektiğinde PowerShell’de opencode auth logout wiro çalıştırabilir, anahtarı ayrıca Wiro panelinden iptal edebilirsin. <a href="https://wiro.ai/docs/projects">Wiro proje takibi</a>, <a href="https://opencode.ai/docs/providers/#credentials">OpenCode kimlik bilgileri</a></p><p>Benim için bu kurulumun faydası, Wiro’daki mevcut bakiyeyi gerektiğinde kodlama işlerine de ayırabilmek oldu. Kullandığım üyeliğin limiti dolduğunda, uygun model ve yeterli Wiro bakiyesiyle aynı proje üzerinde devam edebileceğim ikinci bir yolum var.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cc43f83a311a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>