Before you start
- A SiteGPT account on the Growth plan or above. See Plans and limits.
- The CLI installed and logged in. See Install and log in.
- The default access from
sitegpt logincovers most tasks on this page. It cannot create, rotate, or revoke API tokens. For those tasks, see Create an API token. - For billing, you must be the account owner.
- For team tasks, your chatbot ID and a role that can manage members. See Team members.
Check who you are logged in as
sitegpt account show.
Check that it works: account show prints your email, your name, your profile picture, and the credential type.
Change your name or profile picture
sitegpt account picture delete --yes. picture add does the same as picture upload, and picture remove does the same as picture delete.
Check that it works: The CLI prints Updated account name to Jane Doe. and Updated profile picture for with your email.
Check usage and limits
Check that you have enough capacity before a large import:usageshows each metric with the amount used, the quota, and what remains.limitsshows the total, the amount assigned, and what is available. It also shows what each chatbot has.
usage table has the columns Metric, Used, Quota, and Remaining.
Read your subscription and invoices
billing:read scope. These commands only read data. You cannot change your plan or payment details from the CLI. See Billing.
Check that it works: billing subscription prints the status and the next billing date. If you have no subscription, it prints No active subscription found. billing invoices lists your invoices with download links when available.
Create an API token
Create a separate token for each tool or AI agent, with only the scopes that it needs. For the list of scopes, see Authentication.1
Log in with token access
The token that you use must have the You can also create tokens on the Agents page in the dashboard.
tokens:write scope. The default login does not include it. Log in with full access:2
Create the token
--nameand at least one--scopeare required.--chatbotlimits the token to one chatbot. You can repeat it.- The token expires after 90 days by default. Use
--expires-in-days(1 to 365) or--expires-atto change it.
3
Save the token
Copy the token value from the output and store it in a safe place. SiteGPT shows it only once.
sitegpt tokens list shows the new token with its scopes and expiry date.
Rotate or revoke a token
Rotate a token to get a new value with the same settings. The old value stops working.tokens:write scope. Find the token ID with sitegpt tokens list.
Check that it works: rotate prints Rotated token and the new value. Store it, because SiteGPT shows it only once. revoke prints Revoked token. sitegpt tokens list --include-revoked shows the token as revoked.
Add a team member
There are two ways to add a person to a chatbot:members addadds the person at once. It sends no invite email. If the person has no SiteGPT account, SiteGPT creates one. Use it for scripted setup.members invitesends an invite email. The person must accept it.
AGENT, MANAGER, ADMIN, and SUPER_ADMIN. The default is AGENT. See Team members.
Check that it works: The CLI prints Added or Invited, the email, and the role. sitegpt members list --chatbot YOUR_CHATBOT_ID shows the member. Pending invites show under Pending invites.
Remove a team member
sitegpt members list --chatbot YOUR_CHATBOT_ID. members delete does the same as members remove.
Check that it works: The CLI prints Removed and the email. The person is no longer in members list.
Cancel a pending invite
member-invites delete does the same as member-invites cancel.
Check that it works: The CLI prints Canceled invite for and the email. The invite is no longer in member-invites list.
Check the account before an AI agent makes changes
Ask the agent to run these commands at the start of a session:"ok": true.