<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Arnab Mondal</title>
    <description>The latest articles on DEV Community by Arnab Mondal (@blacknut1803).</description>
    <link>https://dev.to/blacknut1803</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F811905%2Fd0f36217-8bd0-4cc1-96c0-9f17b5f14cc4.png</url>
      <title>DEV Community: Arnab Mondal</title>
      <link>https://dev.to/blacknut1803</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/blacknut1803"/>
    <language>en</language>
    <item>
      <title>How I run Android emulators for free in GitHub Codespaces</title>
      <dc:creator>Arnab Mondal</dc:creator>
      <pubDate>Sun, 22 Nov 2026 12:25:33 +0000</pubDate>
      <link>https://dev.to/blacknut1803/how-i-run-android-emulators-for-free-in-github-codespaces-42dd</link>
      <guid>https://dev.to/blacknut1803/how-i-run-android-emulators-for-free-in-github-codespaces-42dd</guid>
      <description>&lt;p&gt;If you've ever run the Android emulator on a laptop with 8 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.&lt;/p&gt;

&lt;p&gt;There's a third option that I don't see people talk about much.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;So I built &lt;a href="https://emuly.xyz" rel="noopener noreferrer"&gt;Emuly&lt;/a&gt;. It boots an Android emulator inside your own codespace and streams the screen to your browser. Here's a short demo:&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/RF0p8LDRxg8" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;The code is MIT licensed and on GitHub: &lt;a href="https://github.com/codewarnab/emuly" rel="noopener noreferrer"&gt;codewarnab/emuly&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fc7fq5vooyml47iq31483.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fc7fq5vooyml47iq31483.jpg" alt="Emuly landing page" width="800" height="375"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What "free" means here
&lt;/h2&gt;

&lt;p&gt;I want to be upfront about this, because "free" usually has a catch.&lt;/p&gt;

&lt;p&gt;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:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;GitHub plan&lt;/th&gt;
&lt;th&gt;Codespaces compute&lt;/th&gt;
&lt;th&gt;Phone time per month&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Free&lt;/td&gt;
&lt;td&gt;120 core-hours&lt;/td&gt;
&lt;td&gt;about 30 hours&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Pro&lt;/td&gt;
&lt;td&gt;180 core-hours&lt;/td&gt;
&lt;td&gt;about 45 hours&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;There's no card to enter. If you use up the hours, GitHub stops the codespace until the next month. Emuly never bills you.&lt;/p&gt;

&lt;h2&gt;
  
  
  How it works
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fs43e8uky25wc49if4t6k.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fs43e8uky25wc49if4t6k.png" alt="How Emuly works: your browser or agent talks to emuly.xyz, which runs the phone in your codespace" width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;You sign in with GitHub. Emuly asks for the &lt;code&gt;codespace&lt;/code&gt; scope and nothing else, so it can't read your repos.&lt;/li&gt;
&lt;li&gt;It creates a codespace on your account, in the region closest to you.&lt;/li&gt;
&lt;li&gt;A boot script installs the Android SDK and starts an Android 16 emulator with KVM.&lt;/li&gt;
&lt;li&gt;A small Node server inside the codespace streams the screen with scrcpy and sends your taps back.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Because the phone lives in your codespace, its data stays in your GitHub account.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;h2&gt;
  
  
  Stopping doesn't lose anything
&lt;/h2&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three ways to use it
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;In the browser.&lt;/strong&gt; Open the phone and click on the screen like it's a real device.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;With your own tools.&lt;/strong&gt; Connect &lt;code&gt;adb&lt;/code&gt; and &lt;code&gt;scrcpy&lt;/code&gt; to it, the same way you would with a local emulator.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Through a coding agent.&lt;/strong&gt; This is the part I built it for.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Letting an agent test on a real phone
&lt;/h2&gt;

&lt;p&gt;Coding agents are good at writing Android code, but they usually can't run it. They guess at what the screen looks like.&lt;/p&gt;

&lt;p&gt;Emuly has an HTTP API and a CLI called &lt;code&gt;emuly&lt;/code&gt;. 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.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;h2&gt;
  
  
  You can self-host it
&lt;/h2&gt;

&lt;p&gt;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 &lt;a href="https://github.com/codewarnab/emuly/blob/main/docs/SELF-HOST.md" rel="noopener noreferrer"&gt;self-host guide&lt;/a&gt; has the steps.&lt;/p&gt;

&lt;h2&gt;
  
  
  Limits worth knowing
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Your Codespaces hours are shared with any other codespaces you run.&lt;/li&gt;
&lt;li&gt;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.&lt;/li&gt;
&lt;li&gt;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.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;You can start a phone at &lt;a href="https://emuly.xyz" rel="noopener noreferrer"&gt;emuly.xyz&lt;/a&gt;, or read the code on &lt;a href="https://github.com/codewarnab/emuly" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt;. If it's useful to you, a star helps other people find it.&lt;/p&gt;

&lt;p&gt;I'd like to hear what you'd use it for, and what breaks. Leave a comment and I'll reply.&lt;/p&gt;

</description>
      <category>android</category>
      <category>github</category>
      <category>testing</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
