Resonix Docs
Website GitHub

Docs / Configuration

Configuration Guide

Resonix uses a JSON-based configuration file. This guide covers all configuration options.

Configuration File

Resonix looks for configuration in these locations (in order of precedence):

Basic Configuration

{
  "gateway": {
    "mode": "local",
    "port": 18789,
    "bind": "loopback"
  },
  "providers": {
    "openai": {
      "apiKey": "${OPENAI_API_KEY}"
    }
  }
}

Gateway Settings

KeyTypeDescription
gateway.modestringOperation mode: "local" or "cloud"
gateway.portnumberPort for gateway server (default: 18789)
gateway.bindstringNetwork binding: "loopback" or "lan"
gateway.auth.tokenstringAuthentication token for API access

Environment Variables

Resonix supports configuration via environment variables:

CLI Configuration

Use the CLI to set configuration values:

resonix config set gateway.port 19000
resonix config set gateway.mode cloud
resonix config get gateway
Tip: Use environment variables for secrets in production to avoid committing sensitive data.