kodexlink
v0.1.8
Published
KodexLink desktop agent CLI
Maintainers
Readme
KodexLink
Your local Codex, paired to your phone.
KodexLink starts on your desktop, opens a local pairing panel, and connects the KodexLink mobile app to your local Codex runtime. Scan once from iPhone or Android, then keep the same Codex-backed workflow available away from your desk.
The mobile app is required for pairing. KodexLink is not a standalone desktop GUI.
Why Developers Install It
- Start on desktop, continue on mobile
- Pair through one QR scan from a local browser panel
- Inspect relay, service, and runtime state from one page
- Refresh pairing or reset identity when local state drifts
60-Second Setup
- Install the desktop CLI:
npm install -g kodexlink- Start KodexLink:
kodexlink start- Open the KodexLink mobile app and scan the pairing QR code shown in the terminal or local panel.
Mobile App
KodexLink pairing requires the mobile companion app:
- iPhone app (App Store): https://apps.apple.com/us/app/kodexlink-codex-mobile-chat/id6761055159?uo=4
- Android app (Google Play): https://play.google.com/store/apps/details?id=com.kodexlink.android
What Opens When You Start
Every time you run kodexlink start, KodexLink:
- Checks your local Codex runtime prerequisites.
- Starts the desktop agent in the platform-appropriate mode.
- Opens the local panel in your browser.
- Prints the local panel URL in the terminal.
- Prints a pairing QR code for the KodexLink mobile app.
- Prints a mobile app download reminder so first-time users know what to scan.
Platform Support
- macOS: managed background service
- Windows / Linux: foreground manual mode
Requirements
- Node.js 18 or later
- A working
codexcommand in your shell - A local Codex session that has already completed
codex login
Install
npm install -g kodexlinkIf you only want the pairing QR code in the terminal and do not want to open the browser automatically:
kodexlink pair --no-openLocal Panel
The local panel is the browser-based companion page opened by KodexLink during kodexlink start. It provides:
- Pairing QR code and manual pairing payload
- Identity reset and fresh QR regeneration when pairing state is stale
- Relay status and current relay source
- Background service status
- Background service restart actions
- Recent local paths for logs and runtime state
Common Commands
kodexlink start
kodexlink pair --no-open
kodexlink status
kodexlink doctor
kodexlink service-install
kodexlink service-status
kodexlink service-stop
kodexlink service-removeRelay Override
KodexLink uses the built-in relay by default:
wss://free.codexmobileapp.com/v1/connectYou can override it with a command flag:
kodexlink start --relay https://your-relay.example.com/Or with an environment variable:
KODEXLINK_RELAY_URL=https://your-relay.example.com/ kodexlink startKodexLink normalizes relay inputs such as https://.../ and converts them to the correct WebSocket endpoint internally.
Background Service
KodexLink currently supports managed background service mode on macOS only.
- macOS: per-user
launchdagent - Windows / Linux: keep
kodexlink startrunning in the terminal for now
Useful commands:
kodexlink service-install
kodexlink service-status
kodexlink service-stop
kodexlink service-removeKnown Limitations
- Windows and Linux currently run in foreground manual mode and do not yet support system-managed background service.
- KodexLink expects the local
codexcommand to already be installed and authenticated. - The current release focuses on pairing, status, local panel access, and relay connectivity. It is not a full desktop GUI client.
--show-pairingis still accepted for compatibility, butstartalready shows pairing by default.
Troubleshooting
Use:
kodexlink status
kodexlink doctorIf you need to switch relays, start by checking the currently active relay source in the local panel or kodexlink status.
