Free & Open Source

Your OpenCode agent,
in your pocket

CrossCode connects your phone to your PC's OpenCode instance. Approve tool calls, review diffs, and manage sessions.

~/code
$ npx crosscode
OpenCode server started
Cloudflare Tunnel connected
Ready → https://myapp.trycrosscode.dev
$
Fix auth middlewaremyapp
claude-sonnet

The auth middleware is throwing 401 on valid tokens. Can you check the verify function?

read_filedone
src/middleware/auth.ts

Found it. The verify function expects the token without the Bearer prefix, but the header includes it. Here's the fix:

auth.ts+2 -1
- const token = req.headers.auth
+ const token = req.headers.auth
+   ?.replace("Bearer ", "")
todowritedone
Ask anything...
build

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

01

Run the CLI

Run npx crosscode on your PC. It starts OpenCode and opens a secure tunnel automatically.

02

Scan the QR

A QR code appears in your terminal. Open the CrossCode app and scan it to connect.

03

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.

npx crosscode
View on GitHub