Install
Install the CLI globally from npm:Log in with browser approval
For most users, use the default device login:client_id=sitegpt-cli. It will:
- Request standard CLI access from SiteGPT.
- Print a verification URL and short code.
- Open or ask you to open the SiteGPT approval page.
- Wait while you approve access in the browser.
- Store the approved token in a local profile.
Login options
Reference: global options and login command details.
For protocol-level details, see OAuth device flow.
Standard, full, and custom access
When you runsitegpt login without --scope or --full-access, SiteGPT requests standard CLI access. Standard access includes customer-facing read/write permissions for common CLI operations, but excludes sensitive persistence/admin scopes such as tokens:write, billing:write, and integration management.
Use full access only when the CLI or agent needs broad account management:
Manual login with a dashboard-created token
If you do not want to use browser device login from the terminal, you can create a token manually in the SiteGPT dashboard and then save it into the CLI.1
Open the Agents page
In the SiteGPT dashboard, open Agents.
2
Create an API token
Click Create token, choose the access level or custom permissions, optionally restrict it to specific chatbots, and create the token.
3
Copy the token immediately
SiteGPT shows the plaintext token only once. Copy it before closing the token modal.
4
Save the token in the CLI
5
Verify the profile
https://sitegpt.ai. If you need to be explicit:
Where profiles are stored
The CLI stores local profiles at:Logout
Remove the selected local profile token:sitegpt tokens revoke <token-id> or the Agents page to revoke server-side access.