Skip to main content

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

Edit .env with your configuration. See Environment Variables for the full reference.
4

Start the server

You should see:

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
For production, set DATABASE_PATH to a persistent volume.

Deployment

Railway

The repository includes railway.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 run npm start.