{"id":44367264,"url":"https://github.com/scalecraft-dev/aws-bedrock-gateway","last_synced_at":"2026-02-11T18:39:58.292Z","repository":{"id":280418967,"uuid":"941622513","full_name":"scalecraft-dev/aws-bedrock-gateway","owner":"scalecraft-dev","description":"A gateway for the AWS bedrock service that doesn't suck","archived":false,"fork":false,"pushed_at":"2025-04-09T11:17:46.000Z","size":22,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-09T12:25:37.670Z","etag":null,"topics":["aws-bedrock","chat-application","openwebui"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scalecraft-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-02T18:08:50.000Z","updated_at":"2025-04-09T11:17:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"bd863390-a146-49f7-a15d-5cfa16870133","html_url":"https://github.com/scalecraft-dev/aws-bedrock-gateway","commit_stats":null,"previous_names":["scalecraft-dev/aws-bedrock-gateway"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/scalecraft-dev/aws-bedrock-gateway","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scalecraft-dev%2Faws-bedrock-gateway","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scalecraft-dev%2Faws-bedrock-gateway/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scalecraft-dev%2Faws-bedrock-gateway/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scalecraft-dev%2Faws-bedrock-gateway/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scalecraft-dev","download_url":"https://codeload.github.com/scalecraft-dev/aws-bedrock-gateway/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scalecraft-dev%2Faws-bedrock-gateway/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29341372,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T18:24:36.877Z","status":"ssl_error","status_checked_at":"2026-02-11T18:23:50.867Z","response_time":97,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws-bedrock","chat-application","openwebui"],"created_at":"2026-02-11T18:39:57.595Z","updated_at":"2026-02-11T18:39:58.287Z","avatar_url":"https://github.com/scalecraft-dev.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AWS Bedrock Gateway\n\nAn OpenAI-compatible API gateway for AWS Bedrock, allowing you to use AWS Bedrock models with tools and applications designed for OpenAI's API. Written in Go. Works with OpenWebUI.\n\n## Features\n\n- OpenAI-compatible REST API endpoints\n- Support for Claude 3 and other AWS Bedrock models\n- Streaming support for chat completions\n- Model listing endpoint\n- Automatic handling of model-specific requirements\n\n## Configuration\n\nEnvironment variables:\n\n- `AWS_REGION`: AWS region (default: \"us-east-1\")\n- `PORT`: Server port (default: \"8000\")\n- `DEFAULT_MODEL`: Default model ID (default: \"anthropic.claude-3-sonnet-20240229-v1:0\")\n- `API_ROUTE_PREFIX`: API route prefix (default: \"/api/v1\")\n- `DEBUG`: Enable debug mode (default: false)\n- `ENABLE_CROSS_REGION_INFERENCE`: Enable cross-region inference (default: false)\n\n## Running\n\nThe app uses the AWS SDK for Go, so you need to set up AWS credentials. We use the default [AWS credentials chain](https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html#specifying-credentials).\n\n### Docker\n\n```bash\nexport DOCKER_DEFAULT_PLATFORM=linux/arm64 # This is for Apple Silicon, change to linux/amd64 for Intel\ndocker run -p 8080:8000 -e AWS_REGION=us-east-1 -e DEFAULT_MODEL=anthropic.claude-3-sonnet-20240229-v1:0 scalecraft/aws-bedrock-gateway:latest\n```\n\n### Metal\n\n1. Configure environment variables (optional). The application will load a `.env` file in the root directory if it exists.\n\n```bash\ngo run .\n```\n\n## API Endpoints\n\n### Chat Completions\n\n```bash\nPOST /api/v1/chat/completions\n```\n\nCompatible with OpenAI's chat completions API. Supports both streaming and non-streaming responses.\n\n### List Models\n\n```bash\nGET /api/v1/models\n```\n\nLists available Bedrock models in OpenAI-compatible format.\n\n## Example Usage\n\n```bash\n# Chat completion\ncurl -X POST http://localhost:8000/api/v1/chat/completions \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"model\": \"anthropic.claude-3-sonnet-20240229-v1:0\",\n    \"messages\": [{\"role\": \"user\", \"content\": \"Hello!\"}]\n  }'\n\n# List models\ncurl http://localhost:8000/api/v1/models\n```\n\n## License\n\n[MIT License](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscalecraft-dev%2Faws-bedrock-gateway","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscalecraft-dev%2Faws-bedrock-gateway","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscalecraft-dev%2Faws-bedrock-gateway/lists"}