Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
Sichere ProgrammierungThe Model Got Better. Your Judgment Got Worse.(22.09.2026 um 03:02 Uhr)
Sichere ProgrammierungAIFeed - signed content permissions for AI web crawlers(22.09.2026 um 03:10 Uhr)
Sichere ProgrammierungThanks, glad you liked it!(22.09.2026 um 03:15 Uhr)
Sichere ProgrammierungA request for /.env shouldn't render your React app(22.09.2026 um 03:17 Uhr)
Sichere ProgrammierungAI-Agent Marketplaces Need Verifiable Delivery, Not More Listings(22.09.2026 um 03:20 Uhr)
AI & KI NachrichtenBeyond Bigger Models: Toward a Modular Cognitive Architecture(22.09.2026 um 03:21 Uhr)
Sichere ProgrammierungMasa Depan Manajemen Data: Mengenal Konsep Data Mesh yang Revolusioner(22.09.2026 um 03:22 Uhr)
Sichere ProgrammierungHow to Search Your Claude Code Conversation History(22.09.2026 um 03:22 Uhr)
Sichere ProgrammierungThe Model Got Better. Your Judgment Got Worse.(22.09.2026 um 03:02 Uhr)
Sichere ProgrammierungAIFeed - signed content permissions for AI web crawlers(22.09.2026 um 03:10 Uhr)
Sichere ProgrammierungThanks, glad you liked it!(22.09.2026 um 03:15 Uhr)
Sichere ProgrammierungA request for /.env shouldn't render your React app(22.09.2026 um 03:17 Uhr)
Sichere ProgrammierungAI-Agent Marketplaces Need Verifiable Delivery, Not More Listings(22.09.2026 um 03:20 Uhr)
AI & KI NachrichtenBeyond Bigger Models: Toward a Modular Cognitive Architecture(22.09.2026 um 03:21 Uhr)
Sichere ProgrammierungMasa Depan Manajemen Data: Mengenal Konsep Data Mesh yang Revolusioner(22.09.2026 um 03:22 Uhr)
Sichere ProgrammierungHow to Search Your Claude Code Conversation History(22.09.2026 um 03:22 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

Bedrock for AI Coding Tools: Mantle vs Gateway vs LiteLLM — A Decision Guide for AWS Credit Burners

You have AWS credits. You want to use them on AI coding tools — OpenCode, Codex CLI, Claude Code, whatever. Amazon Bedrock has the models. But how do you actually connect them? There are three approaches, and picking the wrong one wastes t…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

You have AWS credits. You want to use them on AI coding tools — OpenCode, Codex CLI, Claude Code, whatever. Amazon Bedrock has the models. But how do you actually connect them?



There are three approaches, and picking the wrong one wastes time. Here's the decision guide I wish I had.




All data in this post is as of March 2026. Model counts and API support may change — check amazonbedrockmodels.github.io for the latest.







TL;DR





  • Just want it to work? Mantle + OpenCode. Five minutes, zero infra.


  • Need Claude models via OpenAI API? bedrock-access-gateway on Lambda.


  • Need Claude Code specifically? LiteLLM. It's the only path.


  • Codex CLI? Broken with all three. Wait for LiteLLM to fix a tool translation bug.






The three paths



Decision flowchart: Mantle vs bedrock-access-gateway vs LiteLLM



One thing all three have in common: your API keys and code context stay within your AWS account or your own infrastructure. Third-party AI gateways exist (Bifrost, Portkey, etc.), but they require routing your Bedrock API keys and code context through someone else's servers. Self-hosted or AWS-native — that's the baseline.






1. Bedrock Mantle — no self-hosted infra required



Mantle is AWS's native OpenAI-compatible endpoint. No Lambda, no container, no proxy — just set your base URL and API key:




export OPENAI_BASE_URL="https://bedrock-mantle.us-east-1.api.aws/v1"
export OPENAI_API_KEY="your-bedrock-api-key"






What's on Mantle: 38 open-weight models — DeepSeek, Mistral, Qwen, GLM, NVIDIA Nemotron, MiniMax, Moonshot Kimi, Google Gemma, OpenAI gpt-oss, and Writer Palmyra.



What's NOT on Mantle: Anthropic Claude, Amazon Nova, Meta Llama, AI21, Cohere — the proprietary/first-party models are absent.



API coverage: Mantle exposes Chat Completions (/v1/chat/completions) and Responses API (/v1/responses). No Anthropic Messages API (/v1/messages).



The Responses API is limited — only 4 models support it: openai.gpt-oss-120b-1:0, openai.gpt-oss-20b-1:0, openai.gpt-oss-120b, and openai.gpt-oss-20b. Every other model is Chat Completions only. I verified this by scraping all 102 model card pages in the AWS documentation.



Cost: Standard Bedrock on-demand pricing. No gateway markup, no infra costs.



Best for: OpenCode or any tool that speaks OpenAI Chat Completions.






2. bedrock-access-gateway — self-hosted, all models



bedrock-access-gateway (or my fork, bedrock-access-gateway-function-url) gives you an OpenAI-compatible proxy backed by all Bedrock models — including Claude, Nova, and Llama.



Deploy it as a Lambda Function URL or on ECS, and you get:




export OPENAI_BASE_URL="https://your-lambda-url.lambda-url.us-west-2.on.aws/api/v1"
export OPENAI_API_KEY="your-gateway-api-key"






The tradeoff: you maintain infrastructure. But you get access to every Bedrock model through a single OpenAI-compatible endpoint.



Cost: Bedrock on-demand pricing + Lambda/ECS compute costs (minimal for Lambda Function URLs — you pay per invocation).



Best for: When you need Claude or Nova through OpenAI-compatible tools, or want full control over routing, caching, and logging.






3. LiteLLM — the universal translator



LiteLLM is the Swiss Army knife. It translates between API schemas — OpenAI, Anthropic, Bedrock native, and more. It's the only option that gives you Anthropic Messages API (/v1/messages) compatibility with Bedrock models.



This matters because Claude Code uses the Anthropic API schema, not OpenAI's. If you want to run Claude Code against Bedrock, LiteLLM is your best (and arguably only) option. I tested this end-to-end: Claude Code CLI → LiteLLM → Bedrock Converse API — it works, including streaming responses.



Is it perfect? No. Setup is more complex (Python process or Docker container, optional PostgreSQL for analytics), and you're adding another layer of abstraction. But it's the most flexible gateway available.



Cost: Bedrock on-demand pricing + your compute costs for hosting LiteLLM. No per-call markup from LiteLLM itself (open source).



Best for: Claude Code, or when you need both OpenAI and Anthropic API compatibility from a single proxy.






Tool compatibility matrix




































Tool API Schema Mantle bedrock-access-gateway LiteLLM
OpenCode OpenAI Chat
Codex CLI OpenAI Responses ❌ Auth issues ❌ No Responses API ⚠️ Tool bug
Claude Code Anthropic Messages ❌ No support ❌ Wrong schema


Note: Anthropic-native tools like Kiro CLI also work through LiteLLM's Anthropic Messages API translation.






A note on Codex CLI



Codex CLI requires the Responses API (/v1/responses), which limits your options:





  • Mantle: Only the 4 OpenAI gpt-oss models support Responses API. Even with those, I hit 401 auth errors (Bearer token not passed correctly through Codex's HTTPS transport) and tool type rejections (web_search type not supported — only function and mcp).


  • bedrock-access-gateway: No Responses API at all — /v1/responses returns 404. The gateway only implements Chat Completions.


  • LiteLLM: Supports Responses API (v1.66.3+) and has an official Codex CLI tutorial. However, as of v1.82.5, there's a tool translation bug: Codex CLI sends built-in tool types that LiteLLM converts to Bedrock Converse format with empty toolSpec.name fields, causing Bedrock validation errors. The Responses API itself works fine when tested with standard function tools. This should be fixable on the LiteLLM side.






Quick setup: OpenCode + Mantle



If you just want to burn AWS credits on a coding CLI today, here's the fastest path. OpenCode (v1.2.27+) works with Mantle out of the box:




{
"$schema": "https://opencode.ai/config.json",
"provider": {
"bedrock-mantle": {
"npm": "@ai-sdk/openai-compatible",
"name": "Bedrock Mantle",
"options": {
"baseURL": "https://bedrock-mantle.us-east-1.api.aws/v1",
"apiKey": "{env:BEDROCK_API_KEY}"
},
"models": {
"openai.gpt-oss-120b": { "name": "GPT OSS 120B" },
"zai.glm-5": { "name": "GLM 5 (744B/40B MoE)" },
"qwen.qwen3-coder-480b-a35b-instruct": { "name": "Qwen3 Coder 480B" },
"deepseek.v3.2": { "name": "DeepSeek V3.2" },
"mistral.mistral-large-3-675b-instruct": { "name": "Mistral Large 3" }
}
}
},
"model": "bedrock-mantle/openai.gpt-oss-120b"
}






Save to ~/.config/opencode/opencode.json, set BEDROCK_API_KEY, and you're coding.






The bottom line










































































Mantle bedrock-access-gateway LiteLLM
Infra to maintain None Lambda/ECS Container/process
Models available 38 (open-weight) All Bedrock All Bedrock
OpenAI Chat API
OpenAI Responses API ⚠️ gpt-oss only
Anthropic Messages API
OpenCode
Codex CLI ⚠️ Tool bug
Claude Code
Extra cost None ~$0 (Lambda) Your compute
Setup time 5 min 30 min 1 hr





Track available Mantle models



I maintain amazonbedrockmodels.github.io — a catalog of every Bedrock model with API support badges and endpoint support (Mantle vs Runtime), scraped from the AWS documentation.






Burning AWS credits on something interesting? I'd love to hear what tools and models you're using — drop a comment.

comment.*

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Bedrock for AI Coding Tools: Mantle vs Gateway vs LiteLLM — A Decision Guide for AWS Credit Burners

Thematisch verwandte Begriffe: Bedrock, Coding, Tools, Mantle · 6 Treffer

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-49449 | Joplin is an open source note-taking and to-do application that organise…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick