Documentation Index
Fetch the complete documentation index at: https://sitegpt.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
Install
Install the CLI globally from npm:Log in with browser approval
For most users, use the default device login:- 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
| Option | Description |
|---|---|
--profile <name> | Save credentials into a named local profile. |
--api-base <url> | Override the API base URL. Production is https://sitegpt.ai. |
--name <name> | Token name shown in SiteGPT. Default: SiteGPT CLI (<profile>). |
--full-access | Request every self-service scope your dashboard role can issue. |
--scope <scope> | Request a custom scope. Repeat for multiple scopes. |
--chatbot <chatbot-id> | Restrict the token to one chatbot. Repeat for multiple chatbots. |
--expires-in-days <1-365> | Token lifetime. Default: 90. |
--token <token> | Store an existing SiteGPT token instead of using browser approval. |
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.Create an API token
Click Create token, choose the access level or custom permissions, optionally restrict it to specific chatbots, and create the token.
Copy the token immediately
SiteGPT shows the plaintext token only once. Copy it before closing the token modal.
https://sitegpt.ai. If you need to be explicit:
sgpt_live_... tokens may still exist until revoked or expired. Treat tokens as opaque credentials and avoid validating one exact prefix in scripts.
If you are setting this up for a personal AI assistant, see Use with AI agents for the recommended profile and instruction setup.
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.