English / 简体中文
It is a Bedrock client forked from https://github.com/Yidadaa/ChatGPT-Next-Web/
And it was simplified to support AWS Bedrock only.
This project is a sample project intended solely to showcase the process of building a chatting client that connects to LLM models like Claude3 on Bedrock.
It is not a production-ready client, and it should not be used in a production environment without further development and testing.
Download the latest version following the links:
For Windows user, unzip the zip file and then double click the msi file to install.
For Mac user, unzip the zip file and then open the BRClient.app directly.
The Mac App files were signed by a community contributor for your convenience. The signer reserves all rights to the signature, and the signed files are not covered by the open-source licenses of this project.
TBC
After the client was launched, click the gear icon to config your AWS region and credentials. Then you are ready to go.
As the project is still in rapid itelating, we would like to suggest developers to build it their own version following the following steps:
- git clone current project:
git clone https://github.com/aws-samples/sample-client-for-amazon-bedrock.git
- install yarn on your desktop
- go to the project folder
- run
yarn install
to install all the dependences of the project - run
yarn app:dev
to start a desktop app in developer mode. or: runyarn dev
to start a local server and then access the app with browser. - Optional, if you want to run it as an app, run
yarn app:build
to build it, and the find the target file (we believe you can, :-)
To get started with BRClient, you must create an IAM user and generate Access Key/Secret Key. You have two options:
-
Option 1: Use the Managed Policy (Quick Setup)
- Go to Identity and Access Management (IAM) -> Users -> Create User
- Set permissions -> Select "Attach policies directly"
- Choose
AmazonBedrockFullAccess
- Click Next -> Create User
-
Option 2: Set Least-Privilege Permissions
- When setting permissions with IAM policies, grant only the permissions required to perform a task. This is known as least-privilege permissions. Here's an example of least-privilege IAM Permissions for BRClient:
{ "Version": "2012-10-17", "Statement": [ { "Sid": "LeastPrivilege4BRClient", "Effect": "Allow", "Action": [ "bedrock:InvokeModel", "bedrock:InvokeModelWithResponseStream" ], "Resource": "arn:aws:bedrock:*::foundation-model/*" } ] }
- When setting permissions with IAM policies, grant only the permissions required to perform a task. This is known as least-privilege permissions. Here's an example of least-privilege IAM Permissions for BRClient:
For more details about Amazon Bedrock identity-based policy, please visit Link
See CONTRIBUTING for more information.
This library is licensed under the MIT-0 License. See the LICENSE file.