Dev.to
6/22/2026

Putting an OpenAI-Compatible Gateway in Front of AWS Bedrock
Short summary
Build a gateway translating OpenAI API calls to AWS Bedrock, centralizing auth, rate-limiting, and cost tracking without distributing AWS credentials to developers' machines. Author provides production-tested Node.js/Express implementation with SQLite schema and code samples, deployable in an afternoon. Compares against existing solutions (LiteLLM, AWS sample) to justify custom approach.
- •Gateway bridges OpenAI API format to AWS Bedrock's SigV4 auth, letting teams use preferred tools (Cursor, Continue.dev) against Bedrock
- •Centralizes auth, rate limiting, audit logging, and per-developer cost tracking in one service instead of distributing AWS credentials
- •Complete implementation with db.js, key-creation CLI, and step-by-step setup—production-tested for 12-person team
Generated with AI, which can make mistakes.
Is this a good recommendation for you?



