// readme

deepai-gateway

An OpenAI-compatible gateway in front of DeepAI Code. Log in with one or more DeepAI accounts, mint sk- keys with their own limits, and point any OpenAI client at /v1.

Comes with a dashboard: usage statistics, per-model breakdown, recent requests, the model catalog, API-key management - and real multi-user isolation, so several people can share one gateway without seeing each other’s keys or traffic.

Quick start

git clone https://github.com/lavabyte/deepai-gateway.git
cd deepai-gateway
cp .env.example .env
npm install
npm start

That is the whole install. .env is optional - every value in it has a working default - but copying it gives you the settings to edit, and npm start loads it for you.

To update an existing checkout:

git pull
npm install

npm install after a pull is worth running every time: if a dependency changed, this is what picks it up.

Then open the dashboard:

http://<this-host>:8787

It listens on every interface by default (HOST=0.0.0.0), because a gateway is meant to be reached from other machines. There is no dashboard password: access is the DeepAI account you sign in with.…