OpenCode AI 编码代理的原生 iOS 应用 — 使用 Expo 和 React Native 构建。实时流式传输、二维码配对、Face ID、终端访问和从 p 端进行 git 操作
OpenCode Mobile
A native iOS app for OpenCode - the AI coding agent. Built with Expo and React Native.
Based on OpenChamber - This project is a fork that adds a fully native iOS mobile app to the OpenChamber ecosystem.
What is this?
This is a native mobile client for OpenCode that lets you interact with your AI coding agent from your iPhone or iPad. It connects to an OpenChamber web server running on your development machine, giving you the full OpenCode experience on mobile.
Key highlights:
Real-time streaming responses with live message updates
QR code pairing for instant server connection
Face ID / Touch ID authentication
Native iOS gestures and haptic feedback throughout
Full terminal access from your phone
Git operations with AI-generated commit messages
Works alongside the CLI, web, and desktop versions
The entire project was built using AI coding agents (Claude via OpenCode) under human supervision - a proof of concept that AI can create production-quality software.
More screenshots
Why use OpenCode Mobile?
Cross-device continuity: Start in TUI, continue on your phone, return to terminal - same session
Code on the go: Review and interact with your AI coding agent from anywhere
Native iOS experience: Not a web wrapper - real iOS app with haptic feedback and native gestures
Quick server pairing: Scan a QR code to connect instantly, or use Cloudflare tunnels for remote access
Features
Core (all app versions)
Integrated terminal
Git operations with identity management and AI commit message generation
The mobile app connects to an OpenChamber web server running on your computer:
bash
# Install the server globally
bun add -g @openchamber/web # or npm, pnpm, yarn# Start the server
openchamber # Start on port 3000
openchamber --port 8080 # Custom port
openchamber --ui-password secret # Password-protect UI
openchamber --try-cf-tunnel # Cloudflare tunnel for remote access
2. Run the Mobile App
Development:
bash
cd packages/mobile
# Install dependencies
bun install
# Start Expo development server
bun run start
# Run on iOS Simulator
bun run ios:simulator
# Run on physical device (requires dev build)
bun run ios
Production Build with EAS:
bash
# Build for iOS (requires EAS CLI and Apple Developer account)
bun run build:production
# Preview build (TestFlight)
bun run build:preview
3. Connect to Your Server
Open the mobile app
Scan the QR code displayed in the OpenChamber web UI
Or manually enter the server URL and password
Other Platforms
This repo focuses on the mobile app, but the full OpenChamber ecosystem includes: