They said Claude Code only runs on Mac and Linux desktops. We put it on a phone. Full agent. Full Linux. Full tools. Zero servers.
โโโโโโโ โโโโโโโ โโโโโโโโโโโโ โโโ โโโโโโโโโโ โโโโโโ โโโ โโโโโโโโโโ โโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโ โโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ
โโโ โโโโโโโโโโโโโโโโโ โโโโโโ โโโโโโ โโโ โโโโโโโโโโโ โโโโโโ โโโโโโโโโ
โโโ โโโโโโโโโโ โโโโโโ โโโโโโโโโโโโโ โโโ โโโโโโโโโโโ โโโโโโ โโโโโโโโโ
โโโโโโโโโโโโ โโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโ โโโ โโโโโโโโโโโ โโโโโ โโโโโโโโโโโโโโโโโโ โโโ โโโโโโโ โโโโโโโ โโโโโโโโ
M O B I L E ยท A I ยท C O D I N G ยท A G E N T
Download APK ยท Google Play ยท Claw Code Docs ยท OpenClaude Upstream
This project puts Claude Code on your Android phone.
Not a wrapper. Not a web app. The actual OpenClaude agent โ the community-built open-source coding CLI that originated from the Claude Code architecture โ running in a full embedded Linux environment inside an APK.
- OpenClaude โ the open-source coding agent CLI forked from the Claw Code project (itself a clean-room rewrite of Claude Code's architecture). 19 tools, 15 slash commands, MCP integration, multi-agent swarms, provider-agnostic.
- Runs inside an embedded Linux environment extracted from the APK
- No root. No Termux dependency. No server. No Mac. No PC. Everything is self-contained.
๐ง TL;DR โ Anthropic's Claude Code got leaked. The community rewrote it as Claw Code (48K+ โญ). It was forked as OpenClaude with multi-provider support. We put it on Android. Full AI coding agent in your pocket.
In March 2026, Anthropic accidentally leaked 512K lines of Claude Code source via an npm source map. The community built Claw Code โ a clean-room rewrite in Python + Rust that hit 48K+ stars in hours. It was later forked as OpenClaude with expanded multi-provider support.
We made it run on Android. The full agent. All the tools. On your phone.
| What | Description | |
|---|---|---|
| ๐ง | OpenClaude Agent | Full Claude Code architecture โ 19 tools, 15 slash commands, multi-agent swarms |
| ๐ง | 19 Built-in Tools | File I/O, shell execution, Git operations, web scraping, notebook editing โ permission-gated |
| ๐ | MCP Integration | Model Context Protocol with 6 transport types โ connect external tool servers |
| ๐ฅ | Multi-Agent Swarms | Spawn sub-agents to parallelize tasks in isolated contexts |
| ๐ฎ | Provider Agnostic | Claude, OpenAI, Gemini, Ollama, DeepSeek, local models โ not locked to Anthropic |
| โก | Rust Core | 6-crate workspace, 16 runtime modules, native performance |
| ๐ | gRPC Server | Run headless as a gRPC service for custom UIs and CI/CD pipelines |
| ๐ฌ | 15 Slash Commands | /compact, /model, /permissions, /cost, /session โ full interactive REPL |
๐ฌ AI Coding Agent Full conversational coding with streaming responses and tool execution. |
๐งฉ Multi-Thread Sessions Parallel conversations, each with its own context and working directory. |
| Feature | Description | |
|---|---|---|
| ๐ง | Claude Code Agent | Full OpenClaude agent with 19 tools, query engine, multi-agent swarms |
| ๐ง | File Operations | Read, write, edit files โ full codebase manipulation from your phone |
| ๐ป | Shell Execution | Run bash commands in the embedded Linux environment |
| ๐ | Grep & Glob | Search your codebase with regex and glob patterns |
| ๐ | Web Search & Fetch | Search the web, fetch pages, scrape content |
| ๐ | Notebook Editing | Edit Jupyter notebooks programmatically |
| ๐ | Git Operations | Commit, push, branch, diff โ full Git workflow |
| ๐ | MCP Servers | Connect external tool servers via Model Context Protocol |
| ๐ฅ | Agent Swarms | Spawn sub-agents for parallel task execution |
| ๐ฎ | Any LLM Provider | OpenAI, Claude, Gemini, Ollama, DeepSeek, OpenRouter, local models |
| ๐งต | Multi-Thread | Parallel sessions, each with isolated context |
| ๐ด | Offline Bootstrap | Linux environment from APK โ works offline after setup |
Download the latest APK or get it from Google Play.
# ๐ฝ Clone
git clone https://github.com/friuns2/openclaude-android.git
cd openclaude-android
# ๐ง Install deps
bun install
# ๐๏ธ Build
bun run build
# ๐ Run
node dist/cli.mjsSee ANDROID_INSTALL.md for the full Termux + proot Ubuntu setup guide.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Android Device โ
โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ Embedded Linux ($PREFIX) โ โ
โ โ โ โ
โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โ
โ โ โ OpenClaude Agent โ โ โ
โ โ โ โ โ โ
โ โ โ Query Engine โ LLM API (streaming, caching) โ โ โ
โ โ โ Tool System โ 19 built-in tools โ โ โ
โ โ โ MCP Client โ 6 transport types โ โ โ
โ โ โ Agent Swarms โ parallel sub-agents โ โ โ
โ โ โ Session Mgr โ persistence, compaction โ โ โ
โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โ
โ โ โ โ
โ โ Rust Core โ 6 crates, 16 runtime modules โ โ
โ โ Node.js 22 โ Bun runtime + dependencies โ โ
โ โ Python 3.10 โ agent orchestration layer โ โ
โ โ Git, rg, fd โ dev toolchain โ โ
โ โ โ โ
โ โ gRPC Server โ :50051 (headless mode) โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
OpenClaude is provider-agnostic. Point it at any LLM:
| Provider | Setup | Notes |
|---|---|---|
| ๐ค OpenAI | /provider or env vars |
GPT-4o, GPT-4.5, o3 |
| ๐ง Claude | /provider or env vars |
Claude 4 Opus, Sonnet, Haiku |
| ๐ Gemini | /provider or env vars |
API key, access token, or ADC |
| ๐ฆ Ollama | /provider or env vars |
Local inference, no API key |
| ๐ OpenRouter | /provider or env vars |
100+ models, one API |
| ๐ DeepSeek | /provider or env vars |
DeepSeek V3, Coder |
| ๐ GitHub Models | /onboard-github |
Interactive onboarding |
| โ๏ธ Codex | /provider |
Existing Codex credentials |
| ๐ Atomic Chat | Advanced setup | Local Apple Silicon |
| โ๏ธ Bedrock/Vertex | env vars | AWS/GCP provider integrations |
The app extracts a Termux-derived Linux userland into app-private storage. You get sh, apt, Node.js, Python, SSL certs โ a complete development environment.
6-crate Rust workspace with 16 runtime modules. Zero-dependency JSON parser, OAuth PKCE flow, syntax-highlighted terminal rendering. Performance-critical paths run at native speed.
The central intelligence โ manages all LLM API calls, response streaming, caching strategies, and multi-step orchestration. Provider-agnostic design with configurable turn limits and budget controls.
19 built-in, permission-gated tools. Each capability โ file reading, bash execution, web scraping, LSP integration, Git operations โ is a self-contained plugin with granular permission controls.
Full Model Context Protocol support with 6 transport types โ Stdio, SSE, HTTP, WebSocket, SDK, and ClaudeAiProxy. Connect external tool servers with automatic name normalization and OAuth.
Android 10+ enforces SELinux W^X policies. We use targetSdk = 28 to bypass this, same approach as Termux (F-Droid).
| Command | What it does |
|---|---|
/model |
Switch LLM provider/model on the fly |
/provider |
Guided provider setup with saved profiles |
/compact |
Compress conversation context |
/cost |
Show token usage and cost estimates |
/session |
Manage sessions, resume previous work |
/permissions |
Configure tool access policies |
/onboard-github |
GitHub Models interactive onboarding |
/help |
Full command reference |
Plus 7 more slash commands for agents, tasks, exports, and debugging.
src/ # Core CLI / runtime
โโโ commands.py # ๐ฏ CLI command registry & dispatch
โโโ tools.py # ๐ง Plugin-based tool system (~40 tools)
โโโ models.py # ๐ฎ LLM provider abstraction layer
โโโ query_engine.py # ๐ง Core query engine
โโโ task.py # ๐ Task management & agent lifecycle
โโโ main.py # ๐ Entry point
rust/ # ๐ฆ Rust core (performance-critical)
python/ # ๐ Python helpers and tests
scripts/ # ๐ง Build, verification, maintenance
docs/ # ๐ Setup guides
vscode-extension/ # ๐ VS Code extension
bin/ # ๐ CLI launcher entrypoints
- ๐ฑ Android 7.0+ (API 24) โ ARM64 device
- ๐ Internet connection โ for first-run setup + API calls
- ๐ LLM API key โ any supported provider (OpenAI, Claude, Gemini, Ollama, etc.)
- ๐พ ~700MB storage โ for Linux environment + Bun + OpenClaude + dependencies
| Layer | Technology | Version |
|---|---|---|
| ๐ง AI Agent | OpenClaude (Claude Code architecture) | latest |
| ๐ฆ Performance | Rust core (6 crates, 16 modules) | โ |
| ๐ Orchestration | Python agent layer | 3.10+ |
| โ๏ธ Runtime | Bun (via proot Ubuntu) | 1.3+ |
| ๐ฎ LLM Support | Provider-agnostic (10+ providers) | โ |
| ๐ Protocol | MCP (6 transport types) | โ |
| ๐ฑ Android | Kotlin + WebView | 2.1.0 |
| ๐ง Linux | Termux bootstrap (aarch64) | โ |
| Problem | Solution |
|---|---|
| App crashes on launch | Check adb logcat for errors |
| "Permission denied" executing binaries | Ensure targetSdk = 28 in build.gradle.kts |
| Bun won't install | Use proot Ubuntu โ Bun doesn't support Android natively |
| "ripgrep not found" | Install rg system-wide: apt install ripgrep |
| Provider connection fails | Check API key and /provider config |
| App killed in background | Grant battery optimization exemption in settings |
Route different agents to different models for cost optimization:
{
"agentModels": {
"deepseek-chat": {
"base_url": "https://api.deepseek.com/v1",
"api_key": "sk-your-key"
},
"gpt-4o": {
"base_url": "https://api.openai.com/v1",
"api_key": "sk-your-key"
}
},
"agentRouting": {
"Explore": "deepseek-chat",
"Plan": "gpt-4o",
"default": "gpt-4o"
}
}- ๐ง OpenClaude โ Open-source coding agent CLI, forked from Claw Code
- ๐ฆ Claw Code โ Clean-room rewrite of Claude Code architecture (48K+ โญ)
- ๐ Claw Code Website โ Architecture docs, tool system, comparisons
- ๐ฑ AnyClaw โ The Android runtime that makes this possible
- ๐ง Termux โ Linux environment bootstrap for Android
- ๐ฌ Sigrid Jin โ Creator of the original Claw Code clean-room rewrite
Claude Code. On a phone. In your pocket. ๐ฌ They leaked the source. We put it on Android. You're welcome. ๐
Download APK ยท Google Play ยท Claw Code Docs ยท OpenClaude Upstream

