model_providers in a router file.
Amazon Bedrock
Supported Claude models can be served through Bedrock:us. cross-region inference profiles by default. The credential’s AWS Region selects the Bedrock endpoint. A region in an inference-profile ARN takes precedence.
Save one of three credential types under Subscriptions & Keys → Add Credential → Amazon Bedrock:
- AWS Role (recommended). Dari assumes an IAM role in your account, so no long-lived key leaves it.
- API Key. A Bedrock API key, the same as
AWS_BEARER_TOKEN_BEDROCK. Its IAM identity needsbedrock:CallWithBearerToken. - AWS IAM. A saved access key ID, secret access key, optional session token, and AWS Region.
AWS Role
- Choose AWS Role in the dialog. It shows the trust policy your role needs, which trusts Dari’s AWS principal and requires your Dari organization ID as the External ID.
- Create the role with that trust policy.
- Save the role ARN and AWS Region.
GET /v1/organizations/current/credentials returns the same trust values in aws_assume_role.
AWS IAM
--aws-session-token-env for long-lived keys. Instance profiles and ambient AWS credentials are not supported.
Microsoft Azure
A Microsoft Foundry resource (https://<resource>.services.ai.azure.com) serves OpenAI and Claude models. A classic Azure OpenAI resource (https://<resource>.openai.azure.com) serves OpenAI models only.
- Keep Foundry’s default deployment names. Dari sends the model name as the deployment name.
- Key-based authentication must be on for the resource. Microsoft Entra ID is not supported.
- Change the endpoint without re-entering the key with
dari accounts provider update <credential_id> "Azure" --azure-endpoint <url>.
Details
What Dari stores and shows
What Dari stores and shows
API responses show only non-secret metadata: the authentication type, AWS Region, Azure endpoint, and for AWS Role, the role ARN and External ID. Dari caches assumed-role credentials, and a new role ARN or Region applies on the next request.
Azure API paths
Azure API paths
OpenAI deployments are called through the Azure OpenAI v1 Responses API (
/openai/v1), and Claude deployments through the Foundry Messages API (/anthropic).Zero data retention
Zero data retention
When a zero-data-retention router binds a model to a gateway, Dari limits that gateway to zero-data-retention upstreams.