CLI Commands

Every agentserve command follows the same shape:

agentserve <resource> [sub-resource] <verb> [arguments] [options]

Some resource groups also accept a singular alias: agentserve workflow get and agentserve workflows get are the same command. knowledge also answers to kb. Each group’s reference lists its supported aliases.

Global options

These apply to every command, and may be written before or after it.

OptionDescription
-P, --profile <name>Profile to use (env: AGENT_SERVE_PROFILE).
--endpoint <url>Deployment to talk to (env: AGENT_SERVE_BASE_URL).
-w, --workspace <id>Workspace to target (env: AGENT_SERVE_WORKSPACE).
--output <format>Output format for this command. Accepted values: table, json, yaml, text.

Command groups

GroupDescription
agentserve profilesList profiles or add a workspace profile that shares a stored login
agentserve telemetryControl anonymous usage reporting
agentserve runnerRun Agent Serve jobs on this machine (link, run, status, unlink)
agentserve cliDiscover commands in this CLI
agentserve modelWork with the semantic model as code (agentserve.model.yaml)
agentserve appBuild, run and ship apps that run inside a workspace (agentserve.app.yaml) (OAuth login or personal API key required)
agentserve appsManage apps
agentserve audit-logsManage audit logs
agentserve billingManage billing
agentserve blocksManage blocks
agentserve chat-deploymentsManage chat deployments
agentserve connector-typesManage connector types
agentserve credentialsManage credentials
agentserve custom-toolsManage custom tools
agentserve filesManage files
agentserve knowledgeManage knowledge
agentserve logsManage logs
agentserve mcp-serversManage mcp servers
agentserve metaManage meta
agentserve organizationsManage organizations
agentserve permission-groupsManage permission groups
agentserve relaysManage relays
agentserve sandboxesManage sandboxes
agentserve secretsManage secrets
agentserve selectorsManage selectors
agentserve semantic-modelManage semantic model
agentserve skillsManage skills
agentserve slidesManage slides
agentserve spacesManage spaces
agentserve tablesManage tables
agentserve toolsManage tools
agentserve workflow-mcp-serversManage workflow mcp servers
agentserve workflowsManage workflows
agentserve workspacesManage workspaces

Log in through the browser and store the login for the profile

agentserve login [options]

Options

OptionRequiredDescription
--method <method>NoCredential to obtain: oauth requires OAuth support; api-key creates a permanent key through pairing (auto-selects when omitted). Accepted values: oauth, api-key.
--no-browserNoPrint the approval URL without opening it (either login method).
--read-onlyNoAsk only for permission to read, never to change anything.
--callback-port <port>NoPin the local port the browser returns to.
-y, --yesNoOverwrite an existing API-key profile without prompting.

Sign out and remove the profile's stored login

agentserve logout [options]

Options

OptionRequiredDescription
--allNoRemove the profile entirely, including its settings.

Show the resolved profile, where each setting came from, and whether it works

agentserve whoami [options]

Options

OptionRequiredDescription
--no-verifyNoSkip the API check and only print the resolved settings.

Switch a profile's default workspace, or set its endpoint or output format

agentserve configure [options]

Options

OptionRequiredDescription
--set-endpoint <url>NoAgent Serve deployment to talk to.
--set-workspace <id>NoDefault workspace for workspace-scoped commands.
--set-output <format>NoDefault output format (table | json | yaml | text).
--unset <key...>NoRemove settings (endpoint, workspace, output).

Update this global CLI installation to the newest release on its channel

agentserve update [options]

Options

OptionRequiredDescription
--package-manager <manager>NoPackage manager that installed this copy. Accepted values: npm, pnpm, bun, yarn.

Ask agent serve and print the reply

agentserve chat <message> [options]

Arguments

ArgumentRequiredDescription
messageYesWhat to ask Agent Serve

Options

OptionRequiredDescription
-c, --conversation <id>NoContinue the conversation with this ID.