Skip to content

From your phone

Your agents keep working after you leave the computer. To answer one that needs you, or to see which ones are still working, reach the same cornercase from your phone. There are two ways:

  • In the phone’s browser: the whole window, in its compact layout, over Tailscale. Nothing to install but Tailscale, and one QR code to scan. Most of this page is about it, from What you need on.
  • With the app, Cornercase remote: a board of your agents, their conversations and a form to start new work, made for a phone, over your Wi-Fi or Tailscale.

Both can be on at once. Each has its own switch in Settings › Remote and its own list of paired devices.

The browser’s connection goes through Tailscale, a private network between your own devices. Nothing is published on the internet: only devices in your tailnet can reach your computer, and cornercase only lets in your own Tailscale account, from a browser you paired. If you share your tailnet with other people, their devices can reach the address, but cornercase refuses them.

your phone's browser ── Tailscale ──▶ your computer: tailscale serve ──▶ cornercase server ── shells, agents
  • Tailscale on your computer, logged in. On macOS: brew install --cask tailscale, or the app from the App Store, then open it and log in. cornercase uses its tailscale command; it never asks for a Tailscale token.
  • HTTPS certificates turned on for your tailnet, once: in the admin console’s DNS page, keep MagicDNS on and click Enable under HTTPS Certificates.
  • The Tailscale app on your phone, logged in to the same account, with its connection on.

The personal plan of Tailscale is free.

In Settings › Remote, under Browser, turn on remote access. cornercase starts serving itself to your tailnet (it runs tailscale serve on port 8443 for you) and the row’s note says when it is ready, at an address such as https://mac.tail1234.ts.net:8443, or what is missing.

More ▴, at the bottom of the sidebar, then gets a remote… entry.

  1. Click More ▴, then remote… and open in your phone’s browser. A dialog shows a QR code, the same address as text, and the account the phone must be logged in with.
  2. Scan the code with your phone’s camera and open the link.
  3. The dialog closes and a browser connected shows: the phone is paired, and shows your session.

A code works once and for ten minutes, and stops working as soon as you close the dialog. Once paired, the phone keeps opening cornercase from the same address, without a new code; add it to your home screen to open it like an app.

While a browser is attached, the button shows a green ●, so you can see at a glance that a phone can see and type into your terminals.

A program that draws cornercase itself gets the same address with cornercase config pair browsers, and draws the QR code on its own. It holds the code like the dialog does: while both are open they show the same code, which goes when the last one closes.

The phone gets the compact layout, made for small screens: the ≡ menu, three-line rows, × always visible. Tap to click, swipe up and down to scroll (a conversation with Claude Code, a long log), and tap the screen to bring up the keyboard: the session shrinks to the room above it, so the line you type on stays in sight.

The page brings its own copy of the icons, so the file type icons and the panels’ buttons show on the phone without any font. Like any other window, the phone sets the size of the session while you use it: when you are back at the computer, your next key or click there gives it back its size. See Several terminals at once.

When the connection drops (the phone locks, you go into a tunnel, you switch from Wi-Fi to mobile data), the page keeps the last screen and reconnects by itself, at once when you come back to it. Nothing stops on the computer meanwhile. Quit on the phone detaches it like any window; the page then waits until you tap reconnect now.

In Settings › Remote, paired browsers says how many browsers are paired. Select it and press Enter to forget them all: they are disconnected at once, and each one says it is no longer paired until you scan a new code. Turning remote access off stops serving and disconnects every browser, but keeps them paired.

  • cornercase listens only on your computer (127.0.0.1); tailscale serve is the only way in from elsewhere, and only from your tailnet.
  • Only the account that owns the computer can pair or connect, even in a tailnet shared with other people; tagged devices (servers set up with Tailscale tags) cannot either.
  • A browser needs to be paired with a code shown on your screen; paired browsers are kept in browsers.json next to config.json, readable only by you, which holds a hash of each browser’s secret rather than the secret itself.
  • Nothing is published on the internet: cornercase never uses Tailscale Funnel.
  • The computer must be awake and the cornercase server running: if the computer sleeps, nothing answers. Keep awake keeps it awake while an agent works; closing the lid of a laptop still puts it to sleep.
  • The page shows no pictures from the files panel and sends no desktop notifications; the toast in cornercase still shows. open in… can’t open anything on your phone, so the menus show copy path.
  • The pairing cookie belongs to your computer’s Tailscale name, not to the port, so another web service on that same name (another tailscale serve) receives it too. Serve only things you trust next to cornercase.
  • If your computer is itself a tagged device in Tailscale, it has no owner to compare with and phones are refused; use a computer logged in as you.
  • Port 8443 of your computer’s Tailscale address is used for cornercase; if something else already uses it with tailscale serve, cornercase replaces it.
  • The local port is 47681. If something else uses it, the note says so; set another one with remote_port.

The app is Cornercase remote. It is free and needs no account.

It is built on cornercase’s commands and connects without a browser, over your Wi-Fi or Tailscale. It has its own switch, its own code and its own list of paired phones, apart from the browser’s.

  1. In Settings › Remote, under Phone app, turn on phone app. The note under it lists the addresses cornercase listens on for the app (your LAN’s and Tailscale’s) and the port, 47682.
  2. Select pair a phone app and scan the code with the app. The dialog closes and a toast says a phone app connected. A program can do the same with cornercase config pair app --json, for programs.
  3. Each paired app has a row under Phone app, shown even while the switch is off. Enter on it forgets the app: its connections close at once and it needs a new code.

The code holds every address cornercase listens on, so the app reaches it on whichever network it is on. When a network comes up later, the app asks cornercase config pair app --routes for the current addresses without scanning again.

How it is kept private. The code works once and for ten minutes. The app trades it for a secret of its own, which cornercase keeps only as a hash in apps.json next to config.json (readable only by you); the app sends the secret in the handshake, never in an address or in server.log. The connection is encrypted (wss://) with a certificate cornercase made for this computer, kept in app-certificate.json next to config.json (readable only by you). The code carries the certificate’s fingerprint, and the app accepts that certificate only, so nobody on your Wi-Fi can read the secret or your commands, or pretend to be your computer. It stays the same after a restart or an update, so paired phones keep working. cornercase listens only on the addresses of your Wi-Fi, your LAN and Tailscale, and only while the switch is on.

An app paired before cornercase 0.14.7, or a version of the app that does not read the fingerprint yet, still connects with ws://, in clear: the same port answers both. A version of the app that only reads ws:// codes can’t pair until it is updated.

Starting over. cornercase config pair app --new-certificate makes a new certificate, forgets every paired app, closes their connections and shows the new code. Use it when app-certificate.json may have been copied, or to make every phone pair again.

The first time, your computer’s firewall may ask whether cornercase can accept connections on private networks: allow it.

An SSH app on your phone (Termius, Blink…) works too, with Tailscale or on your own network: connect to your computer with ssh (turn on Remote Login in macOS’ Sharing settings) and run cornercase, which attaches to the same session in the compact layout. You then reconnect by hand when the connection drops.