SiteGPT CLI is designed to be used by both people and personal AI agents. If your AI assistant can run terminal commands, you can give it SiteGPT CLI access and ask it to create chatbots, add knowledge, update settings, review conversations, manage leads, and maintain your SiteGPT account. The recommended pattern is simple: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 the CLI on the machine where the agent runs.
- Log in with a named, scoped profile.
- Give the agent the SiteGPT CLI skill file.
- Ask the agent to use
sitegpt ... --jsoncommands and confirm destructive actions.
What your agent needs
Your AI agent needs three things:| Requirement | Why it matters |
|---|---|
| Terminal access | The agent uses the sitegpt command to perform actions. |
| A SiteGPT CLI profile | The profile stores the API base URL and scoped token locally. |
| CLI instructions | The skill file teaches the agent the command groups, safe workflows, and playbooks. |
Recommended setup
Create a dedicated profile for the agent
Use a named profile instead of your default profile. This makes it obvious when the agent is operating SiteGPT.The browser approval page lets you review the access being requested before creating the token.
Copy-ready agent instruction
Paste this into your personal AI agent’s instructions, project knowledge, or chat before asking it to work with SiteGPT:sitegpt-agent in the instruction.
Safer authentication choices
Use the smallest access level that can complete the job.| Agent type | Suggested profile | Suggested access |
|---|---|---|
| Chatbot setup agent | setup-agent | Chatbot, knowledge, settings, personas, instructions, starters, and followups read/write. |
| Knowledge maintenance agent | knowledge-agent | Chatbot read plus knowledge read/write/delete for selected chatbots. |
| Support operations agent | support-agent | Conversations, messages, tags, leads, and chatbot read access. |
| Account review agent | account-agent | Account, usage, billing, and member read access. |
Manual token setup
If you prefer to choose permissions in the dashboard first:Create a token in SiteGPT
Open the SiteGPT dashboard, go to Agents, click Create token, choose the access level or custom scopes, and optionally restrict the token to specific chatbots.
Copy the token once
SiteGPT shows the plaintext token only once. Store it somewhere safe before closing the modal.
Example prompts for your agent
Create a chatbot from a website
Add and verify knowledge
Review recent support activity
Update bot behavior
What agents can manage
| Area | What the agent can do |
|---|---|
| Chatbots | Create, list, inspect, update, delete, open dashboard links, fetch install snippets, upload icons. |
| Knowledge | Add links, websites, sitemaps, files, YouTube videos, text, cloud data sources, custom responses, resync documents, update document config. |
| Customization | Manage personas, instructions, settings, starters, followups, and visual appearance. |
| Support | List conversations, inspect messages, send visitor messages, escalate threads, manage tags, and review leads. |
| Account | View usage, limits, billing invoices, members, invites, and API tokens when scoped. |
Best practices
- Use named profiles for agents, such as
setup-agent,knowledge-agent, andsupport-agent. - Prefer
--jsonwhen the agent needs IDs, document states, token IDs, or nested data. - Ask agents to run
sitegpt profiles listandsitegpt whoamibefore making changes. - Restrict tokens to specific chatbots when the agent only needs one chatbot.
- Confirm before destructive commands such as delete, revoke, remove, or bulk cleanup.
- Rotate or revoke tokens after demos, shared sessions, or experiments.
- Do not paste raw SiteGPT API tokens into chats unless you fully trust the environment.
Troubleshooting
| Problem | What to ask the agent to check |
|---|---|
| Agent uses the wrong account | Run sitegpt profiles list and sitegpt --profile <name> whoami. |
| Agent cannot access a chatbot | Check whether the token is chatbot-restricted and includes the required scopes. |
| Command output is hard to parse | Add --json to the command. |
| Agent cannot find a command | Run contextual help, such as sitegpt knowledge --help or sitegpt settings --help. |
| Production vs local confusion | Check SITEGPT_API_BASE and the profile API base with sitegpt profiles show <profile>. |