Prerequisites
- Node.js 18+
- An Ollama instance (for the 8B model) or Hugging Face Inference Endpoint (for 32B)
Setup
1
Clone the repository
2
Install dependencies
3
Configure environment
.env with your configuration. See Environment Variables for the full reference.4
Start the server
API routes
The gateway exposes these endpoints:Database
The gateway uses SQLite by default, stored at./data/mako.db. The database manages:
- User accounts (keyed by wallet address)
- API keys (hashed)
- Credit balances and usage logs
DATABASE_PATH to a persistent volume.
Deployment
Railway
The repository includesrailway.json and nixpacks.toml for one-click Railway deployment:
Docker
Build and run with any container platform:Other platforms
The gateway is a standard Express.js app. It works on Render, Heroku, Fly.io, or any Node.js hosting. Just set the environment variables and runnpm start.