Models and Auth¶
The reviewer runs on a separate AI model that you choose. Zwischen supports models from Anthropic, Google, OpenAI, and DeepSeek.
Choosing a model¶
Set the reviewer model in your defaults or in a profile:
Different models behave differently as reviewers. Zwischen Labs runs continuous test suites across providers and models to understand these differences, and applies provider-specific and model-specific prompt adjustments automatically. You can disable these adjustments with model_tuning: false if you want the base reviewer prompt only.
See Supported Models for the full list.
API key authentication¶
The default authentication method is API key. Provide the key in one of two ways:
In settings.yaml:
Via environment variable:
Set the provider's standard environment variable: OPENAI_API_KEY, ANTHROPIC_API_KEY, GEMINI_API_KEY, or DEEPSEEK_API_KEY. You can also set these in the env block of your settings file:
Values in the env block are defaults — real environment variables take precedence.
The API key is never sent to the Zwischen server. It is held in process memory on your machine only and passed directly to the model provider.
OAuth authentication¶
OpenAI also supports OAuth authentication, which authenticates via your ChatGPT account instead of an API key.
To set up OAuth:
Then set auth_mode in your settings:
OAuth is currently supported for OpenAI only. Other providers require API key authentication.
You can also re-authenticate or check OAuth status mid-session:
Model tuning¶
When model_tuning is true (the default), Zwischen applies provider-specific and model-specific prompt adjustments tuned by Zwischen Labs. These adjustments account for behavioral differences between models — an OpenAI model reviewing code may react very differently to the same event stream than a Gemini model.
Set model_tuning: false to disable these adjustments and use the base reviewer prompt only.
Configuration reference¶
| Key | Type | Default | Description |
|---|---|---|---|
model |
string | — | Model ID for the reviewer |
api_key |
string | — | Provider API key |
auth_mode |
string | "api_key" |
"api_key" or "oauth" (OpenAI only) |
model_tuning |
boolean | true |
Apply provider-specific prompt adjustments |