Skip to content

Anthropic

Avant signs an assertion for the workspace, and Anthropic exchanges it for its own short-lived access token. Read How provider setup works first.

You need the Anthropic admin, owner or primary owner role.

Field Value
Issuer URL https://identity.avant.codes
Audience https://api.anthropic.com
Subject The exact subject from the Avant form

In Avant, open New workspace and choose Direct → Anthropic. Copy the subject the form shows. Keep the form open.

In the Claude Console, open Workload identity and choose Connect workload → Custom OIDC.

Field Value
Issuer URL https://identity.avant.codes. Use Verify issuer.
JWKS Discovery. Don’t paste a JWKS.
Subject The exact subject
Audience https://api.anthropic.com
OAuth scope workspace:developer
  • workspace:developer is required. A token scoped only to workspace:inference fails Verify.
  • Leave the token lifetime at the default (600 seconds). If the console has a maximum assertion lifetime, set it to at least 300 seconds.
  • Bind the rule to one Anthropic workspace. A new service account is already in the Default workspace. Add it to any other workspace you pick.
  • If the issuer is already registered, keep it and add a new rule for this subject.
Avant field Looks like Where
Organization ID UUID Organization settings
Service account ID svac_… The service account the wizard created
Federation rule ID fdrl_… The rule the wizard created
Workspace ID wrkspc_… The workspace_id in the wizard’s test snippet

Fill in the workspace ID whenever the test snippet shows one. Leave it empty only when the rule covers a single workspace and the snippet has no workspace_id. The literal default is rejected.

Create the workspace, then run Verify. Don’t run the wizard’s curl or Python snippet: it expects a token that Avant signs, and Verify is what sends one.

The wizard listens for an exchange for 15 minutes. Verifying inside that window lets the wizard confirm it, but Verify also works after the window closes.

From the CLI:

Terminal window
avant workspace create --name claude --provider anthropic \
--organization-id <uuid> --service-account-id svac_... \
--federation-rule-id fdrl_... --vendor-workspace-id wrkspc_...
avant workspace verify claude

The CLI prints the subject after create. If the rule doesn’t exist yet, create it with that subject and then verify.

The workspace serves the Anthropic Messages API (/v1/messages).

ModelAPIHarnesses
claude-sonnet-5MessagesClaude Code, OpenCode, Pi, Oh My Pi
claude-opus-5MessagesClaude Code, OpenCode, Pi, Oh My Pi
claude-opus-5-5MessagesClaude Code, OpenCode, Pi, Oh My Pi
claude-sonnet-5-5 (default)MessagesClaude Code, OpenCode, Pi, Oh My Pi
claude-haiku-5-5MessagesClaude Code, OpenCode, Pi, Oh My Pi
claude-fable-5MessagesClaude Code, OpenCode, Pi, Oh My Pi
claude-fable-5-1MessagesClaude Code, OpenCode, Pi, Oh My Pi
claude-fable-5-2MessagesClaude Code, OpenCode, Pi, Oh My Pi