Skip to main content
OpenWiki supports the following providers:. 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:
The value must be a positive integer. If unset, OpenWiki defaults to 3 retries.

GitHub Copilot

To use GitHub Copilot:
  1. Select GitHub Copilot during openwiki --init. If you have an active GitHub CLI session, OpenWiki can reuse it. Otherwise, run gh auth login from the credential prompt.
  2. Choose a model (for example gpt-5.5).
OpenWiki leaves the GitHub CLI token in the GitHub CLI credential store. It does not copy that token into ~/.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)

The openai-chatgpt provider calls OpenAI’s Codex backend using your ChatGPT subscription instead of a metered API key:
The wizard opens the OpenAI auth page in your browser (and prints the URL for headless use). After sign-in, OpenWiki stores managed OAuth tokens in ~/.openwiki/.env and refreshes the access token automatically. Treat the refresh token like a password.

Gemini Enterprise (Vertex AI)

The gemini-enterprise provider uses Google Application Default Credentials. No API key is required:
The credentials need Vertex AI access (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

When explicit Bedrock credentials are not set, OpenWiki uses the AWS SDK default credential provider chain. Paste the Bedrock model ID directly. Some newer models require a cross-region inference profile ID (for example us.anthropic.claude-sonnet-5) instead of the bare model ID.

OpenAI-compatible endpoints

Use the openai-compatible provider for gateways or local servers that expose OpenAI-compatible chat completions:
Local examples such as Ollama (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