kaicode-coder
v0.14.3
Published
Mobile and Web client for Claude Code and Codex
Downloads
30
Readme
K.AI Code
Code on the go — control AI coding agents from your mobile device.
Free. Open source. Code anywhere.
Installation
npm install -g kaicode-coderRun From Source
From a repo checkout:
# repository root
yarn cli --help
# package directory
yarn cli --helpUsage
Claude (default)
kaicodeThis 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
kaicode geminiStart a Gemini CLI session with remote control capabilities.
First time setup:
# Authenticate with Google
kaicode connect geminiCommands
Main Commands
kaicode– Start Claude Code session (default)kaicode gemini– Start Gemini CLI sessionkaicode codex– Start Codex modekaicode acp– Start a generic ACP-compatible agent
Utility Commands
kaicode auth– Manage authenticationkaicode connect– Store AI vendor API keys in K.AI Code cloudkaicode sandbox– Configure sandbox runtime restrictionskaicode config– Configure CLI settings (e.g., log level)kaicode notify– Send a push notification to your deviceskaicode daemon– Manage background servicekaicode doctor– System diagnostics & troubleshooting
From repository source on macOS, you can install a login service with:
yarn daemon:bootstrapConnect Subcommands
kaicode connect gemini # Authenticate with Google for Gemini
kaicode connect claude # Authenticate with Anthropic
kaicode connect codex # Authenticate with OpenAI
kaicode connect status # Show connection status for all vendorsGemini Subcommands
kaicode gemini # Start Gemini session
kaicode gemini model set <model> # Set default model
kaicode gemini model get # Show current model
kaicode gemini project set <id> # Set Google Cloud Project ID (for Workspace accounts)
kaicode gemini project get # Show current Google Cloud Project IDAvailable models: gemini-2.5-pro, gemini-2.5-flash, gemini-2.5-flash-lite
Generic ACP Commands
kaicode acp gemini # Run built-in Gemini ACP command
kaicode acp opencode # Run built-in OpenCode ACP command
kaicode acp opencode --verbose # Include raw backend/envelope logs
kaicode acp -- custom-agent --flag # Run any ACP-compatible command directlySandbox Subcommands
kaicode sandbox configure # Interactive sandbox setup wizard
kaicode sandbox status # Show current sandbox configuration
kaicode sandbox disable # Disable sandboxingOptions
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--no-sandbox- Disable sandbox for the current Claude/Codex run
Environment Variables
K.AI Code Configuration
KAICODE_SERVER_URL- Custom server URLKAICODE_LOG_LEVEL- Log level override (infoordebug, default:info)KAICODE_WEBAPP_URL- Custom web app URLKAICODE_HOME_DIR- Custom home directory for K.AI Code data (default:~/.kaicode)KAICODE_DISABLE_CAFFEINATE- Disable macOS sleep prevention (set totrue,1, oryes)KAICODE_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:
kaicode connect gemini
kaicode 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:
kaicode gemini project set your-project-idOr use environment variable:
GOOGLE_CLOUD_PROJECT=your-project-id kaicode 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
kaicode connect gemini
License
MIT
