Skip to main content
Shows the current environment mode or switches between test and production. The active mode determines whether keys create produces test (sk_test_*) or production (sk_live_*) keys.
agent-cards-admin env [mode]

Usage

# Show current mode
agent-cards-admin env

# Switch to test mode
agent-cards-admin env sandbox

# Switch to production (requires active subscription)
agent-cards-admin env production

Example

$ agent-cards-admin env

  Current mode: TEST

  Usage:
    agent-cards-admin env sandbox      Switch to test mode (sk_test_*)
    agent-cards-admin env production   Switch to production mode (sk_live_*)
$ agent-cards-admin env production

  PRODUCTION MODE
  API keys created will be production keys (sk_live_*)

Requirements

  • Switching to test mode is always allowed
  • Switching to production requires:
    • An active API key associated with an organization
    • The organization must have an active subscription
If the organization doesn’t have an active subscription, you’ll be prompted to subscribe first.