Connect a model provider
Wire up Anthropic, Gemini, Claude Agent SDK, a local model via Ollama, OpenAI's Codex CLI, or Cursor: your first connection so you can actually run a workflow.
Cerevisor doesn't ship its own model. You connect it to a provider you already have access to. Six kinds are supported, and you can have any number of each (except the singletons noted below).
If this is your first launch, the Provider Setup modal opens automatically. If you skipped it, open it any time from the title bar menu or via Settings → Providers → + Add provider.
This page walks through the simplest setup for each provider type. For the deeper guide, including managing multiple providers, per-agent overrides, and library administration, see Guides → Providers.
The six provider types
| Type | What it is | When to use it |
|---|---|---|
| Anthropic | Direct API connection to Claude (Opus, Sonnet, Haiku). Cerevisor owns the agent loop. | You have an Anthropic API key and want the most capable hosted models with full Cerevisor control over the loop. Singleton: one entry. |
| Gemini | Direct API connection to Google's Gemini (2.5 / 3.x families). Cerevisor owns the agent loop. | You have a Google AI Studio API key and want Gemini's long-context Pro models or its cheap Flash workhorses. Singleton. See the Gemini provider page for the dedicated walkthrough. |
| Claude Agent SDK | Anthropic's official Claude Agent SDK runtime running in-process. Delegated loop (Cerevisor sets policy, the SDK runs the loop). | You want Claude Code-style agent execution (read/write/edit/bash/glob/grep tools out of the box) without leaving Cerevisor. Singleton. See the Claude Agent SDK page. |
| OpenAI-compatible | Any endpoint that speaks the OpenAI Chat Completions API. Includes Ollama, OpenRouter, Together, Groq, Fireworks, vLLM, LM Studio, and OpenAI itself. | You want local models (Ollama), routing across providers (OpenRouter), or anything OpenAI-API-shaped. Multiple entries allowed. |
| OpenAI Codex CLI | Sidecar to OpenAI's official codex command-line tool. Delegated loop. |
You have a ChatGPT subscription (Plus/Pro) and want to use Codex's quota rather than paying per token. Singleton. |
| Cursor Agent | In-process Cursor SDK runtime. Delegated loop. | You have a Cursor subscription and want Cursor's agent (with its tool catalog and optional cloud execution). Singleton. |
Setting up Anthropic
You'll need an API key from console.anthropic.com.
- In Provider Setup, click Anthropic.
- Paste your API key.
- Click Test connection. Cerevisor calls Anthropic's
/v1/modelsendpoint to confirm the key works and to populate the model list. - Click Save.
The key is stored in your operating system's keychain, never in plain text on disk.
Setting up Ollama (local models)
You'll need Ollama installed and at least one model pulled (ollama pull llama3.1, for example).
- In Provider Setup, click OpenAI-compatible.
- Base URL:
http://localhost:11434/v1 - API key: leave blank, or enter any non-empty string: Ollama doesn't check.
- Click Test connection.
- Pick a default model from the dropdown.
- Click Save.
You can repeat this with different base URLs to add OpenRouter, Groq, Together, or any other OpenAI-shaped endpoint as separate library entries.
Setting up OpenAI Codex CLI
You'll need Codex installed (npm install -g @openai/codex) and a ChatGPT Plus/Pro subscription.
- In Provider Setup, click Codex CLI.
- The wizard runs
codex --versionto confirm it's installed. - The wizard runs
codex login statusto check whether you're already signed in. - If you're not signed in, click Start device auth. Cerevisor invokes
codex login --device-auth; copy the URL + code shown into your browser to complete sign-in. - The wizard runs a smoke test (
codex exec --jsonwith a trivial prompt) to confirm everything works end-to-end. - Click Save.
Cerevisor never stores your OpenAI credentials, Codex owns its own authentication.
Windows note: Cerevisor automatically resolves the
.cmdshim thatnpm install -gcreates for thecodexcommand. If the wizard reports "Codex not found" butcodex --versionworks in your terminal, restart Cerevisor, PATH is read at launch.
Setting up Gemini
You'll need an API key from aistudio.google.com/apikey.
- In Provider Setup, click Gemini.
- Paste your API key.
- Click Test connection. Cerevisor sends a tiny smoke-test request via the
@google/genaiSDK. - Click Save.
For the full walkthrough (model list, pricing quirks, thinking budgets), see the Gemini provider page.
Setting up Claude Agent SDK
You'll need an Anthropic API key from console.anthropic.com.
- In Provider Setup, click Claude Code (Claude Agent SDK).
- Paste your API key. (The key lives in a dedicated keychain slot, separate from the native Anthropic provider's slot, so you can configure both with the same key without conflict.)
- Click Test connection.
- Click Save.
For the v1.2.0 limitations (no per-tool prompts, no skill injection, etc.), see the Claude Agent SDK page.
Setting up Cursor Agent
You'll need a Cursor account with an API key generated at cursor.com/dashboard.
- In Provider Setup, click Cursor Agent.
- Cerevisor attempts to load the optional
@cursor/sdkpackage. If it's not installed, you'll see an install hint. - Paste your Cursor API key.
- Click Validate. Cerevisor calls Cursor's identity endpoint to confirm the key.
- Click Run smoke test. Cerevisor spins up a trivial Cursor agent to confirm the local runtime works.
- Click Save.
Cursor runs can also execute in the cloud, see Guides → Advanced → Cursor cloud runs for the full setup.
Setting a default
When you have more than one provider in the library, one of them is marked as the default. New workflows use the default automatically; existing workflows keep whatever provider they were saved with.
To change the default: Settings → Providers, then click Set default on the entry you want.
Removing a provider
Settings → Providers, then click the trash icon on the entry you want to delete.
If any open workflow has an agent that references the credential you're trying to delete, Cerevisor blocks the deletion and shows you which agents would break. Either change those agents to a different provider first, or close the workflow.