Skip to content

auth

Terminal window
axiom-wiki auth [subcommand]

Authenticate provider credentials and inspect auth status.

Terminal window
axiom-wiki auth openai [--api-key <key>] [--activate]
axiom-wiki auth openai --oauth [--activate] [--no-open]
axiom-wiki auth status
axiom-wiki auth logout openai
  • openai: Save OpenAI credentials for future sessions.
  • status: Show whether OpenAI credentials are stored and which provider is active.
  • logout openai: Remove stored OpenAI credentials if OpenAI is not currently active.
  • --api-key <key>: Provide the OpenAI key non-interactively.
  • --activate: Immediately switch active provider/model to OpenAI after saving credentials.

Use OAuth mode with:

Terminal window
axiom-wiki auth openai --oauth

First run behavior:

  • If OAuth values are missing, the CLI prompts for them interactively.
  • It defaults issuer discovery to https://auth.openai.com and can auto-discover endpoints via /.well-known/openid-configuration.
  • If discovery fails or is skipped, you can enter auth/token URLs manually.
  • Settings are saved to Axiom config for future runs.

Optional OAuth env defaults:

  • AXIOM_OPENAI_OAUTH_CLIENT_ID
  • AXIOM_OPENAI_OAUTH_AUTH_URL
  • AXIOM_OPENAI_OAUTH_TOKEN_URL
  • AXIOM_OPENAI_OAUTH_ISSUER
  • AXIOM_OPENAI_OAUTH_SCOPE (default: openid profile email)
  • AXIOM_OPENAI_OAUTH_PORT (default: 8787)

Optional CLI overrides:

  • --client-id <id>
  • --auth-url <url>
  • --token-url <url>
  • --issuer <url>
  • --scope <scope>
  • --redirect-port <port>
  • --no-open (do not auto-open browser)
  • API keys are validated for basic shape (sk-...).
  • If OpenAI is currently active, switch provider via axiom-wiki model before auth logout openai.
  • OAuth support in Axiom Wiki is implementation-ready, but OpenAI account subscription billing and API billing may still be separate depending on OpenAI account plan and platform policy.