auth
axiom-wiki auth [subcommand]Authenticate provider credentials and inspect auth status.
Subcommands
Section titled “Subcommands”axiom-wiki auth openai [--api-key <key>] [--activate]axiom-wiki auth openai --oauth [--activate] [--no-open]axiom-wiki auth statusaxiom-wiki auth logout openaiopenai: 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 Options
Section titled “API Key Options”--api-key <key>: Provide the OpenAI key non-interactively.--activate: Immediately switch active provider/model to OpenAI after saving credentials.
OAuth Options
Section titled “OAuth Options”Use OAuth mode with:
axiom-wiki auth openai --oauthFirst run behavior:
- If OAuth values are missing, the CLI prompts for them interactively.
- It defaults issuer discovery to
https://auth.openai.comand 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_IDAXIOM_OPENAI_OAUTH_AUTH_URLAXIOM_OPENAI_OAUTH_TOKEN_URLAXIOM_OPENAI_OAUTH_ISSUERAXIOM_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 modelbeforeauth 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.