How provider setup works
Avant does not hold API keys or cloud credentials for your model vendor. Each workspace has its own binding, and Avant signs short-lived tokens for that binding. Your vendor or cloud account trusts those tokens because you told it to.
The one exception is TypeSafe, which stores an API key.
The values you’ll copy
Section titled “The values you’ll copy”| Value | What it is |
|---|---|
| Issuer | https://identity.avant.codes. Discovery is at /.well-known/openid-configuration. No trailing slash. |
| Subject | avant:binding:<binding-id>. Unique to one workspace, and it never changes. |
| Audience | Fixed per provider. Each provider page lists it. |
Avant’s assertions last at most 300 seconds and carry a jti.
You can reuse one issuer registration, OIDC provider or identity pool for several workspaces. Each workspace still needs its own exact-subject rule, mapping, trust condition or credential.
The order of steps
Section titled “The order of steps”In the dashboard: open Workspaces → New workspace and pick the provider. The form reserves the binding first, so the subject is shown before the workspace exists. Set up the vendor side with it, fill in the ids the vendor gives you, create the workspace, and then run Verify on the workspace’s Connect page.
In the CLI: avant workspace create prints the subject after it creates the workspace. Set up the vendor side, then run:
avant workspace verify <workspace>Verify
Section titled “Verify”Verify mints a token for the workspace and makes one real call to the provider. A workspace’s binding starts as pending. The proxy refuses inference until Verify succeeds and marks the binding active.
Changing a vendor id or cloud setting keeps the binding but marks it pending again, so run Verify after every change. Changing the GCP workload identity provider or the Azure identity can issue a new subject. The dashboard warns you when that happens, and you then update the trust on your side.
Anyone who can open the workspace’s Connect page can run Verify. Changing the settings needs the workspace admin role.
Verify errors
Section titled “Verify errors”| Code | Provider | Meaning |
|---|---|---|
vendor_federation_denied |
Anthropic, OpenAI, Mistral | The vendor rejected the token. Check the issuer, the exact subject, the audience and the ids. |
vendor_scope |
Anthropic, OpenAI | The token’s scope is missing workspace:developer (Anthropic) or api.model.request (OpenAI). |
sa_impersonation_denied |
The subject can’t impersonate the service account. Check the provider resource and the roles/iam.workloadIdentityUser grant. |
|
agent_platform_api_disabled |
aiplatform.googleapis.com isn’t enabled in the project. |
|
agent_platform_permission_denied |
The service account lacks roles/aiplatform.user. |
|
agent_platform_not_found |
The project or location wasn’t found, or the region isn’t available. | |
sts_assume_role_denied |
AWS | STS refused the role. Check the OIDC provider and the trust policy’s sub and aud. |
bedrock_permission_denied |
AWS | The role lacks bedrock:ListFoundationModels (and probably InvokeModel). |
bedrock_not_found |
AWS | Bedrock isn’t available in that region. |
entra_token_denied |
Azure | Entra rejected the assertion. Check the federated credential’s issuer, subject and audience. |
foundry_permission_denied |
Azure | The identity lacks Cognitive Services User on the Foundry resource. |
foundry_deployment_missing |
Azure | No deployment is named after the default model. Deploy it under exactly the model id. |
foundry_not_found |
Azure | The resource or endpoint wasn’t found. |
config_error |
Any | An unexpected response, or a malformed setting. The message has the details. |
The error message includes the vendor’s own reason. Anthropic’s reason is opaque; look it up in the Claude Console’s authentication history.
Revoking access
Section titled “Revoking access”Delete the rule, mapping, trust policy, IAM grant or federated credential on your side. Avant can no longer get tokens for that workspace, and requests fail from then on.