Skip to content

Agents > Harnesses

Third-party cloud agent authentication

Open in ChatGPT ↗
Ask ChatGPT about this page
Open in Claude ↗
Ask Claude about this page
Copied!

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.

Third-party cloud agent authentication in Oz stores provider credentials for cloud runs as Warp-managed secrets. Third-party cloud agents, like Claude Code and Codex, call their providers directly, so set up an Anthropic or OpenAI credential once before launching a third-party harness.

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

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

  1. Go to the Anthropic Console and sign in or create an account.
  2. Confirm your account has API credits. Claude Code runs are billed against your Anthropic API balance.
  3. Navigate to the API keys section, then click Get API key.
  4. Create a new API key and copy the value.

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

Start a new cloud agent run and choose Claude Code from the Agent harness dropdown. In the harness auth secret field, add or select your Anthropic credential.

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

The Oz web app dialog for adding a new Claude Code auth secret.

The Claude Code auth secret dialog.

Terminal window
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.

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

  1. Go to the OpenAI Platform and sign in (or create an account).
  2. Confirm your account has API credits. Codex runs are billed against your OpenAI API balance, not a ChatGPT subscription.
  3. Navigate to the API keys section, then click Create API key.
  4. In the Create new secret key dialog, choose the owner, project, and permissions for the key.
  5. Click Create secret key, then copy the value.

Start a new cloud agent run and choose Codex from the Agent harness dropdown. In the harness auth secret field, add or select your OpenAI credential.

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

Terminal window
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.

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

Terminal window
# 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

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.