Using Renovate to update Amazon Bedrock model names

Let's say that you're building an API that interacts with LLMs using Amazon Bedrock, where you're pinning specific models in use:
# config/prod.yaml
model: us.anthropic.claude-opus-4-6-v1And in a lower environment, you use a cheaper model:
# config/dev.yaml
model: us.anthropic.claude-haiku-4-5-20251001-v1:0Manually updating these versions can be a bit annoying to do by hand, and while you could get your favourite AI agent to keep these updated for you, it's also possible to use Renovate for it π
When I started looking at this earlier, I did a bit of digging and found that there's an authenticated Anthropic list models API, as well as a Bedrock-specific ListFoundationModels API call but both of these require authentication, which is a little bit more painful.
Doing some more searching around, I found models.dev which provides a public, unauthenticated API which provides the full lists of models (and their model IDs that we need for Bedrock).
We can write a Custom Datasource with Renovate that then converts the API response to a format Renovate can consume:
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"customDatasources": {
"bedrock": {
"defaultRegistryUrlTemplate": "https://models.dev/api.json",
"transformTemplates": [
"{\"releases\": $each($.`amazon-bedrock`.models, function($v, $k) { $substring($k, 0, $length(\"{{{packageName}}}\")) = \"{{{packageName}}}\" ? {\"version\": $k, \"releaseTimestamp\": $v.release_date, \"isDeprecated\": $v.status = \"deprecated\"} })[]}"
]
}
},
"customManagers": [
{
"customType": "regex",
"managerFilePatterns": [
"/^config\\/.*\\.yaml$/"
],
"matchStrings": [
"(?<currentValue>(?<packageName>[a-z]+\\.anthropic\\.claude-[a-z]+-)\\d[\\w.:-]*)"
],
"datasourceTemplate": "custom.bedrock",
"versioningTemplate": "regex:^[a-z]+\\.anthropic\\.claude-[a-z]+-(?<major>\\d+)(?:-(?<minor>\\d{1,2}))?(?:-(?<patch>\\d{8}))?(?:-v\\d+(?::\\d+)?)?$"
}
]
}With this config, you'll then see that Renovate would propose the following updates:
{
"baseBranch": "",
"config": {
"regex": [
{
"datasourceTemplate": "custom.bedrock",
"deps": [
{
"currentValue": "us.anthropic.claude-haiku-4-5-20251001-v1:0",
"currentVersion": "us.anthropic.claude-haiku-4-5-20251001-v1:0",
"currentVersionAgeInDays": 404,
"currentVersionTimestamp": "2025-10-15T00:00:00.000Z",
"datasource": "custom.bedrock",
"depName": "us.anthropic.claude-haiku-",
"fixedVersion": "us.anthropic.claude-haiku-4-5-20251001-v1:0",
"isSingleVersion": true,
"mostRecentTimestamp": "2026-10-07T00:00:00.000Z",
"packageName": "us.anthropic.claude-haiku-",
"replaceString": "us.anthropic.claude-haiku-4-5-20251001-v1:0",
"updates": [
{
"branchName": "renovate/us.anthropic.claude-haiku-5.x",
"bucket": "major",
"isBreaking": true,
"libYears": 0.9780821917808219,
"newMajor": 5,
"newMinor": 5,
"newPatch": 0,
"newValue": "us.anthropic.claude-haiku-5-5",
"newVersion": "us.anthropic.claude-haiku-5-5",
"newVersionAgeInDays": 47,
"releaseTimestamp": "2026-10-07T00:00:00.000Z",
"updateType": "major"
}
],
"versioning": "regex:^[a-z]+\\.anthropic\\.claude-[a-z]+-(?<major>\\d+)(?:-(?<minor>\\d{1,2}))?(?:-(?<patch>\\d{8}))?(?:-v\\d+(?::\\d+)?)?$",
"warnings": []
}
],
"matchStrings": [
"(?<currentValue>(?<packageName>[a-z]+\\.anthropic\\.claude-[a-z]+-)\\d[\\w.:-]*)"
],
"packageFile": "config/dev.yaml",
"versioningTemplate": "regex:^[a-z]+\\.anthropic\\.claude-[a-z]+-(?<major>\\d+)(?:-(?<minor>\\d{1,2}))?(?:-(?<patch>\\d{8}))?(?:-v\\d+(?::\\d+)?)?$"
},
{
"datasourceTemplate": "custom.bedrock",
"deps": [
{
"currentValue": "us.anthropic.claude-opus-4-6-v1",
"currentVersion": "us.anthropic.claude-opus-4-6-v1",
"currentVersionAgeInDays": 291,
"currentVersionTimestamp": "2026-02-05T00:00:00.000Z",
"datasource": "custom.bedrock",
"depName": "us.anthropic.claude-opus-",
"fixedVersion": "us.anthropic.claude-opus-4-6-v1",
"isSingleVersion": true,
"mostRecentTimestamp": "2026-09-22T00:00:00.000Z",
"packageName": "us.anthropic.claude-opus-",
"replaceString": "us.anthropic.claude-opus-4-6-v1",
"updates": [
{
"branchName": "renovate/us.anthropic.claude-opus-4.x",
"bucket": "non-major",
"isBreaking": false,
"libYears": 0.30684931506849317,
"newMajor": 4,
"newMinor": 8,
"newPatch": 0,
"newValue": "us.anthropic.claude-opus-4-8",
"newVersion": "us.anthropic.claude-opus-4-8",
"newVersionAgeInDays": 179,
"releaseTimestamp": "2026-05-28T00:00:00.000Z",
"updateType": "minor"
},
{
"branchName": "renovate/us.anthropic.claude-opus-5.x",
"bucket": "major",
"isBreaking": true,
"libYears": 0.6273972602739726,
"newMajor": 5,
"newMinor": 5,
"newPatch": 0,
"newValue": "us.anthropic.claude-opus-5-5",
"newVersion": "us.anthropic.claude-opus-5-5",
"newVersionAgeInDays": 62,
"releaseTimestamp": "2026-09-22T00:00:00.000Z",
"updateType": "major"
}
],
"versioning": "regex:^[a-z]+\\.anthropic\\.claude-[a-z]+-(?<major>\\d+)(?:-(?<minor>\\d{1,2}))?(?:-(?<patch>\\d{8}))?(?:-v\\d+(?::\\d+)?)?$",
"warnings": []
}
],
"matchStrings": [
"(?<currentValue>(?<packageName>[a-z]+\\.anthropic\\.claude-[a-z]+-)\\d[\\w.:-]*)"
],
"packageFile": "config/prod.yaml",
"versioningTemplate": "regex:^[a-z]+\\.anthropic\\.claude-[a-z]+-(?<major>\\d+)(?:-(?<minor>\\d{1,2}))?(?:-(?<patch>\\d{8}))?(?:-v\\d+(?::\\d+)?)?$"
}
]
},
"hostname": "TheColonel",
"level": 20,
"logContext": "96f50ff8-6f17-419e-a4d6-823a7b4c12ce",
"msg": "packageFiles with updates",
"name": "renovate",
"pid": 474820,
"repository": "local",
"time": "2026-11-23T16:57:04.747Z",
"v": 0
}As we can see from this, we'd get:
- a major version upgrade for Claude Haiku in
dev - a minor version upgrade for Claude Opus in
prod - a major version upgrade for Claude Opus in
prod
We even get releaseTimestamps, if we wanted to be able to follow minimumReleaseAge to only adopt models after a few days of their general availability.
Thanks to models.dev, and some help from Claude Haiku 5.5 and Claude Opus 5.5, we can now automagically upgrade our Bedrock models, no manual work needed π