Bedrock and Azure
Hosted providers take a key (/login <provider>, or the provider's *_API_KEY variable). Two clouds sign in another way; give the provider an auth in ~/.anu/models.json (or a trusted project's .anu/models.json).
Amazon Bedrock
{
"providers": {
"bedrock": {
"auth": "aws-sigv4",
"region": "us-east-1",
"models": [{ "id": "us.anthropic.claude-sonnet-4-20250514-v1:0", "contextWindow": 200000, "maxTokens": 16000 }]
}
}
}Then pick bedrock/us.anthropic.claude-sonnet-4-20250514-v1:0 with /model. The model id is the Bedrock model or inference profile id from the console.
Requests go to Bedrock's InvokeModel (streamed with InvokeModelWithResponseStream) at
https://bedrock-runtime.<region>.amazonaws.com. SetbaseUrlfor a VPC endpoint. The provider speaks the Anthropic Messages API, so Bedrock's Claude models work;apidefaults toanthropic-messages.Region: the provider's
region, elseAWS_REGION, elseAWS_DEFAULT_REGION, elseus-east-1.Credentials, first found wins:
AWS_BEARER_TOKEN_BEDROCK, a Bedrock API key, sent as a bearer token.AWS_ACCESS_KEY_IDandAWS_SECRET_ACCESS_KEY(andAWS_SESSION_TOKEN), signed with SigV4.- The
AWS_PROFILE(ordefault) section of~/.aws/credentials(AWS_SHARED_CREDENTIALS_FILEmoves it).
SSO and role profiles are not read directly; export them first, for example
eval "$(aws configure export-credentials --profile work --format env)".
Azure OpenAI with Azure AD
{
"providers": {
"azure": {
"auth": "azure-ad",
"baseUrl": "https://my-resource.openai.azure.com/openai/v1",
"models": [{ "id": "my-gpt-deployment", "contextWindow": 128000 }]
}
}
}The model id is your deployment name. baseUrl is the resource's v1 endpoint, which needs no api-version. Every request carries Authorization: Bearer <token>, with the token from, first found wins:
AZURE_OPENAI_AD_TOKEN, used as it is.- A service principal:
AZURE_TENANT_ID,AZURE_CLIENT_IDandAZURE_CLIENT_SECRET(AZURE_AUTHORITY_HOSTfor other clouds). - The Azure CLI:
az account get-access-token, afteraz login.
Tokens are kept until a minute before they expire. The account needs the Cognitive Services OpenAI User role on the resource. "auth": "azure-ad" also works with "api": "anthropic-messages" for Claude on Azure AI Foundry.
To use an Azure API key instead, leave out auth and set "apiKey": "$AZURE_OPENAI_API_KEY"; the v1 endpoint takes it as a bearer token too.
Not supported
Signing in with a Claude, ChatGPT or Copilot subscription. Use an API key or one of the clouds above.
This page is built from docs/cloud.md in parmanu 0.4.14.