Skip to content

eduterre/claude-code-termux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

17 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ Claude Code on Android/Termux

Make Claude Code work flawlessly on your Android device using Termux and PRoot.

The Problem

Anthropic's Claude Code is powerful for developers, but it's officially only available for Desktop (macOS/Windows) and Web. Mobile developers are excluded.

Users want to:

  • Develop on their phones/tablets
  • Use Claude Code without a laptop
  • Have a portable, always-available development environment
  • Leverage their ARM64 mobile devices for actual programming

The Solution

This repository provides complete, tested instructions to run Claude Code natively on Android via Termux (an open-source terminal emulator). Everything is documented, automated, and verified to work.

What you get:

  • βœ… Full Claude Code CLI on your Android device
  • βœ… Local development environment (Node.js, Python, Rust)
  • βœ… MCP (Model Context Protocol) support
  • βœ… Git version control
  • βœ… WebSocket-based tools
  • βœ… Direct system access via Bash

Known limitations:

  • ⚠️ Some Claude Code features not yet supported on Termux (documented)
  • ⚠️ Performance depends on device hardware
  • ⚠️ No official Anthropic support (yet)

Quick Start

# 1. Install Termux from F-Droid (Google Play version may have restrictions)
# Available at: https://f-droid.org/packages/com.termux/

# 2. Clone this repository
git clone https://github.com/eduterre/claude-code-termux.git
cd claude-code-termux

# 3. Run the automated setup
bash scripts/install.sh

# 4. Verify installation
bash scripts/verify.sh

# 5. Use Claude Code!
claude-code --help

πŸ“± Proof of Concept

Claude Code running natively on Android/Termux - Not theoretical, but actually working:

Claude Code on Android - Terminal Running

Claude Code Version Info

Termux Environment Verification

Live demonstration showing Claude Code (v2.0.22) with Claude Haiku 4.5 AI integration running in Termux environment on actual Android hardware. These aren't mockups - this is daily-driver tooling working perfectly on mobile.

For detailed step-by-step instructions, see SETUP.md

What Works βœ…

Feature Status Notes
Claude Code CLI βœ… Fully working Core functionality intact
Bash execution βœ… Full support System command access
File operations βœ… Full support Read, write, edit files
Git operations βœ… Full support Clone, commit, push
MCP Protocol βœ… Working Stdio communication working
Code analysis βœ… Full support Glob, grep, codebase understanding
Task execution βœ… Working Multi-step operations
Node.js 24.9.0 βœ… Working Latest stable version
Python 3.12.12 βœ… Working Latest stable version
Rust 1.90.0 βœ… Working Latest stable version

Known Issues ⚠️

Issue Impact Workaround Status
Custom Slash Commands disabled Medium Use standard commands #9435
Image reading in terminal Low Manual image handling #2248
Performance on older devices High Use device with 4GB+ RAM Device-dependent
WebAssembly support missing Low Not required for CLI #2248

Full list and workarounds: See KNOWN_ISSUES.md

Why This Matters

For Developers

  • Write code anywhere, anytime
  • Leverage Claude AI on the go
  • No laptop required
  • Education and learning on mobile

For Anthropic

  • Validates mobile developer market - Real demand exists
  • Identifies gaps - Shows what needs official support
  • Expands reach - Mobile is the dominant computing platform
  • Community engagement - Users invested in Claude ecosystem

Statistics

  • ~3+ years of PRoot/Termux ecosystem development
  • 6+ documented GitHub issues for Termux support
  • Community members writing guides (proof of demand)
  • This repo: A-Z tested, fully documented setup

Testing Results

This repository includes comprehensive testing data:

  • Compatibility Matrix: Tested on multiple Android versions and device types
  • Performance Benchmarks: CPU/Memory/Startup time on ARM64
  • Feature Checklist: Exactly what works on Termux vs Desktop
  • Troubleshooting Guide: Solutions for common problems

See test-results/ for full details.

Repository Structure

claude-code-termux/
β”œβ”€β”€ README.md                          # This file
β”œβ”€β”€ SETUP.md                           # Complete A-Z installation guide
β”œβ”€β”€ KNOWN_ISSUES.md                    # Honest limitation documentation
β”œβ”€β”€ CONTRIBUTING.md                    # How to help improve this
β”œβ”€β”€ LICENSE                            # MIT License
β”‚
β”œβ”€β”€ scripts/                           # Automation
β”‚   β”œβ”€β”€ install.sh                     # Automated setup
β”‚   β”œβ”€β”€ verify.sh                      # System verification
β”‚   β”œβ”€β”€ test-claude-code.sh            # Feature testing
β”‚   └── troubleshoot.sh                # Diagnostic tools
β”‚
β”œβ”€β”€ docs/                              # Detailed documentation
β”‚   β”œβ”€β”€ architecture.md                # System architecture
β”‚   β”œβ”€β”€ termux-setup.md                # Termux-specific setup
β”‚   β”œβ”€β”€ proot-optimization.md          # Performance tuning
β”‚   β”œβ”€β”€ api-keys-securely.md           # Security best practices
β”‚   β”œβ”€β”€ claude-code-on-mobile.md       # Mobile-specific behavior
β”‚   └── integration-with-projects.md   # Using with your projects
β”‚
β”œβ”€β”€ examples/                          # Usage examples
β”‚   β”œβ”€β”€ minimal-setup/                 # Bare minimum setup
β”‚   β”œβ”€β”€ troubleshooting/               # Common problems + solutions
β”‚   └── showcase/                      # Example projects
β”‚
β”œβ”€β”€ test-results/                      # Testing & verification
β”‚   β”œβ”€β”€ compatibility-matrix.md        # OS/device compatibility
β”‚   β”œβ”€β”€ feature-checklist.md           # Feature support status
β”‚   └── performance-benchmarks.md      # Speed & resource usage
β”‚
└── .github/                           # GitHub-specific
    β”œβ”€β”€ ISSUE_TEMPLATE/
    β”‚   β”œβ”€β”€ bug_report.md
    β”‚   └── feature_request.md
    └── workflows/                     # CI/CD (optional)

Getting Help

  1. New to Termux? β†’ Start with SETUP.md
  2. Something broke? β†’ See KNOWN_ISSUES.md or Troubleshooting Guide
  3. Found a bug? β†’ Open an issue with the bug report template
  4. Have a workaround? β†’ Share it in Discussions or submit a PR
  5. Want to help? β†’ See CONTRIBUTING.md

Contributing

This project is community-driven. Contributions are welcome!

  • πŸ“ Improve documentation
  • πŸ› Report bugs with detailed reproduction steps
  • ✨ Share workarounds you discovered
  • πŸ§ͺ Test on different devices and Android versions
  • πŸš€ Suggest improvements

See CONTRIBUTING.md for guidelines.

Reaching Anthropic

This repository is designed to demonstrate:

  1. Real-world demand for Claude Code on mobile
  2. Functional proof that it can work
  3. Community interest and engagement
  4. Known limitations that need official attention

We're not asking for perfection β€” we're showing the market opportunity and specific gaps that Anthropic could address.

Issues to watch in the Anthropic repo:

License

MIT License - See LICENSE for details.

TL;DR: Use this freely, modify it, share it. Just give credit.

Disclaimer

This is a community project, not officially supported by Anthropic. Use at your own risk. See LICENSE and KNOWN_ISSUES.md for limitations.


The Ask to Anthropic πŸ‘‹

Dear Anthropic team,

Developers want to use Claude Code on their phones. This repository proves:

  1. It's technically possible βœ…
  2. People want it badly (6+ GitHub issues, community guides)
  3. Specific gaps are known (documented with issue links)
  4. A working implementation exists (this repo)

What would help:

  • Official Termux support (at least to fix known issues)
  • Better documentation of mobile limitations
  • Prioritize #9435 and #2248
  • Acknowledge the mobile developer market

We're not asking for full feature parity. We're asking you to acknowledge the use case and help close the gaps.

Thank you, The Community


Made with ❀️ by Eduard Terre, for developers everywhere.

Connect:

Last updated: November 2025

About

Complete setup for Claude Code on Android via Termux

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages