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:
lt agent login claudelt agent login codexAdd the VPS name when your Account has more than one: lt agent login claude my-vps.
What happens
Section titled “What happens”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.
Sign out
Section titled “Sign out”Run this on the VPS, for example in lt term:
claude auth logoutcodex logout