AWS Bedrock to Merge Gateway Migrator
Automates the migration of AWS Bedrock (boto3) API calls to the Merge Gateway SDK for unified LLM management.
This skill streamlines the process of replacing AWS Bedrock implementations with Merge Gateway. It identifies existing Bedrock client instances and methods like invoke_model or converse, maps legacy model IDs to unified formats, and provides automated code transformations for both Python and TypeScript. Whether you prefer an OpenAI-compatible shim or the native Merge Gateway SDK, this tool handles message format conversion, streaming logic, and environment variable updates to ensure a seamless transition between providers.
Key Features
01Dual migration paths: OpenAI SDK compatibility or native Merge Gateway SDK
02Complex logic conversion for streaming responses and message formatting
03Intelligent mapping of Bedrock model IDs to Merge Gateway equivalents
04Environment variable management for replacing AWS credentials with Gateway API keys
05Automated Bedrock usage discovery across Python and TypeScript codebases
060 GitHub stars
Use Cases
01Consolidating multiple AI provider calls into a single unified gateway
02Refactoring legacy boto3 Bedrock code to modern TypeScript or Python SDKs
03Upgrading older LLM versions to newer models during the migration process