Skip to main content
Reference
Create and manage service credentials: workspace-owned secrets that let headless agents use the Helix MCP endpoint, including Helix Cloud and Helix Foundry tools. You manage them with your WorkOS login, but they never log the CLI in. Cloud only. Owners and admins need the workspace-scoped service_credentials.manage permission.

Usage

Every subcommand also accepts --workspace <workspace> after the subcommand. Bare helix service-credential lists the linked or only workspace’s credentials.

Subcommands

Arguments

Options

Behavior

  • The workspace resolves as described in Cloud resource resolution.
  • Each grant is project-scoped and must name a project ID inside the owning workspace; the CLI never resolves a slug or name. Find the ID with helix project get <project>.
  • Available grants are project-read, project-write, query-read, and query-write, comma-separated; write requires its matching read.
  • Each project may appear in only one --grant, and a grant cannot repeat a permission.
  • Creation prints the secret once on stdout. With --json, the full create response, including the secret, is printed instead. Updates never reveal or rotate it.
  • update needs at least one of --name, --grant, --expires-at, or --clear-expiry.
  • revoke asks for confirmation in a terminal. Without one, or with --json, it fails before any request unless you pass --yes.
  • Service credentials are bearer tokens for the unified MCP endpoint at https://mcp.helix-db.com/mcp. Configure the token in the agent’s MCP client (Authorization: Bearer <token>) and keep it in a secrets manager.
  • MCP exposes only the tools their grants allow: query-read/query-write for data, project-read/project-write for administration. There are no Cloud discovery or observability tools, so give the agent its tenant:<id> or cluster:<id> target.
  • They never log the CLI in, and the CLI never persists them. They cannot call the Helix Cloud API the CLI uses, so they cannot run helix query, helix api, or other Cloud commands, or manage service credentials. See Run in CI.

Examples