Self Host OllamaGateway
Recommended
Run in Docker
First, install Docker. Then run the following commands in a Linux shell:
image=aiursoft/ollamagateway
appName=ollamagateway
sudo docker pull $image
sudo docker run -d --name $appName --restart unless-stopped -p 5000:5000 -v /var/www/$appName:/data $image
That will start a web server at http://localhost:5000 and you can test the app.
The default username is: admin@default.com, and the default password is: admin123.
Container Context
| Property | Value |
|---|---|
| Image | aiursoft/ollamagateway |
| Ports | 5000 |
| Binary path | /app |
| Data path | /data |
| Config path | /data/appsettings.json |
Run in Ubuntu
The following script will install/update this app on your Ubuntu server. Supports Ubuntu 25.04.
curl -sL https://github.com/aiursoftweb/ollamaGateway/raw/master/install.sh | sudo bash
Or with a custom port:
curl -sL https://github.com/aiursoftweb/ollamaGateway/raw/master/install.sh | sudo bash -s 8080
Systemd
/opt/apps
Why local deployment
Keep prompts, API keys, usage logs, and model routing inside your own infrastructure boundary.
This is especially useful when serving a team, internal tools, or autonomous agents over an OpenAI-compatible endpoint.
Development & Manual Run
Prerequisites
Run Manually
- Execute `npm install` in the `wwwroot` folder to install the dependencies.
- Execute `dotnet run` to run the app.
- Visit http://localhost:5000.
Run in Visual Studio
- Open the `.sln` file in the project path.
- Press `F5` to run the app.