<?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"><channel><title><![CDATA[Arnab Mondal's Blog]]></title><description><![CDATA[Notes on building developer tools, AI agents, Android and the web.]]></description><link>https://codewarnab.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Sat, 05 Dec 2026 20:46:59 GMT</lastBuildDate><atom:link href="https://codewarnab.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[How I run Android emulators for free in GitHub Codespaces]]></title><description><![CDATA[Run a full Android emulator in your own GitHub Codespace on the free hours, use it in the browser, and let AI coding agents test on it.]]></description><link>https://codewarnab.hashnode.dev/how-i-run-android-emulators-for-free-in-github-codespaces</link><guid isPermaLink="true">https://codewarnab.hashnode.dev/how-i-run-android-emulators-for-free-in-github-codespaces</guid><category><![CDATA[Android]]></category><category><![CDATA[GitHub]]></category><category><![CDATA[Open Source]]></category><category><![CDATA[AI]]></category><category><![CDATA[Testing]]></category><category><![CDATA[android development]]></category><category><![CDATA[Cloud]]></category><category><![CDATA[emulator ]]></category><category><![CDATA[codespaces]]></category><category><![CDATA[free]]></category><dc:creator><![CDATA[Arnab Mondal]]></dc:creator><pubDate>Thu, 03 Dec 2026 19:29:47 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/64d90f1c584ffa3acf373fd0/b4b67bfc-63db-4d9f-931e-51685e578627.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>If you've ever run the Android emulator on a laptop with 16 GB of RAM, you know how it goes. The fans spin up, Chrome gets slow, and the emulator takes a minute to answer a tap. The usual fix is a cloud device farm, but those charge by the minute.</p>
<p>There's a third option that I don't see people talk about much.</p>
<p>Every GitHub account gets free Codespaces compute each month: 120 core-hours on the Free plan and 180 on Pro. A codespace is a Linux VM, and it exposes KVM. KVM is what the Android emulator needs to run at full speed instead of crawling along in software mode.</p>
<p>So I built <a href="https://emuly.xyz">Emuly</a>. It boots an Android emulator inside your own codespace and streams the screen to your browser. Here's a short demo:</p>
<p><a class="embed-card" href="https://www.youtube.com/watch?v=RF0p8LDRxg8">https://www.youtube.com/watch?v=RF0p8LDRxg8</a></p>

<p>The code is MIT licensed and on GitHub: <a href="https://github.com/codewarnab/emuly">codewarnab/emuly</a>.</p>
<p><img src="https://dev-to-uploads.s3.us-east-2.amazonaws.com/uploads/articles/c7fq5vooyml47iq31483.jpg" alt="Emuly landing page" /></p>
<h2>What "free" means here</h2>
<p>I want to be upfront about this, because "free" usually has a catch.</p>
<p>Emuly doesn't host your phone. The phone runs in a codespace on your GitHub account, so it uses the Codespaces hours you already get. Emuly uses a 4-core machine, which works out to:</p>
<table>
<thead>
<tr>
<th>GitHub plan</th>
<th>Codespaces compute</th>
<th>Phone time per month</th>
</tr>
</thead>
<tbody><tr>
<td>Free</td>
<td>120 core-hours</td>
<td>about 30 hours</td>
</tr>
<tr>
<td>Pro</td>
<td>180 core-hours</td>
<td>about 45 hours</td>
</tr>
</tbody></table>
<p>There's no card to enter. If you use up the hours, GitHub stops the codespace until the next month. Emuly never bills you.</p>
<h2>How it works</h2>
<p><img src="https://dev-to-uploads.s3.us-east-2.amazonaws.com/uploads/articles/s43e8uky25wc49if4t6k.png" alt="How Emuly works: your browser or agent talks to emuly.xyz, which runs the phone in your codespace" /></p>
<ol>
<li>You sign in with GitHub. Emuly asks for the <code>codespace</code> scope and nothing else, so it can't read your repos.</li>
<li>It creates a codespace on your account, in the region closest to you.</li>
<li>A boot script installs the Android SDK and starts an Android 16 emulator with KVM.</li>
<li>A small Node server inside the codespace streams the screen with scrcpy and sends your taps back.</li>
</ol>
<p>Because the phone lives in your codespace, its data stays in your GitHub account.</p>
<p>The first boot takes a few minutes, because the codespace has to download the SDK and the system image. After that, starting a stopped phone is much faster.</p>
<h2>Stopping doesn't lose anything</h2>
<p>Codespaces bill while they run, so an idle phone stops on its own. Stopping keeps the disk, which means your installed apps and logged-in accounts are still there next time. The only thing that erases a phone is deleting it.</p>
<h2>Three ways to use it</h2>
<ul>
<li><strong>In the browser.</strong> Open the phone and click on the screen like it's a real device.</li>
<li><strong>With your own tools.</strong> Connect <code>adb</code> and <code>scrcpy</code> to it, the same way you would with a local emulator.</li>
<li><strong>Through a coding agent.</strong> This is the part I built it for.</li>
</ul>
<h2>Letting an agent test on a real phone</h2>
<p>Coding agents are good at writing Android code, but they usually can't run it. They guess at what the screen looks like.</p>
<p>Emuly has an HTTP API and a CLI called <code>emuly</code>. You paste one prompt into your agent, and it installs a skill that tells it how to use them. From there, the agent can start a phone, install your APK, tap and type, take screenshots, and check the result. When it's done, it stops the phone.</p>
<p>You approve the GitHub sign-in once. The agent does the rest. It works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, OpenCode, Windsurf and Cline.</p>
<h2>You can self-host it</h2>
<p>If you'd rather not use emuly.xyz, the whole app runs in one Docker container on your own machine, with your own GitHub account. The <a href="https://github.com/codewarnab/emuly/blob/main/docs/SELF-HOST.md">self-host guide</a> has the steps.</p>
<h2>Limits worth knowing</h2>
<ul>
<li>Your Codespaces hours are shared with any other codespaces you run.</li>
<li>It's an emulator, not a physical device. Things like real camera hardware and some Play Integrity checks won't behave like a real phone.</li>
<li>Please use one GitHub account per person. Emuly doesn't resell GitHub access, and it shouldn't be used to get around GitHub's limits.</li>
</ul>
<h2>What's new since I first posted this</h2>
<ul>
<li><strong>Faster stream with a direct connection.</strong> Click the computer icon on the phone page. Your browser then connects straight to the codespace, so taps and video feel quicker.</li>
<li><strong>Recordings with sound.</strong> You can record the phone screen, and the recording keeps the phone's audio.</li>
<li><strong>scrcpy 5.0.1.</strong> The streaming engine moved up from 3.3.4.</li>
<li><strong>Smarter agent tools.</strong> Agents get hints when they use raw adb commands, can open apps by name, and type text with spaces or non-English characters correctly.</li>
<li><strong>Feedback and roadmap in the dashboard.</strong> You can tell me what breaks, and see what I'm building next.</li>
<li><strong>A <a href="https://emuly.xyz/changelog">changelog</a></strong> with short videos of each release.</li>
</ul>
<h2>Try it</h2>
<p>You can start a phone at <a href="https://emuly.xyz">emuly.xyz</a>, or read the code on <a href="https://github.com/codewarnab/emuly">GitHub</a>. If it's useful to you, a star helps other people find it.</p>
<p>I'd like to hear what you'd use it for, and what breaks. Leave a comment and I'll reply.</p>
]]></content:encoded></item></channel></rss>