@harborai/opc
v0.14.0-14
Published
OPC - Mobile and Web client for Claude Code and Codex
Readme
OPC
Code on the go — control AI coding agents from your mobile device.
Free. Open source. Code anywhere.
Installation
npm install -g @harborai/opcUsage
Claude (default)
opcThis will:
- Start a Claude Code session
- Display a QR code to connect from your mobile device
- Allow real-time session sharing between Claude Code and your mobile app
Gemini
opc geminiStart a Gemini CLI session with remote control capabilities.
First time setup:
# Authenticate with Google
opc connect geminiCommands
Main Commands
opc– Start Claude Code session (default)opc gemini– Start Gemini CLI sessionopc codex– Start Codex mode
Utility Commands
opc auth– Manage authenticationopc connect– Store AI vendor API keys in OPC cloudopc notify– Send a push notification to your devicesopc daemon– Manage background serviceopc doctor– System diagnostics & troubleshooting
Connect Subcommands
opc connect gemini # Authenticate with Google for Gemini
opc connect claude # Authenticate with Anthropic
opc connect codex # Authenticate with OpenAI
opc connect status # Show connection status for all vendorsGemini Subcommands
opc gemini # Start Gemini session
opc gemini model set <model> # Set default model
opc gemini model get # Show current model
opc gemini project set <id> # Set Google Cloud Project ID (for Workspace accounts)
opc gemini project get # Show current Google Cloud Project IDAvailable models: gemini-2.5-pro, gemini-2.5-flash, gemini-2.5-flash-lite
Options
Claude Options
-m, --model <model>- Claude model to use (default: sonnet)-p, --permission-mode <mode>- Permission mode: auto, default, or plan--claude-env KEY=VALUE- Set environment variable for Claude Code--claude-arg ARG- Pass additional argument to Claude CLI
Global Options
-h, --help- Show help-v, --version- Show version
Environment Variables
OPC Configuration
OPC_SERVER_URL- Custom server URL (default: https://harborchen.top)OPC_WEBAPP_URL- Custom web app URL (default: https://harborchen.top)OPC_HOME_DIR- Custom home directory for OPC data (default: ~/.opc)OPC_DISABLE_CAFFEINATE- Disable macOS sleep prevention (set totrue,1, oryes)OPC_EXPERIMENTAL- Enable experimental features (set totrue,1, oryes)
Gemini Configuration
GEMINI_MODEL- Override default Gemini modelGOOGLE_CLOUD_PROJECT- Google Cloud Project ID (required for Workspace accounts)
Gemini Authentication
Personal Google Account
Personal Gmail accounts work out of the box:
opc connect gemini
opc geminiGoogle Workspace Account
Google Workspace (organization) accounts require a Google Cloud Project:
- Create a project in Google Cloud Console
- Enable the Gemini API
- Set the project ID:
opc gemini project set your-project-idOr use environment variable:
GOOGLE_CLOUD_PROJECT=your-project-id opc geminiGuide: https://goo.gle/gemini-cli-auth-docs#workspace-gca
Contributing
Interested in contributing? See CONTRIBUTING.md for development setup and guidelines.
Requirements
- Node.js >= 20.0.0
For Claude
- Claude CLI installed & logged in (
claudecommand available in PATH)
For Gemini
- Gemini CLI installed (
npm install -g @google/gemini-cli) - Google account authenticated via
opc connect gemini
License
MIT
