parmanu 0.4.14

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

json
{
  "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. Set baseUrl for a VPC endpoint. The provider speaks the Anthropic Messages API, so Bedrock's Claude models work; api defaults to anthropic-messages.

  • Region: the provider's region, else AWS_REGION, else AWS_DEFAULT_REGION, else us-east-1.

  • Credentials, first found wins:

    1. AWS_BEARER_TOKEN_BEDROCK, a Bedrock API key, sent as a bearer token.
    2. AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY (and AWS_SESSION_TOKEN), signed with SigV4.
    3. The AWS_PROFILE (or default) section of ~/.aws/credentials (AWS_SHARED_CREDENTIALS_FILE moves 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

json
{
  "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:

  1. AZURE_OPENAI_AD_TOKEN, used as it is.
  2. A service principal: AZURE_TENANT_ID, AZURE_CLIENT_ID and AZURE_CLIENT_SECRET (AZURE_AUTHORITY_HOST for other clouds).
  3. The Azure CLI: az account get-access-token, after az 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.