If you have a Claude Pro or Max subscription, use it here with a one-time browser login. No API key or extra billing.
ssh -L 3456:localhost:3456 [email protected]Keep this SSH session open.
export PATH=$HOME/.local/bin:$PATH && claude auth loginlocalhost:3456, leave it — the tunnel sends that to the server and the CLI completes login.claude auth login is running (Cmd+V or right‑click paste), then press Enter. If that terminal doesn’t accept paste or the CLI has already exited, use Option 2 below.Callback not working? Make sure (1) the tunnel is running before you run claude auth login, (2) you don’t close the terminal until after the browser redirect, and (3) nothing else is using port 3456 on your Mac. If it still only shows the code page, try Remote auth or Option 2.
Remote auth (browser on server): Open /auth-browser — login runs in a browser on the server; you see a screenshot and click/type to complete. No tunnel needed.
Create a key at console.anthropic.com. Some plans include API usage; otherwise it’s pay-as-you-go. Paste the key below and Save — no browser or tunnel needed.