Gateway & Configuration
The Gateway is the core of Jarvis, managing connections between channels and AI models.
What is the Gateway?
The Gateway is a single process that:
- •Connects all your messaging channels (WhatsApp, Telegram, Discord, etc.)
- •Routes messages to the appropriate AI model
- •Manages sessions and conversation context
- •Provides the web dashboard interface
Starting the Gateway
Start normally:
jarvis gatewayStart as daemon:
jarvis gateway --daemonCustom port:
jarvis gateway --port 18790Configuration
~/.jarvis/openclaw.json:
{
"gateway": {
"port": 18789,
"bind": "loopback",
"auth": {
"mode": "token",
"token": "your-secure-token"
}
},
"agents": {
"defaults": {
"model": "ollama/llama3.2",
"workspace": "~/.jarvis/workspace"
}
},
"channels": {
"whatsapp": {
"dmPolicy": "pairing"
}
}
}Use jarvis configure for interactive configuration.
Network Configuration
Bind Modes
loopbackOnly accessible from localhost (default, most secure)
lanAccessible from local network
tailnetAccessible via Tailscale VPN
Authentication
Protect your Gateway with token or password authentication:
export JARVIS_GATEWAY_TOKEN=your-secure-tokenRemote Access
Access your Gateway remotely via SSH tunneling or Tailscale for secure connections.
Environment Variables
JARVIS_CONFIG_DIRConfig directory (default: ~/.jarvis)
JARVIS_GIT_DIRSource code location (default: ~/jarvis)
OLLAMA_HOSTOllama server address (default: 127.0.0.1:11434)
JARVIS_GATEWAY_PORTGateway port (default: 18789)
Diagnostics
jarvis doctor# Run health checkjarvis status# Check gateway statusjarvis logs# View gateway logs