Feature referenceApps and integrations · 04 of 05

Apps and integrations

Stand CLI

Your AI agent, such as Claude, ChatGPT, Codex or Gemini, uses the Stand CLI to work with your Stand account for you: it can install Stand on your website, analyze your conversations, or check new ones on a schedule and report what it finds. You or a script can run the same commands. The CLI provides browser authorization, named commands, schema discovery, uploads and history export, with readable output for people and JSON for agents and scripts.

Availability
All plans
Configured in
Your AI agent, or your own terminal or script; signup, consent and initial profile setup in the Stand browser flow
Category
Apps and integrations
Reference status
Current

Before you begin

Plan availability: All plans, including Base, within the organization’s existing allowances. The official CLI package must be available from npm.

Prerequisite: Node.js 22 or later on macOS, Linux or WSL with network access, on your computer or one your agent can run commands on; a browser where you approve access; an active organization after browser onboarding. Installation also requires permission to edit and publish the website.

Key boundary: Account deletion, subscription/payment management and team-member changes are excluded. Site JavaScript experimentation and Stand-admin behavior access require prior owner opt-in in the browser. Representative WebSockets are outside this surface; remote MCP is a separate connection option.

01

Who runs the CLI

The CLI is made to be run by the account holder’s own AI agent as well as by people and scripts. An agent installs the official package, starts browser authorization for the person to approve, and then works within the permissions that person granted. It acts as that person; there is no separate agent account. Any agent that can run npm with Node.js 22 or later can use it. Stand does not test every agent.

UseWho runs itWhat it needs
Install Stand on a websiteA coding agent such as Codex, Claude Code, Cursor or Gemini CLI, in the website projectProject access, a shell, network access, a real browser, the website’s normal publishing access and the setup permissions.
Analyze conversations onceAny agent that can run npm, or a personRead access to conversations (sessions:read).
Check new conversations on a scheduleAn always-on agent such as a dot in ChatGPT, Meta’s Muse or Grok BotRead access to conversations, and a computer that keeps the CLI’s saved sign-in between runs.
Manage Stand directly or from scriptsA person in a terminal, or a scriptThe scopes each operation declares; --yes only for changes already approved.
02

Install with “Add stand.chat”

Copy “Add stand.chat” from the homepage and paste it into a coding agent in your website project. The agent discovers the setup instructions through /llms.txt; you do not need to provide a guide URL or install Stand tools in advance. The guide’s “Add stand.chat with a coding agent” page explains the flow for people.

The agent follows those instructions to configure and install the chat, while the account holder completes signup, consent and initial profile onboarding in the browser.

03

Browser authorization and account readiness

Run stand auth login --setup for installation. The CLI provides a trusted verification URL and user code. The account holder completes signup or sign-in, terms and permission consent. Passwords and browser cookies are not handed to the agent.

Social signup started by the CLI asks for terms acceptance in the browser authorization flow when no prior acceptance is recorded. Homepage social signup keeps terms acceptance in its existing registration dialog.

After successful authorization, the browser shows “Signed in to Stand” and can be closed. Return to the terminal and check account readiness; authorization alone does not finish profile onboarding.

stand setup status checks readiness and provides the browser onboarding URL when needed. The human completes the existing profile form with the same account. The CLI cannot create the initial profile or organization; it can edit an existing profile after onboarding with explicit profile-write permission.

Every operation requires its granted scope plus normal active membership, ownership, role and plan permissions. Renaming the organization through a profile update also requires organization-write permission. Disabled accounts or organizations cannot continue with a previously issued token.

Setup login requests eight business scopes: profile and organization reads, plus Sites, Stand-ins and knowledge read/write. Other management tasks use stand auth login --scopes with the permissions they need; a setup request does not authorize unrelated changes.

04

Commands for people and automation

Use stand --help for the command groups, stand auth --help for a group’s intent, and command-level -h or --help for options and examples. stand help workflows provides offline recipes. stand commands --json exposes the 73 named commands plus utility and option metadata. stand schema OPERATION_ID describes a request with its transitive schema references; --full includes all components; the generic stand api command reaches all 109 published management operations under the same permissions.

Ordinary terminal examples do not need --json. Add it when an agent or script needs structured output; piped output is also JSON. During JSON login, the verification URL and code are emitted on stderr as a device-authorization event.

Writes request confirmation. Use --yes only for an already approved change; it does not grant permission. --no-input prevents interactive prompts and cannot complete browser login. Inspect the command’s confirmation metadata before automating it.

Use named knowledge commands for approved uploads, website or sitemap ingestion, indexing status, document inspection and search. Image uploads, Site prompts, conversations and filtered history exports use the same operation schemas.

Exit codes distinguish usage errors (2), missing resources (3), authorization failures (4), network or response-validation failures (5), cancellation (130), and other failures (1). A malformed response can fail validation even when the HTTP status alone would map differently.

05

Conversation checks on a schedule

An agent asked to watch new conversations keeps the check in its own CLI profile, created with stand config set --profile NAME and the production API and issuer, and signs in there once with profile:read and sessions:read. Sign-ins for setup or management stay in another profile, so they never change the check’s read-only access. Then on each run it reads the conversations that closed since its last complete run; a run that fails or comes back incomplete is retried for the same period, not skipped. stand history search returns each conversation’s page, times, message count, contact details and signals; stand history export writes the complete retained transcripts to a new file. These are reads: they change no settings, do not join or take over a chat, and do not make anyone Available.

History holds conversations after they close, so a conversation still in progress appears in a later run. The default scope is the person’s own conversations, including those their Stand-ins handled. An organization owner can request the whole organization’s history with --scope org; for anyone else that request returns their own conversations.

The sign-in lasts until 30 days after the person approved it, however often it is used, or until it is revoked; the agent then needs a new browser approval. The agent’s computer must keep the CLI’s saved sign-in between runs; on a host without an OS keychain that means explicitly chosen private file storage. stand auth logout with the check’s profile revokes it; signing out of the Stand app does not.

Reads are bounded. With --all, a combined search above 32 MiB is refused. An export that would pass its byte or time limit (100 MiB and 600 seconds by default, at most 1 GiB and 3,600 seconds) fails without writing a file. Transcripts are private customer data; the person decides where the agent may keep or send them.

06

From configuration to an installed chat

  • The agent checks existing resources and the plan before creating a dedicated Site and Stand-in. A new Stand-in begins disabled.
  • Knowledge must finish indexing before the agent reports it as available. Base can use approved instructions and website crawling within its normal allowance. When the account allows document uploads and ingestion, an approved local document can be uploaded without publishing it on the website; private material requires specific approval and must suit the chat audience.
  • Knowledge attachment writes replace the complete list. Read and preserve intended existing attachments before changing it.
  • The Site, Stand-in and owner’s Stand-in coverage must be enabled. The owner-wide switch also affects other enabled Stand-ins owned by that member.
  • The agent installs the Site’s returned snippet once using the website framework’s normal script lifecycle. The snippet contains a public Site identifier, not management credentials.
  • A real visitor message and answer on the intended hostname verify the installation. An installed flag, greeting or eligible routing match alone is insufficient.
07

Credentials, interruption and retries

Credentials stay in the CLI credential store outside the website and repository. On a host without an available secure vault, private local-file storage must be selected explicitly. Short-lived access tokens refresh within existing session limits; expired or revoked authorization requires another browser authorization.

Retain successful resource IDs, inspect existing resources on resumption and reconcile uncertain writes. The CLI does not blindly retry mutations. Names are not unique resource identities, and this API does not promise conditional revision checks. Preserve intended existing members when replacing collections.

CLI reads do not make a person Available or refresh human presence. Explicit personal Site-preference changes are supported, but representative WebSockets remain unavailable. The installation recipe leaves human availability unchanged.

08

Availability and boundaries

  • Install the official package from npm’s latest tag with npm install --global @standchat/cli, and record the installed version. If unavailable, stop and report the missing distribution; do not substitute another package or pasted access tokens.
  • The supported hosts are macOS, Linux and WSL with Node.js 22 or later. Native Windows is not supported.
  • For installation, a coding agent needs authorized project access, a shell, network access and a real browser. Deployment requires the website’s normal publishing access. Reading or watching conversations needs only a computer where the agent can run the CLI, with network access.
  • Private content requires specific approval before sharing. Public website content and Stand-in instructions should contain only information appropriate for visitors.
  • Remote MCP connects compatible AI hosts without installing the CLI and exposes a smaller tool set. The WordPress plugin signs in to the same API on its own.
  • An agent without deployment access or a verified visitor answer reports the remaining work instead of reporting a completed installation.