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.

9:41
Fix auth middlewaremyapp

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

Read file: src/middleware/auth.ts

Found it. The verify function expects the token without the Bearerprefix, 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...

Your own OpenCode

CrossCode doesn't run your agent. Connect to the OpenCode instance already running on your machine. We stream the interface to your phone, you keep full control.

Approve tool calls
Approve
Reject
Review diffs
-
+
+
Manage sessions
Monitor progress
3/4 tools75%
Switch contexts
No cloud dependency. Runs locally.
Full control over your agent.
Works with any OpenCode setup.

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.

-const old = value
+const new = updated
return result

Tool Approvals

Approve or reject every shell command, file write, or API call before it runs.

npm install react

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.

One command away

Ready to get started?

Run one command on your PC, scan the QR code from your phone, and you're connected. No accounts, no config files, no friction.

npx crosscode