# Set up Amazon Bedrock Mantle

Last validated Aug 18, 2026

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.

\[Missing snippet: aperture\_any\_provider.mdx]

> **Note:**
>
> For the `bedrock-runtime` endpoint and its `InvokeModel` and `Converse` APIs, refer to [Set up Amazon Bedrock][docs-use-amazon-bedrock].

## Prerequisites

Before you begin, you need:

* An Aperture gateway accessible from your device. Refer to [get started with Aperture][docs-aperture-get-started] 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][xt-bedrock-mantle].
* A [Bedrock API key][xt-bedrock-api-keys]. 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][docs-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][xt-bedrock-model-cards].

\[Missing snippet: aperture\_model\_wildcards\_note.mdx]

### Anthropic Claude models

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

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

```json
{
  "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.

> **Note:**
>
> 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][docs-provider-compatibility] for the full list of flags.

> **Warning:**
>
> 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][docs-aperture-url-construction] 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][docs-use-passthrough-mode] for the full configuration.

## Verify the provider

\[Missing snippet: aperture\_verify\_provider.mdx]

\[Missing snippet: aperture\_provider\_next\_steps.mdx]

[docs-aperture-configuration]: /docs/aperture/configuration

[docs-aperture-get-started]: /docs/aperture/get-started

[docs-aperture-url-construction]: /docs/aperture/configuration#how-aperture-builds-upstream-urls

[docs-provider-compatibility]: /docs/aperture/provider-compatibility

[docs-use-amazon-bedrock]: /docs/aperture/how-to/use-amazon-bedrock

[docs-use-passthrough-mode]: /docs/aperture/how-to/use-passthrough-mode

[xt-bedrock-api-keys]: https://docs.aws.amazon.com/bedrock/latest/userguide/api-keys.html

[xt-bedrock-mantle]: https://docs.aws.amazon.com/bedrock/latest/userguide/bedrock-mantle.html

[xt-bedrock-model-cards]: https://docs.aws.amazon.com/bedrock/latest/userguide/models-api-compatibility.html
