Skip to content

Command reference

claude setup-token

Generates a long-lived OAuth token for CI and scripts, and prints it once.

Terminal commandsAccount and appscurrent

What the documentation does not say

The token is printed and not saved anywhere, so one you did not copy is gone and you make a new one. It needs a Claude subscription; an API key is the other way to authenticate automation.