Set up Amazon Bedrock Mantle

Last validated:

Configure Amazon Bedrock Mantle in Aperture so your team can access Anthropic Claude and OpenAI GPT models hosted on AWS through your tailnet. Mantle serves Claude models through an Anthropic compatible /anthropic endpoint and GPT models through an OpenAI compatible /openai endpoint. Configure each endpoint as its own provider entry. The two entries differ in authorization type and compatibility flags. Both need an explicit cost_basis, because Aperture would otherwise price Mantle requests at direct Anthropic or OpenAI rates.

Your client and selected provider must support the same API format. Refer to Supported providers and clients for available setup options and requirements.

For the bedrock-runtime endpoint and its InvokeModel and Converse APIs, refer to Set up Amazon Bedrock.

Prerequisites

Before you begin, you need:

  • An Aperture gateway accessible from your device. Refer to get started with Aperture if you have not set this up.
  • An AWS account with access to the Claude or GPT models you want to serve. Mantle is available in a subset of AWS regions, listed in the Amazon Bedrock Mantle documentation.
  • A Bedrock API key. Generate a long-term API key in the Amazon Bedrock console. Aperture sends this key as a static credential and does not sign requests with AWS SigV4 or generate temporary credentials.

Configure the providers

Add Amazon Bedrock Mantle to your Aperture configuration. Mantle URLs are region-specific, using the format https://bedrock-mantle.<region>.api.aws. Configure each API format as its own provider entry, because the two endpoints use different paths, authorization types, and compatibility flags. Both entries use the same Bedrock API key.

Model names on Mantle carry no region prefix. Confirm the exact name and the endpoint that serves it on the model's card in the Amazon Bedrock model documentation.

List each model in the models array by its exact name. Wildcards do not work: claude-opus-* matches nothing. To serve more than one model, add each full name to the array.

Anthropic Claude models

Configure Mantle's /anthropic endpoint to serve Claude models:

{
  "providers": {
    "bedrock-mantle-anthropic": {
      "baseurl": "https://bedrock-mantle.us-east-1.api.aws/anthropic",
      "apikey": "<your-bedrock-api-key>",
      "authorization": "x-api-key",
      "name": "Bedrock Mantle (Anthropic)",
      "models": [
        "anthropic.claude-opus-4-8",
        "anthropic.claude-opus-4-7",
        "anthropic.claude-haiku-4-5"
      ],
      "cost_basis": "bedrock-us",
      "compatibility": {
        "anthropic_messages": true
      }
    }
  }
}

Replace <your-bedrock-api-key> with your Bedrock API key.

The configuration fields work as follows:

  • baseurl ends with /anthropic and omits /v1. Aperture appends the incoming request path to this base, producing the upstream URL https://bedrock-mantle.us-east-1.api.aws/anthropic/v1/messages.
  • authorization is set to x-api-key because the Mantle Anthropic endpoint expects the Bedrock API key in an x-api-key header rather than a bearer token. Aperture also sets the required anthropic-version header when you use this authorization type.
  • anthropic_messages tells Aperture to use the Anthropic Messages API format instead of the default OpenAI chat completions format.
  • cost_basis is set to bedrock-us so Aperture prices requests at AWS Bedrock US rates. Use bedrock-eu or bedrock-ap for those geographies. Set this field explicitly, because Aperture would otherwise infer anthropic pricing from the compatibility flag and report direct Anthropic API rates.

Not every Claude model is available on Mantle. Check the Endpoints supported row on the model's card before you add it to models.

OpenAI GPT models

Configure Mantle's /openai endpoint to serve GPT models as a second provider entry:

{
  "providers": {
    "bedrock-mantle-openai": {
      "baseurl": "https://bedrock-mantle.us-east-1.api.aws/openai",
      "apikey": "<your-bedrock-api-key>",
      "name": "Bedrock Mantle (OpenAI)",
      "models": [
        "openai.gpt-5.6-sol",
        "openai.gpt-5.6-terra",
        "openai.gpt-5.6-luna"
      ],
      "cost_basis": "bedrock-us",
      "compatibility": {
        "openai_chat": true,
        "openai_responses": true
      }
    }
  }
}

This entry differs from the Anthropic provider as follows:

  • baseurl ends with /openai instead of /anthropic, producing upstream URLs such as https://bedrock-mantle.us-east-1.api.aws/openai/v1/chat/completions.
  • authorization is omitted, so Aperture uses the default bearer type. The Mantle OpenAI endpoint expects the Bedrock API key as a bearer token.
  • openai_responses enables the Responses API, which tools like OpenAI Codex use. When you include a compatibility block, set both flags explicitly. Without a compatibility block, Aperture enables only openai_chat by default.
  • cost_basis is set to bedrock-us for the same reason as the Anthropic entry. Without it, Aperture infers openai pricing and reports direct OpenAI API rates.

Mantle serves some models at the default /v1 path rather than /openai/v1. To serve those models, add a third provider entry with baseurl set to https://bedrock-mantle.<region>.api.aws and the same authorization and compatibility settings. The endpoint URL on each model's card tells you which path applies.

Refer to the provider compatibility reference for the full list of flags.

Do not include /v1 in either Mantle baseurl. AWS documents the OpenAI base URL as https://bedrock-mantle.<region>.api.aws/openai/v1, but Aperture appends the incoming request path, so including /v1 produces the incorrect upstream URL https://bedrock-mantle.<region>.api.aws/openai/v1/v1/chat/completions. Refer to how Aperture builds upstream URLs for details.

By default, Aperture injects the configured apikey on every request to Bedrock Mantle. To forward each client's own credential to Mantle instead, set auth_mode: "passthrough" on the provider. The client then supplies its own Bedrock API key. Refer to Set up passthrough mode for the full configuration.

Verify the provider

Administrators can test a connection to a specific model from the Models page of the Aperture admin dashboard.

  1. Open the Aperture admin dashboard at /admin/ and select Administration > Models.
  2. Find the model you want to test in the list of configured models. If the model is not listed, check your provider configuration and ensure the model name is correct.
  3. Select the Play icon to the left of the model name to send a test request. If the request succeeds, the icon changes to a green check mark. If it fails, the icon changes to a red "X".

Aperture sends a test request through the configured provider. This tests the gateway's provider configuration, not a separate client's credentials or another user's grants.

Next steps