All posts
Troubleshooting

devtunnel login: signing in with GitHub or Microsoft

June 27, 2026 · 3 min read

How to authorize your machine to host a CodeMote session with devtunnel — signing in with a GitHub or Microsoft account, and fixing common login errors.

Before CodeMote can open a session, Microsoft’s devtunnelneeds you to authorize your machine to host a tunnel. That’s a one-time sign-in with a free account.

Sign in

Use whichever account you prefer:

$devtunnel user login --github
$devtunnel user login --microsoft

A browser window opens for the OAuth flow. Approve it, return to the terminal, and you’re authorized.

Check who you’re signed in as

$devtunnel user show

Common issues

  • Nothing happens / no browser — copy the URL printed in the terminal into a browser manually.
  • Still unauthorized after login — run devtunnel user logout then sign in again.
  • command not found — devtunnel isn’t installed; see how to install it.
You only need to do this once per machine. After that, starting a session is just CodeMote: Start Mobile Session and a QR scan.

Take your dev environment with you.

Drive your AI agents, terminals and Git from your phone — with no cloud copy of your code.

Get the app