Gateway Config¶
Security Policy Defaults¶
Gateway policy defaults live in ~/.euxis/euxis-policy/gateway.json.
Use this file to configure approvals, allowlists, and execution gates.
Reference for the Gateway configuration file.
Example¶
{
"gateway": {
"bind": "127.0.0.1",
"port": 18789,
"health_enabled": true,
"health_path": "/health",
"auth": {
"mode": "token",
"token": {
"value": "replace-with-secure-random-value",
"allow_query_param": false
}
},
"exec": {
"policy": "allowlist",
"ask": "on-miss",
"ask_fallback": "deny",
"elevated": "ask",
"allowlist": [
"architect",
"debugger",
"reviewer"
]
},
"channels": {
"slack": {
"enabled": false,
"mode": "socket",
"token": "",
"app_token": "",
"signing_secret": "",
"events_path": "/channels/slack/events",
"max_length": 3500
},
"telegram": {
"enabled": false,
"mode": "webhook",
"token": "",
"webhook_url": "",
"webhook_path": "/channels/telegram/webhook",
"secret_token": "",
"poll_timeout": 20,
"poll_interval": 1.5,
"max_length": 4000
}
},
"policy": {
"mention_required": true,
"allowlist": []
},
"session": {
"dm_scope": "main",
"account_id": "default"
},
"webhooks": [
{
"url": "https://example.com/hooks/gateway",
"events": ["agent.final", "agent.error"]
}
],
"canvas": {
"enabled": true
},
"voice": {
"enabled": true,
"stt": {
"mode": "manual",
"webhook_url": "",
"command": "",
"auto_inject": true
},
"tts": {
"mode": "manual",
"webhook_url": "",
"command": ""
},
"command_allowlist": [],
"retention_hours": 24
}
}
}
Fields¶
File location: ~/.euxis/euxis-policy/gateway.json
Config Loading Order¶
--config <path>CLI overrideEUXIS_GATEWAY_CONFIGenvironment overrideDefault:
~/.euxis/euxis-policy/gateway.jsonBuilt-in defaults if file is missing
gateway¶
bind(string): interface to bind. Default:127.0.0.1bind(string): address to listen on. Default:127.0.0.1(loopback); to expose the gateway, put an authenticating TLS proxy in front of it. A top-levelhostoverrides it.port(int): HTTP port. Default:8080; a top-levelportoverrides it. WebSocket clients connect on the top-levelws_port(default8081).allowed_origins(array of strings): browser origins (https://...) allowed to open a WebSocket. Default: none, so no web page can connect.health_enabled(bool): expose health endpoint. Default:truehealth_path(string): path for health endpoint. Default:/health
gateway.auth¶
mode(string):tokenorpassword. Default:token
gateway.auth.token¶
value(string): shared token for the Authorization header. Required: the gateway refuses to start when it is missing, shorter than 16 characters, or an unexpanded placeholder such as${EUXIS_E2E_TOKEN}.allow_query_param(bool): allow?token=in WebSocket URL for webchat.
gateway.auth.password¶
value(string): password for basic auth (if enabled).
gateway.exec¶
policy(string):deny,allowlist, orfull.ask(string):off,on-miss,always.ask_fallback(string):deny,allowlist, orfull.elevated(string):off,ask, orfull.allowlist(array): list of agent IDs allowed to execute.
gateway.channels¶
slack.enabled(bool): enable Slack adapter.slack.mode(string):socketorevents.slack.token(string): bot token.slack.app_token(string): socket mode app token.slack.signing_secret(string): signing secret for events verification.slack.events_path(string): HTTP path for Slack Events API.slack.max_length(int): max characters per message chunk.telegram.enabled(bool): enable Telegram adapter.telegram.mode(string):webhookorpoll.telegram.token(string): bot token.telegram.webhook_url(string): webhook endpoint.telegram.webhook_path(string): HTTP path for Telegram webhook.telegram.secret_token(string): shared secret for webhook verification.telegram.poll_timeout(int): long polling timeout (seconds).telegram.poll_interval(float): polling backoff (seconds).telegram.max_length(int): max characters per message chunk.
gateway.policy¶
mention_required(bool): require bot mention in group chats.allowlist(array): allowed sender IDs for group chats.
gateway.session¶
dm_scope(string):main,per-peer,per-channel-peer, orper-account-channel-peer.account_id(string): logical account identifier for multi-account gateways.
gateway.webhooks¶
List of webhook targets (objects with
urlandeventsarray).Runtime updates are persisted to
~/.euxis/data/runtime/gateway/webhooks.json.
gateway.canvas¶
enabled(bool): enable canvas endpoints and UI rendering.
gateway.voice¶
enabled(bool): enable voice endpoints.stt.mode(string):manual,webhook, orcommand.stt.webhook_url(string): POST audio metadata for transcription.stt.command(string): command to run for transcription (supports{audio_path}).stt.auto_inject(bool): inject transcript into agent pipeline.tts.mode(string):manual,webhook, orcommand.tts.webhook_url(string): POST text for synthesis.tts.command(string): command to run for synthesis (supports{text}and{session_id}).command_allowlist(array): allowed command executables for STT/TTS.retention_hours(int): voice data retention in hours.
Notes¶
If
mode = token, clients should sendAuthorization: Bearer <token>.If
mode = password, clients should sendAuthorization: Basic <base64>.