CLI
The LiTT CLI brings the AI operator to your terminal: health checks, builds, tests, and deployment verification — with the same project brain Studio uses.
npm install -g @litlabs1/litt-cli
# or
pnpm add -g @litlabs1/litt-cliRun once without installing:
npx @litlabs1/litt-cli --version
# or
pnpm dlx @litlabs1/litt-cli --versionConfirm the install:
litt --versionSigning in connects the CLI to your LiTTree LabStudios account using OAuth (Authorization Code + PKCE). It opens your system browser for sign-in, then completes automatically — tokens are stored in your OS keychain (file fallback on Termux).
litt login # sign in via browser
litt whoami # show the signed-in user (never prints tokens)
litt logout # sign outLocal-first by default
LiTT starts in local mode. Use--remote to connect to the LiTT cloud, or --local to force local-only operation. Setting LITT_LOCAL_ONLY=1 blocks remote and model use entirely.litt doctor # diagnose environment, dependencies, auth, providerslitt doctor checks your Node version, Git, pnpm, network, project setup, authentication, and model provider availability — run it first whenever something seems off. Then open the interactive cockpit:
litt # launch the interactive operator cockpitlitt shell, litt cockpit, and litt tui are aliases. litt desktop launches the desktop GUI app instead.
litt statuslitt difflitt checklitt testlitt buildlitt runlitt inspectlitt runslitt asklitt explainlitt production doctorlitt production finishlitt deploy verifylitt studio acceptancelitt workspace listlitt workspace selectlitt workspace currentlitt stripe doctorlitt stripe repairlitt stripe sandboxControl how much the CLI does without asking:
litt --mode plan # plan only, ask before acting
litt --mode act # act with approvals (default)
litt --mode auto # proceed autonomouslyHow approvals work across Studio and CLI is covered in Safety & Approvals.
litt status
litt check
litt test
litt buildlitt production doctor
litt production finish
litt deploy verifylitt login again. If the browser didn't open, use litt login --force to go through the sign-in screen fresh.--remote work. Run litt doctor to check network and auth, and confirm you're not forcing LITT_LOCAL_ONLY=1.litt workspace current to see which workspace is selected, then litt workspace select to switch.litt doctor reports model provider availability. If a provider is down, pick a different model — the same health states you see in Studio's model selector apply here.litt doctor validates the full environment there too.Start with doctor
litt doctor is the fastest path to an answer for almost every CLI problem — environment, auth, connectivity, and providers in one report.