Skip to content

AI Providers

This page covers how to configure AI providers (Claude, OpenAI, Ollama, etc.), create reusable profiles with fallback chains, and assign providers to individual projects.

For authentication between Condrix components (clients, Cores, Maestro), see Authentication.

Condrix supports multiple AI providers through a Connections + Profiles architecture:

  • Connection — A single authenticated link to a provider (e.g., “My Claude Plan”, “Work OpenAI Key”)
  • Profile — A named preset with a primary connection and an ordered fallback chain
  • Per-project assignment — Each project can use a different profile (or a direct connection)
  • Workspace-level model selection — Within a workspace, you can pick a specific model from the active connection’s model list

This lets you mix providers freely — for example, use Claude for production code, Ollama for local experiments, and OpenAI as a fallback when Claude hits a rate limit.

ProviderAuth MethodUse Case
Claude (OAuth)Browser sign-in via Claude accountRecommended for Claude plan subscribers
Claude (API Key)Anthropic API key (sk-ant-api03-...)Development, pay-per-use billing
OpenAIOpenAI API key (sk-...)GPT-4o, GPT-4o-mini, o1, o3, and other OpenAI models
LocalNone (no auth required)Ollama, LM Studio, or any local OpenAI-compatible server
CustomAPI key (optional)Azure OpenAI, Together AI, Groq, Fireworks, or any OpenAI-compatible endpoint

A Connection represents a single authenticated link to an AI provider. Each connection stores:

  • Name — A human-readable label (e.g., “My Claude Account”, “Office OpenAI Key”)
  • Provider — Which provider type (Claude, OpenAI, Local, Custom)
  • Credentials — API key, OAuth tokens, or nothing for local providers
  • Base URL — For Local and Custom providers, the endpoint URL
  • Fallback triggers — Conditions that cause Condrix to skip this connection and try the next one
  1. Open Settings (gear icon) in the web client
  2. Navigate to the AI tab
  3. Under Connections, click Add Connection
  4. Select a provider type
  5. Fill in the provider-specific fields
  6. Click Save

The recommended method for Claude. Uses your existing Claude plan allocation.

  1. Select Claude (OAuth) as the provider
  2. Click Sign In with Claude
  3. Approve the request in your browser
  4. Paste the authorization code back into the dialog

The Core handles token refresh automatically. You should rarely need to re-authenticate.

For development or API-billed usage.

  1. Select Claude (API Key) as the provider
  2. Paste your Anthropic API key (sk-ant-api03-...)

You can also set the key via environment variable:

Terminal window
export CONDRIX_CORE_CLAUDE_API_KEY=sk-ant-api03-...
  1. Select OpenAI as the provider
  2. Paste your OpenAI API key (sk-...)
  3. Available models are auto-discovered from the OpenAI API

For free, private, local inference. No API key needed.

  1. Start your local model server:
    Terminal window
    # Ollama
    ollama serve
    # Or launch LM Studio and enable the local server
  2. Select Local as the provider
  3. The base URL defaults to http://localhost:11434/v1 — change it if your server uses a different port
  4. Available models are auto-discovered from the server

Compatible local servers:

  • Ollama — Lightweight, CLI-based, supports thousands of models
  • LM Studio — GUI-based with a built-in model browser
  • Any server exposing an OpenAI-compatible /v1/chat/completions endpoint

For any other provider with an OpenAI-compatible API.

  1. Select Custom as the provider
  2. Enter the Base URL (e.g., https://api.together.xyz/v1, https://api.groq.com/openai/v1)
  3. Enter an API Key if the endpoint requires authentication
  4. Models are auto-discovered from the endpoint’s /models route

An AI Profile is a named preset that defines a primary connection and an ordered fallback chain. Profiles decouple routing decisions from individual projects and workspaces.

  1. Open SettingsAI tab
  2. Under Profiles, click Add Profile
  3. Enter a name for the profile (e.g., “Production”, “Local Dev”)
  4. Select a primary connection — the default provider
  5. Optionally add fallback connections in priority order
  6. Click Save

When the primary connection encounters an error that matches one of its configured fallback triggers, Condrix automatically retries the request with the next connection in the chain.

Available fallback triggers:

TriggerWhen It Fires
rate_limitProvider returned HTTP 429
quota_exceededAccount usage quota exhausted
auth_errorCredentials invalid or expired
timeoutRequest timed out
server_errorProvider returned HTTP 5xx

Example: resilient production profile

Primary: Claude (OAuth) → triggers: rate_limit, quota_exceeded
Fallback 1: OpenAI (API Key) → triggers: rate_limit, server_error
Fallback 2: Ollama (local) → no triggers (last resort)

If Claude hits a rate limit, the request automatically retries on OpenAI. If OpenAI also fails, it falls back to local Ollama. The user sees no interruption.

ProfilePrimaryFallbackUse Case
Cloud FirstClaude (OAuth)OpenAIBest quality, cloud-billed
Local DevOllamaNoneFree, private, offline-capable
Cost-OptimizedOllamaClaude (API Key)Local when possible, cloud when needed
High AvailabilityClaudeOpenAI → OllamaMaximum uptime with three-tier fallback

Each project can have its own AI Profile:

  1. Open SettingsProjects tab
  2. Select a project
  3. Choose an AI Profile from the dropdown
  4. All workspaces in that project use the assigned profile by default

This lets you use different providers for different projects — for example, Claude for production work and Ollama for experiments.

Within a workspace or chat session, you can select a specific model from the active connection’s available models. This is useful when a provider offers multiple tiers:

  • Claude: claude-sonnet-4-20250514, claude-haiku-4-20250414
  • OpenAI: gpt-4o, gpt-4o-mini, o1, o3-mini
  • Ollama: llama3, codellama, mistral, deepseek-coder

Model selection is per-workspace and does not change the profile or connection configuration.