{
  "title": "Amazon Bedrock",
  "content": "OpenClaw can use **Amazon Bedrock** models via pi‑ai’s **Bedrock Converse**\nstreaming provider. Bedrock auth uses the **AWS SDK default credential chain**,\nnot an API key.\n\n## What pi‑ai supports\n\n* Provider: `amazon-bedrock`\n* API: `bedrock-converse-stream`\n* Auth: AWS credentials (env vars, shared config, or instance role)\n* Region: `AWS_REGION` or `AWS_DEFAULT_REGION` (default: `us-east-1`)\n\n## Automatic model discovery\n\nIf AWS credentials are detected, OpenClaw can automatically discover Bedrock\nmodels that support **streaming** and **text output**. Discovery uses\n`bedrock:ListFoundationModels` and is cached (default: 1 hour).\n\nConfig options live under `models.bedrockDiscovery`:\n\n* `enabled` defaults to `true` when AWS credentials are present.\n* `region` defaults to `AWS_REGION` or `AWS_DEFAULT_REGION`, then `us-east-1`.\n* `providerFilter` matches Bedrock provider names (for example `anthropic`).\n* `refreshInterval` is seconds; set to `0` to disable caching.\n* `defaultContextWindow` (default: `32000`) and `defaultMaxTokens` (default: `4096`)\n  are used for discovered models (override if you know your model limits).\n\n1. Ensure AWS credentials are available on the **gateway host**:\n\n```bash theme={null}\nexport AWS_ACCESS_KEY_ID=\"AKIA...\"\nexport AWS_SECRET_ACCESS_KEY=\"...\"\nexport AWS_REGION=\"us-east-1\"",
  "code_samples": [
    {
      "code": "Notes:\n\n* `enabled` defaults to `true` when AWS credentials are present.\n* `region` defaults to `AWS_REGION` or `AWS_DEFAULT_REGION`, then `us-east-1`.\n* `providerFilter` matches Bedrock provider names (for example `anthropic`).\n* `refreshInterval` is seconds; set to `0` to disable caching.\n* `defaultContextWindow` (default: `32000`) and `defaultMaxTokens` (default: `4096`)\n  are used for discovered models (override if you know your model limits).\n\n## Setup (manual)\n\n1. Ensure AWS credentials are available on the **gateway host**:",
      "language": "unknown"
    }
  ],
  "headings": [
    {
      "level": "h2",
      "text": "What pi‑ai supports",
      "id": "what-pi‑ai-supports"
    },
    {
      "level": "h2",
      "text": "Automatic model discovery",
      "id": "automatic-model-discovery"
    },
    {
      "level": "h2",
      "text": "Setup (manual)",
      "id": "setup-(manual)"
    }
  ],
  "url": "llms-txt#amazon-bedrock",
  "links": []
}