API integration
In the app: API integration. Each field below has the same help next to it in the app.
API key or subscription?
An API key is billed by the provider per token. A subscription runs through the agent's CLI on your plan.
- API key
- Billed per token by the provider. A daily and a monthly budget cap what reviews may spend.
- Subscription
- Your Codex or Claude Code plan through its CLI, or Antigravity. Usage windows apply, no cost per token.
Provider
The provider's official API at a fixed address, or Custom endpoint for an OpenAI-compatible server at your own Base URL.
- Verified account
- OpenAI, Anthropic and xAI name the organization or team at Test. Automatic reviews need such an account.
- Unverified account
- Google Gemini, OpenRouter, DeepSeek, Mistral and Groq do not name the account. Reviews run only manually.
- Custom endpoint
- Any OpenAI-compatible server, such as vLLM or Ollama. Unverified, with no known price: manual reviews only.
Good to know: Unverified integrations of one provider, or of one custom address, share a spend ledger and the lowest limits. Changing the provider forgets the verified account.
Base URL
The address of the OpenAI-compatible API. HTTPS, or plain http:// only for localhost, 127.0.0.1 or [::1].
Good to know: No user name, password, query or fragment. Before a key first goes to a new address, a system dialog asks you to allow it; a replaced key asks again.
Name
How the integration appears on its card and in the AI settings of projects, up to 80 characters. Names are unique.
Credential
The stored key the integration uses. The integration keeps only the credential's ID, never the key.
- A stored credential
- Uses a key from App settings → Credentials. Replacing it there changes it here too.
- New credential…
- Save integration stores the new key. Cancel leaves nothing.
Good to know: Changing the credential forgets the verified account until the next Test.
Storage
Where the secret of the new credential is kept. DiffNode never picks up keys from your environment by itself.
- OS keychain (recommended)
- Encrypted by the system keychain. Not offered on Linux without a keyring (basic_text).
- Key command
- Runs a program, such as a password manager, without a shell at every use, for at most 60 s.
- Environment variable
- Reads a named variable of the desktop app at every use.
Secret
The API key itself. The OS keychain encrypts it, and it cannot be shown again, only replaced.
Command
The program and its arguments, one per line, such as a password manager's read command. Its output is the key.
Good to know: A system dialog asks you to allow the command at Test. Shells and inline scripts are refused, and it gets only a minimal environment.
Variable
The name of an environment variable of the desktop app. Only the name is stored; the value is read at every use.
Test connection
Reads only the provider's model list, for xAI also its key endpoint, and shows the account and the models. It stores nothing.
- 401: the provider rejected the key
- The key is mistyped, revoked or belongs to another provider. Check it on the provider's key page.
- 403 or 429: no access or credit
- The key works, but the account cannot use the models or has no credit left. Check its billing.
- No response: network or timeout
- The endpoint did not answer in time. Check your network or the Base URL and try again.
Good to know: Test starts no inference and costs nothing. A key command may ask for approval, and a custom endpoint asks before the key is sent.
Models
Allowed models are the ones projects may use. Reviews use the default model unless a project chooses another.
- All current and future models
- Every model the provider lists now or later. OpenRouter always needs a chosen list.
- Chosen models
- Only the checked models. Recommended ones are in DiffNode's model table with their limits and efforts.
Good to know: New models can cost more. Image, audio, embedding and realtime models are hidden until Show all. Models outside the table get 16,384 output tokens.
Budget
What reviews with this account may spend per day and per month. Integrations of one account share the lowest limit.
- Daily (US$)
- Resets at midnight in the budget time zone. Leave it empty for no daily limit.
- Monthly (US$)
- Resets on the first day of the month. It cannot be lower than the daily limit.
Good to know: A reached limit blocks every review of the account until it resets; automatic reviews need both limits. Spend is an estimate, your provider's invoice is exact.