Skip to content

Sign in your agents

Claude Code and Codex are installed on new VPSs, but not signed in. Your AI can sign them in for you (Use your machine), or sign them in from your computer with the CLI:

Terminal window
lt agent login claude
Terminal window
lt agent login codex

Add the VPS name when your Account has more than one: lt agent login claude my-vps.

The agent’s own login runs on the VPS, as the user dev, attached to your terminal.

  • Claude Code prints a link. Open it in your browser, sign in, then paste the code it shows back into the terminal.
  • Codex prints a link and a one-time code. Open the link in your browser and enter the code there.

Nothing is copied from your computer: the login is created on the VPS and saved there, in a file only dev can read (~/.claude/.credentials.json or ~/.codex/auth.json). Your computer’s own Claude or Codex login is not used or changed. lt prints where the login is saved. Anyone with root on the VPS can read it.

A login you don’t finish ends after 15 minutes; run the command again.

Run this on the VPS, for example in lt term:

Terminal window
claude auth logout
Terminal window
codex logout

Next: work with your agents in the browser.