Skip to content

Environment Variables ​

Configure Nexus behavior with environment variables.

Available Variables ​

VariableDescriptionDefault
NEXUS_API_URLAPI endpoint URLhttps://api.nexus.yogan.dev
NEXUS_AUTH_TOKENAuthentication tokenNone
NEXUS_VERBOSEEnable verbose loggingfalse
NEXUS_TIMEOUTRequest timeout (ms)30000

Setting Environment Variables ​

In MCP Configuration ​

json
{
  "mcpServers": {
    "nexus": {
      "command": "nexus",
      "args": ["serve"],
      "env": {
        "NEXUS_VERBOSE": "true"
      }
    }
  }
}

System-wide ​

macOS/Linux:

bash
export NEXUS_VERBOSE=true

Windows:

powershell
$env:NEXUS_VERBOSE = "true"

Authentication Token ​

For automated workflows, you can set an auth token instead of using interactive login:

bash
export NEXUS_AUTH_TOKEN="your-token-here"

Get your token from the Nexus dashboard or by running nexus auth token.

Released under the MIT License.