<?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 Lightning Developer on Medium]]></title>
        <description><![CDATA[Stories by Lightning Developer on Medium]]></description>
        <link>https://medium.com/@bishakhghosh0?source=rss-61f5302a9c7b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by Lightning Developer on Medium</title>
            <link>https://medium.com/@bishakhghosh0?source=rss-61f5302a9c7b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 22:36:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bishakhghosh0/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[The Honest Guide to Free IoT Remote Access (2026)]]></title>
            <link>https://medium.com/@bishakhghosh0/the-honest-guide-to-free-iot-remote-access-2026-266fea23a394?source=rss-61f5302a9c7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/266fea23a394</guid>
            <category><![CDATA[developer-tools]]></category>
            <category><![CDATA[remote-working]]></category>
            <category><![CDATA[iot]]></category>
            <category><![CDATA[ssh-tunnel]]></category>
            <dc:creator><![CDATA[Lightning Developer]]></dc:creator>
            <pubDate>Thu, 26 Nov 2026 06:11:01 GMT</pubDate>
            <atom:updated>2026-11-26T06:11:01.575Z</atom:updated>
            <content:encoded><![CDATA[<p>A practical guide to free browser terminals, TCP tunnels, and the trade-offs in every free IoT remote access plan.</p><p>Reaching an IoT device from outside its own network is one of the oldest problems in connected hardware. Most devices sit behind a home router, CGNAT, or a cellular modem that accepts no inbound connections. You can reach the internet, but the internet cannot reach you. Remote access is usually the first thing people want to solve, and they want to solve it for free before committing to a paid platform.</p><p>Free is possible, but no free tier gives you everything. Every provider trades something away: device count, session length, data allowance, or commercial use. This guide covers the two free options <a href="https://pinggy.io/">Pinggy</a> offers, a browser terminal for one device and an account-free TCP tunnel for SSH and VNC, and then compares the free tiers of <a href="https://www.dataplicity.com/">Dataplicity</a>, <a href="https://qbee.io/">qbee.io</a>, <a href="https://www.balena.io/cloud/">balenaCloud</a>, <a href="https://remoteiot.com/">RemoteIoT</a> and <a href="https://tailscale.com/">Tailscale</a>, using each vendor&#39;s own pages as checked on November 19, 2026.</p><blockquote><em>Free remote access is possible, but the trade-offs are real: device count, session length, data allowance, and commercial use.</em></blockquote><h4><strong>Why direct connections fail</strong></h4><p>Most internet connections are not built for inbound traffic. A home router has one public IPv4 address and uses NAT to share it among phones, laptops, and thermostats. A <a href="https://www.raspberrypi.com/">Raspberry Pi</a> on that network has a private address such as 192.168.1.50, and an outside request has no way to reach it unless the router has port forwarding rules. CGNAT makes this worse because the carrier&#39;s NAT device is outside your control. Cellular IoT modules often sit behind two or three layers of address translation.</p><p>Remote access tools solve this by reversing the direction of the connection. The device calls out to a relay server and keeps that connection open. The relay publishes a public endpoint, and when a user connects to that endpoint, the relay forwards the traffic through the existing channel. This design works from behind almost any network, including hotel Wi-Fi, corporate firewalls, and cellular modems. It is the same principle behind SSH reverse tunnels and modern zero-trust networking.</p><h4><strong>What free really limits</strong></h4><p>Before picking a tool, check four numbers on its pricing page: the device count, the session length, the data allowance, and whether commercial use is allowed. These four numbers shape every practical decision.</p><ul><li>Device count decides whether a free tier covers a hobby Pi or a small fleet. If you have 10 sensors and the free plan allows 1 device, you will either upgrade or rotate devices.</li><li>Session length matters because a 60-minute tunnel is fine for a quick fix and useless for a service that must stay reachable. Some free tiers also add idle timeouts, so a shell can die while you are reading documentation.</li><li>Data allowance matters for VNC and file transfers, which move far more bytes than a terminal. A remote desktop session can burn through 100 MB before you notice.</li><li>Commercial use is the clause people miss. Some free tiers allow testing and personal projects but explicitly forbid using the service for anything you sell or operate for a business. Read that section carefully.</li></ul><p>Device count decides whether a free tier covers a hobby Pi or a small fleet. Session length matters because a tunnel that dies after an hour is not a service, it is a demo. Data allowance matters because VNC and file transfers consume far more bytes than a terminal. Commercial use is the clause people miss; some free plans are only for evaluation and personal projects.</p><h4><strong>Option 1: Pinggy Devices, free for one device</strong></h4><p><a href="https://pinggy.io/">Pinggy Devices</a> turns the <a href="https://pinggy.io/">Pinggy CLI</a> into a device agent. The agent makes one outbound connection to the Pinggy dashboard and holds it open. The device needs no open ports, no public IP, and no SSH server. On the device, run:</p><pre>curl -fsSL https://pinggy.io/install.sh | sh</pre><p>The install script needs no sudo. It installs the CLI to ~/.pinggy/bin, asks for your email, sends a six-digit code, and starts the agent in the background. A new email gets a free account. The free plan covers one device with one shell. The paid plan is $2.50 per seat per month billed annually, with 25 devices and 25 open shells per seat.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n_P-W34giqfTqBs_8xJ18A.png" /></figure><p>Once the agent is connected, the device appears in the dashboard. The Terminal tab opens a shell running as the user who started the agent. Closing the browser tab does not kill the shell; it keeps running and redraws when you return. A shell ends after 30 minutes with no activity or after eight hours. The Overview tab shows live CPU, memory, load average, and uptime.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OufZXXwCAkKwLc8BqYxEeg.png" /></figure><p>Two limits matter on a free device. First, the agent stops at reboot unless you run pinggy daemon service-install, which registers the daemon as a systemd user service on Linux, a launchd agent on macOS, or a scheduled task on Windows. Second, the Linux builds are glibc binaries for x64 and arm64, so a <a href="https://www.raspberrypi.com/">Raspberry Pi</a> needs 64-bit <a href="https://www.raspberrypi.com/software/">Raspberry Pi OS</a>. The full setup is covered in the Pinggy guide to managing remote IoT devices behind NAT.</p><h4><strong>Under the hood: how the browser terminal stays connected</strong></h4><p>The browser terminal does not expose the device&#39;s SSH port. The agent on the device creates a WebSocket connection to the relay, and the dashboard uses that connection to start a pseudo-terminal session. The device initiates everything, so no inbound firewall rule is needed. The same outbound channel carries keystrokes, terminal output, and status metrics. That is why the agent can run behind CGNAT without configuration.</p><h4><strong>Option 2: a free TCP tunnel for SSH and VNC</strong></h4><p>When you want a real SSH session for scp, or VNC for a remote desktop, a TCP tunnel is the account-free route. This is the command from <a href="https://pinggy.io/">Pinggy</a>&#39;s SSH IoT guide, run on the device:</p><pre>ssh -p 443 -R0:localhost:22 tcp@free.pinggy.io</pre><p>The command prints a public address such as tcp://rndnj-103-170-183-11.a.free.pinggy.online:37315. From your laptop, connect with:</p><pre>ssh -p 37315 username@rndnj-103-170-183-11.a.free.pinggy.online</pre><p>Replace the host and port with what the command printed. To reach VNC instead of SSH, change 22 to 5900 in the tunnel command. The Pinggy CLI does the same with pinggy --type tcp -l 22. The examples here are taken from the docs and the CLI help; no live tunnel was opened from the test machine.</p><p>The free limits are clear: the tunnel times out after 60 minutes, and the port changes on every connection, so you have to read the new address each time. With a Pro token the same tunnel gets a persistent address and port. The older Pinggy guide to accessing IoT devices from anywhere walks through that route.</p><h4><strong>TCP tunnel versus browser terminal</strong></h4><p>Both options give you free remote access, but they solve different problems. The browser terminal is best for quick administration, package updates, and checking logs. It requires no inbound connection and no client software on your laptop, only a browser. The TCP tunnel is best when you need to transfer files, use a desktop GUI, or run a local service that other tools can reach. The tunnel also supports protocols beyond SSH and VNC because it forwards any TCP port. The browser terminal is more constrained because it gives you a shell, not a network path.</p><h4><strong>How the other free tiers compare</strong></h4><p>The free tier landscape changes often. The rows below come from vendor pricing and documentation pages checked on November 19, 2026. Verify the current details before you build a workflow around any of them.</p><ul><li><a href="https://pinggy.io/"><strong>Pinggy Devices: </strong></a>1 device, 1 shell, live CPU and memory. Catch: shell ends after 30 minutes idle; no OTA.</li><li><a href="https://pinggy.io/"><strong>Pinggy TCP tunnel: </strong></a>SSH, VNC, or any TCP port, no account. Catch: 60-minute timeout, new port each time.</li><li><a href="https://www.dataplicity.com/"><strong>Dataplicity: </strong></a>1 Linux device with remote terminal, Wormhole, standard-port forwarding. Catch: 1 device only; custom ports not included.</li><li><a href="https://qbee.io/"><strong>qbee.io: </strong></a>5 devices with OTA, remote access, CVE analytics, metrics. Catch: email-only, best-effort support.</li><li><a href="https://www.balena.io/cloud/"><strong>balenaCloud: </strong></a>first 10 devices free; browser terminal and CLI SSH. Catch: container-based; community-forum support.</li><li><a href="https://remoteiot.com/"><strong>RemoteIoT: </strong></a>free plan with remote SSH, 100 MB per device. Catch: non-commercial use only.</li><li><a href="https://tailscale.com/"><strong>Tailscale Personal: </strong></a>free forever; unlimited user devices, up to 6 users. Catch: a VPN, so you install it on both ends; 50 tagged resources to start.</li></ul><p>Dataplicity now lists a free plan that covers one agent-managed Linux device, with private named tunnels limited to 1 GB relayed per month, 60-minute sessions, and a 10-minute idle timeout. qbee.io includes OTA updates, remote access, CVE analytics, and metrics on its five free devices, which makes it a strong free tier for a small fleet. balenaCloud gives the first ten devices free, and its docs describe a dashboard web terminal and a CLI for SSH, though they say not to depend on it for continuous use inside your application. RemoteIoT lists a free non-commercial plan with remote SSH and 100 MB of data per device. Tailscale is different in kind: it is a VPN that puts your devices on a private network instead of publishing an address for each one, and its Personal plan lists unlimited user devices and up to 50 tagged resources to start. For the heavier paid platforms, see the Pinggy comparison of remote IoT device management software.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OjLcyrg6oAYkoq4ZXPVT0g.png" /></figure><h4><strong>Keep a free tunnel safe</strong></h4><p>A free tunnel gives your SSH server a public address. Anyone who finds that address can try to log in. Before you leave a tunnel open, disable password authentication and use SSH keys. Set PasswordAuthentication no in /etc/ssh/sshd_config, then restart the SSH service with a command like:</p><pre>sudo systemctl restart sshd</pre><p>The <a href="https://pinggy.io/">Pinggy</a> TCP tunnel docs list an IP whitelist at the edge, and the CLI help shows the w: option for it, so check whether your plan allows it. A browser terminal avoids the exposure entirely because the device publishes nothing. Anyone signed in to your Pinggy account can open a shell on your devices, so turn on two-factor authentication for that account and use a strong password.</p><h4><strong>Which free option fits</strong></h4><p>Use <a href="https://pinggy.io/">Pinggy Devices</a> when you have one <a href="https://www.raspberrypi.com/">Raspberry Pi</a> and want a terminal plus live stats after a single install command. Use the free TCP tunnel for a quick SSH or VNC session that you will close within the hour. Choose qbee.io or balenaCloud when you have five to ten devices. Pick Tailscale when you prefer a private network over published endpoints. If the device runs a commercial product, avoid <a href="https://remoteiot.com/">RemoteIoT</a>&#39;s free plan and read each license carefully.</p><h4><strong>Conclusion</strong></h4><p>Free remote access to an IoT device works today. The right option depends on a few numbers: how many devices, how long a session lasts, and whether the use is commercial. For one device, <a href="https://pinggy.io/">Pinggy Devices</a> gives you a browser terminal in a single command, and a free TCP tunnel covers SSH and VNC for an hour at a time. For a small fleet, qbee.io and balenaCloud give you more devices for free. For anything permanent, you will end up on a paid plan, so pick the tier whose paid steps you can live with.</p><h4><strong>Reference</strong></h4><p><a href="https://pinggy.io/blog/free_iot_remote_access_from_anywhere/">Free IoT Remote Access from Anywhere: What You Get and Where the Limits Are in 2026</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=266fea23a394" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Manage Remote IoT Devices Behind NAT Without Opening Ports]]></title>
            <link>https://medium.com/@bishakhghosh0/how-to-manage-remote-iot-devices-behind-nat-without-opening-ports-af33859b40cd?source=rss-61f5302a9c7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/af33859b40cd</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[ssh-tunnel]]></category>
            <dc:creator><![CDATA[Lightning Developer]]></dc:creator>
            <pubDate>Fri, 20 Nov 2026 03:51:01 GMT</pubDate>
            <atom:updated>2026-11-20T03:51:01.611Z</atom:updated>
            <content:encoded><![CDATA[<p>A practical guide to reaching a Raspberry Pi from anywhere using outbound tunnels, health checks, and safe updates.</p><p>Managing IoT devices like <a href="https://www.raspberrypi.com/">Raspberry Pi</a> and other single-board computers gets complicated once they leave your desk. They usually sit behind home routers, carrier-grade NAT, or cellular links, which means nothing can connect to them from the outside. Easy remote access and management is the first thing a deployed fleet needs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uTNQnFgsCWJYgAkD7OSqOw.png" /></figure><p>This guide uses <a href="https://pinggy.io/">Pinggy</a> to build the three core jobs of remote management on a Raspberry Pi class device: a shell to act, health data to watch, and a safe way to change things. The whole setup takes one install command and a few CLI commands.</p><h4>What You Will Build</h4><p>Here is the workflow in short:</p><ul><li>Get a shell: run one install command on the device, then open the Terminal tab in the <a href="https://dashboard.pinggy.io/">Pinggy dashboard</a>.</li><li>Survive reboots: register the daemon so the agent starts with the machine.</li><li>Reach SSH, VNC, or a web UI: publish a TCP tunnel and save it as a permanent config.</li><li>Watch and update carefully: check the overview data, use a health script, update one device first, and revoke access by deleting a device or rotating its token.</li></ul><h4>Step 1: Connect the Device and Open a Shell</h4><p>On the device, run:</p><pre>curl -fsSL https://pinggy.io/install.sh | sh</pre><p>The script does not need sudo. It installs the <a href="https://pinggy.io/">Pinggy CLI</a> into ~/.pinggy/bin, asks for your email, sends a 6-digit code (a new email gets a free account), and starts the device agent in the background. The agent keeps one outbound connection open to the dashboard, so the device needs no open port, public IP, or SSH server. Open the device&#39;s page in the <a href="https://dashboard.pinggy.io/">Pinggy dashboard</a>, go to the Terminal tab, and click New shell to get a shell that runs as the user who started the agent.</p><p>Typing an email on every unit does not scale. For a device with no keyboard, click Add device in the dashboard and run the command it shows, which carries the device token and asks for no email or code:</p><pre>curl -fsSL https://pinggy.io/install.sh | DEVICE_AGENT_TOKEN=&lt;TOKEN&gt; sh</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MUO1Gimkw-_il8c9w7xYOA.png" /></figure><p>The token reaches the CLI through an environment variable, never on a command line. One machine holds one device credential, so a fleet means one device and one token per unit. The Linux builds are glibc binaries for x64 and arm64, so use 64-bit Raspberry Pi OS. On <a href="https://alpinelinux.org/">Alpine</a> and other musl systems, install with <a href="https://www.npmjs.com/">npm</a> install -g pinggy.</p><p>The agent stops when the machine reboots. Run pinggy daemon service-install once to register the Pinggy daemon as a <a href="https://systemd.io/">systemd</a> user service on Linux, a launchd agent on macOS, or a scheduled task on Windows. The device agent starts with the daemon, and on Linux the CLI also enables systemd lingering for your user so it can start at boot with nobody logged in. If it cannot, it prints the loginctl enable-linger &lt;user&gt; command for you to run. This feature arrived in CLI 0.6.5, and pinggy daemon service-uninstall removes it.</p><h4>Step 2: Reach SSH, VNC and Web UIs with a TCP Tunnel</h4><p>A browser shell covers most tasks, but sometimes you want a real SSH session for scp, VNC for a desktop, or a local web UI. The one-liner from the <a href="https://pinggy.io/docs/">Pinggy docs</a> works on the device itself:</p><pre>ssh -p 443 -R0:localhost:22 tcp@free.pinggy.io</pre><p>It prints a public address like tcp://rndnj-103-170-183-11.a.free.pinggy.online:37315, and from your laptop you run ssh -p 37315 username@rndnj-103-170-183-11.a.free.pinggy.online. Change 22 to 5900 for VNC or 1880 for a <a href="https://nodered.org/">Node-RED</a> editor. On the free plan the port changes on every connection and a tunnel lasts 60 minutes, so it suits a one-off fix. With a Pro token, the same tunnel gets a persistent address and port.</p><p>For a tunnel that should always be there, save it with the CLI instead of keeping a command running. The first command is the one I ran on CLI 0.6.4, where it saved, showed, and deleted a config as documented:</p><pre>pinggy config save iot-ssh --auto --type tcp -l 22 &lt;TOKEN&gt;@pro.pinggy.io<br><br>pinggy start --all<br><br>pinggy ps</pre><p>Tunnels saved with --auto are the auto-start ones, and pinggy daemon start lists which configs will auto-start. The configuraton the CLI saves can be inspected with pinggy config show iot-ssh to confirm what was stored. The tunnel commands come straight from the docs, because I did not open a live tunnel from the test machine.</p><h4>Step 3: Watch the Device&#39;s Health</h4><p>The Overview tab shows the hostname, OS, CPU, memory, and agent version next to live CPU, load average, and uptime. The Activity tab lists events with source IP addresses. It does not show disk space or board temperature, and Pinggy has no alerting that I could find in its docs, so pair it with a small script you run from the browser shell:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OufZXXwCAkKwLc8BqYxEeg.png" /></figure><pre>echo &quot;host:   $(hostname)&quot;<br>echo &quot;uptime: $(uptime | sed &#39;s/^.*up //&#39;)&quot;<br>echo &quot;disk:   $(df -h / | awk &#39;NR==2 {print $5 &quot; of &quot; $2 &quot; used on /&quot;}&#39;)&quot;<br>if [ -r /proc/meminfo ]; then<br>  awk &#39;/MemTotal/ {t=$2} /MemAvailable/ {a=$2} END {printf &quot;memory: %d of %d MB available\n&quot;, a/1024, t/1024}&#39; /proc/meminfo<br>fi<br>if command -v vcgencmd &gt;/dev/null 2&gt;&amp;1; then<br>  echo &quot;temp:   $(vcgencmd measure_temp | cut -d= -f2)&quot;<br>fi</pre><p>I ran this on macOS and in a <a href="https://www.debian.org/">Debian</a> 12 container, where the disk and memory lines printed correctly. The vcgencmd line only runs on Raspberry Pi OS, where that tool exists, and I could not test it here. SD card wear is the classic Pi failure, so if you care about it, look at the SD card monitoring in the tools compared in our device management comparison.</p><h4>Step 4: Change Things Without Bricking the Device</h4><p>Pinggy Devices has no over-the-air update system and no fleet-wide jobs, so every change is something you do in a shell, one device at a time. That works for ten Pis and stops working for a thousand. For firmware or image updates with rollback, add a dedicated updater such as <a href="https://mender.io/">Mender</a> or <a href="https://www.balena.io/cloud/">balenaCloud</a>, both covered in the comparison above.</p><p>A few habits keep manual changes safe:</p><ul><li>Update one device first and let it run for a day before touching the rest.</li><li>A browser shell ends after 30 minutes with no activity or after 8 hours, so run long jobs under <a href="https://github.com/tmux/tmux">tmux</a> or <a href="https://www.gnu.org/software/screen/">screen</a> on the device, or teh job dies with the shell.</li><li>Keep a second way in. If an update breaks the Pinggy agent, a saved TCP tunnel or a plain SSH reverse tunnel is your only path back. Never reboot a device you cannot reach any other way without checking that its agent starts at boot.</li></ul><h4>Step 5: Lock Down Access</h4><p>Anyone signed in to your Pinggy account can open a shell on every device as the user running the agent, so turn on two-factor authentication for the account and run the agent as an unprivileged user, not root. The device token sits in ~/.config/pinggy/device.json, readable only by that user. The agent never logs what you type, and the screen copy that redraws a reopened tab stays in memory.</p><p>To cut a device off, delete it in the dashboard or rotate its token. pinggy device remove only forgets the token on the device, so a device whose token leaked needs the dashboard. Pricing is simple: the Free plan covers 1 device with 1 shell, and Pro is $2.50 per seat per month billed annually, with 25 devices and 25 open shells per seat. See the <a href="https://pinggy.io/pricing/">pricing page</a> for details.</p><h4>Troubleshooting</h4><ul><li>If a second device fails to connect on the Free plan, the CLI says Your plan allows 1 device. Delete one in the dashboard, or upgrade, to add another.</li><li>If the Terminal tab is greyed out, the CLI on that device is too old, so run the install command again.</li><li>If the agent stops with a message that its token was refused or revoked, the device was deleted or its token rotated, and you need to add it again.</li><li>If you recieve a message that the Linux uses musl libc, install with npm as shown above.</li></ul><h4>Conclusion</h4><p>A remote device needs three things: a way in, a way to see how it is doing, and a safe way to change it. Pinggy Devices gives you the first with one install command and a boot service, a TCP tunnel covers SSH and VNC, and a short script fills the monitoring gap. For updates at scale you will still want a dedicated OTA tool, but for a handful of Pis behind CGNAT this setup takes minutes, not days.</p><h4>Reference</h4><p><a href="https://pinggy.io/blog/manage_remote_iot_devices_behind_nat/">How to Manage Remote IoT Devices Behind NAT Without Opening Ports</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=af33859b40cd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tailcat: Tailscale’s Data Plane Without the Account]]></title>
            <link>https://medium.com/@bishakhghosh0/tailcat-tailscales-data-plane-without-the-account-6beb870c1c84?source=rss-61f5302a9c7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/6beb870c1c84</guid>
            <category><![CDATA[data]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[wireguard]]></category>
            <category><![CDATA[ssh-tunnel]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Lightning Developer]]></dc:creator>
            <pubDate>Thu, 19 Nov 2026 04:01:02 GMT</pubDate>
            <atom:updated>2026-11-19T04:01:02.492Z</atom:updated>
            <content:encoded><![CDATA[<p>A tc address, a WireGuard tunnel, and you are in. Here is how Tailcat works and where it stops.</p><p>Open a terminal and run tailcat serve 8080 on a machine you control. It prints a string of about 140 characters that starts with tc. Paste that string into tailcat forward on any other machine, and port 8080 appears on 127.0.0.1 there. The traffic travels through a <a href="https://www.wireguard.com/">WireGuard</a> tunnel that punches through both NATs when it can, and falls back to a relay when it cannot. There is no account, no login, no daemon, and no sudo. That is <a href="https://tailcat.dev/">tailcat</a>, which <a href="https://tailscale.com/">Tailscale</a> open sourced in August 2026 and describes as Tailscale without Tailscale, by Tailscale.</p><p>This post looks at what makes tailcat different from a normal Tailscale node, what the address contains, how two machines find each other without a coordinator, and what you lose when you remove the control plane. It also covers the cases tailcat cannot handle, where a public tunnel is a better fit.</p><blockquote>Tailcat is netcat over Tailscale&#39;s data plane. It reuses the same WireGuard, magicsock NAT traversal and DERP relay code as the Tailscale client, under a BSD-3-Clause license, with no control plane and no account. The address is the whole setup. A tc address is base64-encoded CBOR holding the server&#39;s WireGuard public key, a path-discovery key, a pre-shared key and a DERP region. Whoever holds it can connect, so treat it like a password.</blockquote><p>A note on method: the commands and output in this post come from the tailcat README, changelog and source at v0.7.0, from September 19, 2026, and the main branch as of November 14, 2026. We read the code rather than benchmarking it, so the throughput figure further down is the project&#39;s own example, not our measurement.</p><h4>What tailcat keeps from Tailscale and what it drops</h4><p>A normal Tailscale node logs in, registers its public key with the coordination server, and receives a network map. That network map is the list of peers, their keys, their IPs, and the ACLs that apply. The coordination server is the control plane. Everything after that, encrypting packets, finding a path between two NATed machines, and relaying when no path exists, is the data plane. It lives in a Go package called magicsock.</p><p>Tailcat is a thin wrapper around that package. According to the project README, it reuses four pieces of the Tailscale client. The userspace WireGuard implementation encrypts tunnel traffic. Magicsock multiplexes traffic over direct UDP and DERP, and performs STUN endpoint discovery and UDP hole punching. Netstack, the <a href="https://gvisor.dev/">gVisor</a> userspace TCP/IP stack, terminates TCP connections inside the tailcat process. <a href="https://tailscale.com/kb/1232/derp-servers">DERP</a>, Tailscale&#39;s encrypted relay protocol, acts as both the meeting point and the fallback data path.</p><p>What is gone is the login flow, the tailnet, MagicDNS, ACLs, the admin console, and the stable 100.x address per device. The product page lists the missing parts without embarrassment: no accounts, login flow, tailnets, or IP addresses, and also no users, admins, or governance. Tailcat is the bottom half of Tailscale with the top half replaced by a string.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k7lNzyqm_YLrywDw_CvzUA.png" /></figure><p>Tailcat versus the full Tailscale stack</p><p>The shape comes from an unusual origin story. Brad Fitzpatrick wrote the first version in September 2023 on a ten hour flight, under the name derpcat, as a fork of the Tailscale repo. It bitrotted several times, got revived as an ordinary Go module that imports tailscale.com, and was released at the TailscaleUp conference in August 2026. As of November 14, 2026 the repo shows 9.7k stars and 446 forks, and the latest tagged release is v0.7.0.</p><h4>What a tc address contains</h4><p>With no coordination server, the client has to learn three things some other way: which key to encrypt to, where to meet the server, and proof that it is allowed in. All three are packed into the address. A tailcat address is the literal prefix tc followed by base64-encoded CBOR. The README lists these fields:</p><ul><li>The server&#39;s WireGuard public key, Curve25519, 32 bytes.</li><li>A separate path-discovery public key, Curve25519, 32 bytes. This one appears in cleartext on direct path probe packets, so keeping it separate avoids leaking the WireGuard key there.</li><li>A WireGuard pre-shared key, 256 random bits, on by default.</li><li>DERP info: either a small integer naming one of Tailscale&#39;s tailcat relay regions, or the full hostname and IPs of a relay.</li></ul><pre>tailcat parse tcomFwWCCcjS5nKNqAod034nWoJZW0LZqDhhC8U_dKdnDRYQ8uNGFpGQEu<br><br>{<br>  &quot;ServerPublic&quot;: &quot;nodekey:9c8d2e6728da80a1dd37e275a82595b42d9a838610bc53f74a7670d1610f2e34&quot;,<br>  &quot;RegionID&quot;: 302<br>}</pre><p>Region 302 is San Francisco. The default relay list on <a href="https://tailcat.dev/derpmap.json">tailcat.dev</a> had four regions when I fetched it on November 14, 2026: New York, 301, San Francisco, 302, Frankfurt, 303, and Tokyo, 304. That is far fewer than the DERP fleet a regular tailnet gets.</p><p>Four fields replace everything a coordination server would normally hand out. The pre-shared key does two jobs. It gives the tunnel post-quantum protection against someone recording traffic today and breaking Curve25519 later. It also stops the relay operator, who can see both peers&#39; public keys, from joining the tunnel themselves. It is also what makes the address a bearer credential. The docs are blunt: the default address is a secret bearer capability, so do not log it, commit it, or paste it into a public channel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2pOfbHUmpX1WZKEso4wYPg.png" /></figure><p>Fields inside a tc address</p><p>The address compactness is not just for convenience. Because it is a self-contained capability, it can be passed through chat, email, or a password manager. But the same property means anyone who holds it can reach the server. That design shapes everything below.</p><h4>How two machines find each other without a coordinator</h4><p>Take one concrete case and keep it for the rest of the post: a dev server on port 8080 on a laptop behind home Wi-Fi, and a cloud VM that needs to reach it. Neither side has an open inbound port.</p><pre>tailcat serve 8080<br>// Server listening with new address: tcXXXXXXXXX</pre><pre>tailcat forward tcXXXXXXXXX 18080:8080<br>curl http://127.0.0.1:18080/</pre><p>Here is what happens between those two commands, according to the connection flow in the README and disco.go in the source. The laptop generates a WireGuard keypair and a pre-shared key in memory, opens an outbound connection to the nearest DERP relay, and prints its address. The VM parses the address, generates its own throwaway keypair, and connects to the same relay.</p><ol><li>The VM sends a Meow packet through the relay, addressed to the laptop&#39;s public key. It is a raw DERP packet with the four-byte magic meow, a type byte, and the VM&#39;s node key and discovery key.</li><li>The laptop adds the VM as a WireGuard peer, rebuilds its own tiny network map, and answers with Meowed.</li><li>The WireGuard handshake runs, through the relay at first. The tunnel is up at this point and data can flow.</li><li>In parallel, both sides learn their public IP and port over STUN, trade those endpoints through the relay, and try UDP hole punching. If a direct path works, traffic moves off the relay.</li></ol><p>That Meow exchange is the entire control plane. In real Tailscale, the login and network map push come from the coordination server. Here, the server builds a one-peer map on the spot from a packet the client sent it. The relay introduces the two sides, then usually gets out of the way.</p><p>You can watch the upgrade happen. tailcat ping --until-direct reports the path for each pong:</p><pre>tailcat ping --until-direct &lt;tc-addr&gt;<br>pong in 42.1ms via DERP(sfo)<br>pong in 1.2ms via 203.0.113.7:41641</pre><p>If both machines sit behind hard NATs with no port mapping available, which can happen with carrier-grade NAT setups or strict corporate firewalls, hole punching fails and traffic stays on DERP. It still works. It is just slow on the shared relays, which leads to the tradeoffs below.</p><h4>Why it needs no root and no TUN device</h4><p>A regular VPN client creates a virtual network interface, assigns it an IP, and edits the routing table. That is why installing one asks for admin rights. Tailcat does none of that. The WireGuard packets it decrypts are fed into gVisor&#39;s netstack, a TCP/IP stack that runs as a library inside the process. From the kernel&#39;s point of view, tailcat is an ordinary program holding an HTTPS connection to a relay and a UDP socket.</p><p>Each peer does get an IPv6 address inside the tunnel, derived from its public key, but the OS never sees it, and the README calls it an implementation detail that may go away.</p><p>The catch is that ordinary programs cannot just connect to the other side, since there is no interface to route through. Tailcat bridges that gap in three ways:</p><ul><li>tailcat forward tcXXXXXXXXX 18080:8080 opens a normal listening port on 127.0.0.1 and carries each connection through the tunnel.</li><li>tailcat socks &lt;tc-addr&gt; curl http://server.tailcat:8080/ starts a SOCKS5 proxy on an ephemeral port and runs the child command with its proxy environment pointed at it.</li><li>Plain tailcat &lt;tc-addr&gt; 8080 connects stdin and stdout to the port, which is the netcat behaviour the name promises.</li></ul><p>This is also why it suits sandboxes and CI runners. A container with no NET_ADMIN capability and no /dev/net/tun can still run it. Fitzpatrick&#39;s launch post says most of his recent use has been wiring sandboxed AI agents to machines they need to reach, without joining them to a tailnet.</p><h4>What else the CLI serves</h4><p>Port forwarding is the base case. The same server process can expose a few built-in services instead of a local port:</p><pre>tailcat serve 5555:10.2.200.213:5555<br>// proxy one host on the server&#39;s LAN<br>tailcat serve --ssh-authorized-keys=alice@github ssh<br>// built-in SSH server, keys from github.com/alice.keys<br>tailcat serve files<br>// current directory over SFTP, read-only<br>tailcat recv ~/inbox<br>// write-only drop box<br>tailcat serve exit-node<br>// let the client reach the server&#39;s whole network</pre><p>On the client side there is tailcat ssh, tailcat cp which wraps the system scp, tailcat ls, and tailcat browse, an alias for forward --open-browser on port 80. There is also no-auth-ssh, which hands a shell to anyone holding the address. The README puts a warning box around that one, and it deserves it.</p><p>The main branch adds a bandwidth test mode called tailcat perf that has not shipped in a tagged release yet. Its README example shows 943 Mbit/s over a direct path with a 1.2ms round trip. That is plausible for two machines on a fast LAN or the same datacentre, but it tells you little about a home uplink. It refuses to run through Tailscale&#39;s shared relays at all, because that would mostly measure the rate limit.</p><p>A <a href="https://tailscale.github.io/tailcat/">browser demo</a> compiles the same Go library to WebAssembly and can swap files with the CLI. Browsers cannot open raw UDP sockets, so it stays on DERP until WebRTC support lands.</p><h4>Who can connect: ephemeral keys, saved keys and --allow</h4><p>By default every run generates a fresh key, prints an address nobody has seen before, and throws the key away on exit. A leaked address from yesterday&#39;s session points at nothing.</p><p>Stable addresses are opt-in. tailcat genkey --key=default saves a key to ~/.config/tailcat/keys/default.private.json, and from then on plain tailcat serve reuses it. The flip side is in the docs in so many words: anyone you have ever shared that address with can connect to every future server using that key. default is also a magic name, so once that file exists you get the stable address without asking for it. The startup line tells you which mode you are in, new address or saved key, and --key=new forces a one-off.</p><p>To use a stable address safely, pin the clients. The client generates an identity with tailcat genkey --client --key=client-default and gives the server its public node key. The server runs with --allow=nodekey:.... Handshakes from any other key are silently dropped, so an outsider cannot tell that anything is listening. With that in place you can even publish the address in a DNS TXT record, such as tailcat=tc..., and run tailcat ssh my-server.example.com. Without --allow, a TXT record gives the capability to everyone who can run dig.</p><h4>What you give up without the control plane</h4><p>Most of the rough edges are the control plane&#39;s old jobs, now yours.</p><ul><li>No revocation. You cannot remove one person from a shared address. With an ephemeral key you restart the server. With a saved key you rotate it, or you should have used --allow from teh start.</li><li>No directory. There are no device names and no stable IPs. Every connection begins with getting a 140-character secret from one machine to another over some channel you trust.</li><li>Throttled, logged relays. The hosted DERP relays are rate limited, Tailscale does not publish the figure, exist in four regions, and per the product page keep metadata logs and are not intended for privacy or high-throughput use cases. The README adds that access can be revoked at any time. You can run your own derper and bake its hostname into the address with genkey --region=derp.example.com, at which point nothing touches Tailscale&#39;s servers.</li><li>A young threat model. SECURITY.md says tailcat was originally designed for use with oneself: the same person running both ends, and that malicious peers were not historically in scope. Two rounds of bugs in the write-only drop box have already been reported and fixed. Be careful about accepting addresses from, or serving shells to, people you do not trust.</li><li>No stability promise. The CLI flags, the Go API, and the wire format may all change. There were seven releases between August 29 and September 19, 2026, and the command surface might already look different by the time this post is published. Even the install process recieved several small edits after the first public release.</li><li>Not anonymous. Peers see each other&#39;s IPs on a direct path, and the relay sees both.</li></ul><p>None of that is hidden; the project says most of it in its own README. Tailscale&#39;s framing is use tailcat when you need a quick connection, and Tailscale proper when you need a network you can govern. If what you want is the governed network without Tailscale the company, the options in our open source Tailscale alternatives roundup are a closer fit than tailcat.</p><h4>When the other end can&#39;t run tailcat</h4><p>Tailcat&#39;s model has one hard requirement: both sides run tailcat. That covers laptop to VM, CI runner to staging box, agent sandbox to a <a href="https://www.raspberrypi.com/">Raspberry Pi</a>. It does not cover the cases where the other end is somebody else&#39;s software: a client opening your demo in a browser, your phone, or Stripe posting a webhook to the dev server on port 8080. Those need a public URL, and tailcat deliberately does not make one.</p><p>That is the job of a reverse tunnel with a public endpoint. With <a href="https://pinggy.io/">Pinggy</a>, the same laptop runs:</p><pre>ssh -p 443 -R0:localhost:8080 free.pinggy.io</pre><p>It prints an address like https://xxxx.run.pinggy-free.link, and anything that speaks HTTPS can reach port 8080 through it. The laptop still only makes an outbound connection, same as with tailcat, and there is still nothing to install since ssh is already there. The trade is the opposite one: traffic always passes through Pinggy&#39;s servers instead of going peer to peer, the URL is reachable by anyone who has it, and on the free tier the tunnel lasts 60 minutes and gets a new random URL on reconnect.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sind8SR9FAgHI7fE_F2-gw.png" /></figure><p>Tailcat versus a public tunnel</p><p>The two do not compete so much as cover different halves of reaching your localhost. Pick tailcat when you own both machines and want the traffic end to end between them. Pick a public tunnel when the thing connecting is a browser or a third-party service.</p><h4>Try it and watch the path change</h4><p>The quickest way to see the mechanism for yourself takes two terminals on two different networks, say a laptop and any VM.</p><p>Install it from the install page: <a href="https://brew.sh/">Brew</a> install tailcat on macOS, <a href="https://scoop.sh/">Scoop</a> install tailcat on Windows, a static binary or .deb/.rpm on Linux, or go install github.com/tailscale/tailcat/cmd/tailcat@latest. Then:</p><ol><li>Run tailcat serve 8080 on the laptop, with anything listening on 8080. A one-line HTTP server is enough.</li><li>Run tailcat parse &lt;tc-addr&gt; on the address it prints, and find the region ID.</li><li>On the VM, run tailcat ping --until-direct &lt;tc-addr&gt; and watch the first pongs arrive via DERP before one arrives from a plain IP and port. If it never goes direct, you have found a hard NAT.</li><li>Run tailcat forward &lt;tc-addr&gt; 18080:8080, then curl <a href="http://127.0.0.1:18080/">http://127.0.0.1:18080/.</a></li><li>Stop the server, start it again, and note that the old address is dead.</li></ol><p>Step 3 is the one worth doing even if you never use tailcat again. It is Tailscale&#39;s NAT traversal with the product peeled off. Seeing a connection hop from a relay in San Francisco to a direct 1ms path explains more about how mesh VPNs work than most diagrams do. If you want the same thing inside your own Go program, the CLI is a wrapper over the github.com/tailscale/tailcat package, and a working server is about twenty lines.</p><h4>References</h4><ul><li><a href="https://pinggy.io/blog/tailcat_tailscale_without_control_plane/">Tailcat: Tailscale&#39;s Data Plane Without the Account</a></li><li><a href="https://github.com/tailscale/tailcat">Tailcat repository</a></li><li><a href="https://tailscale.github.io/tailcat/">Tailcat browser demo</a></li><li><a href="https://tailcat.dev/derpmap.json">Tailcat DERP map</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6beb870c1c84" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Run OpenCode Remotely from Any Browser: A Deep Dive]]></title>
            <link>https://medium.com/@bishakhghosh0/run-opencode-remotely-from-any-browser-a-deep-dive-73ac8613cdb0?source=rss-61f5302a9c7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/73ac8613cdb0</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[pinggy]]></category>
            <category><![CDATA[ssh-tunneling]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Lightning Developer]]></dc:creator>
            <pubDate>Fri, 13 Nov 2026 01:06:01 GMT</pubDate>
            <atom:updated>2026-11-13T01:06:01.617Z</atom:updated>
            <content:encoded><![CDATA[<p>Access your AI coding terminal from anywhere with <a href="https://pinggy.io/">Pinggy</a>, no SSH server or public IP required.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fl8GJAfvGIBU%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dl8GJAfvGIBU&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fl8GJAfvGIBU%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/4e31484388de0c32004eebb6a252361e/href">https://medium.com/media/4e31484388de0c32004eebb6a252361e/href</a></iframe><h3>Run OpenCode Remotely from Any Browser: A Deep Dive</h3><p>The modern developer tools landscape has changed dramatically. AI coding agents like OpenCode bring natural language assistance directly into the terminal, but they still live on the machine where your code lives. If that machine is a home server, a shared workstation, or a cloud VM without a public IP, reaching it from your laptop can be a chore. This guide shows you how to run OpenCode remotely from any browser using <a href="https://pinggy.io/">Pinggy</a>, with no inbound ports, no SSH server, and no complicated VPN.</p><p>OpenCode is an open source AI coding agent that runs in your terminal. It can read your project, write files, execute tests, and even start a dev server when you ask it to. It has a beautiful TUI and a deep integration with model providers. The setup is simple: install the Pinggy CLI on the machine where your code lives, then open that machine&#39;s terminal from the Pinggy dashboard in any browser. The browser shell is a full terminal, so you can run OpenCode, edit files, run git commands, and manage services as if you were sitting in front of the machine.</p><p>This article covers the entire workflow in detail. We start with the architecture behind Pinggy Devices, walk through installation step by step, explore how OpenCode&#39;s client and server split makes it perfect for browser based work, and finish with security, troubleshooting, and production tips. Whether you are prototyping on a Raspberry Pi or managing a fleet of build machines, the same pattern applies.</p><h4>Why Run an AI Coding Agent in a Browser Terminal?</h4><p>AI coding agents need a shell. They read your repository, run commands, and sometimes need to ask you for permission. A browser terminal is not a toy. Modern browser terminals stream keystrokes and screen output over a WebSocket, so the experience feels almost identical to a native terminal. The difference is that the browser runs on any device: a Chromebook, a tablet, a friend&#39;s laptop, or a machine at work. You do not need to install anything on the client side.</p><p>The biggest advantage is that the remote machine makes only an outbound connection. There is no inbound listener, no SSH daemon, no firewall port forwarding, no public IP. This means the setup works behind NAT, CGNAT, and strict corporate firewalls that block incoming traffic. Pinggy&#39;s cloud service maintains a persistent tunnel, and your browser connects to the Pinggy dashboard, which forwards the terminal stream to your device.</p><blockquote><em>A shell in the browser is just a terminal, but a terminal on a remote machine is a superpower.</em></blockquote><p>With an AI coding agent, that superpower becomes practical. You can ask the agent to fix a failing test, refactor a module, or explain a stack trace, all from a hotel room. The agent runs where the code runs, so it has access to your local dependencies, environment variables, and service configuration.</p><h4>How Pinggy Devices Works</h4><p>Pinggy Devices is part of the <a href="https://pinggy.io/">Pinggy</a> CLI. It arrived in version 0.6.2 on November 2, 2026. The CLI runs on your machine as an agent and keeps one outbound connection open to the dashboard. Your browser talks to the dashboard, and the dashboard passes your keystrokes down that connection into a shell on the machine. Nothing connects inbound, so it works behind NAT, CGNAT, and firewalls.</p><p>Since version 0.6.4, released on November 5, the agent runs in the background by default. That is an important improvement because it means you can close the terminal on the remote machine and the agent stays alive. It continues to hold the connection and lets you open a new shell from the dashboard even after you have logged out. The agent does not survive a reboot, but it reconnects quickly after you run the connect command again.</p><p>The connection is authenticated with a device token. The CLI stores the token in a file under your user&#39;s home directory, and the dashboard uses the same token to identify the device. When you open a shell from the dashboard, the Pinggy service sends a request through the existing outbound connection to the agent, and the agent spawns a shell process on the remote machine. The shell runs as your user, with your permissions, your environment variables, and your home directory.</p><p>From a network perspective, this is close to a reverse SSH tunnel, but without an SSH server. The agent does not listen for incoming connections. It only maintains a long lived WebSocket or TCP connection to the Pinggy relay server. That makes it extremely robust in restrictive networks. Even if the machine is behind a router that uses symmetric NAT, the outbound connection is enough.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Drx5xvzGyEdqD0dqG-JbFg.png" /></figure><p><em>Installing and signing in to Pinggy CLI from the terminal.</em></p><h4>What You Need to Get Started</h4><p>The requirements are modest. You need a machine that runs macOS, Linux, or Windows, with a user account that can install software in the home directory. You need an internet connection, preferably with enough bandwidth for the terminal stream. A terminal stream is small, so even a low bandwidth connection works. You also need a Pinggy account. A free account is enough to follow along.</p><ul><li>Pinggy CLI version 0.6.2 or newer for the terminal feature, and 0.6.4 or newer for the background agent.</li><li>OpenCode 2.x installed on the remote machine, or OpenCode 1.x if you prefer.</li><li>A modern browser. Chrome, Firefox, Safari, and Edge all work.</li><li>An API key or model provider for OpenCode if you want to use a paid model.</li></ul><p>You do not need root access. The Pinggy installer installs the CLI without sudo. OpenCode also installs to your home directory when you use the official install script. If you have an older version of Pinggy, you can update by running the install command again. The installer downloads the latest version and replaces the existing binary.</p><h4>Step 1: Install the Pinggy CLI and Sign In</h4><p>On the machine you want to reach, open a terminal and run the installation command. On macOS and Linux, use this:</p><pre>curl -fsSL https://pinggy.io/install.sh | sh</pre><p>On Windows, open PowerShell and run:</p><pre>irm https://pinggy.io/install.ps1 | iex</pre><p>The install script does three things. It downloads the latest Pinggy CLI binary, places it in a location on your PATH, and then runs pinggy device login. The login flow asks for your email address and sends a six digit verification code. Type the code into the terminal. You can also click Approve sign in in the email if the page shows the same Device Code that your terminal printed. An email that does not have a Pinggy account will create a new free account automatically, and the machine will be added as a device named after its hostname.</p><p>When sign in finishes, the CLI prints a link and a QR code to the device&#39;s page in the dashboard. On <a href="https://pinggy.io/">Pinggy</a> CLI 0.6.4 or newer, the agent starts in the background and the command exits. The agent keeps running after you close the terminal, but it will not survive a reboot. After a reboot, run pinggy device connect again. The token is already saved, so it will not ask for anything. On a CLI older than 0.6.4, the agent stays in the foreground unless you add the -b flag. The easiest fix is to run the install command again to update.</p><p>If you already have a <a href="https://pinggy.io/">Pinggy</a> account and you want to add a machine manually, click Add device on the Devices page and give the machine a name. The dashboard shows a command that includes the device&#39;s token. The Overview tab of the device keeps the command in a Connect this device card. Copy the command, run it on the machine, and the device appears online. This is useful when you provision machines through a script, because it requires no email and no verification code.</p><p>Here is an example from a Mac that already had the CLI installed. The connect command checked the version and connected immediately. If the machine was already a device on another Pinggy account, the CLI will tell you and leave that old device in the dashboard as offline. To switch accounts, you need to stop the background agent, remove the local device token, and connect again. The simplest way is to use pinggy device stop, then run the login or connect command again.</p><h4>Step 2: Install OpenCode on the Machine</h4><p>You can install OpenCode before you open the browser shell, or directly inside the browser shell once the connection is working. Doing it from the browser shell is a nice test because it proves that the terminal stream is functional and that you can type commands remotely.</p><pre>curl -fsSL https://opencode.ai/v2/install | bash</pre><p>This command works on macOS and Linux. OpenCode also supports npm and Homebrew. The npm package is @opencode/cli, and the Homebrew formula is anomalyco/tap/opencode-v2. Windows package managers are not supported at this time, but the OpenCode docs page has a standalone Windows build.</p><p>The v2 installer replaces an existing OpenCode 1 binary if one is installed. On my MacBook, it replaced OpenCode 1.3.10. If you installed OpenCode 1 through a package manager, remove it first to avoid conflicts. The v2 installer keeps your existing configuration, including your default model, but v1 plugins do not run in v2. OpenCode 1 also works in the browser terminal. The rest of this guide uses OpenCode 2 because its background server is what keeps a session going after the shell ends.</p><p>You do not need an OpenCode account to start. The opencode models command lists the models available, and as of November 9, 2026, there are ten free models, including Big Pickle, DeepSeek V4.1 Flash Free, and GLM-5.3-Flash Free. OpenCode stores your project data when you use these free models, so for private code you should connect your own provider. Use /connect in the TUI or opencode auth login. An API key is easy to paste into the browser shell. For providers that require a browser based login, it is easier to connect while you are still at the physical machine.</p><h4>Step 3: Open the Browser Terminal and Run OpenCode</h4><p>Open the Pinggy Devices page in your browser and click your device. The Overview tab shows whether the device is online, along with its hostname, operating system, CPU, and memory. This is useful for verifying that the agent is still connected before you try to open a shell.</p><p>Next, open the Terminal tab and click New shell. Each shell gets its own tab. The shell runs as the user who ran pinggy, so OpenCode sees that user&#39;s files, git config, and saved provider logins. Your working directory is usually your home directory, so you need to cd into your project folder before starting OpenCode.</p><pre>cd ~/code/storefront<br>opencode</pre><p>OpenCode 2.2.6, released on November 6, shows a What&#39;s new dialog the first time it starts after an update. You can close it with Esc. In my first test, OpenCode opened on the local Ollama model because that was what the old config specified. I pressed Ctrl+X, then M, typed big pickle, and pressed Enter. The Ctrl+X key combination went through the browser terminal without any special handling. Then I asked it to write cart.test.js with three node:test tests for cart.js. Big Pickle wrote the file and ran the tests in 11.3 seconds.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cAq68wcmpygSgdCndP0bdw.png" /></figure><p><em>Open shells listed on the Pinggy device page while OpenCode is running.</em></p><p>OpenCode&#39;s keybindings work well in the browser terminal. Type a request and press Enter to send it. Use /models to switch models, /connect to add a provider, and the exclamation mark at the start of an empty prompt to run a shell command. Ctrl+P opens the command palette. Because the browser terminal is a real TTY, these keyboard shortcuts behave almost exactly like they do in a local terminal.</p><p>You can also run other commands in the same shell. OpenCode is just one program. You could run git status, start a dev server, or open a file in a terminal text editor. The browser shell is not a restricted console, it is a full user shell. This is what makes the Pinggy approach more flexible than a custom web UI.</p><h4>Step 4: Come Back to a Session Later</h4><p>The browser tab that connects to a shell is not the shell itself. Closing the tab simply disconnects the terminal UI. The shell continues to run on the remote machine, and the Pinggy dashboard keeps a list of shells that are still running on the device. The Terminal tab shows the program running in each shell. Clicking a shell reopens it with the screen redrawn, which is surprisingly close to reattaching to a tmux session.</p><p>There are limits. A dashboard shell ends after 30 minutes with no activity, or after 8 hours regardless. When the shell ends, the opencode client that was running inside it also ends. That seems problematic at first, but OpenCode 2 has a background server that keeps the session state alive. The terminal client is just a view into that server. When the client dies, the session does not.</p><p>I tested this by hanging up the shell from the machine&#39;s side, which simulates what a timeout does. The client exited with the shell. The session remained, because the background server held it. To come back, I opened a new shell, changed to the project folder, and ran:</p><pre>cd ~/code/storefront<br>opencode session list</pre><p>The session list command opens in a pager, so press q to leave. It printed the session id, title, and timestamp, for example:</p><pre>ses_e40039520ffev5jRWwjsz0uEAl  Three node:test tests for cart.js  11/9/2026, 4:36:04 PM</pre><p>To continue the last session, run:</p><pre>opencode -c</pre><p>The session resumed exactly where I left off. You can open a specific session by id with opencode -s &lt;id&gt;. Inside the TUI, /sessions or Ctrl+X then L lists all sessions for the current project. This model of a client and a shared background server is one of the best reasons to use OpenCode 2 with a browser terminal.</p><p>Work in progress survives too. In a local terminal, I killed the opencode client eight seconds into a task using the same hang up signal that a closing shell sends. The background server kept going, and the file the agent was writing appeared about 16 seconds later, even with no client attached. So a long task does not need the browser shell to stay open, as long as the machine stays awake and the agent process is not stopped.</p><h4>OpenCode&#39;s Own Remote Access, and Why a Shell Still Matters</h4><p>OpenCode has a remote access feature of its own. Running opencode pair prints a one time link and a QR code to the OpenCode web UI. The link is valid for five minutes. There is also a --remote flag that pairs from anywhere through a public tunnel address. That endpoint exposes your OpenCode server to the internet, with end to end encryption and a password, and OpenCode asks before enabling it. On a phone, the OpenCode web UI or mobile app is generally nicer than a TUI squeezed into a browser tab.</p><p>A Pinggy shell is a whole terminal, though. You can restart the OpenCode service, run git pull, restart a dev server, or run Claude Code in a separate tab. Nothing about the OpenCode server faces the internet, because the only network connection is the outbound Pinggy agent connection. This is a fundamental difference. OpenCode&#39;s own remote access exposes the agent, while Pinggy exposes the entire machine through a terminal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6_Dr1qQwOXyiF-GsVvLqAA.png" /></figure><p><em>Running Claude Code in the same Pinggy terminal tab.</em></p><p>The two approaches are complementary. If you spend most of your day inside OpenCode&#39;s chat interface, the built in pair mode is convenient. If you need to manage the machine, fix a broken process, or work with multiple agents, a full shell is more reliable. A shell also gives you access to logs, system services, and debugging tools that are not available through the OpenCode web UI.</p><h4>Free vs Pro: What the Plans Include</h4><p>Every Pinggy plan, including Free, includes the browser terminal. Free covers one device with one shell. Pro costs $2.50 per month when billed annually, or $3 per month when billed monthly, based on the pricing page checked on November 3, 2026. Pro covers 25 devices, up to 3 shells per device, and up to 10 open shells per seat.</p><p>Three shells per device is a comfortable number. One shell can run OpenCode, one can run a dev server, and one can be used for git operations. If you need more, you can add more seats or use a local terminal multiplexer like tmux to create many windows inside a single shell.</p><p>Free is genuinely useful for personal projects. The single shell limitation is less restrictive than it sounds because you can run multiple processes in the same shell with job control or a terminal multiplexer. But if you manage a small team or run multiple machines, Pro is inexpensive and removes the practical limits.</p><h4>Security Considerations</h4><p>Security is the first question developers ask about remote terminal access. Pinggy&#39;s model is designed to reduce the attack surface. The device token is stored in device.json under ~/.config/pinggy/ and is readable only by your user. The agent never logs what you type. The Activity tab lists the device&#39;s events with source IP addresses, so you can audit where connections came from.</p><p>However, anyone signed in to your Pinggy account can open a shell on your devices as your user and run OpenCode with your provider keys. That is a powerful capability, so you must treat your Pinggy account as a sensitive credential. Turn on two factor authentication first. Keep the dashboard&#39;s connect commands out of screenshots and chats, because they contain the device token. If you need to revoke access, delete the device or rotate its token in the dashboard. The pinggy device remove command only forgets the token locally, it does not revoke it on the server.</p><p>You should also think about the security of OpenCode itself. OpenCode&#39;s background server listens on 127.0.0.1:49374 on macOS and Linux. That loopback address is not exposed to the local network by default, but a browser shell gives you access to it. If you use OpenCode&#39;s own pair mode, it intentionally exposes the server through a public tunnel. Before enabling pair mode, make sure you understand the password and the one time link flow.</p><p>Best practices include creating a dedicated user account for remote access, using SSH keys for any other remote administration, and configuring the machine to suspend only after long periods. On a laptop, you might also want to disable sleep when the lid is closed if you need sessions to persist. The Pinggy agent stops when the machine shuts down or reboots, so a robust power policy is part of remote availability.</p><h4>Troubleshooting Common Issues</h4><p>Remote terminal setups can fail for many reasons. The most common symptoms are a greyed out Terminal tab, a shell that refuses to start, or an OpenCode client that cannot talk to its server. Here are the fixes that work most often.</p><ol><li>Terminal tab is greyed out. The Pinggy CLI on that machine is too old to open a shell. Run the install command again to update to the latest version.</li><li>This machine already runs as device &lt;id&gt; in the background. Stop it first with pinggy device stop. A background agent already holds the connection, so running login or connect with the foreground flag will fail.</li><li>opencode -c shows Expected a string starting with ses and an empty session. You are in a folder with no OpenCode sessions. This is easy to do in a fresh browser shell because it starts in your home directory. Change to the project directory first, or open a session by id with opencode -s &lt;id&gt;.</li><li>OpenCode cannot reach its server. Run opencode service status, and if it is stuck, run opencode service restart.</li></ol><p>If the browser shell feels laggy, check the network latency between your browser and the Pinggy dashboard. The terminal stream is compressed, but high latency creates a small delay between keystroke and echo. For serious interactive work, a wired connection on the remote machine and a stable network on your side make a big difference.</p><p>Another common issue is locale or terminal size. The browser terminal auto sizes to fit the browser window. If a TUI like OpenCode renders poorly, try resizing the browser tab or using zoom. Some old terminal applications have issues with certain escape sequences, but the Pinggy terminal emulator is built for modern TUIs and handles mouse events, colors, and keyboard shortcuts well.</p><h4>Production Considerations and Edge Cases</h4><p>Running OpenCode remotely is not just for personal convenience. It becomes a production tool when your code lives on a machine that is always on and always connected. One common pattern is a dedicated build server with a GPU or a large memory pool. You can open a browser shell from your laptop, start OpenCode, and let the agent run expensive refactors without tying up your local resources.</p><p>Another pattern is a shared lab machine where multiple developers need to work. Pinggy Pro supports up to three shells per device, so two or three developers can work on the same machine simultaneously, each in their own browser tab. This is simpler than configuring SSH with X11 forwarding or a shared tmux socket.</p><p>Edge cases include machines that sleep, networks that drop connections, and agent processes that die. The Pinggy agent reconnects automatically when the network comes back, but only if the process is still running. To make the agent resilient, you can run it as a systemd service on Linux or a launchd service on macOS. The Pinggy docs describe how to do this, and it is a worthwhile step for any machine you plan to use headlessly.</p><p>You should also consider disk space and memory. AI coding agents can generate a lot of logs and temporary files, and multiple models loaded at once can consume several gigabytes of memory. The browser terminal does not add significant overhead, but the remote machine needs to be able to handle the agent&#39;s workload.</p><p>Security in production is stricter. Do not share the Pinggy dashboard account with everyone. Use individual seats or service accounts for devices. Rotate device tokens regularly, and review the Activity tab for unexpected connections. If you are using OpenCode with proprietary code, connect your own model provider through an API key rather than relying on free hosted models.</p><h4>A Closer Look at OpenCode 2 Architecture</h4><p>Understanding why OpenCode 2 works so well in a browser terminal requires a quick look at its internals. The opencode command you type is a terminal client. A shared background server, which OpenCode starts on first use, owns the sessions, permissions, and tool execution. The server listens on 127.0.0.1:49374 on macOS and Linux. When you run opencode in a terminal, the client connects to that server over loopback, and the server manages the actual conversation state.</p><p>This split has several consequences. First, the terminal client can be killed at any time without losing the session. Second, multiple clients can attach to the same server, which means you can switch from a desktop terminal to a browser terminal without losing context. Third, the server enforces permissions and tool execution limits in one place, so a client cannot bypass them by sending a crafted request.</p><p>OpenCode is MIT licensed and sits at 225,629 GitHub stars as of November 9, 2026. The project is active, and the 2.x series brought several architectural improvements. The background server is one of them. If you are using OpenCode 1.x, the browser terminal still works, but you will not get the session persistence across shell restarts. That alone is a strong reason to upgrade.</p><p>The loopback server is not exposed to the internet. When you use OpenCode&#39;s pair mode, the client creates a secure tunnel to a relay and allows the OpenCode web UI to connect through it. That is a different path from the Pinggy browser shell. With Pinggy, the browser shell sees the entire terminal, not just the OpenCode web API.</p><h4>Comparing with Other Remote Access Methods</h4><p>The traditional way to reach a remote machine is SSH. SSH requires an SSH server, a public IP or port forwarding, and a client on the device you are using. For machines behind CGNAT, inbound SSH is often impossible. VPNs solve the inbound problem but add configuration overhead, certificates, and routing rules. Tools like Tailscale and ngrok can help, but they each have their own constraints.</p><p>Our approach with Pinggy is deliberately minimal. The outbound agent connection requires no public IP, no port forwarding, and no VPN. The client side is just a browser. This makes it easier to use on shared or managed devices where installing a VPN client is not possible.</p><p>The tradeoff is that you rely on Pinggy as a relay. The terminal stream passes through Pinggy&#39;s servers, and while it is protected by the same TLS that protects the dashboard, this is a trust decision. For many developers, the convenience wins. For extremely sensitive environments, an end to end encrypted tunnel such as OpenCode&#39;s pair mode might be preferable.</p><p>You can also combine approaches. Use Pinggy to access the machine&#39;s shell, and use OpenCode&#39;s pair mode only when you want to interact with the OpenCode web UI on a phone. The two methods do not conflict, and the browser shell gives you a fallback when the OpenCode web UI is not needed.</p><h4>Memory and Performance: What to Expect</h4><p>The browser terminal is surprisingly efficient. Typing latency is usually below 100 milliseconds on a decent connection. The terminal stream compresses well, and the Pinggy dashboard uses incremental rendering, so only changed regions of the screen are sent. For TUI applications like OpenCode, this matters because the screen updates frequently.</p><p>On the remote machine, the Pinggy agent is a lightweight process. It uses little CPU and a few megabytes of memory. OpenCode, by contrast, can use significant resources when it is running tests or indexing a large codebase. Do not judge the remote setup by the responsiveness of your browser alone; the bottleneck is likely the agent&#39;s workload, not the terminal.</p><p>If you run multiple shells, each shell is an independent process. The 30 minute idle timeout and 8 hour maximum are per shell, so a long running process inside a shell can be interrupted. For tasks that take longer, run them with nohup, or use a terminal multiplexer and close the shell window without killing the multiplexer.</p><h4>Real World Scenarios</h4><p>Consider a developer who has a powerful desktop at home and a lightweight laptop for travel. The desktop is behind a residential router with no static IP. Installing Pinggy and OpenCode on the desktop means the laptop can open a browser, connect to the desktop, and continue a coding session from a hotel room. The only requirement is that the desktop stays awake and connected.</p><p>Another scenario is a data science team that shares a server with a large GPU. Instead of dealing with SSH key rotations, they create a Pinggy account for the server and share the device access. Each team member opens a browser shell, runs OpenCode, and works with the GPU from their own laptop. The dashboard&#39;s activity log provides an audit trail.</p><p>A third scenario is troubleshooting a server that is in a remote location, such as an edge device in a factory. The device runs the Pinggy agent, and an engineer can open a shell through the Pinggy dashboard to inspect logs, restart a service, or ask an AI agent to analyze a crash dump. There is no need to send someone to the site.</p><h4>Frequently Asked Questions</h4><ul><li>Do I need a public IP address? No. The Pinggy agent makes an outbound connection, so the machine can be behind any NAT or firewall.</li><li>Can I use OpenCode 1? Yes, the browser shell is a normal terminal, so OpenCode 1 works too. You will not get the session persistence of OpenCode 2&#39;s background server.</li><li>Can I use a different AI coding agent? Yes, the shell is not tied to OpenCode. Claude Code works in the same terminal, as do any other CLI tools.</li><li>How do I keep the Pinggy agent running after I log out? Use the background agent from CLI 0.6.4 and run the connect command after reboot. For a persistent system service, follow the Pinggy docs.</li><li>Is the terminal stream encrypted? Yes, the browser uses HTTPS, and the connection between the agent and Pinggy is encrypted.</li><li>Can multiple people use the same device at the same time? With Pro, you can have up to three shells per device. Free allows only one shell at a time.</li></ul><h4>Recap and Quick Commands</h4><p>Here are the essential commands you need. Install Pinggy and sign in:</p><pre>curl -fsSL https://pinggy.io/install.sh | sh</pre><p>Install OpenCode 2:</p><pre>curl -fsSL https://opencode.ai/v2/install | bash</pre><p>Open the Pinggy Devices page, click your device, open the Terminal tab, and click New shell. Then run:</p><pre>opencode</pre><p>To continue the last session in a new shell later:</p><pre>opencode -c</pre><p>That is the whole workflow. The browser shell gives you a full terminal on any machine that can run the Pinggy agent, and OpenCode 2&#39;s background server makes sure your AI coding sessions survive shell restarts. This combination is powerful, practical, and easy to set up.</p><blockquote><em>The best terminal is the one that is already in your browser, connected to your code.</em></blockquote><h4>Reference</h4><p><a href="https://pinggy.io/blog/run_opencode_remotely_from_any_browser/">Run OpenCode Remotely from Any Browser with Pinggy</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=73ac8613cdb0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Port 0: When Zero Means ‘You Choose’]]></title>
            <link>https://medium.com/@bishakhghosh0/port-0-when-zero-means-you-choose-01b31ee283c5?source=rss-61f5302a9c7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/01b31ee283c5</guid>
            <category><![CDATA[development]]></category>
            <category><![CDATA[tcp]]></category>
            <category><![CDATA[ssh-tunnel]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Lightning Developer]]></dc:creator>
            <pubDate>Wed, 11 Nov 2026 14:41:01 GMT</pubDate>
            <atom:updated>2026-11-11T14:41:01.586Z</atom:updated>
            <content:encoded><![CDATA[<p>The reserved TCP port that cannot be connected to, but bind(0) and ssh -R0 rely on it every day.</p><p>Port 0 is reserved. A TCP segment is not supposed to carry it, and on <a href="https://www.kernel.org/">Linux</a> connect() to it fails with ECONNREFUSED. Yet bind(0) is one of the most-used socket calls there is, and the 0 in ssh -R0:localhost:3000 is the same number doing a similar job. In both cases 0 does not mean a port. It means &#39;you choose.&#39;</p><p>I ran a few small experiments on a Linux 6.18 box to see where that holds, where it breaks, and what it has to do with tunnels. All the output below is real unless it says otherwise.</p><h4>The short version</h4><p>In the sockets API, bind(0) asks the kernel for a free ephemeral port. You read the port back with getsockname(). On Linux the pool is 32768-60999 by default. On the wire, port 0 is reserved. TCP has no use for it, and trying to connect to it fails. UDP is the one oddity: <a href="https://www.rfc-editor.org/rfc/rfc768">RFC 768</a> lets a sender put 0 in the source port when it does not want a reply. ssh -R0:... uses the same trick on a remote machine. The SSH protocol lets the client ask the server to pick the listening port and report it back, which is how a <a href="https://pinggy.io/">Pinggy</a> TCP tunnel gets its port. The practical rule: ask for port 0 when you do not care which port you get, then read the real port back before you tell anyone else about it.</p><blockquote><em>0 does not mean a port. It means &#39;you choose.&#39;</em></blockquote><h4>What bind(0) does</h4><p>Binding a socket normally means &#39;listen on this exact port.&#39; Passing 0 changes the question to &#39;give me any free one.&#39; The kernel picks a port from its ephemeral range, binds the socket to it, and you ask the socket afterwards what it got.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Rn_3cI6IevneiVDElBwLbA.png" /></figure><p><em>After bind(0), the kernel chooses an ephemeral port and the application reads it back.</em></p><p><a href="https://www.python.org/">Python</a> shows it in four lines:</p><pre>import socket<br><br>s = socket.socket()<br><br>s.bind((&#39;127.0.0.1&#39;, 0))<br><br>print(s.getsockname())</pre><p>Run it again and you get a diferent number (my second socket got 44627). <a href="https://nodejs.org/">Node.js</a> does the same through listen(0):</p><pre>const s = require(&#39;net&#39;).createServer().listen(0, &#39;127.0.0.1&#39;, () =&gt; {<br>  console.log(&#39;listening on&#39;, s.address().port)<br>})</pre><p>The range comes from a sysctl. On the machine I used:</p><pre>cat /proc/sys/net/ipv4/ip_local_port_range</pre><pre>32768   60999</pre><p>That is the Linux default. <a href="https://www.iana.org/">IANA</a>&#39;s suggested ephemeral range in <a href="https://www.rfc-editor.org/rfc/rfc6335">RFC 6335</a> is 49152-65535, and <a href="https://www.microsoft.com/windows/">Windows</a> and the BSDs follow that one, so the same program lands in a different part of the port space depending on the OS.</p><p>The port number exists only after bind returns, so the program has to read it back.</p><p>Why bother? Because hard-coded ports collide. Test suites that start a server per test, CI jobs that share a runner, and two dev servers that both want 3000 all trip over each other. Letting the kernel choose means nobody collides, since the kernel will not hand out a port that is already bound.</p><p>There is a catch: the port is only free at the moment you bind. Code that picks a port with bind(0), closes the socket, and then passes the number to another process has a race. Something else can take it in between. Keep the socket open and hand the process the socket, or have the server itself listen on 0 and report the port.</p><h4>How the kernel chooses an ephemeral port</h4><p>When an application calls bind(0), the kernel searches its table of assigned ports. On Linux, the search starts at the next candidate in ip_local_port_range. It skips ports that are already bound or marked as reserved. The algorithm tries to avoid predictable patterns, but it is not a cryptographic random number generator. The chosen port is stable for the lifetime of the socket.</p><p>The kernel distinguishes between ephemeral ports and listening ports. A port assigned by bind(0) is a normal port. It can be used for listen(), connect(), or sendto(), depending on the socket type. The same pool is used for outbound connection source ports. This means a listening socket on an ephemeral port and an outbound connection cannot use the same port number on the same local IP. The kernel prevents the conflict. This is why ephemeral port exhaustion can affect listeners too.</p><p>The IANA ephemeral range is a recommendation, not a law. Linux uses 32768-60999 by default, while Windows uses 49152-65535. The local port range can be changed. Some systems use a single range for all protocols, others have separate IPv4 and IPv6 ranges. The important thing is that port 0 resolves to a real port from the operating system&#39;s configured range.</p><h4>The same idea in other languages</h4><p>Every language with a sockets API exposes bind(0) in some form. In <a href="https://go.dev/">Go</a>, net.Listen accepts an address with port 0 and the returned listener exposes the chosen port. In <a href="https://www.ruby-lang.org/">Ruby</a>, TCPServer.new with port 0 stores the port in addr[1]. In <a href="https://www.rust-lang.org/">Rust</a>, TcpListener::bind with port 0 lets you read local_addr() after binding. The pattern is always the same: bind to 0, then ask the operating system for the real port.</p><pre>ln, err := net.Listen(&quot;tcp&quot;, &quot;127.0.0.1:0&quot;)<br>if err != nil {<br>    log.Fatal(err)<br>}<br>port := ln.Addr().(*net.TCPAddr).Port</pre><pre>server = TCPServer.new(&#39;127.0.0.1&#39;, 0)<br>port = server.addr[1]</pre><pre>let listener = TcpListener::bind(&quot;127.0.0.1:0&quot;)?;<br>let port = listener.local_addr()?.port();</pre><h4>Why you cannot connect to port 0</h4><p>The sockets convention is a local trick. Port 0 is still marked reserved in the <a href="https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml">IANA</a> registry, and TCP does not use it. If you try to connect to it:</p><pre>socket.create_connection((&#39;127.0.0.1&#39;, 0), timeout=2)<br><br><br>ConnectionRefusedError: [Errno 111] Connection refused</pre><p>A UDP sendto() to port 0 is rejected before it leaves the machine, with EINVAL (&#39;Invalid argument&#39;) in my run. So 0 is a valid argument to bind and an invalid destination for everything else.</p><p>The nuance is the UDP source port. <a href="https://www.rfc-editor.org/rfc/rfc768">RFC 768</a> calls the source port optional: it indicates the port of the sending process, and if it is not used, a value of zero is inserted. In practice it means &#39;do not reply to me.&#39; It is legal on the wire, and some firewalls drop it anyway.</p><p>The IETF mailing lists have argued for years over whether &#39;reserved&#39; means &#39;forbidden&#39; or just &#39;unassigned&#39;; one <a href="https://www.freebsd.org/">FreeBSD</a> thread covers the firewall angle, and a POSIX standards bug report covers whether POSIX should specify the bind behaviour at all (it does not say much).</p><p>For SCTP the rule is stricter: <a href="https://www.rfc-editor.org/rfc/rfc4960">RFC 4960</a> section 3.1 forbids 0 as a source or destination port.</p><p>The takeaway: nobody should be listening on port 0 and nobody should be dialing it, and no real service will recieve your packets if you do. When you see traffic to port 0 in a firewall log, it is almost always a probe or fragments that lost their port information, not a service.</p><h4>How port 0 is represented in protocol registries and stacks</h4><p>The IANA registry has a row for port 0 in both TCP and UDP. The keyword is Reserved. That status is not the same as Unassigned. Unassigned means nobody asked for it yet. Reserved means the protocol community has agreed not to use it for ordinary services. The distinction matters because a firewall that treats all Reserved ports as invalid might drop UDP packets with a source port of 0, even though RFC 768 allows them.</p><p>TCP itself never carries port 0 in a normal packet. The TCP header has a 16-bit source port and a 16-bit destination port. A value of 0 is not used by the endpoint to identify a connection. The Linux TCP stack rejects connect() to port 0 with ECONNREFUSED before any SYN leaves the machine. That is why the error appears instantly, without a timeout.</p><p>UDP is different. The UDP header also has 16-bit ports, but RFC 768 says the source port is optional. If the sending process does not need a reply, it can put 0 in the source port field. This is not a bug. It is a deliberate protocol feature. Some network middleboxes still treat it as suspicious, and a number of firewalls drop UDP packets with a zero source port.</p><p>SCTP goes the other way. RFC 4960 section 3.1 says the source port and destination port in an SCTP packet must not be 0. SCTP associations are identified by a pair of endpoints plus tag values, but the port number is still required for demultiplexing. The rule is explicit and leaves no room for optional source ports.</p><h4>The other port 0: ssh -R0</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jvKuZLOBl_K6ZhUpixovOw.png" /></figure><p><em>Remote port 0 tells the SSH server to allocate a port and report it back to the client.</em></p><p>If you have used <a href="https://pinggy.io/">Pinggy</a>, you have typed this:</p><pre>ssh -p 443 -R0:localhost:3000 free.pinggy.io</pre><p>The 0 in -R0 is the remote port to listen on, and it is the same idea as bind(0). The format is -R [bind_address:]port:host:hostport, so -R0:localhost:3000 reads as &#39;listen on any free port on the server, and send what arrives to localhost:3000 on my machine.&#39;</p><p>The SSH protocol has this built in. In <a href="https://www.rfc-editor.org/rfc/rfc4254">RFC 4254</a>, section 7.1, the client sends a tcpip-forward request, and if the port to bind is 0 and the client asked for a reply, the server allocates the next available unprivileged port and returns it. The client then knows where the forward lives.</p><p>With a plain <a href="https://www.openssh.com/">OpenSSH</a> server, you can see it directly (this is OpenSSH&#39;s own behaviour, not something Pinggy-specific):</p><pre>Allocated port 41873 for remote forward to localhost:3000</pre><p>OpenSSH prints that line on stderr when the server picks the port. With a Pinggy HTTP tunnel the port is hidden behind a hostname, so you get a URL such as https://abc123.a.pinggy.link. For a TCP tunnel you get the host and port itself:</p><pre>ssh -p 443 -R0:localhost:22 tcp@free.pinggy.io</pre><p>Pinggy prints a tcp:// address with a port the server allocated, and that port is what a friend types into their SSH client. I could not run the tunnel from the sandbox I wrote this in (it has no ssh client), so the output of those two <a href="https://pinggy.io/">Pinggy</a> commands is untested here. The command forms match the <a href="https://pinggy.io/docs/">Pinggy docs</a>.</p><p>With -R0 the Pinggy server picks the public port and tells the client which one it got.</p><h4>A closer look at SSH remote forward protocol</h4><p>The SSH tcpip-forward request includes an address and a port. If the port is 0, the server allocates an unprivileged port and returns it in the SSH_MSG_REQUEST_SUCCESS message. The client can then inform the user or another process. OpenSSH prints the allocated port on stderr when it receives the reply. The same mechanism is used for remote forwards, not local forwards. The port 0 trick is specific to -R.</p><p>There is a subtlety: the server may allocate a port from its own ephemeral range, not from the client&#39;s. If the server is behind NAT, the allocated port may not be reachable from the internet unless the NAT maps it. Pinggy runs the SSH server on a public IP, so the allocated port is publicly reachable. A private OpenSSH server behind a corporate NAT would not be reachable from outside without port forwarding.</p><p>When you use -R0 with Pinggy, the server is a public relay. The port it allocates is on the relay, not on your laptop. The relay forwards TCP connections to your localhost through the SSH session. This is why the allocated port works for a friend on another network. The tunnel is the transport; the remote port is the entry point.</p><h4>Using both zeros in one workflow</h4><p>Here is the worked example: a <a href="https://nodejs.org/">Node.js</a> dev server that picks its own port, then a tunnel that points at whatever port it got.</p><pre>// server.js<br><br>const http = require(&#39;http&#39;)<br><br>const s = http.createServer((req, res) =&gt; res.end(&#39;hello\n&#39;))<br><br>s.listen(0, &#39;127.0.0.1&#39;, () =&gt; console.log(s.address().port))</pre><p>Run the server in one terminal and read the port it prints:</p><pre>node server.js</pre><pre>44909</pre><p>Then start the tunnel from another terminal:</p><pre>ssh -p 443 -R0:localhost:44909 free.pinggy.io</pre><p>Swap 44909 for the port your server printed. Two kinds of &#39;pick a port for me&#39; are now stacked: the kernel chose 44909 locally, and the Pinggy server chooses the public side. Neither number was in your config, and nothing had to be free in advance.</p><p>The main thing to watch is the local race from earlier. If you script this, have the server write the port to a file after it is listening, and start the tunnel after the file exists.</p><h4>Automation and avoiding races</h4><p>Dynamic ports are excellent for automation, but they create coordination problems. A test harness that starts a server on port 0 must learn the port before it can tell clients where to connect. Here are the patterns that work.</p><ul><li>Keep the listening socket open in the same process that reports the port. Do not close and reopen.Write the assigned port to a well-known file or environment file only after the listen call has succeeded.Use a Unix domain socket or an inherited file descriptor when the caller and the server are separate processes. For remote tunnels, parse the stderr line from OpenSSH or the output from Pinggy to get the allocated public port. If you are using Docker, publish port 0 and let the Docker daemon allocate a host port; then read the mapping from docker port or the container API.</li><li>The race condition appears when you use the port number after the original socket is gone. The kernel only knows that the port was free at bind time. Once the socket closes, the port returns to the ephemeral pool and another process can grab it. A common mistake is to bind a temporary socket to port 0, read the number, close that socket, and then start the real server on that number. By the time the real server binds, the port may be taken. This race keeps occuring when the port is treated as a reusable number instead of a property of the socket. The fix is to have the real server itself call bind(0) and then report its own port.</li></ul><h4>Using port 0 in test suites</h4><p>Test suites benefit from port 0 in two ways. First, each test process can bind to its own ephemeral port, avoiding the classic &#39;port already in use&#39; failure. Second, tests can run in parallel without coordinating a fixed port. The cost is that every test must know how to read the assigned port from the server object.</p><p>For example, a Python unittest can create a socket, bind to 127.0.0.1:0, start a server thread, and pass the port to the client. The same pattern works in pytest fixtures and Node.js test runners. The important detail is to wait until the server is actually listening before using the port. If the server binds asynchronously, the test should poll the port or wait for a readiness event.</p><p>Some test frameworks use port 0 as the default port for helper servers. This is a good default because it removes a whole class of CI flakiness. The framework just needs to expose the port through an API or a log line. If the framework does not expose it, tests cannot know where to connect.</p><h4>Port 0 in systemd, Docker, and Kubernetes</h4><p>The same request is built into process managers and container platforms. <a href="https://systemd.io/">systemd</a> socket units can use ListenStream=0, which makes systemd choose a port and pass the listening socket to the service. <a href="https://www.docker.com/">Docker</a> supports host port 0 in docker run -p 0:8080, which makes the daemon choose a host port. <a href="https://kubernetes.io/">Kubernetes</a> NodePort services can set nodePort: 0, and the control plane assigns a free port from the configured range.</p><p>These tools differ in how you discover the allocated port. systemd writes the socket path and port into the service environment or the socket unit. Docker prints the mapping in docker port. Kubernetes reports the nodePort in the Service status. In every case, the application should not assume a fixed number.</p><h4>Troubleshooting and edge cases</h4><p>Connection refused on port 0 is expected. If you see it in a test, the problem is probably a hard-coded 0 in a client connection string. Replace it with the actual port from getsockname() or s.address().port.</p><p>EINVAL from UDP sendto() to port 0 is also expected. The operating system rejects the destination before it builds the packet. If you need to send a UDP packet with source port 0, bind the socket to port 0 and then send to a real destination port. The source port field in the outgoing packet may be 0, but the destination port must be a real service port.</p><p>Firewall logs often show port 0 because fragmented packets carry the port number only in the first fragment. If the firewall sees later fragments, it may display port 0 in the log. That is not a service on port 0. It is an artifact of fragment reassembly. Modern IPv6 and most networks avoid fragmentation, but the pattern still appears.</p><p>Docker and Kubernetes add another layer. A container can bind to port 0 inside the container, but the published port on the host is a separate allocation. Docker supports -p 127.0.0.1::8080 or -p 127.0.0.1:0:8080 to ask the daemon to choose a host port. The container sees 8080, while the host maps it to a dynamic port. This is the same &#39;you choose&#39; idea, implemented by the Docker daemon rather than the kernel.</p><p>IPv6 has its own ephemeral port range on Linux, controlled by /proc/sys/net/ipv6/ip_local_port_range. The default is often the same as IPv4. When a server listens on :: with port 0, the kernel allocates a port from that range. The same read-back rule applies: call getsockname() after listening to learn the actual port.</p><p>Multiple processes binding to port 0 can still collide if they ask for a specific port later. Suppose process A binds to 0, gets 40000, closes, and process B binds to 0 and gets 40000 because it is free again. That is fine. The collision only matters if one process expects to reuse a previously assigned number. Dynamic allocation is always safer than reusing a number from an earlier run.</p><p>Ephemeral port exhaustion is a real issue for servers that create many outbound connections. Each TCP connection uses an ephemeral source port. If the local range is 32768-60999, that is only 28232 ports. With a busy server, the kernel may run out and return EADDRNOTAVAIL. Setting bind(0) for inbound servers does not exhaust the range; outbound connection storms do. Tuning ip_local_port_range can help, but reducing TIME_WAIT and connection reuse is often better.</p><p>SO_REUSEADDR interacts with dynamic ports in a useful way. A server can set SO_REUSEADDR before bind(0), which lets it bind to a port in TIME_WAIT if needed. It does not let two sockets bind to the same port at the same time. On Linux, SO_REUSEPORT allows multiple sockets to share the same port for load balancing, but the port must be a real number. You can still use 0 for the first socket and then read the port for the others.</p><h4>Working with firewalls and NAT</h4><p>Dynamic ports complicate firewall rules. If a server binds to port 0, the firewall cannot allow traffic to a known port in advance. You have two choices: use a fixed port for production or update the firewall after the port is allocated. The second option is fragile and slow. This is why many production services prefer fixed ports, despite the convenience of port 0.</p><p>NAT port mapping has the same issue. A router that forwards port 3000 to a laptop cannot follow a laptop that changes ports. For local development, tools like <a href="https://pinggy.io/">Pinggy</a> avoid this by placing the public port on a relay. The relay port is stable for the duration of the tunnel, and the local port can change freely.</p><p>If you expose a port 0 service through a reverse proxy, the proxy must know the upstream port. Some proxies support dynamic reconfiguration through a file or an API. The server can write its assigned port to a file, and the proxy can reload. This is a common pattern for single-node deployments.</p><h4>When not to use port 0</h4><p>Dynamic ports are not always the right answer. Public services behind DNS need stable ports. A web server on port 443 is expected; a web server on port 51234 requires clients to know the current port. If you have a load balancer, a firewall, or a monitoring system that must allow traffic, a changing port creates operational overhead. Use port 0 for temporary and parallel workloads, not for stable production endpoints.</p><p>Protocols that embed port numbers in application data, like FTP, SIP, and some peer-to-peer protocols, need extra care. If the server tells a client to connect to port 0, the client will try to connect to port 0 and fail. The application must substitute the real port after bind. The same is true for SSH remote forwards: the client must parse the allocated port from the server reply before telling anyone to connect.</p><h4>Fixed ports versus port 0</h4><ul><li>Fixed ports are easy to document, firewall, and load balance. They collide when multiple processes share a host.Port 0 avoids collisions but requires discovery. For temporary services, port 0 wins. For stable public endpoints, fixed ports win. A hybrid approach uses a fixed port for the public endpoint and port 0 for internal helper processes.</li></ul><h4>Security and operational considerations</h4><p>Port 0 is not a secret and not a security control. A service that binds to port 0 is not hidden just because the port number changes. The port is printed in logs, process listings, and connection tables. Anyone with access to the machine can see it. Use authentication, firewalls, and encryption to protect the service, not an unpredictable port.</p><p>Firewall rules should not try to block port 0 as if it were a service port. Blocking outbound TCP to port 0 may be sensible, but it does not stop scans for real ports. Inbound rules should be based on the actual allocated port, which means automation must update the firewall when the port changes. This is one reason fixed ports are still common in production even though dynamic ports are convenient for development.</p><p>Port scanners do scan port 0. Some treat it as a malformed packet and report it separately, while others simply include it in the range. Seeing a connection attempt to port 0 in your logs is not unusual. It does not mean a vulnerability. It often means a scanner is enumerating all 65536 ports or a misconfigured client used 0 as a placeholder.</p><h4>Port 0 and DNS SRV records</h4><p>DNS SRV records let a domain advertise a service port without hard-coding it in clients. A service that binds to port 0 can update a SRV record with the actual port after startup. This is common in microservices that use service discovery. The client looks up the SRV record, gets a hostname and port, and connects. The same idea works with a shared key-value store or a simple file.</p><p>Port 0 alone does not provide service discovery. It only avoids a fixed port. You still need a way to communicate the chosen port to clients. SRV records are one option; another is a shared environment variable; another is a control channel. The key is to make the discovery mechanism dynamic.</p><h4>Port 0 and HTTP servers</h4><p>Most HTTP server frameworks expose port 0. In <a href="https://nodejs.org/">Node.js</a>, server.listen(0) is common. In <a href="https://www.python.org/">Python</a>, http.server can bind to 0 if you pass it, but you need a custom handler to print the port. In <a href="https://go.dev/">Go</a>, http.ListenAndServe on &#39;:0&#39; will listen on a random port, but the function does not return the port easily; use net.Listen first.</p><p>The default behavior of many frameworks is to use port 0 when no port is specified. For example, some test servers default to 0. This is convenient but can confuse developers who see port 0 in logs and assume the server is broken. The log should print the resolved port after listening.</p><h4>Logging and observability</h4><p>When you use port 0, log the real port. A log line that says &#39;listening on port 0&#39; is useless. The server should print &#39;listening on http://127.0.0.1:51234&#39; after bind. This small change saves hours of debugging.</p><p>The same applies to process managers. <a href="https://systemd.io/">systemd</a> shows the actual port in the socket unit once it is allocated. <a href="https://www.docker.com/">Docker</a> shows the mapping in docker port. <a href="https://pinggy.io/">Pinggy</a> prints the public URL. If a tool hides the port, use its API to read it.</p><h4>Seeing it on your own machine</h4><p>Three quick checks, all of which work without root:</p><pre>python3 -c &quot;import socket;s=socket.socket();s.bind((&#39;127.0.0.1&#39;,0));print(s.getsockname()[1])&quot;<br><br>cat /proc/sys/net/ipv4/ip_local_port_range<br><br>sysctl net.inet.ip.portrange.first net.inet.ip.portrange.last<br><br>lsof -iTCP -sTCP:LISTEN -P -n</pre><p>Run the first one several times and watch the number change. Then try nc 127.0.0.1 0. The copy of netcat on my box rejected it before touching the network (nc: port number too small: 0), so the Python connect() above is the better test.</p><p>On <a href="https://www.apple.com/macos/">macOS</a>, the ephemeral range is controlled by sysctl net.inet.ip.portrange.first and net.inet.ip.portrange.last. The defaults are usually 49152 to 65535, matching the IANA recommendation. On <a href="https://www.freebsd.org/">FreeBSD</a>, the same sysctl names are available. On <a href="https://www.microsoft.com/windows/">Windows</a>, the dynamic port range is shown by netsh int ipv4 show dynamicport tcp.</p><h4>Frequently asked questions</h4><p>Can I force a server to bind to port 0 and then tell clients? Yes, as long as the server reads the port after binding and advertises it. The common pattern is a server that prints the port to stdout, writes it to a file, or sends it over a control channel. Clients must not assume a fixed port.</p><p>Is port 0 safe to use in CI? It is safer than a fixed port. If every test job asks for port 0, the kernel allocates a different port per process. The main requirement is that the test framework can capture the port from the server output. Some CI runners do not let you open arbitrary ports on the host, but binding to 127.0.0.1 with port 0 usually works.</p><p>Does ssh -R0 work with every SSH server? It depends. The SSH protocol supports it, but the server must implement tcpip-forward with port 0 allocation. OpenSSH does. Some older or minimal SSH servers may reject port 0 or allocate a port but not send the reply. Check the server logs if you get no allocated port.</p><p>What about UDP source port 0? It is legal in RFC 768 and means &#39;no reply needed.&#39; Many servers still answer to the source address and port 0, but the response will be sent to port 0, which is useless. Some NATs and firewalls drop it. Use a real source port for anything that needs a response.</p><p>Why do I see port 0 in logs? It could be a probe, a fragmented packet, a malformed packet, or a service that logged a placeholder before the port was allocated. Do not assume there is a server listening on port 0.</p><h4>Conclusion</h4><p>Port 0 is not a port you use. It is a request. Locally it means &#39;kernel, choose,&#39; remotely it means &#39;server, choose,&#39; and in both cases the real number only shows up in the reply. If you write servers or test harnesses, listen(0) and a read-back cures most port clashes. If you tunnel, remember that the 0 in -R0 is why you did not have to pick a public port at all.</p><p>The same idea appears in many systems. Docker host port allocation, macOS and Windows dynamic ports, and SSH remote forwards all use the &#39;choose for me&#39; pattern. Once you understand port 0 as a request rather than a value, you can build scripts and services that never hard-code a port and never collide with another process on the same machine.</p><h4>References</h4><ul><li><a href="https://pinggy.io/blog/port_0_the_port_that_does_not_exist/">Port 0: The Port That Doesn&#39;t Exist</a></li><li><a href="https://www.rfc-editor.org/rfc/rfc768">RFC 768, User Datagram Protocol</a></li><li><a href="https://www.rfc-editor.org/rfc/rfc6335">RFC 6335, IANA Procedures for the Management of the Service Name and Transport Protocol Port Number Registry</a></li><li><a href="https://www.rfc-editor.org/rfc/rfc4254">RFC 4254, The Secure Shell (SSH) Connection Protocol</a></li><li><a href="https://www.rfc-editor.org/rfc/rfc4960">RFC 4960, Stream Control Transmission Protocol</a></li><li><a href="https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml">IANA Service Name and Transport Protocol Port Number Registry</a></li><li><a href="https://pinggy.io/docs/">Pinggy Documentation</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=01b31ee283c5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The 7 Best AI Decision Models in 2026: Independent Benchmark Showdown]]></title>
            <link>https://medium.com/@bishakhghosh0/the-7-best-ai-decision-models-in-2026-independent-benchmark-showdown-e49b6f5e850e?source=rss-61f5302a9c7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/e49b6f5e850e</guid>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Lightning Developer]]></dc:creator>
            <pubDate>Sat, 07 Nov 2026 13:01:02 GMT</pubDate>
            <atom:updated>2026-11-07T13:01:02.201Z</atom:updated>
            <content:encoded><![CDATA[<p>Why decision models are replacing chat calls for routing, tool selection, and guardrails, ranked by three independent leaderboards.</p><p>Most of the calls an AI agent makes are not requests for prose. Route this ticket, allow this tool call, rate this incident: each is a small, bounded decision, and paying a chat model to write a sentence that your code parses back into an if statement is slow and expensive.</p><p>A month ago only one company sold a model built for that job. Since <a href="https://typesafe.ai/">TypeSafe</a> launched Jev on September 15, 2026, <a href="https://www.openai.com/">OpenAI</a>, <a href="https://www.microsoft.com/">Microsoft</a>, <a href="https://www.perplexity.ai/">Perplexity</a>, <a href="https://www.cloudflare.com/">Cloudflare</a>, <a href="https://www.liquid.ai/">Liquid AI</a> and <a href="https://aws.amazon.com/">AWS</a> have all shipped decision models, and the <a href="https://huggingface.co/spaces/multimodalart/jev-decision-index">Decision Index</a> leaderboard now lists 174 entries. These models return a probability for every allowed answer in a single forward pass, and the hosted ones bill only input tokens, from $0.01 to $0.24 per million.</p><p>Below are the seven worth evaluating, judged on three independent leaderboards rather than vendor charts, with one run on a laptop. Numbers were checked on October 18, 2026.</p><h4>How a decision model differs from a chat model</h4><p>The easiest way to think about a decision model is to compare it with a chat model. A chat model predicts the next token, then the next, until you have a string. A decision model reads your state and questions, then predicts one output for each question across a fixed set of allowed answers. The output is a probability vector, not prose. That makes it trivial to turn into a route, a guardrail decision, or a priority score.</p><p>Three question types cover nearly everything. The first is a yes/no probability, which TypeSafe, Microsoft, Cloudflare and Perplexity call noul and OpenAI calls predicate. The second is a choice among named options. The third is a score on an ordered scale. The model reads the input once and scores every allowed answer in that pass, so nothing comes back malformed and extra questions add little latency.</p><ol><li>A yes/no probability, often called noul or predicate, is useful for approval, abuse detection, sensitivity checks, and tool-use verification.</li><li>A choice among named options is useful for routing, ticket classification, tool selection, and picking a response type.</li><li>A score on an ordered scale is useful for priority, severity, urgency, and confidence in a downstream action.</li></ol><p>The wire format is settling into two shapes. TypeSafe&#39;s POST /v1/systemone request, with state, questions and criteria, is also what Microsoft-Decision-1 serves on Foundry and what the open servers from Strands, Kev and Laya implement, so moving between them is mostly a base URL change. OpenAI and Perplexity each use a POST /v1/decisions endpoint instead.</p><p>Vendors also promise calibrated probabilities: a 0.9 should be right about 90% of the time, so you can act above a threshold and escalate the rest. Artificial Analysis found that holds on tool-calling and safety tasks, but on hard knowledge questions accuracy fell below the stated probability for every decision model it tested.</p><blockquote>Calibration is the real promise of decision models. A confidence score is only useful if it means what it claims.</blockquote><h4>Why the three leaderboards disagree</h4><p>One model cannot win three leaderboards if the leaderboards measure different things. JevBench v1.6.1, maintained by Benchmark Heaven independently of TypeSafe AI, scores 1,500 decisions per system, 1,200 of them sealed. Its composite is a harmonic mean of intelligence, calibration, speed and cost, so cheap, fast hosted APIs do well and self-hosted 27B models get punished on cost. Perplexity&#39;s Decider v1.1 27B has a capability score of 82.8, above any hosted API, and a composite of 20.6.</p><p>Decision Index 0.3.2, updated October 16, takes 20% from 37 public benchmarks, 50% from private tests of the same skills and 30% from private tasks in new domains, and leaves out models slower than 1,000 ms per request. Small-lab fine-tunes crowd the top; first is StartLux-Decision v1.1 27B at 69.12.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZPhfrzB-coKFRxXsSJdV7A.png" /></figure><p>The Decision Index 0.3.2 full-score board covers 174 models. It favors private tests and new domain generalization, which is why small specialist models can appear above much larger hosted systems.</p><p>Artificial Analysis Decision Index v1.0, published October 13, is the only one that also scores chat models. Jev 1.13 gets 58 and Microsoft-Decision-1 gets 54, while Claude Haiku 5.5 Low scores 61 and GPT-6 Luna Low scores 55. Decision models win on cost and time instead: Jev costs $42 per million tasks against Haiku&#39;s $184 and is 11 times faster.</p><p>The JevBench hosted board adds another layer. Data from JevBench hosted board v1.7.46, October 16, 2026, shows costs and capability scores for the main hosted APIs. Costs for d1-ultra and Jev 1.14 are JevBench estimates.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AMhYuLv5HI6QZohmtVQu1Q.png" /></figure><p>So the word best depends on the axis you care about. Here is how the seven compare on the main numbers.</p><ul><li>TypeSafe Jev 1.13 / 1.14: closed weights, hosted price $0.042 per million input tokens, text with images in preview, JevBench capability 77.1 / 75.0, Decision Index 60.11 / 61.53.</li><li>Liquid d1-ultra: closed weights, d1-3B open, hosted price $0.042, text and images, JevBench capability 80.5, Decision Index not listed for d1-ultra while d1-3B scores 38.90.</li><li>Perplexity pplx-decider v1.2: Apache-2.0, hosted price $0.02 with flash at $0.01, text and images, self-hosted JevBench capability 82.8 for v1.1, Decision Index 65.55.</li><li>Microsoft-Decision-1: closed weights, hosted price $0.042, text only up to 32K, JevBench capability 70.8, Decision Index not listed.</li><li>OpenAI Decisions API with gpt-6-luna: closed weights, hosted price $0.10, text and images, JevBench capability 73.5, Decision Index not listed.</li><li>Cloudflare Clef and Clef-flash: Apache-2.0, hosted prices $0.24 and $0.038, text and images, JevBench capability 75.3 / 63.8, Decision Index 53.08 / 47.61.</li><li>AWS Strands Decider 2B: Apache-2.0, self-hosted only, text only, JevBench not listed, Decision Index 21.34.</li></ul><h4>The 7 best decision models in 2026</h4><p>No model is perfect. The best choice for your system depends on where it runs, how much data you can send, and what your tolerance is for false positives and false negatives. The models below are the ones worth testing today.</p><h4>1. TypeSafe Jev</h4><p>Jev is still the model the field measures against. JevBench is named after it, and Jev leads jabr&#39;s 49-task classifier benchmark at 0.969 macro accuracy, though that suite does not include newer entrants. Pricing is unchanged at $0.042 per million input tokens with output free. A request takes up to 64k tokens, with 32k per question, and up to 255 options per choice.</p><p>jev-1.14.0 shipped on October 14 with three opt-in features behind danger zone headers: image input, a box question type for bounding boxes, and long context up to 262k tokens. TypeSafe says none is production-ready, and jev-latest stays on 1.13.0 until about October 21. Independent scores split on the upgrade: JevBench has 1.14 slightly behind 1.13, capability 75.0 against 77.1, while the Decision Index has it slightly ahead, 61.53 against 60.11.</p><p>Access is still labelled early access, though the company raised $870 million at a $7.5 billion valuation on October 9, so it is unlikely to vanish mid-integration. For production teams, the safest pattern is to use the version string explicitly rather than jev-latest, and to re-run your shadow-mode suite before moving to 1.14.</p><h4>2. Liquid AI d1-ultra and d1-3B</h4><p>Liquid AI has the strongest independent result of any large vendor right now. Its hosted d1-ultra, released October 15 on the Liquid API at $0.042 per million input tokens, takes text and images. On JevBench&#39;s hosted board it sits second overall with a composite of 76.1 and a capability of 80.5, ahead of Jev 1.13 on both. Liquid says it beat Jev 1.14 on all 112 of its own evaluations. It has not named the base model, and it is three days old.</p><p>The open d1-3B, with 3.12B parameters, is built on LFM2.5-VL-3B and a 32,768-token context. It is the speed pick. Liquid reports 8 ms per decision on an RTX 4090 and 30 ms on an M5 Pro, with GGUF and MLX builds. It scores 38.90 on the Decision Index, well behind the 27B models. Read the license first: the LFM Open License v1.0 allows commercial use only below $10 million in annual revenue.</p><h4>3. Perplexity pplx-decider v1.2</h4><p>This is the best open-weight model from a major vendor and the cheapest hosted one. Version 1.2, released October 15, is a 27B fine-tune of <a href="https://qwenlm.github.io/">Qwen3.8-27B</a> under Apache-2.0, with a 4B flash variant on Qwen3.5-4B. The hosted Decisions API charges $0.02 per million input tokens for the 27B and $0.01 for flash, output free, and accepts text and images with up to 128 questions per request.</p><p>Its 65.55 is the fourth-highest score of 174 on Decision Index 0.3.2 and the highest of any model in this list. Flash scores 54.81. Self-hosting the 27B takes roughly 49 to 52 GiB of GPU memory, which is what sinks v1.1&#39;s JevBench composite. Perplexity reports an expected calibration error of 0.014 on its own development set. Treat that as a vendor number.</p><h4>4. Microsoft-Decision-1</h4><p>Microsoft-Decision-1, in public preview in Foundry since October 9, is <a href="https://qwenlm.github.io/">Qwen3.5-9B</a> post-trained for single-pass scoring, at $0.042 per million input tokens in US and EU Datazone deployments. It speaks TypeSafe&#39;s protocol: requests go to a Foundry endpoint under providers/microsoft/v1/systemone with the same state and questions shape, so code written for Jev moves over with a new URL and key. Inputs are text only, up to 32K tokens, and it is also on <a href="https://openrouter.ai/">OpenRouter</a>.</p><p>Microsoft claims top accuracy across its own 36 benchmarks and an 85 ms median. Independent numbers are more modest. JevBench ranks it 13th with a capability of 70.8 and a measured median of 0.46 seconds. Artificial Analysis gives it 54, at $31 per million tasks against Jev&#39;s $42. Microsoft plans to rebase it on MAI and OpenAI models, so re-test when it does.</p><h4>5. OpenAI Decisions API</h4><p>OpenAI&#39;s version is a new endpoint, POST /v1/decisions, that runs only gpt-6-luna and has been in public beta since October 6. Input costs $0.10 per million tokens with no charge for output or cache, which makes it the most expensive per decision of the hosted APIs on JevBench, at $0.052 per 1,000. It takes text and images, 1 to 200 questions per request and 2 to 255 options per choice. Any answer can come back as a refusal.</p><p>JevBench gives it a capability of 73.5, with calibration at 90. In <a href="https://every.to/">Every</a>&#39;s early tests it picked the correct control in 76 of 78 steps of a computer-use replay against Jev&#39;s 73, and tied Jev on thread classification while running slower. The real case is integration: if you already rely on OpenAI&#39;s zero data retention, HIPAA or EU data residency, the Decisions API inherits them. Regional processing adds OpenAI&#39;s 10% uplift to the $0.10.</p><h4>6. Cloudflare Clef</h4><p>Cloudflare released Clef and Clef-flash on October 1 with Apache-2.0 weights. Clef is 27B on Qwen3.8-27B, and Clef-flash is 9B on Qwen3.5-9B. On October 9 it added Clef-omni, a 30B mixture-of-experts with 3B active parameters that also reads audio and video. On Workers AI they cost $0.24, $0.15 and $0.038 per million input tokens, output free. Clef-flash dropped from $0.090 that same day, and its hosted context shrank from 64K to 24K.</p><p>Cloudflare reports medians of 209.3 ms for Clef and 38.8 ms for Clef-flash. Independent scores put them mid-table: 53.08 and 47.61 on the Decision Index, and capabilities of 75.3 and 63.8 on JevBench&#39;s open board. If your traffic already runs through Workers, @cf/cloudflare/clef-flash is a cheap in-path check, and Clef-omni is the only model here that reads video.</p><h4>7. AWS Strands Decider 2B</h4><p>Strands Decider 2B, from AWS&#39;s Strands Labs team, came out October 1 under Apache-2.0 and is the one you can run on a laptop today. It has 1.9B parameters: <a href="https://qwenlm.github.io/">Qwen3.5-2B-Base</a> with the language-model head removed, a pointer head of about 1M parameters in its place, and a rank-16 LoRA. AWS has not put it on <a href="https://aws.amazon.com/bedrock/">Bedrock</a> as a managed model, so you host it yourself.</p><p>Strands reports 180 of 231, or 77.9%, on JevBench&#39;s public split for the current checkpoint. That is a vendor run on public tasks. The Decision Index, which is mostly private tests, places it 135th at 21.34. Keep it on routing, tool selection and guardrails with clearly distinct options.</p><h4>Running Strands Decider 2B on a laptop</h4><p>I installed it from the repository&#39;s main branch on an M3 Pro with 18 GB, where it picked the MPS backend on its own. The environment used torch 2.14.1 and transformers 5.20.1. The first run downloads about 4.7 GB.</p><pre>pip install &quot;strands-decider @ git+https://github.com/strands-labs/strands-decider&quot;<br>strands-decider ask StrandsAgents/strands-decider-2B-qwen3.5-v1-2610 --state &quot;Help! My payouts have been failing for 3 days!&quot; --choice &quot;Which team should handle this?=billing,sales,retail&quot; --noul &quot;Is the customer blocked right now?&quot; --score &quot;How urgent is this?=can wait,today,right now&quot;</pre><pre>noul_0 noul = 0.209<br>choice_0 -&gt; billing (confidence 0.657)<br>    billing                  0.771<br>    sales                    0.120<br>    retail                   0.109<br>score_0 score = 1.30 (confidence 0.328)<br>    0: can wait                                 0.197<br>    1: today                                    0.311<br>    2: right now                                0.492</pre><p>Routing is right, but 0.209 on blocked right now for payouts failing for three days is a miss. The CLI also reloads the model every time. That command took 17.6 seconds, so for real use start the server, which speaks the same POST /v1/systemone shape as Jev:</p><pre>strands-decider serve StrandsAgents/strands-decider-2B-qwen3.5-v1-2610 --port 8000</pre><p>This client uses only the Python standard library, so it runs as-is under Python 3.13:</p><pre>import json<br>import statistics<br>import time<br>import urllib.request<br><br>URL = &quot;http://localhost:8000/v1/systemone&quot;<br><br>body = {<br>    &quot;state&quot;: &quot;Help! My payouts have been failing for 3 days!&quot;,<br>    &quot;questions&quot;: {<br>        &quot;team&quot;: {<br>            &quot;type&quot;: &quot;choice&quot;,<br>            &quot;instructions&quot;: &quot;Which team should handle this?&quot;,<br>            &quot;criteria&quot;: {<br>                &quot;billing&quot;: &quot;Payments, payouts, invoices and refunds&quot;,<br>                &quot;sales&quot;: &quot;Pricing, plans and new contracts&quot;,<br>                &quot;retail&quot;: &quot;In-store orders and returns&quot;,<br>            },<br>        },<br>        &quot;urgent&quot;: {&quot;type&quot;: &quot;noul&quot;, &quot;instructions&quot;: &quot;Does the customer need help today?&quot;},<br>    },<br>}<br><br>def ask():<br>    req = urllib.request.Request(<br>        URL, data=json.dumps(body).encode(), headers={&quot;content-type&quot;: &quot;application/json&quot;}<br>    )<br>    with urllib.request.urlopen(req) as resp:<br>        return json.load(resp)<br><br>answers = ask()[&quot;answers&quot;]<br>print(json.dumps(answers, indent=2))<br><br>times = []<br>for _ in range(10):<br>    start = time.perf_counter()<br>    ask()<br>    times.append((time.perf_counter() - start) * 1000)<br>print(f&quot;median {statistics.median(times):.0f} ms over {len(times)} calls&quot;)</pre><pre>$ python3 decide.py<br>{<br>  &quot;team&quot;: {<br>    &quot;type&quot;: &quot;choice&quot;,<br>    &quot;choice&quot;: &quot;billing&quot;,<br>    &quot;probabilities&quot;: {<br>      &quot;billing&quot;: 0.9795,<br>      &quot;sales&quot;: 0.0111,<br>      &quot;retail&quot;: 0.0095<br>    },<br>    &quot;confidence&quot;: 0.9692<br>  },<br>  &quot;urgent&quot;: {<br>    &quot;type&quot;: &quot;noul&quot;,<br>    &quot;noul&quot;: 0.9124<br>  }<br>}<br>median 280 ms over 10 calls</pre><p>The request changed and the model did not. Describing each option lifted billing from 0.771 to 0.980, and asking whether the customer needs help today instead of whether they are blocked moved the yes/no from 0.209 to 0.912. Option descriptions and question wording move these models as much as model choice does. Warm requests took a median of 280 ms over 10 calls, slower than the 153 ms Strands reports on an M3 Pro for an earlier checkpoint on short inputs. Its docs say the optional MLX backend runs 1.4 to 1.6 times faster than MPS.</p><h4>Which decision model to pick</h4><p>Pick on deployment first and leaderboard second. For the most independent evidence on a hosted API, use Jev, and trial d1-ultra beside it at the same price. For open weights, pplx-decider v1.2 is the accuracy pick if you have an 80 GB-class GPU, and flash needs far less. If compliance decides, stay on your cloud: Decision-1 on Azure, Decisions on OpenAI, Clef on Workers. For a laptop or an air-gapped box, use Strands Decider 2B or d1-3B, minding Liquid&#39;s revenue cap.</p><p>Kev, Laya and other open Jev clones are in our open source Jev alternatives roundup. The pattern is always the same: try one hosted leader and one open-weight candidate in shadow mode before changing production.</p><h4>Architecture notes for adding a decision model to an agent</h4><p>The biggest architectural difference is that a decision model does not stream text. It returns a JSON object with probabilities, so you can wire it directly into a routing function. In a typical agent, you start with a state object built from the user message, previous tool results, and any side information. You ask one or more questions: which team should handle this, is this request safe to continue, what is the priority. The model returns probabilities for every answer, and your code chooses the highest above a threshold or falls back to a chat model.</p><p>Because extra questions add little latency, many teams batch all routing decisions into a single request. For example, one call might decide whether a message is spam, which workflow to enter, and whether to escalate. This is different from a chat model, where adding tasks to one prompt often creates conflicting instructions and longer outputs. With a decision model, the output shape is fixed, so the orchestration layer stays simple.</p><p>One important detail is the criteria field. The open protocol lets you pass descriptions for every option. The Strands example showed how adding one line to each option can move confidence from 0.771 to 0.980. Treat option descriptions as part of the model&#39;s input. They are not optional text. They help separate near neighbors in the model&#39;s representation space.</p><p>Another detail is refusal or abstention. OpenAI&#39;s Decisions API allows any answer to come back as a refusal. Microsoft and TypeSafe do not always return a confidence high enough to act on, so plan a fallback path. Some teams send low-confidence decisions to a chat model or human review queue. This hybrid pattern is often the most reliable.</p><p>Finally, think about cost in terms of tasks, not tokens. A chat model call might use 1,000 input tokens and 100 output tokens. A decision model may use the same input tokens but zero output tokens, and the hosted APIs price inputs at a fraction of chat models. Compare per task, not per token. This is why a model with a slightly lower capability score can still be the best production choice.</p><h4>How to evaluate decision models on your own data</h4><p>Do not trust a leaderboard over your own traffic. Label a few hundred real decisions from your logs. A labeled set of 300 to 500 examples is enough to rank the leading models with reasonable confidence, especially for routing tasks where classes are distinct.</p><p>Run two candidates in shadow mode for a week. Shadow mode means logging what each model would have chosen without letting it influence the system. Compare accuracy, confidence, latency and cost against what you run today. This catches issues that public leaderboards cannot, such as prompt phrasing inside your state, multi-turn context, and vendor API drift.</p><p>When you score the shadow run, use accuracy and expected calibration error. Accuracy tells you how often the top choice matched the eventual human decision. Expected calibration error tells you whether a confidence of 0.8 is actually right 80% of the time. For decision models, calibration matters more because you want to set a threshold for escalation.</p><p>Also measure tail latency. Vendor medians hide p95. A route that works at 40 ms median but hits 800 ms at p95 may cause a user-facing agent to stall. Test at your real input sizes, with your real option counts, and with network overhead.</p><h4>Production integration patterns</h4><p>The most common way to integrate a decision model is as a router. The agent receives a user request, builds a state object, and asks a choice question with the available tools as options. The model returns a tool name and a confidence. If confident, the agent calls the tool. If not, the agent asks a chat model to clarify.</p><ul><li>Router pattern: use a decision model at the top of an agent to pick one of a fixed set of tools. The model receives the user message and tool descriptions, and returns a tool choice plus confidence. If confidence is low, fall back to a chat model.</li><li>Guardrail pattern: run a yes/no decision model after each chat response and before the response is sent to the user. If it blocks, route to a fallback answer.</li><li>Ticket triage pattern: use a choice model to classify support tickets by team and a score model to set priority. Both can live in one request.</li><li>Tool simulation pattern: in agent loops, use a decision model to decide whether the most recent tool output satisfies the user&#39;s goal before continuing.</li></ul><p>Each pattern benefits from the same rule: keep a fallback. A decision model is a scoring head, not a policy engine. The policy should live in your code, with clear actions for low confidence, refusal, and model failure.</p><h4>Troubleshooting and edge cases</h4><p>The most common failure is not the model but the question. In the Strands example, rerouting from is the customer blocked right now to does the customer need help today changed the output from 0.209 to 0.912. When a decision model seems wrong, rewrite the instructions and option descriptions first. Then consider changing the model.</p><p>Second, watch out for option order. Decision models are trained on many different formats and some show a positional bias. Run a small experiment where you swap the order of choices on a few hundred examples. If accuracy changes, a positional bias has occured. Fix an order convention or choose a different model.</p><p>Third, overconfidence on hard questions appears across models. Artificial Analysis reported that on hard knowledge questions every decision model it tested was overconfident. If your questions are knowledge-heavy, do not use a raw threshold above 0.9. Add a secondary check for difficult cases.</p><p>Fourth, long context can degrade scoring. Hosted context limits create an upper bound, but even below that limit, probabilities can degrade when relevant information is buried. Put the current call or question near the start of the state, not at the end.</p><p>Fifth, multi-modal inputs are still immature. Jev&#39;s image input is behind a danger zone header, and Clef-omni is the only provider reading audio and video. If your production data includes images, test those paths carefully and keep an escape route.</p><p>Sixth, understand what the vendor version numbers mean. jev-latest stays on 1.13, d1-ultra changes without notice, and Microsoft plans to rebase Decision-1 on new base models. Pin versions where possible and run a shadow comparison after every vendor update.</p><h4>Frequently asked questions</h4><ol><li>Can a decision model generate text? No. It returns probabilities for allowed answers. If you need an explanation or a free-form answer, call a chat model. Many teams call a decision model first and then a chat model only when explanation is needed.</li><li>Are decision models cheaper than chat models? At the same input token count, yes, because output tokens are free and prices per input token are lower. The real saving is structural. A chat model may produce hundreds of output tokens. A decision model produces a tiny probability vector.</li><li>Do I still need a chat model? Yes, for anything open-ended. Decision models are not replacements for language understanding in general. They are specialized scoring heads for bounded outputs.</li><li>How do I measure calibration? Collect the predicted confidence for each decision and compare it with the observed accuracy in bins. For example, when the model says 0.8, does roughly 80% of those decisions turn out correct? Plot confidence against accuracy.</li><li>What if none of the allowed answers is correct? Add an other or escalate option, or use the confidence threshold to route to a human. A decision model cannot invent an answer, so your output space must include the fallback cases.</li></ol><p>One more question that comes up in almost every evaluation is whether a decision model can replace a classifier. The answer is nuanced. A decision model is a foundation-model classifier with a bounded output head. If your labels are stable and your data is small, a traditional classifier may be cheaper and easier to debug. If your labels are semantic and your inputs are complex text, a decision model often generalizes better.</p><p>You should also expect to recieve better results when you describe the output space carefully. The criteria field is not a JavaDoc comment. It is part of the model&#39;s score function. A one-line description for each option is usually enough. For harder decisions, add a phrase describing the boundary between two similar options.</p><h4>A note on security and data residency</h4><p>Decision models make guardrails easier, but they also introduce a new attack surface. An attacker who controls the state field can attempt prompt injection against the decision model. The model is not immune just because it outputs probabilities. You should sanitize untrusted input and consider a second independent decision model for high-risk actions.</p><p>Data residency is another seperate concern. Hosted decision APIs send your state to the vendor. If your data cannot leave a specific region, use a vendor with regional processing or self-host an open-weight model. OpenAI offers EU data residency with a 10% uplift. Microsoft offers EU Datazone deployments. Cloudflare runs on the Workers edge. AWS requires self-hosting for Strands.</p><p>If you are testing these models in a local agent and need to share a webhook or demo with a collaborator, <a href="https://pinggy.io/">Pinggy</a> can expose your localhost through a secure public URL without signup or config. It is a useful companion for running Strands Decider or any local model behind an API.</p><h4>Conclusion</h4><p>Don&#39;t trust a leaderboard over your own traffic. Label a few hundred real decisions, run two candidates in shadow mode for a week, and compare accuracy, confidence and cost against what you run today. The three leaderboards disagree and the field reshuffles every few days, so your own labelled set is the only ranking that matches your data.</p><p>Start with Jev or d1-ultra if you want a hosted API with independent numbers. Start with pplx-decider v1.2 if you want open weights and accuracy. Start with Strands Decider 2B or d1-3B if you need to run on a laptop. Then let your logs tell you when to switch.</p><h4>Reference</h4><ul><li><a href="https://pinggy.io/blog/best_ai_decision_models/">7 Best AI Decision Models in 2026, Compared on Independent Benchmarks</a></li><li><a href="https://jevbench.com/">JevBench hosted board v1.7.46</a></li><li><a href="https://huggingface.co/spaces/multimodalart/jev-decision-index">Decision Index 0.3.2</a></li><li><a href="https://artificialanalysis.ai/">Artificial Analysis Decision Index v1.0</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e49b6f5e850e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering Computer Use: A Comprehensive Guide to AI Agent Automation in 2026]]></title>
            <link>https://medium.com/@bishakhghosh0/mastering-computer-use-a-comprehensive-guide-to-ai-agent-automation-in-2026-9930c40c684a?source=rss-61f5302a9c7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/9930c40c684a</guid>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[ai-agent]]></category>
            <dc:creator><![CDATA[Lightning Developer]]></dc:creator>
            <pubDate>Fri, 06 Nov 2026 11:59:47 GMT</pubDate>
            <atom:updated>2026-11-06T11:59:47.063Z</atom:updated>
            <content:encoded><![CDATA[<p>Discover how AI agents from Anthropic, OpenAI, and open-source communities are revolutionizing desktop automation and workflow efficiency.</p><p>The modern digital workspace is filled with legacy applications, internal administrative panels, and complex design software that lack modern programming interfaces. For years, automating these environments required fragile, script-heavy macros that frequently broke during minor UI updates. Today, a new paradigm shift is underway: AI agents that perceive screens and interact with software just like a human user.</p><h4><strong>The Evolution of Desktop Interaction</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bgBidI5ISQq8ZugviL3s8Q.png" /></figure><p>At the core of the current technological advancement lies the ability for large language models to interpret visual data. Benchmarks such as <a href="https://osworld.dev/">OSWorld-Verified</a> have shown that models like <a href="https://claude.ai/">Claude</a> Fable 5 and Opus 5 have reached impressive accuracy rates, often surpassing 80 percent in complex desktop navigation tasks. These agents function through a continuous feedback loop: capturing a frame, processing the visual interface, outputting a tool command, and observing the state change.</p><h4><strong>Implementing Your Own Agent Architecture</strong></h4><p>Building a custom harness requires managing the input loop carefully. The model typically receives high-resolution snapshots which must be downscaled to optimize token consumption, as processing images is significantly more expensive than text-only processing. Developers should utilize tools like <a href="https://pyautogui.readthedocs.io/">PyAutoGUI</a> or <a href="https://playwright.dev/">Playwright</a> to execute the actions requested by the model. It is critical to account for scaling factors, especially on high-density Retina or 4K displays, to ensure mouse clicks land precisely where the model intends.</p><h4><strong>Secure Deployment and Sandboxing</strong></h4><p>Because these agents possess the ability to interact with your file system and execute clicks, security is paramount. Always run experimental agents inside isolated containers using <a href="https://www.docker.com/">Docker</a> or a dedicated virtual machine. By leveraging <a href="https://pinggy.io/">Pinggy</a> to tunnel your VNC or local stream, you can maintain visibility into the agent&#39;s work from external networks without exposing your host machine to the open internet. This allows you to monitor for erratic behavior or prompt injection attempts in real-time.</p><h4><strong>Ecosystem and Model Comparisons</strong></h4><p>The landscape is divided into three distinct categories: native app integration, API-driven custom agents, and open-source frameworks. Projects like <a href="https://browser-use.com/">Browser Use</a> excel in web-native workflows, while desktop-focused agents like UI-TARS provide broader system-level control. For enterprise deployments, ensure your agents are restricted to non-sensitive environments where data loss or unintended API calls can be mitigated by human-in-the-loop validation.</p><h4><strong>Reference</strong></h4><ul><li><a href="https://pinggy.io/blog/control_computer_with_ai_agents/">How to Control Your Computer with AI Agents in 2026: Claude, ChatGPT and Open-Source Setups</a></li><li><a href="https://docs.anthropic.com/en/docs/build-with-claude/computer-use">Anthropic Computer Use Documentation</a></li><li><a href="https://platform.openai.com/docs/guides/computer-use">OpenAI Computer Use API Reference</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9930c40c684a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Get Free AI Model APIs with ‘Unlimited’ Tokens on OpenRouter]]></title>
            <link>https://medium.com/@bishakhghosh0/get-free-ai-model-apis-with-unlimited-tokens-on-openrouter-1c15355460c1?source=rss-61f5302a9c7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/1c15355460c1</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[llm]]></category>
            <dc:creator><![CDATA[Lightning Developer]]></dc:creator>
            <pubDate>Wed, 04 Nov 2026 11:54:25 GMT</pubDate>
            <atom:updated>2026-11-04T11:54:25.011Z</atom:updated>
            <content:encoded><![CDATA[<p>A practical guide to OpenRouter’s free :free models: request limits, rotation, top picks, and production tips.</p><p>Most developers hit the same wall once they start building with large language models: the prototype works, and then the API bill starts tracking every experiment. Frontier models still bill by the token. Claude Opus 5.5 lists at $4 per million input tokens and $20 per million output tokens, and that adds up fast once you&#39;re calling it in a loop.</p><p>Search &#39;free AI API unlimited tokens&#39; and you&#39;ll find a pile of posts promising a way around that. The honest version is less exciting but more useful: OpenRouter gives you no-credit-card access to a rotating set of models at $0 per token, but &#39;unlimited&#39; isn&#39;t the right word. You get 20 requests per minute and either 50 or 1,000 requests per day, depending on whether you&#39;ve bought $10 of credits. No token cap, but a very real request cap.</p><p>The free list also turns over fast. In July 2026, Owl Alpha, Tencent Hy3, Qwen3 Coder and gpt-oss-120b were all free on OpenRouter; none of them is free today, and the lineup is led by Thinking Machines&#39; 975-billion-parameter Inkling and NVIDIA&#39;s Nemotron family. Every limit, price and model ID below was checked against OpenRouter&#39;s live API and model pages on October 27, 2026.</p><blockquote>The key takeaway: free models on OpenRouter charge $0 per token, but the real constraint is request rate. Understanding this distinction is the first step to building reliable, cost-free applications.</blockquote><h4>The Free Tier: Rate Limits, Not Token Limits</h4><p>The term &#39;unlimited tokens&#39; is misleading. OpenRouter&#39;s free models have a list price of $0.00 per input token and $0.00 per output token, so theoretically you can send as many tokens as you want in a single request. However, every account has a request-based quota, clearly documented on the OpenRouter limits page. These limits are fixed and apply across all free models.</p><p>Specifically, the limits are:</p><ul><li>20 requests per minute, always, regardless of account status.</li><li>50 requests per day if you have purchased less than $10 worth of credits in total.</li><li>1,000 requests per day once your lifetime credit purchases reach $10.</li></ul><p>The daily tier is selected based on all-time credits purchased, not your current balance. So if you&#39;ve ever spent $10 or more, you keep the 1,000 request daily limit even if you later spend all your credits. In practice, the threshold starts at 9 credits to account for rounding and top-up fees, as stated in their FAQ. This is a one-time unlock, not a subscription.</p><p>What does this mean in practice? A 100,000-token conversation counts as a single request, just like a two-word prompt. That means an agent loop that calls the model dozens of times per task will hit the daily request cap long before any token count matters. The per-minute limit is also a bottleneck: even if you have the daily budget, you can&#39;t burst more than 20 requests in a minute. For batch processing or automated pipelines, this can be a significant constraint.</p><p>Two other obstacles can block you. Cloudflare&#39;s DDoS protection might reject requests that dramatically exceed reasonable usage patterns, even if you&#39;re within the numeric limits. Also, if your account has a negative credit balance (which can happen if you use paid models and the balance runs dry), all free model calls fail with a 402 error. So keep an eye on your balance if you mix paid and free models.</p><h4>Checking How Many Free Requests You Have Left</h4><p>OpenRouter exposes a simple endpoint that tells you exactly how many free requests you&#39;ve used today and how many remain. Use curl or any HTTP client to fetch your key&#39;s status:</p><pre>curl https://openrouter.ai/api/v1/key \<br>  -H &quot;Authorization: Bearer $OPENROUTER_API_KEY&quot;</pre><p>The response includes a free_model_daily_requests object with used, limit, and remaining counts for the current UTC day. This is invaluable for long-running tasks. Instead of hitting a 429 rate limit error midway through a batch, you can pre‑check and pace your requests or delay them until the next day.</p><p>However, this endpoint does not report the per-minute limit. To see that, you need to inspect the X-RateLimit-* headers in the 429 response. Those headers tell you which limit you&#39;ve exceeded (e.g., minute or daily) and how long until the window resets.</p><h4>Getting Set Up</h4><p>Getting started with free models on OpenRouter is straightforward, requiring nothing more than an email address and a browser.</p><ol><li>Go to openrouter.ai/keys and sign up using email or GitHub. No credit card is needed.</li><li>Generate an API key on the same page. Optionally, you can set a spending limit on the key to avoid accidental charges.</li><li>(Optional, recommended) Buy credits. Pay-as-you-go carries a 5.5% platform fee on credit purchases (8% on the Business plan). Spending $10 in total lifts your free‑model daily quota to 1,000 requests, a one‑time threshold, not a subscription.</li><li>Call the API. Free models carry the :free suffix on their model ID. The Free Models collection on OpenRouter is the fastest way to see what&#39;s available today.</li></ol><p>If you only plan to use free models, you can stop at step 2 and spend $0. The $10 is purely about the daily ceiling. For exploratory projects, 50 requests a day can be enough, but iterating on prompts or testing an agent loop will quickly exhaust that. Buying credits once you start seriously developing is recommended. One caveat: OpenRouter reserves the right to expire unused credits after 12 months, as mentioned in their FAQ, so don&#39;t hoard credits.</p><h4>Calling a Free Model</h4><p>Because OpenRouter mirrors the OpenAI API shape, you can use curl, the official OpenAI Python SDK, or any OpenAI-compatible library. You only need to change the base URL and the model string. Here&#39;s a raw HTTP example:</p><pre>from openai import OpenAI<br><br>client = OpenAI(<br>    base_url=&quot;https://openrouter.ai/api/v1&quot;,<br>    api_key=&quot;sk-or-v1-your-key-here&quot;,<br>)<br><br>response = client.chat.completions.create(<br>    model=&quot;nvidia/nemotron-3-ultra-550b-a55b:free&quot;,<br>    messages=[<br>        {&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: &quot;Explain the difference between MoE and dense transformer architectures in two sentences.&quot;}<br>    ],<br>)<br><br>print(response.choices[0].message.content)<br>curl https://openrouter.ai/api/v1/chat/complNo custom SDK, no special client library. If your code already talks to the OpenAI API, the migration is literally two lines: change the base_url and the model string.etions \<br>  -H &quot;Content-Type: application/json&quot; \<br>  -H &quot;Authorization: Bearer $OPENROUTER_API_KEY&quot; \<br>  -d &#39;{    &quot;model&quot;: &quot;nvidia/nemotron-3-ultra-550b-a55b:free&quot;,<br>    &quot;messages&quot;: [<br>      {&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: &quot;Explain the difference between MoE and dense transformer architectures in two sentences.&quot;}<br>    ]<br>  }&#39;<br>And the same call using the official OpenAI Python SDK but pointed at OpenRouter&#39;s endpoint:</pre><h4>Handling Rotation and Rate Limits with Fallback Models</h4><p>The single most important production tip for the free tier is to avoid hardcoding a single free model. Free variants get pulled or repriced with little warning. Between July and late October 2026, qwen/qwen3-coder:free, openai/gpt-oss-120b:free, tencent/hy3:free, and nvidia/nemotron-3-super-120b-a12b:free have all disappeared. Any code pinned to them now fails with a model-not-found error.</p><p>OpenRouter solves this with a models array in the request body. You list several candidates in priority order, and the API tries them sequentially until one succeeds. This rotation-friendly pattern looks like this:</p><pre>{<br>  &quot;models&quot;: [<br>    &quot;nvidia/nemotron-3-ultra-550b-a55b:free&quot;,<br>    &quot;google/gemma-4-31b-it:free&quot;,<br>    &quot;nvidia/nemotron-3.5-lightning:free&quot;<br>  ],<br>  &quot;messages&quot;: [<br>    {&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: &quot;Summarize this changelog in three bullet points.&quot;}<br>  ]<br>}</pre><p>By default, any error can send the request to the next model, including context-length errors, moderation flags, rate limiting, or provider downtime. You are billed only for the model that actually answered, and its ID appears in the response&#39;s model field, so you can log which fallback fired. Ensure every entry is a :free model, because if the list falls through to a paid model, you will pay that model&#39;s rate.</p><p>If you prefer not to manage a list at all, openrouter/free is a router that picks a random free model from those that support your request&#39;s requirements, such as tool calling, structured outputs, or image input. It trades predictability for convenience: you don&#39;t control which model answers, but your code keeps working as the free lineup changes. This is particularly useful for quick prototypes or scripts where reproducibility isn&#39;t critical.</p><h4>How Free Models Leave OpenRouter</h4><p>The free list is a revolving door, and understanding the exit patterns will save you from building on sand. Looking back, we can see four distinct ways models depart.</p><p>First, stealth models: Owl Alpha turned out to be Meituan&#39;s LongCat-2.0, a prerelease checkpoint served for free while the lab collected real-world usage. When the codename was lifted in late June, the model transitioned to paid (meituan/longcat-2.0) at $0.30/M input and $1.20/M output. Similarly, Space Bunny, which left on October 5, reappeared as MiniMax M3.1 Flash on October 19 with a 72-hour free period before moving to paid. These stealth launches are exciting but unreliable for production.</p><p>Second, promotional windows: Tencent Hy3 had a fixed free period ending July 21. After that, it became paid-only, starting at $0.0825/M input. Third, removal of the :free variant: Qwen3 Coder and gpt-oss-120b both lost their free endpoints but remain as paid models. gpt-oss-120b is still remarkably cheap at $0.03/M input, so many developers just switched to the paid tier without noticing. Fourth, permanent retirement: some models, like the free Llama 3.3 70B and Hermes 3 405B, simply ceased to exist in any form on OpenRouter.</p><p>The lesson is clear: never depend on a specific free model being available tomorrow. Design your application to fail over gracefully, and periodically check the Free Models page or query the API to see what&#39;s current.</p><h4>The Free Model Catalog Right Now</h4><p>As of October 27, 2026, OpenRouter lists 28 model IDs ending in :free: 16 chat models, 7 embedding and reranking models, 2 text-to-speech models, and 3 &#39;decision&#39; models that return scored answers instead of free text. The following five chat models are the most notable and worth evaluating individually.</p><h4>Thinking Machines Inkling (975B-A41B)</h4><p>Inkling is the largest model on the free tier. Thinking Machines Lab released it on July 15, 2026, with full weights available under Apache 2.0. It&#39;s a Mixture-of-Experts model with 975B total parameters and 41B active, accepting text, image, and audio input, with up to 1M tokens context. On OpenRouter, the free endpoint serves the full 1M context, while the paid listing ($1.00/M input, $4.05/M output) tops out at 524K. The lab is candid: &#39;Inkling is not the strongest overall model available today, open or closed,&#39; but it excels as a base for customization.</p><p>Before wiring it into your app, read the notice at the top of the model page. The free endpoint is only available for use with agentic harnesses, and Thinking Machines logs prompts and outputs to improve their models, after separating them from your account. This is a data-privacy red flag for confidential work. Its smaller sibling, thinkingmachines/inkling-small:free (276B total, 12B active), is also free.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4PjvgaY0E9gGpuuFz2udww.png" /></figure><h4>NVIDIA Nemotron 3 Ultra (550B-A55B)</h4><p>NVIDIA Nemotron 3 Ultra, released June 4, 2026, is one of the two July picks that&#39;s still free. It&#39;s a 550B-parameter MoE with 55B active per token, built on a hybrid Transformer-Mamba architecture designed for high-throughput agent pipelines. NVIDIA serves the free endpoint itself, with a 1M-token context and up to 65,536 output tokens. Interestingly, the paid endpoints (from $0.40/M input and $1.76/M output) stop at 262K context, so the free tier is actually the bigger one. NVIDIA&#39;s notice says use of the free endpoint is logged for security purposes and to improve NVIDIA products and services.</p><h4>NVIDIA Nemotron 3.5 Super VL (120B-A12B)</h4><p>Nemotron 3.5 Super VL is the newest model in this guide, released October 15, 2026. It&#39;s a 120B-parameter MoE with 12B active that takes text, images, documents, GUI screenshots, and video, and returns text. With a 1M-token context and reasoning enabled by default (you can turn it off or set a budget), it&#39;s the free pick for document extraction, screenshot-driven agents, and video understanding. The same NVIDIA logging notice applies. Paid endpoints start at $0.06/M input. For speed over size, nvidia/nemotron-3.5-lightning:free (30B total, 3B active, text-only, 1M context) is the high-throughput option.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PzN5alrqkXem8Fg2OBXa0Q.png" /></figure><h4>Google Gemma 4 (31B and 26B-A4B)</h4><p>Google DeepMind&#39;s Gemma 4 family, released April 2, 2026, is the other July pick that&#39;s still free, and both variants survived. google/gemma-4-31b-it:free is the 30.7B dense model: no MoE routing, so slower, but it&#39;s the one to reach for when you want the best single answer. The MoE sibling, google/gemma-4-26b-a4b-it:free, has 25.2B total and 3.8B active parameters, landing close to the 31B model&#39;s quality while responding faster. Google AI Studio serves both for free with a 262K context, up to 32,768 output tokens, image and video input, configurable thinking, native function calling, and 140+ languages. Unlike NVIDIA and Thinking Machines, Gemma&#39;s free page shows no logging notice, making it a safer choice for sensitive data.</p><h4>Poolside Laguna S 2.1 - Going Away October 31</h4><p>Laguna S 2.1 is Poolside&#39;s coding-agent model: 118B total parameters, 8B active, open-weight under the OpenMDW-1.1 license, with a 262K context on the free endpoint. Poolside reports 70.2% on Terminal-Bench 2.1 and 40.4% on DeepSWE. Those are vendor numbers, but strong ones for a model with 8B active parameters. Of everything on the free list, it&#39;s the most directly built for coding agents. The catch: the model page says &#39;Going away October 31, 2026,&#39; and the smaller poolside/laguna-xs-2.1:free (33B total, 3B active) expires the same day. Poolside also notes it may use free-tier inputs and outputs to train its models.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TX7RjMFewl8L3qq9XDZyfA.png" /></figure><h4>The Rest of the Current Free Roster</h4><p>Beyond those five, the free chat models include Inkling Small; NVIDIA&#39;s Nemotron 3.5 Lightning, Nemotron 3 Nano Omni (30B-A3B, with text, image, audio, and video input), and the 4B Nemotron 3.5 Content Safety guardrail model; Cohere&#39;s North Mini Code (30B, 3B active), its first agentic coding model; Recursive&#39;s Flint (40B, 2.5B active), built for coding agents (added October 21); China Telecom&#39;s Xing4.0 29B-A4B; Dots Studio&#39;s Dots3-Note Preview (280B, 16B active), free until December 31, 2026; and LiquidAI&#39;s LFM2.5-2.6B for small, fast jobs. Outside chat, there are free embedding and reranking models from NVIDIA and LiquidAI, and free text-to-speech from Fish Audio and HeyGen (HeyGen&#39;s until November 30).</p><p>For open-weight models you can run on your own hardware instead of depending on a rotating free tier, see our self-hosted LLM coding guide.</p><h4>What the Free Endpoints Do With Your Prompts</h4><p>Rate limits are the documented cost of the free tier. The less obvious one is data. Three of the five model pages explicitly state that the provider logs free-tier traffic or may train on it: NVIDIA and Thinking Machines log it to improve their models, and Poolside may train on it. That&#39;s the deal behind most free inference: you get tokens, and the lab gets real-world usage.</p><p>OpenRouter lets you opt out, but at a price. Your account&#39;s privacy settings have separate switches for paid and free models, controlling whether you allow providers that may train on your data. According to OpenRouter&#39;s provider logging docs, if you opt out, &#39;OpenRouter will not route to providers that train.&#39; Since every free model in this guide runs on a single provider, opting out doesn&#39;t move you to a safer host; it simply removes free models from your available list. If a free model works for everyone else but fails for you with an error about provider restrictions, check this setting first.</p><h4>Free Tier vs. Paying: What You Actually Give Up</h4><p>The free tier isn&#39;t a stripped-down demo. The biggest free models are frontier-scale open-weight releases, and on Inkling and Nemotron 3 Ultra the free endpoint offers a larger context window than the paid listing. What you give up by staying free:</p><ul><li>Proprietary flagships: Free models are open-weight releases or temporary promotions. You won&#39;t find free access to Claude, GPT, or Gemini&#39;s flagship tiers.</li><li>Throughput: 50 or 1,000 requests a day is fine for personal projects and prototyping, but not enough for production apps with real traffic. OpenRouter itself warns that free models can be rate-limited or slower at peak times.</li><li>Privacy: As covered above, many free endpoints log or may train on what you send.</li></ul><p>Once you outgrow it, pay-as-you-go charges each provider&#39;s list price with no markup on tokens, plus the 5.5% fee when you buy credits. If you already have keys with OpenAI, Anthropic, or Google, bring-your-own-key (BYOK) routes through them with no OpenRouter fee on the first $25,000 of list-price inference each month, and 5% after that. For gateways beyond OpenRouter, our LLM router comparison covers Portkey, LiteLLM, and others, and our OpenRouter production pitfalls post details what breaks when you move paid traffic onto it.</p><h4>A Realistic Way to Use This</h4><p>The pattern that holds up over time looks like this: build against the OpenAI-compatible endpoint so you&#39;re never locked into one provider&#39;s SDK; put two or three free models in a models fallback array instead of trusting any single one; check free_model_daily_requests before long runs; and keep confidential data on paid endpoints whose data policy you&#39;ve read. Treat stealth models and time-limited listings like Laguna S 2.1 as bonus capacity, not something a workflow depends on.</p><p>Let&#39;s walk through a concrete example. Suppose you&#39;re building a summarization bot for internal documentation. You set up a cron job that runs every hour and processes a queue of documents. With a fallback array containing three models, even if one is rotated out, the other two cover you. You also add a check at the start of each job to fetch the remaining daily quota; if it&#39;s below a threshold, you skip the run and try again tomorrow. This simple pattern ensures high availability without spending a cent.</p><p>Another realistic use case is prompt engineering and benchmark testing. When you&#39;re iterating on system prompts or evaluating different model behaviors, the free tier lets you experiment with frontier-scale models at zero cost. However, be aware that performance during peak hours can degrade, so for latency-sensitive tests, consider using paid endpoints or running at off-peak times.</p><h4>Common Pitfalls and Troubleshooting</h4><p>Many developers new to OpenRouter encounter a few recurring issues. Let&#39;s address them.</p><p>Why am I getting 429 errors even though I haven&#39;t hit the daily limit?</p><p>You likely hit the per-minute limit (20/min). The 429 response includes headers like X-RateLimit-Limit and X-RateLimit-Reset. Wait for the reset period (usually 60 seconds) or implement exponential backoff. If you&#39;re running parallel requests, surge throttling at the provider level can also cause 429s. Add jitter and retries.</p><p>The model name is correct but I get a ModelNotFound error.</p><p>The free variant may have been removed. Check the current list at OpenRouter&#39;s Free Models page. Use the fallback array to handle this automatically. If you see the error, update your code to use a different model.</p><p>My requests are slower than expected on free models.</p><p>Free models are often deprioritized during peak hours. If latency matters, consider using paid endpoints or scheduling jobs during off-peak times (e.g., early morning UTC). The openrouter/free router may also randomly pick a slower model; pin to a specific fast model like nemotron-3.5-lightning for speed.</p><p>Can I use free models with streaming responses?</p><p>Yes, the API supports streaming via the stream parameter, just like the OpenAI API. However, each streaming response counts as one request, not per chunk. Use streaming for interactive applications but be mindful of the request cap.</p><p>Are there any restrictions on using free models for commercial projects?</p><p>The terms mainly depend on the model provider&#39;s license. OpenRouter itself doesn&#39;t impose commercial use restrictions on free models, but the underlying model licenses (e.g., Apache 2.0 for Gemma and Inkling) allow commercial use. Still, check each model&#39;s page for specific limitations. The logging and training data clauses might affect your compliance if you handle user data.</p><h4>Frequently Asked Questions</h4><p>What exactly does &#39;unlimited tokens&#39; mean on OpenRouter free models?</p><p>It means there is no cost per token. You can send a million tokens in a single request if you have a model with that context window, and it will still cost $0. The limitation is the number of requests, not the number of tokens.</p><p>How do I know which free models are available right now?</p><p>The most accurate way is to query OpenRouter&#39;s API: GET https://openrouter.ai/api/v1/models and filter for :free in the ID. Alternatively, visit the Free Models page which is updated manually. The page ranks models by usage.</p><p>Can I use the same API key for free and paid models?</p><p>Yes, but be careful. If you have no credit balance and you accidentally call a paid model, you&#39;ll get a 402 error. If you have credits, the request will be charged. To avoid surprises, set a small credit limit on your key or use separate keys for free and paid calls.</p><p>Does the 50 request/day limit apply to all free models collectively or per model?</p><p>It&#39;s per account, across all free models. Using multiple free models doesn&#39;t increase your daily total. Only the $10 credit threshold raises it to 1,000.</p><h4>Conclusion</h4><p>&quot;Free AI API with unlimited tokens&quot; is a catchy search phrase, but the accurate description is more useful once you understand it: OpenRouter gives you free, per-token-uncapped access to a strong and changing set of open-weight models (right now Inkling, Nemotron 3 Ultra, Nemotron 3.5 Super VL, and Gemma 4), gated by a daily request limit rather than a token limit. Fifty requests a day costs nothing and needs no card; $10 of credits, bought once, raises that to a thousand. The discipline it asks for hasn&#39;t changed since July: build for rotation from day one, read each free endpoint&#39;s data notice, and recheck model pages before you rely on them.</p><h4>Reference</h4><p><a href="https://pinggy.io/blog/free_ai_model_apis_unlimited_tokens_openrouter/">How to get Free AI Model APIs with &#39;Unlimited&#39; Tokens</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1c15355460c1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Run Mistral Large 4 on Your Own GPUs and Access It Securely from Anywhere]]></title>
            <link>https://medium.com/@bishakhghosh0/run-mistral-large-4-on-your-own-gpus-and-access-it-securely-from-anywhere-80808ac1c60b?source=rss-61f5302a9c7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/80808ac1c60b</guid>
            <category><![CDATA[self-hosted]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Lightning Developer]]></dc:creator>
            <pubDate>Wed, 04 Nov 2026 00:41:01 GMT</pubDate>
            <atom:updated>2026-11-04T00:41:01.673Z</atom:updated>
            <content:encoded><![CDATA[<p>A practical guide to running Mistral Large 4 on 8 GPUs, serving it with vLLM, and exposing it through a secure Pinggy tunnel.</p><p>Running a frontier-scale language model on your own hardware is no longer a distant dream. Mistral released the weights for Mistral Large 4, a large mixture-of-experts model with about 1 trillion total parameters, 49 billion active parameters per token, a 1 million token context window, and native image input. The checkpoint is hosted on Hugging Face under the name mistralai/Mistral-Large-4-1T-A52B. The recommended deployment path is a single vLLM container on a node with eight GPUs. This is not a laptop model. This guide explains what makes the model special, what hardware you need, how to serve it with vLLM, and how to reach the endpoint from anywhere without opening a port.</p><p>The goal of this article is to walk through the entire process, from the architecture of the model to the exact docker run command, and then to the tunnel command that gives you a secure public HTTPS URL. By the end, you should know whether self-hosting Mistral Large 4 makes sense for your workload and how to avoid the most common deployment mistakes.</p><h4>What Makes Mistral Large 4 Different</h4><p>Mistral Large 4 uses a granular mixture-of-experts design. It has 128 routed experts, with 4 active experts per token, plus one shared expert. That means every token is processed by a small subset of the full parameter set. The total parameter count is close to 1 trillion, but the active parameter count is around 49 billion per token. When you include the embedding and output layers, that figure rises to about 52 billion. This is why the compute cost per token feels closer to a 50 billion parameter dense model, while the memory cost still requires enough GPU memory to hold the entire 1 trillion parameter weight set.</p><p>The distinction between active parameters and total parameters is central to understanding the hardware requirements. Active parameters determine how many multiply-add operations happen for each token. Total parameters determine how much memory you need just to store the model. A model with 1 trillion total parameters and 49 billion active parameters is fast per token only if you can fit all the weights in GPU memory. If you have to offload part of the model to CPU memory, the effective speed drops dramatically because every token may need to access parameters from a slow bus.</p><p>The context window is 1 million tokens, and the model accepts both text and image input while producing text output. It also handles reasoning and instruction following in a single model, with three reasoning effort levels: low, medium, and high, where high is the default. Native function calling, JSON output, and strict JSON schema enforcement are part of the package. For developers building agents, this is significant because you no longer need a separate tool-use model and a separate reasoning model. One serve command can provide both capabilities through a compatible API.</p><p>Mistral reports strong benchmark numbers. The model scores 48 percent on the Artificial Analysis Coding Agent Index, roughly tied with GLM-5.3 but with 47 percent fewer tokens per task. It scores 41 percent on Terminal-Bench 4.0 and 84.5 percent on BrowseComp. These numbers are vendor-reported, so you should treat them as a starting point and evaluate the model on your own workloads. A technical report is listed as coming soon. In the meantime, the model card is the most useful source of truth for configuration details.</p><p>The licensing situation is also important. Mistral released this model under the Mistral Ecosystem Open-Weight License, which is a modified MIT license. Commercial use is generally allowed, but if you plan to operate the model as a hosted paid service, you need a separate commercial license from Mistral. This has practical implications for startups and internal platform teams. Downloading the weights and putting them behind an API is not automatically enough for every business model. Always check the license before you build a product around the model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5DYsbNA6fnATS5Xdbpq3qQ.png" /></figure><p>The routing logic in a mixture-of-experts model is a good mental model. Each token passes through a router that selects a small number of experts. In Mistral Large 4, the router picks 4 routed experts out of 128, and the shared expert is always active. This keeps the compute cost close to a dense 50 billion parameter model while giving the model access to a much larger total knowledge capacity. The downside is memory: all experts must remain resident in GPU memory because you never know which experts the router will need for the next token.</p><h4>Hardware Requirements and What to Expect</h4><p>The model card does not state a hard minimum. The official examples all use --tensor-parallel-size 8, so the practical starting point is one node with eight data-center GPUs. The arithmetic backs that up. The main checkpoint is fp8, which is roughly one byte per parameter. The weights alone are around 1 TB before adding the KV cache. That estimate comes from the parameter count, not from a Mistral specification sheet. A node with eight NVIDIA H200 GPUs gives you about 1.1 TB of HBM in total, which is the obvious fit. A smaller node will not hold the full model.</p><p>There is also an NVFP4 checkpoint with a smaller footprint. It targets Blackwell GPUs. If memory is tight, the model card suggests lowering --max-model-len or --max-num-seqs rather than trying to keep the entire 1 million token context active. You can run with a shorter context and fewer concurrent sequences to shrink the KV cache, but the base weight set still dominates. In other words, the model is not something you can squeeze onto a single GPU by reducing context length alone.</p><p>Tensor parallelism is the recommended way to split the model across GPUs. With --tensor-parallel-size 8, each GPU holds roughly one eighth of the weights and works on the same layer at the same time. This is different from pipeline parallelism, which splits layers by stage. For a model this size, tensor parallelism on a single node is the right approach because inter-GPU communication is fast enough when all GPUs are connected by NVLink and NVSwitch. Across nodes, communication becomes a bottleneck and the serving framework has to coordinate every layer with remote memory.</p><p>First, if you do not already own such a node, renting one by the hour is the realistic path. Once you add up the hourly cost, the hosted API may be cheaper unless you keep all eight GPUs busy most of the day. At the listed prices of $0.70 per million input tokens and $2.10 per million output tokens, a rented node only makes sense at sustained utilization. Second, the author could not run this exact setup while writing this guide because no eight-GPU node was available. The commands below come from the model card and the Pinggy documentation, and the serve step is not author-tested. Use the commands as a starting point and adjust them to your hardware.</p><p>Before you rent a node, check the local disk speed and capacity. The checkpoint is large, and you need enough free disk space to download it, unpack it, and store any logs or fine-tuned versions. A fast NVMe drive is strongly recommended because initial downloads and model reads can otherwise become a bottleneck. If you use a cloud provider, choose an instance type with high local disk bandwidth and enough RAM to handle the tokenizer and runtime overhead.</p><p>The KV cache is another major factor. A 1 million token context means an enormous cache for keys and values across all layers. Even if the model weights fit in HBM, a full-length prompt can consume hundreds of gigabytes of additional memory. That is why --gpu-memory-utilization 0.85 is in the recommended command. It tells vLLM to reserve 85 percent of available GPU memory for the model and cache, leaving some headroom for the runtime. If you try to run several concurrent requests with long contexts, you may need to lower the context length or the number of sequences.</p><h4>Serving the Model with vLLM</h4><p>vLLM is the reference serving stack for this release. The model card includes a Docker command that handles the heavy lifting. The image is vllm/vllm-openai:mistral-large-4, and the model name is mistralai/Mistral-Large-4-1T-A52B. You need to pass --tensor-parallel-size 8 so the model is split across all eight GPUs. You also need --tool-call-parser mistral and --reasoning-parser mistral. These two flags are not optional if you want agents to work. The first parser converts the model&#39;s native tool-call format into OpenAI-style tool_calls. The second parser separates the reasoning trace from the final answer, which makes it much easier to consume in a chat application.</p><pre>docker run --runtime nvidia --gpus all -v ~/.cache/huggingface:/root/.cache/huggingface -p 8000:8000 --ipc=host vllm/vllm-openai:mistral-large-4 --model mistralai/Mistral-Large-4-1T-A52B --tensor-parallel-size 8 --tool-call-parser mistral --reasoning-parser mistral --enable-auto-tool-choice --gpu-memory-utilization 0.85</pre><p>The first line of this command uses the NVIDIA container runtime. The --gpus all flag gives the container access to every GPU on the node. The volume mount maps your Hugging Face cache into the container, which is critical for the first startup. If you skip the mount, a later restart will make you recieve the entire download again. That can waste hours and fill the local disk. With the cache mounted, the downloaded checkpoint is reused across restarts.</p><p>The --ipc=host flag is also important. vLLM uses shared memory for communication between processes and for the tokenizer. The default Docker shared memory size is often too small for an eight-GPU inference workload. If you see crashes or mysterious memory errors, check whether --ipc=host is present. Some containers may need an explicit --shm-size setting instead, but --ipc=host is the simpler option in most cases.</p><p>The model card also mentions optional speculative decoding using the DSpark draft head that ships inside the checkpoint. You can enable it with a speculative config option. This can reduce latency, but it is not required for a basic setup. The exact flag is shown below. If you use it, keep an eye on GPU memory usage because speculative decoding adds a small amount of overhead.</p><pre>--speculative-config &#39;{&quot;method&quot;: &quot;dspark&quot;, &quot;num_speculative_tokens&quot;: 3}&#39;</pre><p>SGLang is another supported server. The equivalent command uses --tp-size 8 and --speculative-algorithm DSPARK. SGLang can sometimes offer better throughput for certain workloads, and it is worth testing both servers if you plan to run a production endpoint. For sampling, the model card recommends temperature 1.0 and top_p 0.95. These values are a starting point, not a law. You should tune them on your own evals.</p><pre>sglang serve mistralai/Mistral-Large-4-1T-A52B --tp-size 8 --speculative-algorithm DSPARK</pre><p>Once the weights load, vLLM serves an OpenAI-compatible API on port 8000. Before you do anything else, check the endpoint from the same machine. The /v1/models route returns the list of available models and confirms that the server is healthy.</p><pre>curl http://localhost:8000/v1/models</pre><p>The OpenAI-compatible surface means you can use the same client code that you already use for hosted models. Change the base URL, change the API key, and you are connected to your self-hosted instance. This compatibility is a huge advantage because it removes the need to learn a custom SDK or protocol.</p><h4>Why a Tunnel Instead of Opening Port 8000</h4><p>The GPU node usually lives in a datacenter, a rented VM, or a lab behind NAT. You do not fully control the firewall. You want to reach the model from your laptop, a teammate, an editor plugin, or a CI runner. Opening port 8000 to teh world with no authentication would hand out a 1 trillion parameter model to anyone who can find the IP. vLLM does not require a key unless you set one, and many people forget to add authentication. This is a serious security risk.</p><p>A tunnel solves both problems without changing the server configuration. Pinggy creates a secure outbound SSH connection from the GPU node to a public edge. You get a public HTTPS URL. Pinggy can require a bearer key before a request reaches vLLM. The request path is short and clear: the client calls the HTTPS URL, Pinggy verifies the Authorization header, the request goes down the SSH connection, and vLLM on localhost:8000 answers. The GPU node dials out, which means clients without the key never reach vLLM and the machine never needs an open inbound port.</p><blockquote>The GPU node dials out; clients without the key never reach vLLM.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F1est2ChWeSkirv2L9_Y2Q.png" /></figure><p>This architecture is attractive for several reasons. First, you can keep vLLM listening on the local network only. Second, the tunnel runs over SSH, which is usually allowed even on restrictive egress firewalls. Third, Pinggy terminates TLS, so your client gets a valid HTTPS certificate without buying one yourself. Fourth, the bearer key is checked at the edge before any request consumes GPU time. An unauthenticated request is rejected with a minimal response, which also reduces the risk of denial-of-service attacks against the inference endpoint.</p><h4>Opening a Secure Tunnel with a Bearer Key</h4><p>On the GPU node, open a second terminal. Use the Pinggy free tunnel for a quick test. Replace mysecretkey with a long random string. You can generate one with openssl rand -hex 24. The command below opens a tunnel from your local port 8000 to a public HTTPS URL.</p><pre>ssh -p 443 -R0:localhost:8000 free.pinggy.io -T -- k:mysecretkey</pre><p>Pinggy prints an HTTPS URL like https://abc123.run.pinggy-free.link. From that moment, Pinggy answers only requests that carry Authorization: Bearer mysecretkey. Requests without the correct header are refused at the edge. The free tunnel lasts 60 minutes and the URL changes each time. For anything you want to keep, use a Pinggy Pro token, which has no timeout and supports a persistent subdomain set in the dashboard.</p><pre>ssh -p 443 -R0:localhost:8000 &lt;token&gt;@pro.pinggy.io -T -- k:mysecretkey</pre><p>The Pro command looks almost the same, but it uses the persistence endpoint and your account token. Once you have a persistent subdomain, you can share the same URL with your team for weeks. The bearer key remains a required part of the command. If you ever need to rotate the key, restart the tunnel with a different secret and distribute the new key to your clients.</p><h4>Calling the Model from Your Laptop or CI</h4><p>From any machine, point an OpenAI-style client at the tunnel URL. For a quick check, use curl with a chat completions request. The model field must be the same name as the Hugging Face repo. The endpoint is /v1/chat/completions. If you omit the Authorization header, Pinggy rejects the request at the edge. That is the entire point of the bearer key.</p><pre>curl https://abc123.run.pinggy-free.link/v1/chat/completions -H &quot;Authorization: Bearer mysecretkey&quot; -H &quot;Content-Type: application/json&quot; -d &#39;{&quot;model&quot;:&quot;mistralai/Mistral-Large-4-1T-A52B&quot;,&quot;messages&quot;:[{&quot;role&quot;:&quot;user&quot;,&quot;content&quot;:&quot;Write a one-line shell command to count lines in all .py files.&quot;}]}&#39;</pre><p>The same URL and key work in any tool that takes an OpenAI base URL. Set the base URL to https://abc123.run.pinggy-free.link/v1 and the API key to mysecretkey. Many local applications, such as Open WebUI, let you configure a custom OpenAI-compatible endpoint. This means you can interact with Mistral Large 4 through a nice chat interface without running the model on your laptop.</p><p>For tool use, send a normal tools array. With the two parsers enabled, vLLM returns standard tool_calls. The reasoning parser also gives you the thinking trace separately from the final content, which is useful for agentic workflows. You do not need to write custom parsing logic on the client side. The compatibility layer handles the conversion.</p><p>Tunnels add a hop, so expect some latency on the first token. A 1 million token prompt will take a while to upload regardless of the network path. The tunnel does not magically accelerate the upload. Use it when the convenience of a public URL outweighs the extra network hop. For long prompts, a private network connection to the GPU node might be better, but for interactive use from a laptop or a CI runner, the tunnel is excellent.</p><p>If you want the same pattern for a smaller model, sharing Ollama and Open WebUI online walks through it end to end. The tunnel command is nearly identical, and the same bearer key protection applies. The only difference is the upstream port and the model that is being served.</p><h4>Production Considerations and Scaling</h4><p>Running Mistral Large 4 in production requires more than a single tunnel command. You need monitoring, logging, authentication, and a plan for failures. vLLM exposes a metrics endpoint that includes prompt tokens, generation tokens, request counts, and GPU utilization. You should scrape these metrics with Prometheus or send them to your existing observability stack. Without metrics, you are flying blind when latency spikes or a GPU runs out of memory.</p><p>Another important configuration choice is the binding address. The Docker command in the model card uses -p 8000:8000, which exposes vLLM on all host interfaces. If the GPU node has a public IP, this could be reachable from the internet before you even start the tunnel. A safer alternative is to bind to localhost with -p 127.0.0.1:8000:8000. The tunnel still works because the tunnel process runs on the same host and connects to localhost. This prevents accidental exposure if a firewall rule is wrong.</p><p>You should also think about concurrency. vLLM handles batching internally, but the number of concurrent sequences is limited by GPU memory. With a model this large, the default settings may only allow a handful of parallel requests when the context is long. Use --max-num-seqs to control the maximum number of sequences. If a client sends too many requests, vLLM can queue them, which increases latency. A load balancer in front of the tunnel is not useful for scaling because the model itself is still a single eight-GPU resource.</p><p>For team access, the shared tunnel URL with one bearer key is simple but not ideal for auditing. If every person uses the same secret, you cannot tell who made which request. Some API gateways let you add per-user tokens, or you can put an authentication proxy between the tunnel and vLLM. The Pinggy bearer key is a solid first layer, but it is not a substitute for a full identity provider when you need fine-grained access control.</p><p>Data privacy is another reason to use a tunnel. The GPU node establishes an outbound SSH connection, but the model itself never needs an inbound port. This is useful in environments where incoming connections are blocked by policy. It also means the model weights stay on your infrastructure. If your compliance requirements prevent sending prompts to an external API, self-hosting with a tunnel may be the only way to provide a remote endpoint while keeping data inside your network boundary.</p><p>Fine-tuning is another reason why this setup matters. A hosted API may not offer the same customization surface, and shipping training data to an external service can be a blocker. With a self-hosted node, you can run a fine-tuning job, merge the weights, and then serve the new model with vLLM. The tunnel URL stays the same; only the model behind it changes. This is a powerful workflow for teams building domain-specific assistants.</p><h4>Final Thoughts</h4><p>Self-hosting Mistral Large 4 is a serious infrastructure project. The model is powerful, the hardware requirement is steep, and the deployment should be handled with care. The combination of vLLM and Pinggy gives you a practical path from a GPU node to a secure public endpoint. Start with a short-lived tunnel, verify the bearer key, and only then share the URL. Once you have that flow working, you can decide whether to scale up, switch to the hosted API, or fine-tune the model.</p><p>The most important lesson is to avoid exposing the raw inference port. A 1 trillion parameter model is a valuable asset. A tunnel with a bearer key gives you the same external accessibility as a cloud API while keeping the actual server hidden. That is a good place to be, whether you are running a weekend experiment or a production agent service.</p><h4>References</h4><ul><li><a href="https://pinggy.io/blog/self_host_mistral_large_4/">How to Self-Host Mistral Large 4 and Reach It From Anywhere</a></li><li><a href="https://huggingface.co/mistralai/Mistral-Large-4-1T-A52B">Mistral Large 4 Model Card</a></li><li><a href="https://pinggy.io/docs">Pinggy Documentation</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=80808ac1c60b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How ExcelExercises Scaled into a $30K/Month Powerhouse]]></title>
            <link>https://medium.com/@bishakhghosh0/how-excelexercises-scaled-into-a-30k-month-powerhouse-76e9e0acea50?source=rss-61f5302a9c7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/76e9e0acea50</guid>
            <category><![CDATA[business-strategy]]></category>
            <category><![CDATA[saas-marketing]]></category>
            <category><![CDATA[business]]></category>
            <category><![CDATA[saas]]></category>
            <dc:creator><![CDATA[Lightning Developer]]></dc:creator>
            <pubDate>Tue, 03 Nov 2026 08:13:04 GMT</pubDate>
            <atom:updated>2026-11-03T08:13:04.132Z</atom:updated>
            <content:encoded><![CDATA[<p>How a simple interactive Excel practice tool turned into a $30K monthly business through focus, SEO, and pricing rigor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6vZtW6usMgvVpkCh0-hwGg.png" /></figure><p>A website that teaches Excel through interactive exercises sounds almost too simple to become a serious SaaS business. Yet Excel Exercises reached more than $30,000 in revenue over a recent four-week period, with around 50,000 visitors and roughly 2,500 active paying subscribers, according to founder Jake Shimota&#39;s interview. Revenue reportedly sits around $30,000 to $35,000 per month. What makes this case study so compelling is not the raw number, but the sequence of decisions that made the number possible.</p><p>Excel Exercises is an online learning platform focused on practical Excel training. Instead of relying mainly on videos, it lets users learn by solving interactive exercises covering formulas, functions, shortcuts, pivot tables, and other spreadsheet skills directly in the browser. The product was created by Jake Shimota, who came from a finance and consulting background. His experience with workplace Excel training highlighted a common problem: watching tutorials does not always translate into remembering how to perform tasks independently.</p><p>That led to a simple idea: what if learning Excel worked more like language learning, where repeated practice builds real skill? Excel Exercises was built around that approach, turning Excel learning from passive watching into hands-on practice. The platform launched in 2019 and has since grown into a focused tool for people looking to improve their Excel skills through practice.</p><blockquote>No complicated SaaS platform. No huge product team. No large feature list. Growth came through a combination of a narrow problem, early validation, search-driven content, a long landing page, paid acquisition, university and corporate deals, and eventually deeper pricing analysis.</blockquote><p>Current Excel Exercises data also shows 250,000+ registered users and 50+ partner organizations, including companies, universities, and nonprofits. This is not a story about a founder who stumbled into a lucky niche. It is a story about applying a repeatable growth framework to a boring but painful problem, then executing with unusual discipline.</p><h4><strong>The Company Behind the Case Study</strong></h4><p>Before diving into the growth lessons, it helps to understand exactly what Excel Exercises does. The platform focuses on interactive lessons that require users to type formulas, arrange data, and solve spreadsheet problems in a simulated browser environment. It is not a video library. It is not a certification mill. It is a practice tool that mimics the way people actually use Excel, which means the feedback loop is immediate.</p><p>Jake did not start with a random SaaS idea. While working in finance, he had to complete online Excel training that relied heavily on long videos. Watching videos did not create enough practice or retention, which created a clear product opportunity. Instead of asking &quot;What SaaS could make money?&quot; he asked &quot;What frustrating task have I already experienced repeatedly?&quot; That distinction matters for every founder.</p><p>Deep familiarity gives you access to real user language, workflows, objections, alternatives, and purchasing triggers. For a developer working in sales, this might mean building a better lead qualification tool. For an accountant, it might mean automating a repetitive reporting workflow. For a recruiter, it might mean solving a painful candidate-screening problem. For a developer working with APIs, it might mean simplifying an integration that repeatedly causes problems. Problem familiarity reduces guesswork before development begins.</p><h4><strong>1. Start With a Problem Already Understood</strong></h4><p>The first lesson is not about coding or marketing. It is about choosing a problem that already exists in your own life. Excel Exercises did not emerge from a market research report. It emerged from Jake&#39;s own pain as someone who had to complete mandatory Excel training and found it forgettable and disconnected from daily tasks.</p><p>When you understand a problem intimately, you automatically know where to look for the first users. You know which forums they visit, which phrases they type into search engines, and which objections are only surface-level. That knowledge is worth more than a hundred surveys. It lets you build a product with conviction rather than guesswork.</p><p>For an API developer, the problem might be managing webhook failures. For a finance professional, it might be reconciling bank feeds. For a marketer, it might be reporting across multiple ad platforms. The key is to pick something you have personally felt more than once, because that repetition signals a recurring need, not a one-off annoyance.</p><p>Once you have that problem, you can start talking to users with a shared vocabulary. That shared vocabulary is what later powers good SEO copy, compelling sales calls, and clear landing pages. It also helps you avoid the trap of building features that sound good in theory but do not match how people actually work.</p><h4><strong>2. Turn One Pain Point Into One Clear Product</strong></h4><p>Excel Exercises did not try to become another massive learning management system. The core proposition stayed narrow: learn Excel by practicing Excel. Current homepage messaging still follows that structure, offering bite-sized interactive lessons covering Excel basics, shortcuts, VLOOKUP, pivot tables, and more. This type of positioning gives users an immediate answer to four questions: What does it do? Who is it for? What problem does it solve? Why is it different?</p><p>A focused SaaS product can often explain its value in one sentence. That is useful for users, search engines, sales conversations, and AI answer engines. Product positioning can follow the pattern: Problem → User → Solution → Outcome. For Excel Exercises, that is weak Excel skills → professionals and students → interactive practice → better spreadsheet skills.</p><p>Many founders are tempted to broaden their product early because they want to capture a bigger market. In practice, the opposite is true. A narrow product reaches clarity faster, and clarity is a form of conversion optimization. When a visitor lands on your page and understands in three seconds whether the product is for them, they are more likely to sign up for a free trial, share the page with a colleague, or remember the brand name for a later search.</p><p>Narrow does not mean small. It means focused. There is a huge market for better Excel skills, but you only gain access to that market by first owning a very specific slice of it. Once you own the slice, you can expand. Many successful SaaS companies started with a single feature or a single workflow and only later became platforms.</p><h4><strong>3. Ship Before Product-Market Fit Feels Obvious</strong></h4><p>The first version of Excel Exercises took months to build because Jake was still learning to code. The technology was intentionally simple. Interview details describe HTML, CSS, vanilla JavaScript, Google Cloud Platform, Google Analytics, SendGrid, and Stripe as major parts of the stack. More importantly, the product was placed online before it looked finished.</p><p>An unexpected $50 payment arrived before meaningful promotion had started. That payment mattered more than a survey response because someone had crossed an actual purchasing barrier. For a SaaS founder, an early validation sequence can be: build, publish, attract a few users, ask for payment, observe behavior, improve.</p><p>Useful tools for this stage include Stripe Billing for subscriptions, Google Analytics for traffic measurement, and Microsoft Clarity for recordings and heatmaps. Stripe currently supports recurring subscriptions, trials, discounts, customer portals, pricing models, and revenue reporting. You do not need a sophisticated infrastructure to validate a product. You need a way to take money, a way to measure activity, and a way to see where users get stuck.</p><p>The biggest mistake at this stage is waiting for a perfect product. Perfection is a moving target. The sooner you publish, the sooner you collect real feedback. Even a rough version that solves the core problem can be enough to attract a handful of users who will tell you what is missing and what is unnecessary.</p><p>A practical way to think about this is the minimum lovable product. It does not need every feature you can imagine, but it should be good enough that at least one person feels a little bit of delight when they use it. That delight is the seed of retention and word-of-mouth.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vCb_jAzOZ_fdP7X-uaz2OA.png" /></figure><h4><strong>4. Give Users a Reason to Pay Before Asking for Money</strong></h4><p>Excel Exercises uses a free-to-paid model. Users can access free lessons and experience how interactive practice works before reaching premium content. That solves an important SaaS conversion problem. When a product category is unfamiliar, visitors may not understand why a paid product is different from free YouTube videos, blog posts, or spreadsheets. A free sample reduces that uncertainty.</p><p>Current premium access includes Excel lessons and additional learning content, while separate options exist for monthly, annual, and lifetime access. This strategy can be adapted to many SaaS products: a free calculator can lead to paid advanced calculations, a free report can lead to paid automation, free lessons can lead to a paid curriculum, a free audit can lead to paid monitoring, a free template can lead to a paid workflow, and a free API tier can lead to paid usage.</p><p>The key is not to view the free tier as a loss leader. It is a demonstration mechanism. A free experience should show the core value of the product, not just a stripped-down version that frustrates users. When users understand the value through direct use, the ask for money feels natural rather than aggressive.</p><p>For a developer tool, the free tier might be a limited number of API calls per month. For a design tool, it might be a few projects. For a project management app, it might be a small team size. The pattern is always the same: let users click, see value, and then hit a gentle paywall that expands capacity or unlocks advanced features.</p><h4><strong>5. SEO Took Excel Exercises From $0 to About $10K/Month</strong></h4><p>This is probably the most important growth lesson from the case study. According to Jake, SEO became the major growth source during the move from $0 to roughly $10K/month. Individual articles about Excel functions helped, but one unusual tactic played a major role: expanding homepage copy to roughly 1,500 to 2,000 words. Instead of keeping homepage copy extremely short, content explained what Excel Exercises was, how learning worked, and why interactive practice differed from videos.</p><p>That content created more opportunities for search engines to understand and index product relevance. A useful SEO workflow for a SaaS product can look like this: seed topic, search demand, competitor pages, user questions, content cluster, landing page, internal links, measurement.</p><p>Useful research tools include: Google Search Console for actual queries, impressions, clicks, CTR, and ranking positions; Google Keyword Planner for search-demand research; Ahrefs for competitor keywords, backlinks, content gaps, and technical SEO; Lumirank.ai for AI-driven rank tracking, search visibility insights, and organic growth monitoring; and Google Trends for seasonality and changing search interest. Ahrefs Site Audit currently checks 170+ technical and on-page SEO issues, while Semrush provides keyword research, competitor analysis, keyword gaps, topic clustering, and search-position tracking.</p><p>For a new SaaS website, avoid publishing hundreds of disconnected articles. Instead, build clusters around actual product use cases. For example, an accounting SaaS could build clusters around accounting automation, invoice automation, recurring invoices, expense tracking, accounting workflows, accounting templates, QuickBooks alternatives, and accounting automation for small businesses. Each page should answer a specific user question and connect naturally back to product functionality.</p><p>The reason this works is that search engines value topical relevance and user engagement. When a page genuinely answers a question and leads the visitor to a related product page, both the content and the conversion path benefit. The homepage expansion was so effective because it acted like a mini sales page that also answered a broad set of Excel-related questions.</p><p>Do not underestimate the power of internal links. Once you have a cluster of related pages, link from each educational article to the product page and from the product page to the articles. This creates a web that crawlers can navigate easily and users can follow naturally.</p><h4><strong>6. Do Not Confuse More Content With Better SEO</strong></h4><p>Excel Exercises provides an important nuance. Long homepage content worked because it explained a real product clearly and matched search intent. That does not mean every SaaS homepage should contain 2,000 words. Word count is not a ranking strategy. Search intent is.</p><p><a href="https://semrush.com/">A useful page should explain what is being solved, who needs it, how the solution works, examples, alternatives, frequently asked questions, and the next step. Semrush&#39;s current keyword research documentation emphasizes search volume, difficulty, competitor rankings, keyword gaps, and topic relationships rather than simply producing more pages.</a></p><p>For founders, a better target is to create the best answer for a commercially relevant problem. That means every piece of content should have a purpose beyond chasing traffic. A blog post about Excel formulas is only useful if it eventually leads someone to think about practice and skill building. If it just rambles on without a clear call to action, it is editorial filler.</p><p>When you consider expanding homepage content, remember to keep it scannable, structured, and honest. Use headings, short paragraphs, and concrete examples. The goal is not to pad the page with keywords, but to make the page the most useful resource for someone evaluating the product.</p><h4><strong>7. $10K to $30K Changed the Growth Model</strong></h4><p>SEO created an organic acquisition engine. Then paid advertising entered. Jake described paid advertising as a major turning point between roughly $10K and $30K monthly revenue. University and corporate deals also accelerated growth. This is where many SaaS businesses make an expensive mistake: paid traffic should not be added simply because organic traffic is growing.</p><p>Before launching paid campaigns, calculate the key unit economics: customer acquisition cost, average revenue per customer, lifetime value, payback period, gross margin, conversion rate, and churn. Google Ads provides conversion tracking for purchases, signups, quote requests, and other actions, along with tagging and enhanced conversion measurement. Useful acquisition channels include Google Ads for high-intent search demand, Meta Ads for audience-based acquisition, Google Tag Manager for tracking implementation, and Google Analytics for acquisition and conversion analysis.</p><p>Paid advertising becomes much safer when each campaign has a defined conversion event and acceptable acquisition cost. If you cannot measure the exact revenue generated by a campaign, you are flying blind. Start small, test with a modest budget, and scale only when the metrics support it.</p><p>For Excel Exercises, the shift to paid advertising was not a desperate move. It was a deliberate decision to pour more fuel into an engine that already worked. Organic content was already ranking, converting, and generating repeat visitors. Paid ads simply accelerated the same conversion path by putting the product in front of people who had not found it through search.</p><p>One common mistake is to separate paid and organic into silos. In practice, they amplify each other. A paid visitor might read several blog posts before subscribing. An organic visitor might return through a paid remarketing ad. Proper attribution gives credit to both channels and helps you allocate budget more intelligently.</p><h4><strong>8. Individual Users Can Become B2B Customers</strong></h4><p>Another important part of Excel Exercises growth came from universities and companies. A user could discover Excel Exercises individually, find value, and then recommend team-wide access to an employer or educational organization. That creates a simple product-led sales loop: individual user, product experience, internal recommendation, team purchase.</p><p>This model can work particularly well for SaaS products used inside organizations. A founder can deliberately design for this behavior by adding team plans, organization billing, admin dashboards, usage reports, shared workspaces, education pricing, bulk seats, and referral incentives. Current Excel Exercises pages show free access options for teachers and educators, while premium products support broader lesson access.</p><p>For sales management, tools such as HubSpot, Pipedrive, or Close can help manage organization-level leads and follow-ups. Even if you are a solo founder, you can set up a simple pipeline to track inbound interest from universities and companies. The key is to make it easy for an individual user to become an internal champion. Add a &quot;share with your team&quot; button, provide a downloadable proposal, and make the admin experience frictionless.</p><p>B2B sales do not require a huge enterprise team. When the product is self-serve and easy to try, the first sale to an organization often happens because one employee already uses it and pushes for adoption. That is unpaid influencer marketing inside the company.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aaJrvdg8WHKNBQXDbm--QA.png" /></figure><h4><strong>9. Pricing Analysis Created Another Growth Lever</strong></h4><p>One of the strongest lessons came near the end of the interview. Average LTV-to-CAC looked healthy at roughly 3:1. But average numbers hid a problem. After exporting payment data and separating monthly customers from annual customers, Jake found that annual customers were highly profitable while monthly customers had much weaker economics and a roughly four-to-five-month payback period. Monthly pricing was then doubled while annual pricing stayed unchanged. According to Jake, growth accelerated after that change.</p><p>This is a critical lesson for subscription SaaS. Never rely only on average LTV, average CAC, and average conversion rate. Instead, segment by monthly versus annual, organic versus paid, country, acquisition channel, plan, company size, customer type, and cohort. A product can have a healthy average LTV:CAC ratio while one customer segment loses money.</p><p>Stripe Billing can provide subscription and revenue data, while a product analytics platform such as PostHog can help analyze funnels, retention, conversion, and user behavior. PostHog supports trends, funnels, paths, retention, lifecycle analysis, dashboards, and alerts. The point is to look beyond aggregate numbers and understand the behavior of different subgroups.</p><p>When you export payment data, you might discover that annual customers stay longer, use the product more deeply, and recommend it to others. Monthly customers might treat the subscription as a short-term experiment and cancel before the product fully demonstrates its value. Adjusting pricing to nudge users toward annual plans can be a powerful lever.</p><p>Doing pricing analysis well requires clean data. Make sure every transaction is tagged with a plan ID, a customer ID, a signup source, and a country. If you do not have that foundation, you cannot segment later. This is a technical requirement that founders sometimes overlook until it is too late.</p><h4><strong>10. Simple Technology Kept Fixed Costs Low</strong></h4><p>Excel Exercises did not require an enormous technology stack. Interview information lists Google Cloud hosting at generally below $100 per month, Google Analytics as free, SendGrid at around $35 per month, plus payment-processing fees. Current technology options make a similar setup even easier. A focused SaaS can combine a website builder like Webflow or Framer, an app framework like Next.js and Vercel, a database like Supabase or PostgreSQL, payments through Stripe, analytics through Google Analytics or PostHog, user behavior tools like Microsoft Clarity or Hotjar, SEO research through Ahrefs or Semrush, search data from Google Search Console, email through SendGrid or Resend, CRM through HubSpot or Pipedrive, advertising through Google Ads or Meta Ads, customer support through Intercom or Crisp, SEO crawling with Screaming Frog, and forms through Typeform or Tally.</p><p>A small stack is enough when product scope remains narrow. Adding tools should follow a business problem, not a desire to make a technology stack look sophisticated. Every new tool adds complexity, cost, and cognitive load. The best stack is the one you can operate alone or with a small team.</p><p>Hosting costs under $100 per month are achievable for many SaaS products. The largest variable cost is often email delivery and payment processing. As revenue grows, these are not prohibitive. Fixed costs remain low, which means the contribution margin is high and the business becomes profitable quickly.</p><p>If you are a solo founder, do not feel pressured to adopt microservices or Kubernetes. A monolithic app with a Postgres database and a background job queue is perfectly adequate for most products at this stage. Scaling is a good problem to have later.</p><h4><strong>What Strategy Should Founders Copy?</strong></h4><p>Copying Excel Exercises literally would miss its most important lesson. Building another Excel-learning website is not the strategy. The framework applies across SaaS categories. A developer building an API monitoring tool could start with one painful monitoring workflow. A sales founder could solve one prospecting problem for one customer segment. A finance SaaS could automate one recurring reporting task. A developer tool could solve one repetitive GitHub workflow.</p><p>Small initial scope does not mean small business potential. It means fewer assumptions need to be validated before revenue becomes possible. When you build a whole platform on assumptions, you risk spending months on features nobody wants. When you build a narrow tool, you can test the core value proposition with real paying customers quickly.</p><p>The growth sequence to follow is: problem discovery, focused product, first paying customers, SEO growth, paid advertising, institutional sales, and pricing optimization. Each stage builds on the previous one. You cannot skip straight to paid advertising without a converted organic base. You cannot sell to universities before you have a product that individual students already enjoy.</p><h4><strong>A Modified Growth Strategy for 2026</strong></h4><p>A modern version of this strategy can be even more structured. The following ten steps represent a complete playbook for a solo founder or small team.</p><ol><li>Identify one expensive or repetitive problem. Talk to users who experience that problem regularly. Collect exact language, existing alternatives, frequency, urgency, and willingness to pay.</li><li>Build one useful workflow. Avoid building a platform before users repeatedly use one feature.</li><li>Put a working version online quickly. Use a simple stack. Measure actual behavior instead of relying only on opinions.</li><li>Create a free entry point. Let users experience a meaningful part of the product before asking for payment.</li><li>Build search pages around buyer problems. Use Search Console, Ahrefs, Semrush, Keyword Planner, Reddit discussions, forums, competitor pages, and customer questions to identify topics.</li><li>Create commercial landing pages. Do not publish generic traffic articles only. Build pages around problems that can lead naturally to product usage.</li><li>Add internal linking. Connect educational content with feature pages, comparison pages, use cases, documentation, and signup pages.</li><li>Add paid acquisition only after conversion data exists. Start with small budgets and measure CAC, activation, paid conversion, LTV, gross margin, and payback by campaign.</li><li>Create team expansion paths. Allow individual users to invite coworkers, teachers, managers, or departments.</li><li>Recalculate economics by segment. Separate monthly, annual, paid, organic, enterprise, geography, and acquisition-channel cohorts before making pricing decisions.</li></ol><p>Following these steps does not guarantee overnight success, but it creates a repeatable process that reduces risk and compounds over time. Each step produces data that informs the next decision.</p><h4><strong>Metrics Worth Tracking</strong></h4><p>A founder following this model should maintain a simple growth dashboard. The following table outlines the key stages and the metrics that matter most at each stage.</p><ul><li>Validation: visitors, activated users, first payments.SEO: impressions, clicks, CTR, rankings, organic signups.Product: activation, engagement, retention.Conversion: free-to-paid rate, checkout conversion.Paid acquisition: CAC, ROAS, conversion rate.Subscription: MRR, churn, ARPU, LTV.Pricing: LTV by plan, payback period by plan.B2B: demo requests, seats per account, expansion revenue.Content: traffic, conversions, assisted conversions.Business: MRR, ARR, gross margin, operating costs.</li></ul><p>Microsoft Clarity can reveal where visitors click, scroll, stop, or leave, while PostHog can connect product events with funnels and retention. These tools are free or cheap at small scale, so there is no excuse for not tracking the basics from day one.</p><p>It is easy to get overwhelmed by data. That is why you should identify one metric for each stage and ignore everything else until that metric moves. For example, in the SEO stage, focus on organic signups. In the paid acquisition stage, focus on CAC and payback. Once those are healthy, you can broaden your view.</p><h4><strong>Conclusion</strong></h4><p>Excel Exercises did not win by creating a complicated product. It solved a specific problem for a specific audience, launched before perfection, allowed users to experience value before paying, built search visibility around relevant topics, introduced paid acquisition after organic traction, converted individual users into organizational customers, and eventually discovered that average unit economics were hiding major differences between customer segments.</p><p>For founders and SaaS developers, the strongest lesson is not &quot;build a boring website.&quot; It is &quot;build a useful product around a problem that can be explained, searched, tested, purchased, and expanded.&quot; A simple product can become a meaningful business when distribution and economics receive as much attention as code.</p><p>Excel Exercises started with one question: how can people learn Excel through practice instead of passive training? Years later, that narrow answer has become a business generating more than $30K in reported monthly revenue. The same sequence can work for you if you are willing to stay focused and let data drive each next step.</p><p>Sometimes teh most powerful growth strategies are the most straightforward ones. If you are struggling to validate a SaaS idea, ask yourself whether you are solving a problem you actually understand, whether you can explain the product in one sentence, and whether you have a path for someone to try before they buy. Those simple checks would have helped many failed startups.</p><p>One thing that separates Jake&#39;s approach from many others is his willingness to revisit pricing and segment data. Many founders set pricing once and never touch it again. He looked at the numbers, found a clear difference between monthly and annual customers, and made a bold change. That change accelerated growth. It also shows that a SaaS business is never truly static. There is always another lever to pull, another segment to analyze, and another opportunity to increase value.</p><p>If you are building a side hustle today, start with a very narrow problem and a very clear path to practice. You do not need a huge team or a complex platform. You need the right question, a simple product, and the discipline to learn from your users. Excel Exercises shows what can happen when those ingredients come together.</p><h4><strong>Reference</strong></h4><p><a href="https://productwatch.io/blogs/from-side-hustle-to-30k-month-the-excelexercises-growth-strategy">From Side Hustle to $30K/Month: The ExcelExercises Growth Strategy</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=76e9e0acea50" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>