mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-25 08:41:16 +00:00
* fix(anthropic): add claude-fable-5 to CLI allowlist, aliases, labels, and context window CLI path was missing claude-fable-5 across all four metadata layers while the direct Anthropic provider path in register.runtime.ts already had full support via isAnthropicFable5Model() / resolveAnthropicFixedContextWindow(). - CLAUDE_CLI_DEFAULT_ALLOWLIST_REFS: add claude-cli/claude-fable-5 - CLAUDE_CLI_MODEL_ALIASES: add fable/fable-5/claude-fable-5 mappings - CLAUDE_CLI_CONTEXT_WINDOWS: add claude-fable-5 -> 1_000_000 (was falling back to 200K) - CLAUDE_CLI_MODEL_LABELS: add Claude Fable 5 (Claude CLI) - resolveClaudeCliImageMediaInput: add fable-5 to 2576 max-side tier Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * fix(anthropic): route fable alias through context/model-ref canonicalization paths * fix(agent): include claude-cli in fable-5/mythos-5 fixed context window resolution * fix(anthropic): add claude-fable-5 to static CLI manifest catalog * test(anthropic): cover fable-5 alias canonicalization in bare and provider-qualified forms * style(anthropic): fix indentation in plugin manifest * fix(anthropic): publish Fable CLI output limit --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Co-authored-by: Peter Steinberger <steipete@gmail.com>
353 lines
11 KiB
JSON
353 lines
11 KiB
JSON
{
|
|
"id": "anthropic",
|
|
"name": "Anthropic",
|
|
"description": "Anthropic models, Claude CLI, and native Claude session catalog.",
|
|
"icon": "https://cdn.simpleicons.org/anthropic",
|
|
"activation": {
|
|
"onStartup": true
|
|
},
|
|
"enabledByDefault": true,
|
|
"providers": ["anthropic"],
|
|
"providerUsageAuthEnvVars": {
|
|
"anthropic": ["ANTHROPIC_ADMIN_KEY", "ANTHROPIC_ADMIN_API_KEY"]
|
|
},
|
|
"providerCatalogEntry": "./provider-discovery.ts",
|
|
"modelCatalog": {
|
|
"runtimeAugment": true,
|
|
"providers": {
|
|
"claude-cli": {
|
|
"models": [
|
|
{
|
|
"id": "claude-sonnet-5",
|
|
"name": "Claude Sonnet 5 (Claude CLI)",
|
|
"reasoning": true,
|
|
"input": ["text", "image"],
|
|
"mediaInput": {
|
|
"image": { "maxSidePx": 2576, "preferredSidePx": 2576, "tokenMode": "provider" }
|
|
},
|
|
"contextWindow": 1000000,
|
|
"maxTokens": 128000
|
|
},
|
|
{
|
|
"id": "claude-fable-5",
|
|
"name": "Claude Fable 5 (Claude CLI)",
|
|
"reasoning": true,
|
|
"input": ["text", "image"],
|
|
"mediaInput": {
|
|
"image": { "maxSidePx": 2576, "preferredSidePx": 2576, "tokenMode": "provider" }
|
|
},
|
|
"contextWindow": 1000000,
|
|
"maxTokens": 128000
|
|
},
|
|
{
|
|
"id": "claude-opus-4-8",
|
|
"name": "Claude Opus 4.8 (Claude CLI)",
|
|
"reasoning": true,
|
|
"input": ["text", "image"],
|
|
"mediaInput": {
|
|
"image": { "maxSidePx": 2576, "preferredSidePx": 2576, "tokenMode": "provider" }
|
|
},
|
|
"contextWindow": 200000,
|
|
"maxTokens": 128000
|
|
},
|
|
{
|
|
"id": "claude-opus-4-7",
|
|
"name": "Claude Opus 4.7 (Claude CLI)",
|
|
"reasoning": true,
|
|
"input": ["text", "image"],
|
|
"mediaInput": {
|
|
"image": { "maxSidePx": 2576, "preferredSidePx": 2576, "tokenMode": "provider" }
|
|
},
|
|
"contextWindow": 200000,
|
|
"maxTokens": 128000
|
|
},
|
|
{
|
|
"id": "claude-sonnet-4-6",
|
|
"name": "Claude Sonnet 4.6 (Claude CLI)",
|
|
"reasoning": true,
|
|
"input": ["text", "image"],
|
|
"mediaInput": {
|
|
"image": { "maxSidePx": 1568, "preferredSidePx": 1568, "tokenMode": "provider" }
|
|
},
|
|
"contextWindow": 200000,
|
|
"maxTokens": 128000
|
|
},
|
|
{
|
|
"id": "claude-opus-4-6",
|
|
"name": "Claude Opus 4.6 (Claude CLI)",
|
|
"reasoning": true,
|
|
"input": ["text", "image"],
|
|
"mediaInput": {
|
|
"image": { "maxSidePx": 1568, "preferredSidePx": 1568, "tokenMode": "provider" }
|
|
},
|
|
"contextWindow": 200000,
|
|
"maxTokens": 128000
|
|
}
|
|
]
|
|
},
|
|
"anthropic": {
|
|
"baseUrl": "https://api.anthropic.com",
|
|
"api": "anthropic-messages",
|
|
"defaultUtilityModel": "claude-haiku-4-5",
|
|
"models": [
|
|
{
|
|
"id": "claude-fable-5",
|
|
"name": "Claude Fable 5",
|
|
"reasoning": true,
|
|
"input": ["text", "image"],
|
|
"mediaInput": {
|
|
"image": { "maxSidePx": 2576, "preferredSidePx": 2576, "tokenMode": "provider" }
|
|
},
|
|
"cost": { "input": 10, "output": 50, "cacheRead": 1, "cacheWrite": 12.5 },
|
|
"contextWindow": 1000000,
|
|
"maxTokens": 128000,
|
|
"thinkingLevelMap": {
|
|
"off": "low",
|
|
"minimal": "low",
|
|
"xhigh": "xhigh",
|
|
"max": "max"
|
|
}
|
|
},
|
|
{
|
|
"id": "claude-sonnet-5",
|
|
"name": "Claude Sonnet 5",
|
|
"reasoning": true,
|
|
"input": ["text", "image"],
|
|
"mediaInput": {
|
|
"image": { "maxSidePx": 2576, "preferredSidePx": 2576, "tokenMode": "provider" }
|
|
},
|
|
"cost": { "input": 2, "output": 10, "cacheRead": 0.2, "cacheWrite": 2.5 },
|
|
"contextWindow": 1000000,
|
|
"maxTokens": 128000,
|
|
"thinkingLevelMap": {
|
|
"xhigh": "xhigh",
|
|
"max": "max"
|
|
}
|
|
},
|
|
{
|
|
"id": "claude-mythos-5",
|
|
"name": "Claude Mythos 5",
|
|
"reasoning": true,
|
|
"input": ["text", "image"],
|
|
"mediaInput": {
|
|
"image": { "maxSidePx": 2576, "preferredSidePx": 2576, "tokenMode": "provider" }
|
|
},
|
|
"cost": { "input": 10, "output": 50, "cacheRead": 1, "cacheWrite": 12.5 },
|
|
"contextWindow": 1000000,
|
|
"maxTokens": 128000,
|
|
"thinkingLevelMap": {
|
|
"off": "low",
|
|
"minimal": "low",
|
|
"xhigh": "xhigh",
|
|
"max": "max"
|
|
}
|
|
},
|
|
{
|
|
"id": "claude-opus-4-8",
|
|
"name": "Claude Opus 4.8",
|
|
"reasoning": true,
|
|
"input": ["text", "image"],
|
|
"mediaInput": {
|
|
"image": { "maxSidePx": 2576, "preferredSidePx": 2576, "tokenMode": "provider" }
|
|
},
|
|
"contextWindow": 1000000,
|
|
"maxTokens": 128000
|
|
},
|
|
{
|
|
"id": "claude-opus-4-7",
|
|
"name": "Claude Opus 4.7",
|
|
"reasoning": true,
|
|
"input": ["text", "image"],
|
|
"mediaInput": {
|
|
"image": { "maxSidePx": 2576, "preferredSidePx": 2576, "tokenMode": "provider" }
|
|
},
|
|
"contextWindow": 1000000,
|
|
"maxTokens": 128000
|
|
},
|
|
{
|
|
"id": "claude-haiku-4-5",
|
|
"name": "Claude Haiku 4.5",
|
|
"reasoning": true,
|
|
"input": ["text", "image"],
|
|
"mediaInput": {
|
|
"image": { "maxSidePx": 1568, "preferredSidePx": 1568, "tokenMode": "provider" }
|
|
},
|
|
"contextWindow": 200000,
|
|
"maxTokens": 64000
|
|
},
|
|
{
|
|
"id": "claude-haiku-4-5-20251001",
|
|
"name": "Claude Haiku 4.5",
|
|
"reasoning": true,
|
|
"input": ["text", "image"],
|
|
"mediaInput": {
|
|
"image": { "maxSidePx": 1568, "preferredSidePx": 1568, "tokenMode": "provider" }
|
|
},
|
|
"contextWindow": 200000,
|
|
"maxTokens": 64000
|
|
},
|
|
{
|
|
"id": "claude-sonnet-4-6",
|
|
"name": "Claude Sonnet 4.6",
|
|
"reasoning": true,
|
|
"input": ["text", "image"],
|
|
"mediaInput": {
|
|
"image": { "maxSidePx": 1568, "preferredSidePx": 1568, "tokenMode": "provider" }
|
|
},
|
|
"contextWindow": 1000000,
|
|
"maxTokens": 128000
|
|
},
|
|
{
|
|
"id": "claude-opus-4-6",
|
|
"name": "Claude Opus 4.6",
|
|
"reasoning": true,
|
|
"input": ["text", "image"],
|
|
"mediaInput": {
|
|
"image": { "maxSidePx": 1568, "preferredSidePx": 1568, "tokenMode": "provider" }
|
|
},
|
|
"contextWindow": 1000000,
|
|
"maxTokens": 128000
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"discovery": {
|
|
"claude-cli": "static",
|
|
"anthropic": "static"
|
|
}
|
|
},
|
|
"modelSupport": {
|
|
"modelPrefixes": ["claude-"]
|
|
},
|
|
"modelIdNormalization": {
|
|
"providers": {
|
|
"anthropic": {
|
|
"aliases": {
|
|
"opus-4.8": "claude-opus-4-8",
|
|
"opus": "claude-opus-4-8",
|
|
"opus-4.6": "claude-opus-4-6",
|
|
"mythos-5": "claude-mythos-5",
|
|
"sonnet-5": "claude-sonnet-5",
|
|
"sonnet": "claude-sonnet-5",
|
|
"sonnet-4.6": "claude-sonnet-4-6"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"modelPricing": {
|
|
"providers": {
|
|
"anthropic": {
|
|
"openRouter": {
|
|
"modelIdTransforms": ["version-dots"]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"providerEndpoints": [
|
|
{
|
|
"endpointClass": "anthropic-public",
|
|
"hosts": ["api.anthropic.com"]
|
|
}
|
|
],
|
|
"providerRequest": {
|
|
"providers": {
|
|
"anthropic": {
|
|
"family": "anthropic"
|
|
}
|
|
}
|
|
},
|
|
"cliBackends": ["claude-cli"],
|
|
"syntheticAuthRefs": ["claude-cli"],
|
|
"nonSecretAuthMarkers": ["openclaw:claude-cli-api-key-helper"],
|
|
"setup": {
|
|
"providers": [
|
|
{
|
|
"id": "anthropic",
|
|
"envVars": ["ANTHROPIC_OAUTH_TOKEN", "ANTHROPIC_API_KEY"]
|
|
}
|
|
]
|
|
},
|
|
"providerAuthChoices": [
|
|
{
|
|
"provider": "anthropic",
|
|
"method": "cli",
|
|
"choiceId": "anthropic-cli",
|
|
"deprecatedChoiceIds": ["claude-cli"],
|
|
"choiceLabel": "Anthropic Claude CLI",
|
|
"choiceHint": "Keep using an existing Claude Code CLI login on this host",
|
|
"assistantPriority": -20,
|
|
"groupId": "anthropic",
|
|
"groupLabel": "Anthropic",
|
|
"groupHint": "Claude CLI + API key",
|
|
"onboardingFeatured": true
|
|
},
|
|
{
|
|
"provider": "anthropic",
|
|
"method": "setup-token",
|
|
"choiceId": "setup-token",
|
|
"appGuidedSecret": true,
|
|
"choiceLabel": "Anthropic setup-token",
|
|
"choiceHint": "Token created by running 'claude setup-token' in your terminal",
|
|
"assistantPriority": 40,
|
|
"groupId": "anthropic",
|
|
"groupLabel": "Anthropic",
|
|
"groupHint": "Claude CLI + API key + token",
|
|
"onboardingFeatured": true
|
|
},
|
|
{
|
|
"provider": "anthropic",
|
|
"method": "api-key",
|
|
"choiceId": "apiKey",
|
|
"appGuidedSecret": true,
|
|
"choiceLabel": "Anthropic API key",
|
|
"groupId": "anthropic",
|
|
"groupLabel": "Anthropic",
|
|
"groupHint": "Claude CLI + API key",
|
|
"onboardingFeatured": true,
|
|
"optionKey": "anthropicApiKey",
|
|
"cliFlag": "--anthropic-api-key",
|
|
"cliOption": "--anthropic-api-key <key>",
|
|
"cliDescription": "Anthropic API key"
|
|
}
|
|
],
|
|
"contracts": {
|
|
"mediaUnderstandingProviders": ["anthropic"],
|
|
"usageProviders": ["anthropic"]
|
|
},
|
|
"mediaUnderstandingProviderMetadata": {
|
|
"anthropic": {
|
|
"capabilities": ["image"],
|
|
"defaultModels": {
|
|
"image": "claude-opus-4-8"
|
|
},
|
|
"autoPriority": {
|
|
"image": 20
|
|
},
|
|
"nativeDocumentInputs": ["pdf"]
|
|
}
|
|
},
|
|
"configSchema": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"sessionCatalog": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"enabled": { "type": "boolean", "default": true }
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"uiHints": {
|
|
"sessionCatalog": {
|
|
"label": "Native Session Discovery",
|
|
"help": "Controls whether Claude Code sessions from this Gateway and paired nodes appear in the sidebar. Disabling also removes this host's paired-node catalog commands without disabling Anthropic models or the Claude CLI backend. Node-list failures usually indicate a Gateway pairing-store or node-registry problem; verify Settings > Devices or run openclaw nodes list. Changes require a Gateway restart."
|
|
},
|
|
"sessionCatalog.enabled": {
|
|
"label": "Discover Claude Code Sessions",
|
|
"help": "List native Claude Code sessions in the sidebar from this Gateway and eligible paired nodes."
|
|
}
|
|
}
|
|
}
|