anomalyco / anomalyco/opencode
Amazon Bedrock Grok 4.6 is routed through Mantle and fails with "The model does not exist"
Open
@kitlangton is already working on this.
Since Aug 19, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
OpenCode Desktop lists Amazon Bedrock Grok 4.6 (xai.grok-4.6) but invoking it fails:
AI_APICallError: The model 'xai.grok-4.6' does not exist
Changing the cache ID to us.xai.grok-4.6 still fails while OpenCode keeps using the Mantle adapter:
@ai-sdk/amazon-bedrock/mantle
https://bedrock-mantle.${AWS_REGION}.api.aws/openai/v1
That same profile works through native Bedrock Runtime:
aws bedrock-runtime converse --model-id us.xai.grok-4.6
Grok 4.3 works on Mantle. Grok 4.6 requires native Bedrock (@ai-sdk/amazon-bedrock) plus an inference profile (us.xai.grok-4.6 or global.xai.grok-4.6).
Expected: Use native Bedrock Runtime for Grok 4.6, or only list it if Mantle actually supports it.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.