Required
| Variable | Description | Example |
|---|---|---|
MODEL_HOST_URL | Ollama API URL for the 8B model | http://localhost:11434/api/chat |
MODEL_NAME | Model name/path for Ollama | mako |
RunPod (optional)
Set both to enable the 32B Conductor model via RunPod Serverless. When set,model: "conductor" requests are routed to RunPod.
| Variable | Description | Example |
|---|---|---|
RUNPOD_ENDPOINT_ID | RunPod Serverless endpoint ID | abc123def456 |
RUNPOD_API_KEY | RunPod API key | rp_xxxxxxxx |
Server
| Variable | Default | Description |
|---|---|---|
PORT | 3000 | HTTP port for the gateway server |
NODE_ENV | development | Set to production for production mode |
Authentication
| Variable | Default | Description |
|---|---|---|
FREE_MODE | false | When "true", disables auth and credit checks entirely |
JWT_SECRET | — | Secret for JWT token signing |
API_KEY_PREFIX | mako_sk_ | Prefix for generated API keys |
Credits
| Variable | Default | Description |
|---|---|---|
CREDIT_COST_INPUT | 1 | Credits charged per 1,000 input tokens |
CREDIT_COST_OUTPUT | 2 | Credits charged per 1,000 output tokens |
Database
| Variable | Default | Description |
|---|---|---|
DATABASE_PATH | ./data/mako.db | Path to the SQLite database file |
Chain configuration
| Variable | Default | Description |
|---|---|---|
CHAIN_RPC_URL | https://sepolia.base.org | Primary chain RPC URL |
CHAIN_ID | 84532 | Chain ID (84532 = Base Sepolia, 8453 = Base mainnet) |
External APIs
| Variable | Default | Description |
|---|---|---|
FIRECRAWL_API_KEY | — | Firecrawl API key for web search. Falls back to DuckDuckGo if not set. |
Contract addresses
| Variable | Description |
|---|---|
MAKO_TOKEN_ADDRESS | $MAKO token contract address |
MAKO_GATEWAY_ADDRESS | Gateway contract address (for on-chain credit deposits) |