OAR Hub is a NestJS-based application that can be run as a global CLI command. Used as a proxy server between chatGPT and any service with websocket support.
To install OAR Hub globally, run:
npm install -g oar-hub
Recommended to generate the config file first, then run with the config file. Although default config will be used if none is provided.
Generate the config file:
oar-hub config-gen -o /path/to/your/config.env
Then run with the config file (or without it, for default settings):
oar-hub start --config /path/to/your/config.env
For running from the source directory, you can run:
Generate the config file:
npm run cli -- config-gen -o /path/to/your/config.env
Run with the config file:
npm run cli -- start -c /path/to/your/config.env
Create a .env
file with all config variables, then run:
npm run start:dev
For now I don't have ready to use docker image, but you can use docker compose file inside this repository
git clone https://github.com/mishell-trickster/oar-hub.git
cd oar-hub
docker-compose up
docker-compose-yml contains 2 service and all needed environment variables, feel free to change something before start.
HTTPS - is a must have for this application, because chatGPT requires secure connection.