Skip to content

Latest commit

 

History

History
122 lines (78 loc) · 5.4 KB

File metadata and controls

122 lines (78 loc) · 5.4 KB
title Third-party cloud agent authentication
description Connect your Anthropic or OpenAI credentials to Oz, then launch Claude Code or Codex as cloud agents from the desktop app, Oz web app, or API.
sidebar
label
Authentication

Third-party cloud agents — Claude Code and Codex — call their provider directly, so you need to store credentials as Warp-managed secrets before launching a run. This page walks through the one-time setup for each.

Auth secrets can be scoped to a team (available to all teammates' runs) or personal (only your own runs), just like any other Warp-managed secret.

:::note Bring Your Own Key (BYOK) configured in the Warp desktop app applies to local agent runs only. Cloud runs of Claude Code and Codex always use Warp-managed secrets. :::

Connecting Claude Code credentials

Claude Code is Anthropic's agentic coding tool. For more on Claude Code authentication, see Anthropic's Claude Code auth docs.

Create an Anthropic API key

  1. Go to the Anthropic Console and sign in (or create an account).
  2. Navigate to API keys and create a new key.
  3. Make sure your account has API credits — Claude Code runs are billed against your Anthropic API balance.

Oz also supports Bedrock-routed credentials (Anthropic Bedrock API key and Anthropic Bedrock access key) if your team consumes Anthropic models through AWS.

Store the key in Oz

Warp desktop app

In Cloud Mode, click the key icon above the input and add your Anthropic credential.

Oz web app

Start a new run, choose Claude Code as the harness, and add a new key in the harness auth secrets dropdown.

Oz CLI

oz secret create claude api-key --team <KEY_NAME>

Add --description "..." to record rotation notes or owner info. Replace --team with --personal to make the secret available only to your own runs.

Expected outcome. oz secret list shows the new secret with the matching Anthropic credential type. The value is never displayed.

Connecting Codex credentials

Codex is OpenAI's coding agent. For more on Codex authentication, see OpenAI's Codex auth docs.

:::caution A ChatGPT subscription (Plus, Pro, Team) does not include API access. You need a separate OpenAI API key with API credits. :::

Create an OpenAI API key

  1. Go to the OpenAI Platform and sign in (or create an account).
  2. Navigate to API keys and click Create new secret key.
  3. Make sure your account has API credits — Codex runs are billed against your OpenAI API balance, not a ChatGPT subscription.

Store the key in Oz

Warp desktop app

In Cloud Mode, click the key icon above the input and add your OpenAI credential.

Oz web app

Start a new run, choose Codex as the harness, and add a new key in the harness auth secrets dropdown.

Oz CLI

oz secret create codex api-key --team <KEY_NAME>

Add --description "..." to record rotation notes or owner info. Replace --team with --personal to make the secret available only to your own runs.

Expected outcome. oz secret list shows the new secret with the matching OpenAI credential type. The value is never displayed.

Managing harness auth secrets

Auth secrets follow the same management commands as any other Warp-managed secret. See Cloud agent secrets for the full reference. Common tasks:

# List secrets you can see
oz secret list

# Rotate a secret value (prompts for the new value)
oz secret update --team --value ANTHROPIC_API_KEY

# Update the description
oz secret update --team --description "Rotated 2026-05-12; owned by platform team" ANTHROPIC_API_KEY

# Delete a secret (irreversible)
oz secret delete --team ANTHROPIC_API_KEY

:::caution Deleting an auth secret breaks any scheduled or integration-triggered run that references it by name. Update the schedules and integrations to point at a new secret first. :::

Troubleshooting

Claude Code or Codex run fails with an authentication error.
Confirm the run was started with a harness auth secret selected. From the Oz web app's run detail pane, the Harness auth secret field shows which secret (if any) was used. Re-launch the run with the correct secret selected, or create one if your team doesn't have one yet.

The harness auth secret dropdown is empty.
The dropdown only lists secrets whose type matches the selected harness — Anthropic types for Claude Code, OpenAI for Codex. If you stored the credential as a raw value, recreate it using the typed flow above.

The selected harness is disabled.
Your team admin has disabled the harness for your workspace. Contact your admin or pick a different harness for the run.

Related pages