Your OpenCode agent,
in your pocket
CrossCode connects your phone to your PC's OpenCode instance. Approve tool calls, review diffs, and manage sessions.
The auth middleware is throwing 401 on valid tokens. Can you check the verify function?
src/middleware/auth.tsFound it. The verify function expects the token without the Bearer prefix, but the header includes it. Here's the fix:
- const token = req.headers.auth
+ const token = req.headers.auth
+ ?.replace("Bearer ", "")Everything you need
Full control over your AI coding agent from your phone
QR Connect
Scan and connect in one tap. No copy-pasting URLs or manual configuration.
Real-time Chat
Stream responses live with full markdown and code block rendering.
Inline Diffs
See exactly what the agent changed before it happens with side-by-side view.
Tool Approvals
Approve or reject every shell command, file write, or API call before it runs.
Push Notifications
Get notified when the agent finishes, needs approval, or hits an error.
Works Anywhere
Mobile data, different WiFi, across the world — no shared network required.
How it works
Get started in under a minute
Run the CLI
Run npx crosscode on your PC. It starts OpenCode and opens a secure tunnel automatically.
Scan the QR
A QR code appears in your terminal. Open the CrossCode app and scan it to connect.
Control from anywhere
Chat with your AI agent, approve tool calls, and review changes — all from your phone.
Ready to get started?
Run one command on your PC, scan the QR code from your phone, and you're connected.