Building Conductor at MetaSkip to docs content
Conductor

Configure model providers

Set up Claude Code, Codex, Muse Code, Antigravity, OpenCode, and Cursor credentials in Conductor

Conductor runs each chat through one harness. Configure harness auth in Settings -> Agents. Use Settings -> Environment when a provider needs environment variables.

Conductor does not bill or resell model usage. Usage is billed by the provider account, subscription, usage pool, or API key used by the selected harness.

HarnessConfigure inCredentialNotes
Claude CodeSettings -> Agents -> Claude CodeClaude subscription, CLI auth, or ANTHROPIC_API_KEYEnvironment variables can route Claude Code to compatible providers.
CodexSettings -> Agents -> CodexCodex sign-in, subscription, or CODEX_API_KEYVercel AI Gateway uses AI_GATEWAY_API_KEY.
Muse CodeSettings -> Agents -> Muse CodeMuse Code sign-in or META_API_KEYCloud organizations use Sign in with Meta or an API key.
AntigravitySettings -> Agents -> AntigravityGoogle sign-in or GEMINI_API_KEYCloud workspaces need a Gemini API key.
OpenCodeSettings -> Agents -> OpenCodeOpenCode provider API keysVisible models are managed in OpenCode settings.
CursorSettings -> Agents -> CursorCURSOR_API_KEYCursor runs through the Cursor API.

Claude Code

Claude Code can use your Claude subscription, Claude CLI login, an Anthropic API key, or Claude-compatible provider environment variables.

  1. Open Settings -> Agents -> Claude Code.
  2. Choose CLI auth for an existing Claude Code login, or choose API key mode.
  3. For API key mode, add your Anthropic key as ANTHROPIC_API_KEY.
  4. Check the Claude Code auth status in the same settings panel.
Warning:

If ANTHROPIC_API_KEY is set in Conductor or in the shell environment that launches Conductor, Claude Code may use API billing instead of subscription usage.

Codex

Codex can use Codex sign-in, an OpenAI subscription, or an API key.

  1. Open Settings -> Agents -> Codex.
  2. Choose CLI auth for an existing codex login, or choose API key mode.
  3. For API key mode, add your OpenAI key as CODEX_API_KEY.
  4. Start a Codex session and choose a model that is available to your account.

For Vercel AI Gateway, add these values in Settings -> Environment:

OPENAI_BASE_URL=https://ai-gateway.vercel.sh/codex/v1
AI_GATEWAY_API_KEY=your-vercel-ai-gateway-api-key

Muse Code

Muse Code can use your Muse Code subscription or a Meta API key.

  1. Open Settings -> Agents -> Muse Code.
  2. Click Sign in and confirm the code in your browser, or add your Muse API key.
  3. Start a Muse Code session and choose a model that is available to your account.

Conductor saves the API key as META_API_KEY:

META_API_KEY=your-meta-api-key

In cloud organizations, set up Muse Code in Settings -> Agents instead. Choose Sign in with Meta for your subscription, or add an API key from dev.meta.ai.

Antigravity

Antigravity can use your Google account or a Gemini API key in local workspaces, and a Gemini API key in cloud workspaces.

  1. Open Settings -> Agents -> Antigravity.
  2. Click Install Antigravity if Conductor hasn't installed it yet.
  3. Choose CLI and click Sign in with Google, or choose API key and add a key from Google AI Studio.
  4. Start an Antigravity session and choose a model that is available to your account or key.

Conductor saves the API key as GEMINI_API_KEY:

GEMINI_API_KEY=your-gemini-api-key

In cloud organizations, set up Antigravity in Settings -> Agents and add a Gemini API key. Google sign-in isn't available in cloud workspaces.

OpenCode

OpenCode uses provider credentials and the models returned by your OpenCode setup.

  1. Open Settings -> Agents -> OpenCode.
  2. Select Providers.
  3. Add provider API keys.
  4. Choose which OpenCode models should be visible in Conductor.

Common OpenCode provider keys:

OPENROUTER_API_KEY=your-openrouter-api-key
BASETEN_API_KEY=your-baseten-api-key
CEREBRAS_API_KEY=your-cerebras-api-key
AI_GATEWAY_API_KEY=your-vercel-ai-gateway-api-key

OpenCode can also use provider credentials from local environment variables and its own provider configuration.

Cursor

Cursor sessions use Cursor Agent through the Cursor API. Conductor does not use a local Cursor executable for Cursor sessions.

  1. Open Settings -> Agents -> Cursor.
  2. Add your Cursor API key.
  3. Or set CURSOR_API_KEY in Conductor environment settings.
  4. Start a Cursor session.
CURSOR_API_KEY=your-cursor-api-key

Advanced Claude Code providers

Claude Code can use Anthropic-compatible providers through environment variables. Add these values in Settings -> Environment.

When using a compatible provider, make sure ANTHROPIC_API_KEY is not set to an Anthropic key in Conductor or in the shell environment that launches Conductor. Otherwise Claude Code may authenticate with Anthropic directly.

OpenRouter

ANTHROPIC_BASE_URL=https://openrouter.ai/api
ANTHROPIC_AUTH_TOKEN=your-openrouter-api-key

Docs: OpenRouter Claude Code integration

Vercel AI Gateway

ANTHROPIC_BASE_URL=https://ai-gateway.vercel.sh/claude-code
ANTHROPIC_AUTH_TOKEN=your-vercel-ai-gateway-api-key

Docs: Claude Code with Vercel AI Gateway

Bedrock

CLAUDE_CODE_USE_BEDROCK=1
AWS_REGION=us-east-1
ANTHROPIC_SMALL_FAST_MODEL_AWS_REGION=us-west-2
ANTHROPIC_DEFAULT_OPUS_MODEL=us.anthropic.claude-opus-4-7
ANTHROPIC_DEFAULT_SONNET_MODEL=us.anthropic.claude-sonnet-4-6
ANTHROPIC_DEFAULT_HAIKU_MODEL=us.anthropic.claude-haiku-4-5-20251001-v1:0

Docs: AWS Bedrock Claude Code

GLM

ANTHROPIC_BASE_URL=https://api.z.ai/api/anthropic
ANTHROPIC_AUTH_TOKEN=your-zai-api-key

Docs: GLM Claude integration

For a full provider list, see the Claude Code third-party integrations docs.

On this page