https://github.com/wh1isper/bedway
Self-host [bedrock-access-gateway](https://github.com/aws-samples/bedrock-access-gateway)
https://github.com/wh1isper/bedway
Last synced: about 1 month ago
JSON representation
Self-host [bedrock-access-gateway](https://github.com/aws-samples/bedrock-access-gateway)
- Host: GitHub
- URL: https://github.com/wh1isper/bedway
- Owner: Wh1isper
- License: mit
- Created: 2025-01-09T08:07:53.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-03-04T03:00:17.000Z (3 months ago)
- Last Synced: 2025-04-23T20:16:15.578Z (about 1 month ago)
- Language: Python
- Size: 70.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README





# bedway
Self-host and maintained [bedrock-access-gateway](https://github.com/aws-samples/bedrock-access-gateway), which is under [MIT No Attribution License](https://github.com/aws-samples/bedrock-access-gateway/blob/093c6fa586be04964820baaf1e3dca431f1fe823/LICENSE)
Why this project:
- No AWS infrastructure needed
- Improved performance: https://github.com/aws-samples/bedrock-access-gateway/issues/22
- Bug fix and new features: https://github.com/aws-samples/bedrock-access-gateway/issues/92, https://github.com/aws-samples/bedrock-access-gateway/issues/88
- Easy to deploy
- Quick response to community requests## Install
`pip install bedway` then `bedway serve`
Or use docker image
`docker pull wh1isper/bedway`
## Usage
```bash
docker run --name bedway \
-p 9128:9128 \
-e "AWS_ACCESS_KEY_ID=" \
-e "AWS_SECRET_ACCESS_KEY=" \
-e "AWS_REGION=" \
-e "DEFAULT_MODEL_NAME=" \
-e "API_KEY=" \
wh1isper/bedway
```See more settings in [setting.py](./bedway/setting.py)
## Develop
Install pre-commit before commit
```
pip install pre-commit
pre-commit install
```### Unittest
Install package locally
```
pip install -e .[test]
```TODO: Write some test..
```
pytest -v
```