# ferrumclaudepilgrim/claude-code-android architecture

> Architecture diagram of the GitHub repository ferrumclaudepilgrim/claude-code-android, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ferrumclaudepilgrim/claude-code-android
- Repository: https://github.com/ferrumclaudepilgrim/claude-code-android

## Overview

This repository helps Android users install and run Claude Code through three documented paths: native Termux, Ubuntu in proot-distro, and an experimental Android Linux VM. The clearest repository-owned workflow is Path A: the user runs an installer, which sets up the compatibility layer and launcher; the launcher handles version checks and recovery. The README also describes optional Android integrations. No source excerpts were supplied, so relationships below rely on README statements; paths for the other install paths and integrations point to their guides, not implementation code.

Main entry points: [`install.sh`](https://github.com/ferrumclaudepilgrim/claude-code-android/blob/main/install.sh) (Path A installer), [`install-pinned.sh`](https://github.com/ferrumclaudepilgrim/claude-code-android/blob/main/install-pinned.sh) (Pinned installer), [`docs/install.md`](https://github.com/ferrumclaudepilgrim/claude-code-android/blob/main/docs/install.md) (Ubuntu via proot), [`docs/avf-guide.md`](https://github.com/ferrumclaudepilgrim/claude-code-android/blob/main/docs/avf-guide.md) (AVF Linux VM)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_path_a["Native Termux"]
  node_path_a_installer["Path A installer<br/>[install.sh]"]
  node_pinned_installer["Pinned installer<br/>[install-pinned.sh]"]
  node_compatibility_layer["Compatibility layer<br/>[install.sh]"]
  node_launcher["Claude launcher<br/>[install.sh]"]
end

subgraph group_other_paths["Alternative Linux Paths"]
  node_path_b["Ubuntu via proot<br/>[install.md]"]
  node_path_c["AVF Linux VM<br/>[avf-guide.md]"]
end

subgraph group_integrations["Android Integrations"]
  node_termux_api["Termux:API access<br/>[README.md]"]
  node_adb["Wireless ADB<br/>[adb-wireless.md]"]
  node_skills["Termux skills<br/>[skills.md]"]
end

node_user(("Android user"))
node_termux["Termux"]
node_claude_upstream["Claude Code"]

node_user -->|"runs"| node_path_a_installer
node_user -->|"chooses fallback"| node_pinned_installer
node_path_a_installer -->|"sets up"| node_compatibility_layer
node_path_a_installer -->|"installs"| node_launcher
node_launcher -->|"updates and launches"| node_claude_upstream
node_user -->|"chooses path"| node_path_b
node_user -->|"chooses path"| node_path_c
node_termux -->|"integrates through"| node_termux_api
node_termux -->|"integrates through"| node_adb
node_termux -->|"extends with"| node_skills

click node_path_a_installer "https://github.com/ferrumclaudepilgrim/claude-code-android/blob/main/install.sh"
click node_pinned_installer "https://github.com/ferrumclaudepilgrim/claude-code-android/blob/main/install-pinned.sh"
click node_compatibility_layer "https://github.com/ferrumclaudepilgrim/claude-code-android/blob/main/install.sh"
click node_launcher "https://github.com/ferrumclaudepilgrim/claude-code-android/blob/main/install.sh"
click node_path_b "https://github.com/ferrumclaudepilgrim/claude-code-android/blob/main/docs/install.md"
click node_path_c "https://github.com/ferrumclaudepilgrim/claude-code-android/blob/main/docs/avf-guide.md"
click node_termux_api "https://github.com/ferrumclaudepilgrim/claude-code-android/blob/main/docs/add-ons/README.md"
click node_adb "https://github.com/ferrumclaudepilgrim/claude-code-android/blob/main/docs/add-ons/adb-wireless.md"
click node_skills "https://github.com/ferrumclaudepilgrim/claude-code-android/blob/main/docs/add-ons/skills.md"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_path_a_installer,node_pinned_installer,node_compatibility_layer,node_launcher,node_user toneBlue
class node_path_b,node_path_c toneAmber
class node_termux_api,node_adb,node_skills toneMint
class node_termux,node_claude_upstream toneIndigo
```

## Components

### Native Termux

- [Path A installer](https://github.com/ferrumclaudepilgrim/claude-code-android/blob/main/install.sh): `install.sh`
- [Pinned installer](https://github.com/ferrumclaudepilgrim/claude-code-android/blob/main/install-pinned.sh): `install-pinned.sh`
- [Compatibility layer](https://github.com/ferrumclaudepilgrim/claude-code-android/blob/main/install.sh): `install.sh`
- [Claude launcher](https://github.com/ferrumclaudepilgrim/claude-code-android/blob/main/install.sh): `install.sh`

### Alternative Linux Paths

- [Ubuntu via proot](https://github.com/ferrumclaudepilgrim/claude-code-android/blob/main/docs/install.md): `docs/install.md`
- [AVF Linux VM](https://github.com/ferrumclaudepilgrim/claude-code-android/blob/main/docs/avf-guide.md): `docs/avf-guide.md`

### Android Integrations

- [Termux:API access](https://github.com/ferrumclaudepilgrim/claude-code-android/blob/main/docs/add-ons/README.md): `docs/add-ons/README.md`
- [Wireless ADB](https://github.com/ferrumclaudepilgrim/claude-code-android/blob/main/docs/add-ons/adb-wireless.md): `docs/add-ons/adb-wireless.md`
- [Termux skills](https://github.com/ferrumclaudepilgrim/claude-code-android/blob/main/docs/add-ons/skills.md): `docs/add-ons/skills.md`

### Other components

- **Android user**
- **Termux**
- **Claude Code**

## Connections

- Android user → Path A installer: runs (evidence: `README.md`)
- Android user → Pinned installer: chooses fallback (evidence: `README.md`)
- Path A installer → Compatibility layer: sets up (evidence: `README.md`)
- Path A installer → Claude launcher: installs (evidence: `README.md`)
- Claude launcher → Claude Code: updates and launches (evidence: `README.md`)
- Android user → Ubuntu via proot: chooses path (evidence: `README.md`)
- Android user → AVF Linux VM: chooses path (evidence: `README.md`)
- Termux → Termux:API access: integrates through (evidence: `README.md`)
- Termux → Wireless ADB: integrates through (evidence: `README.md`)
- Termux → Termux skills: extends with (evidence: `README.md`)
