diff --git a/docs-site/claude-code-android/index.html b/docs-site/claude-code-android/index.html new file mode 100644 index 0000000..21b0eee --- /dev/null +++ b/docs-site/claude-code-android/index.html @@ -0,0 +1,566 @@ + + + + + +Run Claude Code on Android — OpenCode Mobile + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+
+

Run Claude Code on Android — OpenCode Mobile

+

+ Anthropic's Claude is one of the most capable AI coding models available. If you've been + searching for a way to use Claude Code on your Android phone — to review PRs, hotfix bugs, + or write code from anywhere — OpenCode Mobile is the answer. It connects to an + opencode server configured with your + Anthropic API key and gives you a full native Android interface to Claude's coding abilities. +

+
+

Free and open-source. Bring your own Anthropic API key.

+ Download for Android +
+
+
+ +
+
+

How Claude Code works on Android

+

+ Anthropic does not publish an official Claude Code mobile app for Android. The way to get + Claude's coding capabilities on your phone is to connect to an agentic runtime that uses + Claude as its AI engine — and that's exactly what OpenCode Mobile does. +

+

+ Here's the architecture in plain terms: +

+
    +
  1. You run opencode (the open-source AI coding agent) on your machine — laptop, desktop, or VPS.
  2. +
  3. You configure opencode to use Claude (Sonnet, Opus, Haiku, or any Anthropic model) with your own Anthropic API key.
  4. +
  5. OpenCode Mobile on your Android phone connects to that server over the network.
  6. +
  7. You chat with Claude from your phone — the app streams responses in real time, shows diffs of file changes, and lets you approve or reject what the agent does.
  8. +
+

+ The result is the full power of Claude's coding abilities — multi-file context, shell command + execution, web search, test running — controlled from a native Android app designed for + touch screens. +

+ +
+ Note on terminology: "Claude Code" is Anthropic's own CLI tool. + OpenCode Mobile uses the open-source opencode agent (by SST), which supports + Claude as one of its AI backends. The experience is similar — an AI agent that reads your + code, runs commands, and proposes changes — but the runtime is opencode, not Anthropic's CLI. +
+
+
+ +
+
+

Which Claude models can I use?

+

+ OpenCode supports the full Anthropic model family. You pick the model in the opencode server + config file; the app streams whatever the server produces. Here's how the main options compare + for coding tasks: +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ModelBest forSpeedCost
Claude Sonnet 4 / 3.5
claude-sonnet-4-5
Most coding tasks — strong reasoning, large context, good tool useFastMid
Claude Opus 4
claude-opus-4
Complex refactors — highest reasoning capability for hard architectural problemsSlowerHigher
Claude Haiku 3.5
claude-3-5-haiku-20241022
Quick edits & questions — fastest responses, lowest cost, great for simple tasksVery fastLow
+
+

+ You can switch models by editing the opencode config on the server — no app update required. + OpenCode also supports OpenAI (GPT-4o, o3), Google Gemini, AWS Bedrock, and local models + via Ollama, so you're not locked in to Anthropic. +

+
+
+ +
+
+

What you get with Claude on Android

+

+ This is not a chat window where you paste code and copy suggestions back. OpenCode Mobile + with Claude gives you a full coding agent that: +

+
    +
  • + Reads your entire codebase + Claude gets full file-tree access via the opencode server. Ask it to trace a bug across 20 files and it will — no pasting required. +
  • +
  • + Writes and applies changes + Claude proposes diffs; you see them in the app's inline viewer and approve or reject per file. Changes apply to the real filesystem on your server. +
  • +
  • + Runs shell commands + Need to run tests, build the project, or check a log? Claude can execute shell commands on your machine via the opencode tool-call system. +
  • +
  • + Streams token by token + Responses stream live to your phone — you see Claude "thinking" in real time, not a long wait followed by a wall of text. +
  • +
  • + Works across sessions + Sessions persist on the server. Pick up a long coding conversation exactly where you left off, even if you closed the app or switched networks. +
  • +
  • + Protects your API key + Your Anthropic key lives on the server, not the phone. The app stores only your server URL and access password in the Android Keystore. +
  • +
+
+
+ +
+
+

Setting up Claude on Android: step by step

+ +
+

Step 1 — Install opencode on your machine

+
    +
  1. Install Node.js 20+ if you don't already have it.
  2. +
  3. Install opencode globally: +
    npm install -g opencode-ai
    +
  4. +
+
+ +
+

Step 2 — Configure Claude as the AI provider

+
    +
  1. Get an Anthropic API key from console.anthropic.com.
  2. +
  3. Create or edit ~/.config/opencode/config.json: +
    {
    +  "provider": {
    +    "anthropic": {
    +      "apiKey": "sk-ant-your-key-here"
    +    }
    +  },
    +  "model": "claude-sonnet-4-5"
    +}
    +
  4. +
  5. Or set it as an environment variable if you prefer not to write the key to disk: +
    export ANTHROPIC_API_KEY=sk-ant-your-key-here
    +
  6. +
+
+ +
+

Step 3 — Start the opencode server

+
    +
  1. Start the server, binding to all interfaces so your phone can reach it: +
    OPENCODE_SERVER_PASSWORD=yourpassword opencode serve --hostname 0.0.0.0 --port 4096
    +
  2. +
  3. From your phone's browser, verify: http://<machine-ip>:4096/global/health should return {"healthy":true}.
  4. +
+
+ +
+

Step 4 — Make the server reachable from anywhere

+
    +
  1. Install Tailscale on both your machine and your Android phone (free tier works).
  2. +
  3. Note your machine's Tailscale IP (e.g. 100.x.x.x) from the Tailscale app.
  4. +
  5. Your server URL becomes: http://100.x.x.x:4096
  6. +
+

Alternatives: same LAN Wi-Fi, Cloudflare Tunnel, ngrok. See the full guide for details on each.

+
+ +
+

Step 5 — Install OpenCode Mobile and connect

+
    +
  1. On your phone, install OpenCode Mobile via F-Droid or direct APK.
  2. +
  3. Tap Add Connection.
  4. +
  5. Enter your server URL (http://100.x.x.x:4096) and the password you set.
  6. +
  7. Tap Connect. You're now running Claude Code on Android.
  8. +
+
+ +

+ Total setup time: about 15 minutes. After that, opening a new coding session with Claude + from your phone takes seconds. +

+
+
+ +
+
+

What people use Claude on Android for

+ +
+

Code review anywhere

+

+ Get a review request while away from your desk. Open OpenCode Mobile, connect, and ask + Claude to pull the branch, summarize the changes, and flag anything risky. Claude reads + the full diff from your machine — not just what you paste — and explains it in plain English. + You can drill in with follow-up questions, ask for specific suggestions, and even apply + fixes from your phone before you get back to a laptop. +

+
+ +
+

Debugging production incidents

+

+ Something goes wrong at 11pm and you're not at your computer. Open the app, describe + the symptom, and let Claude locate the relevant code, trace the execution path, and + propose a fix. You review the diff on your phone, approve it, and your CI pipeline kicks + off — all without a laptop. Claude's strong reasoning makes it particularly good at + connecting dots across multiple files and log outputs. +

+
+ +
+

Writing code during idle time

+

+ Commuting, waiting in a queue, between meetings. Short bursts of directed AI coding can + scaffold a new feature, write tests for an existing function, or refactor a messy module. + Claude handles the actual code; you approve the diffs. The streaming UI makes it feel + responsive even on a mobile connection. +

+
+ +
+

Learning a new codebase

+

+ Onboarding to a new project or returning to old code after months away? Claude with full + file access can map the architecture, explain how a function is called, trace data flow + from endpoint to database, and answer "why is this done this way?" questions by reading + the actual code — not a stale summary you typed into a chat. +

+
+ +
+

Writing and running tests

+

+ Ask Claude to write unit tests for a function. It reads the function, writes the tests, + runs them via the opencode shell tool, sees the failures, and iterates — all without you + doing anything except reviewing the final output. From your phone, you get the full + red-green-refactor loop. +

+
+
+
+ +
+
+

Privacy: where your code goes

+

+ When you use Claude via OpenCode Mobile: +

+
    +
  • Your prompts and code go from your phone → to your opencode server → to Anthropic's Claude API. OpenCode Mobile itself never sees or stores your code.
  • +
  • The path from phone to server is over your private network (LAN or Tailscale) — not through any third-party relay.
  • +
  • The path from server to Claude is via Anthropic's standard API — subject to Anthropic's privacy policy.
  • +
  • If data privacy is critical, you can configure opencode to use a local model (e.g. Ollama + a code-capable LLM) so no data ever leaves your network.
  • +
+

+ Your Anthropic API key lives in the opencode server config on your machine — not in the app, + not in any cloud service. The app stores only your server URL and access password, encrypted + in the Android Keystore. +

+
+
+ +
+
+

OpenCode Mobile vs. Anthropic's Claude Code CLI

+

+ Anthropic publishes Claude Code as a CLI tool for desktop/laptop use. + OpenCode Mobile is not a replacement for that — it's the mobile interface to the + opencode agent, which is a separate open-source project that happens to support + Claude among other models. +

+

+ Practical differences: +

+
    +
  • Anthropic's Claude Code CLI is designed for terminal use on macOS/Linux. There is no official Android client.
  • +
  • OpenCode (the runtime OpenCode Mobile connects to) is designed from the ground up as a server with an HTTP API, making it suitable for remote clients like a mobile app.
  • +
  • OpenCode Mobile adds the native Android UI layer: touch-optimised chat, diff viewer, biometric unlock, credential storage — things that have no equivalent in a CLI tool.
  • +
  • You can run opencode alongside Claude Code CLI on the same machine — they don't conflict.
  • +
+

+ If you use Claude Code on your laptop and want to do lighter tasks from your phone, + OpenCode Mobile with Claude is the natural complement. +

+
+
+ +
+
+

Frequently asked questions

+
+
+ Can I run Claude Code on Android? +

Yes — via OpenCode Mobile. The app connects to an opencode server configured with your Anthropic API key, giving you Claude's full coding abilities from your Android phone. Anthropic does not publish an official Claude Code Android app; this is the practical alternative.

+
+
+ Which Claude models does OpenCode Mobile support? +

OpenCode Mobile works with any model your opencode server supports. For Claude, that includes Sonnet 4 / 3.5, Opus 4, and Haiku 3.5. You set the model in the opencode config file on the server. You can change it at any time without updating the app.

+
+
+ Do I need an Anthropic API key? +

Yes — to use Claude models you need an Anthropic API key configured on your opencode server. You can get one from console.anthropic.com. OpenCode also supports other providers, so you can use OpenAI, Gemini, or a local model if you prefer.

+
+
+ Is this the official Claude android app? +

No. OpenCode Mobile is an independent open-source project (MIT licensed), not an official Anthropic product. It connects to the open-source opencode agent, which supports Claude as an AI backend. Anthropic has not published an official Claude coding agent app for Android.

+
+
+ How much does it cost to use Claude via OpenCode Mobile? +

OpenCode Mobile itself is free. Claude usage is billed by Anthropic based on tokens — the same pricing as using Claude via any API client. Claude Haiku is the most affordable option; Sonnet offers the best balance of cost and capability for most coding tasks. See Anthropic's pricing page for current rates.

+
+
+ Does it work if I'm not on Wi-Fi? +

Yes. As long as your phone can reach your opencode server — over mobile data via Tailscale, or any other reachable URL — it works on cellular connections. The SSE streaming protocol is efficient and tolerates brief network hiccups gracefully.

+
+
+
+
+ +
+
+

Get started with Claude on Android today

+

+ OpenCode Mobile is free, open-source, and available now on Android via F-Droid or direct APK. + You need a machine running opencode serve and an Anthropic API key — both + of which you can set up in under 15 minutes by following the + complete setup guide. +

+
+

Claude Code on your Android phone — no official app needed.

+
+ Download OpenCode Mobile + Setup guide +
+
+

+ Also see: full feature list · + OpenCode Mobile vs ChatGPT & Copilot · + vs Termux · + troubleshooting connection issues +

+
+
+
+ + + + + diff --git a/docs-site/comparison/index.html b/docs-site/comparison/index.html new file mode 100644 index 0000000..3d2d448 --- /dev/null +++ b/docs-site/comparison/index.html @@ -0,0 +1,336 @@ + + + + + +AI Coding on Android: OpenCode Mobile vs. ChatGPT & Copilot + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+
+

AI Coding on Android: OpenCode Mobile vs. Browser-Based Tools

+

+ Most "AI coding on Android" options are just chat windows — you paste code in, + copy suggestions out, and manually apply changes yourself. OpenCode Mobile is different: + it drives a real opencode agent running on your own machine, + streams the session live to your phone, and lets you approve file edits and shell commands + directly from Android. +

+
+

Ready to try it? OpenCode Mobile is free and open-source.

+ Download for Android +
+
+
+ +
+
+

Feature comparison

+

How OpenCode Mobile stacks up against the most common alternatives people reach for on Android.

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FeatureOpenCode MobileChatGPT (mobile browser)GitHub Copilot (mobile)
Works offline / on LANYes — connects to your local server via Wi-Fi or TailscaleNo — requires internet to OpenAI serversNo — requires internet to GitHub servers
Self-hosted / privateYes — your server, your API keys, your dataNo — all prompts and code go to OpenAINo — code sent to GitHub/Microsoft
Terminal / shell accessYes — agent can run shell commands on your machineNo — chat onlyLimited — IDE-embedded only, no Android client
Streaming responsesYes — live token streaming from the agentYes — streamed in browserPartial — depends on client
Multi-file contextYes — agent reads your whole project treePartial — paste manually, limited contextPartial — IDE context, no Android app
Applies diffs / edits filesYes — agent writes changes, you approve on phoneNo — copy-paste onlyNo standalone Android client
Free & open-sourceYes — MIT licensed, no subscriptionFree tier, closed sourceFree tier, closed source
Bring your own LLMYes — any provider opencode supports (Claude, GPT-4, local models)OpenAI models onlyGitHub Copilot models only
+
+
+
+ +
+
+

Real use cases: coding from your phone

+ +
+

Code review on the go

+

+ You get a Slack ping about a PR while away from your desk. With OpenCode Mobile, + open the agent on your phone, ask it to pull the branch and summarize the diff, + then drill into any file with follow-up questions. The agent runs on your machine — + it has full repo access, not just whatever you pasted into a chat. +

+

+ With ChatGPT on Android you would need to manually copy each file's content into + the chat, losing cross-file context and having to apply feedback yourself. +

+
+ +
+

Hotfixes from your phone

+

+ Production is down and you are not near a computer. Open OpenCode Mobile, describe + the bug, and let the agent locate the offending code, propose a fix, and apply it. + You review and approve the diff on your phone, then trigger your deploy pipeline — + all without opening a laptop. +

+

+ Browser-based AI tools require you to find the right file, copy it in, copy the + fix out, and open a separate terminal or web IDE to actually commit it. +

+
+ +
+

Exploring an unfamiliar codebase

+

+ Onboarding to a new project or returning to old code after months away? Ask the + agent to map the directory structure, explain the architecture, or trace how a + specific function is called. Because opencode has full filesystem access on your + server, it can answer questions about any file without you having to find and + paste it first. +

+

+ Self-hosted also means sensitive internal code never leaves your network — + important for proprietary or client work. +

+
+
+
+ +
+
+

Why self-hosted AI coding matters on mobile

+

+ When you use a browser-based AI assistant, every snippet of code you share travels + to a third-party server. For personal projects that may be fine, but for work code, + client projects, or anything under NDA it is a real risk. OpenCode Mobile keeps + traffic on your own network: the phone talks to your server over your LAN or a + private Tailscale tunnel, and the server talks to whichever LLM API you configure + — or a fully local model with no external calls at all. +

+

+ The other advantage is cost control. Browser AI tools bill per message or per month. + With opencode you supply your own API key and pay only for tokens used — or run a + free local model like Ollama and pay nothing. +

+
+
+ +
+
+

Frequently asked questions

+ +

Can I do real AI-assisted coding on Android?

+

+ Yes. OpenCode Mobile connects to an opencode server running on your laptop or home + machine and streams the full agent session to your phone. You get the same file + editing, terminal execution, and multi-file context you would at a desktop — just + controlled from Android. +

+ +

How is OpenCode Mobile different from using ChatGPT on Android?

+

+ ChatGPT's Android app and mobile browser are chat interfaces — you paste code, get + suggestions, and copy them back manually. OpenCode Mobile drives a real opencode + agent on your server: it reads your files, runs shell commands, applies diffs, and + streams results live. No copy-paste loop. +

+ +

Does OpenCode Mobile work without an internet connection?

+

+ If your opencode server is on the same local network as your phone (or reachable via + Tailscale), OpenCode Mobile works fully without public internet. + The server handles LLM calls; if you point it at a local model, the entire flow is offline. +

+ +

Is OpenCode Mobile free?

+

+ Yes. OpenCode Mobile is free and open-source (MIT licensed). The app itself has no + subscription. LLM costs depend on the provider you configure on your opencode server — + you can use any API key you already have, or a free local model. +

+ +
+

Get started in minutes — read the setup guide or go straight to download.

+ Download for Android +
+
+
+
+ + + + + diff --git a/docs-site/guide/index.html b/docs-site/guide/index.html index e046fbd..81b3f1e 100644 --- a/docs-site/guide/index.html +++ b/docs-site/guide/index.html @@ -295,6 +295,7 @@ OPENCODE_SERVER_PASSWORD=yourpassword opencode serve --hostname 0.0.0.0 --port 4 Download APK Back to home +

Also see: OpenCode Mobile vs Termux — skip the terminal emulator setup and use the native Android UI instead. Or run Claude Code on Android — configure opencode with your Anthropic API key and use Claude Sonnet or Opus as your AI engine.

diff --git a/docs-site/index.html b/docs-site/index.html index 3fbc703..2e70438 100644 --- a/docs-site/index.html +++ b/docs-site/index.html @@ -280,6 +280,7 @@ footer a{margin:0 8px}
  • Session managementBrowse, create, and resume coding sessions on your server.
  • Full feature list and use cases →

    +

    Comparing options? See OpenCode Mobile vs. ChatGPT & Copilot, OpenCode Mobile vs. Termux, or how to run Claude Code on Android.

    @@ -363,6 +364,9 @@ OPENCODE_SERVER_PASSWORD=yourpassword opencode serve --hostname 0.0.0.0 --port 4 Download Setup guide Features + Comparison + vs Termux + Claude Code on Android Troubleshooting GitHub F-Droid repo diff --git a/docs-site/sitemap.xml b/docs-site/sitemap.xml index 04aad69..bce25e9 100644 --- a/docs-site/sitemap.xml +++ b/docs-site/sitemap.xml @@ -25,6 +25,24 @@ monthly 0.7 + + https://dzianisv.github.io/opencode-mobile/comparison/ + monthly + 0.7 + 2026-06-05 + + + https://dzianisv.github.io/opencode-mobile/vs-termux/ + monthly + 0.7 + 2026-06-05 + + + https://dzianisv.github.io/opencode-mobile/claude-code-android/ + monthly + 0.8 + 2026-06-05 + https://dzianisv.github.io/opencode-mobile/privacy/ yearly diff --git a/docs-site/troubleshooting/index.html b/docs-site/troubleshooting/index.html index b5c43f8..7c1ce67 100644 --- a/docs-site/troubleshooting/index.html +++ b/docs-site/troubleshooting/index.html @@ -177,6 +177,7 @@ footer a{margin:0 8px}

    See also: the setup guide · download & install · + OpenCode Mobile vs Termux · using Claude on Android · overview.

    diff --git a/docs-site/vs-termux/index.html b/docs-site/vs-termux/index.html new file mode 100644 index 0000000..9f63f90 --- /dev/null +++ b/docs-site/vs-termux/index.html @@ -0,0 +1,539 @@ + + + + + +OpenCode Mobile vs Termux: AI Coding on Android Without the Setup Headaches + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + +
    +
    +
    +

    OpenCode Mobile vs Termux: AI Coding on Android Without the Setup Headaches

    +

    + If you've tried to run an AI coding agent on your Android phone, you've probably ended up in + Termux — installing Node, fiddling with SSH keys, and squinting at a tiny shell prompt. + OpenCode Mobile is a purpose-built native Android client for the + opencode AI agent that skips all of that. + One URL (or a QR scan), and you're coding with AI from your pocket. +

    +
    +

    Free and open-source. No SSH tunnel required.

    + Download OpenCode Mobile +
    +
    +
    + +
    +
    +

    The Termux path: what you're actually signing up for

    +

    + Termux is a fantastic project — a real Linux environment on Android, beloved by + security researchers, sysadmins, and hackers. If you live in a terminal, it's a superpower. + But using it to run an AI coding agent day-to-day on a phone involves a surprising + amount of yak shaving before you write your first prompt. +

    + +
    +

    Typical Termux + opencode setup journey

    +
      +
    1. Install Termux from F-Droid (the Play Store version is outdated).
    2. +
    3. Run pkg update && pkg upgrade and wait through package downloads.
    4. +
    5. Install Node.js: pkg install nodejs — then discover the version is older than opencode needs and fight with nvm in Termux.
    6. +
    7. Install opencode: npm install -g opencode-ai — and watch it compile native modules from source on your phone's ARM CPU for several minutes.
    8. +
    9. Set up your AI provider API key as an environment variable, being careful not to leak it in shell history.
    10. +
    11. Realize opencode serve needs a hostname/IP your other devices can reach — so now you're setting up an SSH reverse tunnel, ngrok, or Tailscale from inside Termux.
    12. +
    13. Deal with Termux's wakelock so Android doesn't kill the server mid-session.
    14. +
    15. Navigate the opencode TUI from a virtual keyboard on a 6-inch screen.
    16. +
    17. Repeat steps 3–8 after an Android update wipes your Termux prefix or a pkg upgrade breaks your Node version.
    18. +
    +
    + +

    + None of these steps are hard if you already know Linux well. But they add up to 30–90 minutes + before you write your first line of AI-assisted code, and maintenance is ongoing. + If the goal is just to use AI to code from your phone, there's a faster way. +

    +
    +
    + +
    +
    +

    The OpenCode Mobile path: three steps and done

    +

    + OpenCode Mobile flips the model. Instead of running the agent on your phone, you run + the opencode server on hardware you already have — your laptop, a desktop, a VPS — where Node, + npm, and compute are plentiful. The phone is just the interface. +

    + +
    +

    OpenCode Mobile setup

    +
      +
    1. On your machine, install and start the server: +
      npm install -g opencode-ai
      +OPENCODE_SERVER_PASSWORD=yourpassword opencode serve --hostname 0.0.0.0 --port 4096
      +
    2. +
    3. Make it reachable from your phone — connect both devices to + Tailscale + (free tier), then use your machine's Tailscale IP, e.g. http://100.x.x.x:4096. + Or use the same LAN Wi-Fi if you're always at home.
    4. +
    5. Install OpenCode Mobile (via F-Droid or direct APK), + tap Add Connection, enter the URL and password — done.
    6. +
    +
    + +

    + The whole process takes about 10–15 minutes, most of which is the Tailscale install. + After that, every subsequent session is: open app, tap your saved connection, start prompting. +

    + +
    + Prefer a QR code? The setup guide shows how to + generate a scannable connection QR code so you never have to type the URL or password + on a phone keyboard. +
    +
    +
    + +
    +
    +

    Side-by-side comparison

    +

    How the two approaches differ for everyday AI coding use on Android.

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    AspectOpenCode MobileTermux + opencode
    Initial setup time~10–15 minutes30–90 minutes (Node, native modules, tunnel)
    Node.js version conflictsNone — server is on your real machineCommon — Termux pkg lags behind upstream Node releases
    Native module compilationNot needed on the phoneSlow ARM compilation on first install and upgrades
    Android wakelock / background killServer runs on a real machine, not subject to Android's battery optimiserMust acquire wakelock; Android may kill Termux during long tasks
    UI on a phone screenNative Android UI — optimised for touch, streaming, swipe gesturesTerminal TUI — functional but cramped on a small screen
    Diff reviewInline side-by-side diff viewer with approve/reject per fileRaw terminal diff output — hard to read on 6 inches
    Credential securityAndroid Keystore via expo-secure-storeShell env vars / plaintext config files in Termux home
    Biometric unlockFace ID / fingerprint gates the app and message sendsNot available in terminal context
    Multi-server managementSave multiple server profiles, switch instantlyManage multiple SSH configs manually
    CPU / battery on phoneMinimal — the app just renders a UI and streams HTTP/SSENode + LLM API calls drain battery and heat the device
    Works without internetYes — LAN or Tailscale, no public internet neededYes — if the LLM calls are also local
    Free & open-sourceYes — MIT licenseYes — Termux and opencode are both open-source
    +
    +
    +
    + +
    +
    +

    When Termux still makes sense

    +

    + This isn't a takedown of Termux — it's a genuinely powerful tool and the right choice for + several scenarios. Use Termux when: +

    +
      +
    • You don't have another machine to run the server on and your phone is your primary computer.
    • +
    • You want a full Linux environment for general-purpose hacking, not just the opencode agent.
    • +
    • You're comfortable in a terminal and prefer text interfaces over native UIs.
    • +
    • You're doing air-gapped or highly restricted work and can't install anything from an external repo.
    • +
    • You need to run other CLI tools alongside the agent and want them in the same session.
    • +
    +

    + If any of those apply, Termux is the right tool and you should use it. + OpenCode Mobile is for the complementary case: you have real hardware somewhere, you want to + code from your phone without babysitting a terminal session, and you want a UI that was + actually designed for Android. +

    +
    +
    + +
    +
    +

    Real use cases where OpenCode Mobile wins on Android

    + +
    +

    Reviewing a PR at the airport

    +

    + You get a review request while in transit. Your opencode server is running at home on + Tailscale. Open OpenCode Mobile, connect, ask the agent to pull the branch and explain + the changes. It runs the git commands on your actual machine — full repo access, no + copy-paste. Approve the diff on your phone and push back, all without a laptop. +

    +

    + With Termux you'd need the server already running inside Termux, deal with the risk of Android + killing it mid-flight, and navigate the terminal diff on a touch keyboard. +

    +
    + +
    +

    Late-night hotfix from the couch

    +

    + Something breaks in production. You're not at your desk. With OpenCode Mobile you describe + the bug, the agent locates the file, proposes a fix, and shows you the diff. Tap approve, + the server applies the change, you trigger your deploy pipeline from your phone. Fixed in + under 10 minutes without leaving the couch. +

    +

    + The Termux equivalent requires the session to still be alive (wakelock), the TUI to be + usable from the couch with a phone keyboard, and manual copy-paste if you need to review + the diff carefully. +

    +
    + +
    +

    Spinning up a new feature on the go

    +

    + Commuting and have 20 minutes of high-quality thinking time? OpenCode Mobile lets you + direct the agent with natural language while the server runs the actual file edits and + tests. By the time you reach your destination the skeleton of a new feature is scaffolded + and waiting for your review. +

    +

    + Running opencode interactively in a Termux session on a phone keyboard for 20 minutes + on a moving train is not a comfortable experience. The native UI with large touch targets + and streaming responses is significantly better. +

    +
    + +
    +

    Multiple projects, multiple servers

    +

    + OpenCode Mobile lets you save multiple server connections — one for your home lab running + a personal project, one for a VPS running a client project, one for a work machine on + Tailscale. Switch between them with a tap, each with its own credentials stored securely + in the Android Keystore. +

    +

    + With Termux you'd maintain separate SSH configs, Termux sessions, or shell aliases and + manually switch between them. +

    +
    +
    +
    + +
    +
    +

    How the architecture works

    +

    + OpenCode Mobile is a thin HTTP + SSE client. When you connect to your server, here is what + happens: +

    +
      +
    1. The app opens an SSE stream to your opencode server's /session/{id}/events endpoint.
    2. +
    3. You type a prompt — the app posts it to /session/{id}/chat.
    4. +
    5. The server forwards the prompt to your configured LLM (Claude, GPT-4, a local model, whatever you set up).
    6. +
    7. Tokens stream back from the LLM to the server, and from the server over SSE to the app.
    8. +
    9. When the agent proposes a file change, the app renders the diff and waits for your approve/reject tap.
    10. +
    11. Your approval goes back to the server, which applies the change to the real filesystem.
    12. +
    +

    + The phone never holds your API keys. It never executes code. It never touches your files. + It is a smart terminal window, drawn as a native Android app. That is why it uses so little + battery and works perfectly even on a mid-range Android device. +

    +

    + The server can live on anything: a MacBook, a Linux desktop, a Raspberry Pi 5, a DigitalOcean + droplet, a home server. As long as the phone can reach it over the network, it works. +

    +
    +
    + +
    +
    +

    Getting started

    +

    + If you already have a machine running opencode serve, installing the app takes + two minutes. If you're starting from scratch, the full setup guide + walks through every step — server install, Tailscale setup, app install, and first connection. +

    + +

    Quick start commands

    +
    # On your machine (macOS, Linux, or WSL):
    +npm install -g opencode-ai
    +
    +# Set a password and start the server bound to all interfaces:
    +OPENCODE_SERVER_PASSWORD=yourpassword opencode serve --hostname 0.0.0.0 --port 4096
    +
    +# On your phone, install OpenCode Mobile:
    +# F-Droid repo: https://dzianisv.github.io/opencode-mobile/fdroid/repo
    +# Or: download APK from https://github.com/dzianisv/opencode-mobile/releases/latest
    + +

    + Then in the app: tap Add Connection, enter http://<tailscale-ip>:4096 + and your password. That's it. You're coding with AI from Android. +

    + +
    +

    Skip the Termux rabbit hole — get OpenCode Mobile.

    + +
    +
    +
    + +
    +
    +

    Frequently asked questions

    +
    +
    + Can I run opencode on Android without Termux? +

    Yes. OpenCode Mobile is a native Android client that connects to an opencode server running on your laptop, desktop, or VPS. You don't need Termux, SSH keys, or any terminal emulation on the phone itself — just the app and a URL.

    +
    +
    + What is the difference between using Termux and OpenCode Mobile? +

    With Termux you install Node.js, set up SSH tunneling, manage API keys inside the emulated shell, and use a small-screen terminal as your UI. With OpenCode Mobile you install the app, enter your server URL (or scan a QR code), and get a full native Android interface — streaming chat, diff viewer, tool call approval — with credentials stored in the Android Keystore.

    +
    +
    + Does OpenCode Mobile run the AI model on the phone? +

    No. The AI model calls happen on your opencode server. The phone is a pure UI client — it streams results over HTTP/SSE. This is why it uses very little battery and works on any Android device, even older or lower-end ones.

    +
    +
    + Is my code safe? Does it go through any third-party servers? +

    No. The app communicates only with your own opencode server over your private network or a Tailscale tunnel. Your code, prompts, and responses never pass through OpenCode Mobile's (or anyone else's) servers. Your API keys live on the server, not the phone.

    +
    +
    + Do I need Tailscale, or can I use something else? +

    Tailscale is the easiest option (free tier is sufficient) but not required. Any method that makes your server reachable from the phone works: same LAN Wi-Fi, Cloudflare Tunnel, ngrok, a reverse SSH tunnel, or a public VPS. See the setup guide for examples of each.

    +
    +
    +
    +
    +
    + + + + +