WorkOS CLI
$ workos Official Med RiskWorkOS CLI (workos) analyzes web frameworks to scaffold AuthKit integrations, runs workos doctor diagnostics, manages environment configs, and installs WorkOS MCP/skills for coding agents. It supports headless environment overrides via WORKOS_ENVIRONMENTS_HEADLESS_API_KEY, though workos install is interactive and lacks --json.
brew install workos/tap/workos Use workos doctor, workos install, and workos skills install locally, and pair with WorkOS's hosted MCP (workos mcp install) for API/SSO queries.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports headless env variables and workos skills/mcp installation, but install and env add are interactive and lack a global --json output flag.
- Headless env overrides (
WORKOS_ACTIVE_ENVIRONMENT=headless) - No global
--jsonflag across subcommands
Separates Sandbox vs Production environments cleanly and keeps doctor and env list non-destructive.
- Sandbox/Production environment separation
- Read-only
workos doctordiagnostics
Standalone native binary via Homebrew tap, GitHub releases, or thin npx workos launcher.
brew install workos/tap/workosand npm wrapper
Streamlines AuthKit framework setup, environment switching, and agent MCP/skill bootstrapping.
- Includes
install,doctor,env,mcp, andskillscommands
Official WorkOS CLI (workos/cli) maintained under Apache-2.0.
- Official
workos/cliGitHub repository
Clear documentation at workos.com/docs/cli plus built-in --help.
- Official docs and GitHub README
Security, Auth & Guardrails
Stores environment profiles and API keys in .workos.json, or runs headlessly when WORKOS_ACTIVE_ENVIRONMENT=headless and WORKOS_ENVIRONMENTS_HEADLESS_API_KEY are set.
Apache-2.0 open-source CLI; WorkOS AuthKit is free up to 1 million MAUs.
# WorkOS CLI Agent Rules - Run `workos doctor` and `workos env list` to verify Sandbox vs Production before making changes. - Use `WORKOS_ACTIVE_ENVIRONMENT=headless` with `WORKOS_ENVIRONMENTS_HEADLESS_API_KEY` in CI instead of interactive `workos auth login`.
Agent-Ready Command Recipes
Safe Read-Only Queries
workos doctor
Checks local environment variables, redirect URIs, and AuthKit configuration mismatches.
workos env list
Displays locally configured Sandbox and Production environment profiles.
Controlled Writes & Previews
workos skills install
Installs curated WorkOS AuthKit skill instructions for local coding agents.
Strengths for Agents
- + Supports headless CI overrides via
WORKOS_ACTIVE_ENVIRONMENT=headless. - + Ships first-party
workos mcp installandworkos skills installfor coding agents.
Caveats & Pitfalls
- ! Lacks
--jsonoutput formatting and--dry-runon scaffolding commands. - !
workos installandworkos env addare designed primarily for interactive developer terminals.