Credentials and defaults are stored in
~/.openwiki/.env. Process environment values take priority over file values.
You can set the active provider and model with:
Provider retries
Override retries after the first provider request:GitHub Copilot
To use GitHub Copilot:- Select GitHub Copilot during
openwiki --init. If you have an active GitHub CLI session, OpenWiki can reuse it. Otherwise, rungh auth loginfrom the credential prompt. - Choose a model (for example
gpt-5.5).
~/.openwiki/.env. For CI or headless environments without a GitHub CLI session, set COPILOT_API_KEY to a GitHub OAuth token. Personal Access Tokens (classic or fine-grained) are rejected by the Copilot API for third-party integrations.
OpenAI (ChatGPT login)
Theopenai-chatgpt provider calls OpenAI’s Codex backend using your ChatGPT subscription instead of a metered API key:
~/.openwiki/.env and refreshes the access token automatically. Treat the refresh token like a password.
Gemini Enterprise (Vertex AI)
Thegemini-enterprise provider uses Google Application Default Credentials. No API key is required:
roles/aiplatform.user), and the models you use must be enabled in Model Garden. Partner/open-weight (MaaS) models are region-specific, so set GOOGLE_CLOUD_LOCATION explicitly when using them.
AWS Bedrock
us.anthropic.claude-sonnet-5) instead of the bare model ID.
OpenAI-compatible endpoints
Use theopenai-compatible provider for gateways or local servers that expose OpenAI-compatible chat completions:
http://localhost:11434/v1) and LM Studio (http://localhost:1234/v1) use the same pattern. OpenWiki still requires OPENAI_COMPATIBLE_API_KEY even when the local server ignores the key value.
OpenRouter provider pinning
When OpenRouter serves a model through multiple upstream providers, restrict routing:See also
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

