AbuZar-Ansarii/Claude-Ollama-VScode
Tentang
Run Claude Code + Ollama + VS Code On Phone For FREE
Alat pengembanganPertumbuhan bintang terukur
- dalam 24 jam
- 0
- dalam 7 hari
- +1
- dalam 15 hari
- Mengumpulkan riwayat
- dalam 1 bulan
- Mengumpulkan riwayat
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
Asliπ± Mobile AI Development Environment For Free (VS Code + Claude Code + Ollama )
A complete, professional setup to turn your Android device into a portable AI-powered development environment. This guide walks through installing a local LLM (Ollama), configuring Claude Code inside Ubuntu, and running VS Code in your browser.
π Overview
You will build:
Termux| Linux environment on Android Ubuntu (proot)| Full Linux userland code-server| VS Code in browser Ollama| Run local AI models Claude Code| AI coding assistant
βοΈ Requirements
- Android phone (4GB+ RAM recommended)
- Stable internet
- Termux (from F-Droid)
π Architecture Overview
This setup separates responsibilities for stability and performance:
- Termux (Host Layer) β Runs Ollama (LLM server)
- Ubuntu (proot-distro) β Development environment
- Claude Code β AI coding assistant (connected to Ollama)
- VS Code (code-server) β Browser-based editor
π οΈ INSTALLATION
π§ Part 1 β Install Ollama (Termux)
Ollama runs directly in Termux to provide a local AI backend.
- Update and install dependencies
pkg update && pkg upgrade -y
pkg install git nodejs-lts python -y
pkg install ollama
- Start Ollama server
ollama serve
- Download coding model
Note - you can Pull and Run local models like ollama run llama3.2 AND Qwen 2.5 Series Based on your phone Processor.
ollama pull nemotron-3-super:cloud
Β«β οΈ First download may be several GB. Ensure stable internet.Β»
---`
π§ Part 2 β Ubuntu Setup (proot-distro)
- Install proot-distro and ubuntu
pkg install proot-distro
proot-distro install ubuntu
proot-distro login ubuntu
- Update system and install dependencies
apt update && apt upgrade -y
apt install -y curl wget git build-essential nodejs npm
π€ Part 3 β Install Claude Code (inside Ubuntu)
Claude Code will connect to Ollama running in Termux.
- Install Claude Code
npm install -g @anthropic-ai/claude-code
- Configure connection to Ollama
echo -e '\n# Claude Code with Ollama Config\nexport ANTHROPIC_BASE_URL="http://localhost:11434"\nexport ANTHROPIC_AUTH_TOKEN="ollama"' >> ~/.bashrc && source ~/.bashrc
- Run Claude Code
claude --model nemotron-3-super:cloud
OR
ollama launch claude
π» Part 4 β Install VS Code (code-server)
- Install code-server
curl -fsSL https://code-server.dev/install.sh | sh
- Start VS Code
code-server --auth none
for background
code-server &
- Access in browser
http://127.0.0.1:8080
π System Workflow
Termux βββ Ollama (LLM Server :11434)
Ubuntu (proot) βββ Claude Code (AI CLI) βββ VS Code (code-server)
- Claude Code β sends requests to Ollama
- VS Code β used for editing and development
- Entire system runs locally on your phone
β‘ Usage Workflow
- Start Ollama (Termux):
ollama serve
- Enter Ubuntu:
proot-distro login ubuntu
- Start VS Code:
code-server &
- Run Claude Code:
claude --model qwen3-coder:7b
β οΈ Important Notes
- Keep Ollama running before using Claude Code
- Ensure enough storage (model size ~4β5GB)
- Performance depends on device hardware
- Close background apps for better stability
π οΈ Troubleshooting
Claude cannot connect to Ollama
- Ensure "ollama serve" is running
- Check port "11434" is active
VS Code not opening
Try:
code-server --bind-addr 127.0.0.1:9090
Command not found
Reload environment:
source ~/.bashrc
π¦ Command Summary
Ollama (Termux)
pkg update && pkg upgrade -y pkg install git nodejs-lts python -y pkg install ollama
ollama serve ollama pull qwen3-coder:7b
Ubuntu + Claude Code
pkg install proot-distro proot-distro install ubuntu proot-distro login ubuntu
apt update && apt upgrade -y apt install -y curl wget git build-essential nodejs npm
npm install -g @anthropic-ai/claude-code
echo -e '\n# Claude Code with Ollama Config\nexport ANTHROPIC_BASE_URL="http://localhost:11434"\nexport ANTHROPIC_AUTH_TOKEN="ollama"' >> ~/.bashrc && source ~/.bashrc
claude --model qwen3-coder:7b
VS Code
curl -fsSL https://code-server.dev/install.sh | sh
code-server & code-server --auth none
π― Final Result
You now have:
- π§ Local AI model (Ollama)
- π€ AI coding assistant (Claude Code)
- π» Full VS Code environment
All running directly on your phone.
π Ready to Build
This setup provides a self-contained AI development environment suitable for:
- Python development
- Web apps
- GenAI experimentation
- Lightweight ML workflows
Jelajahi proyek terkait
Memuatβ¦