Cortex · Configuration & integration
Configure runtime and channel environment
Use the daemon table, model catalog and routing procedure for core URL, storage, auth and model controls. These additional source-consumed controls are useful for deployments; set secrets through protected configuration, never literal examples in shared logs:
| Area | Controls |
|---|---|
| Seat defaults | PI_DURABLE_SYSTEM1_BACKEND, PI_DURABLE_SYSTEM1_MODE; CORTEX_SEAT_SHELL (after profile shell, before available /bin/zsh or /bin/sh). CORTEX_EXECUTIVE_SEAT selects supervisory executive; CORTEX_OWNER_NAME labels bootstrap owner. |
| Host credential loading | PI_DURABLE_DISABLE_HOST_CONFIG=1 skips loading/refresh; CORTEX_CONFIG_DIR, LINEAR_TOKEN_FILE select delegate configuration/token location. Existing environment takes precedence over loaded .env. |
| Slack | SLACK_BOT_TOKEN, SLACK_APP_TOKEN, SLACK_SIGNING_SECRET; comma-separated SLACK_ALLOWED_CHANNELS, SLACK_ALLOWED_USERS; SLACK_BOT_USER_ID. HTTP app management uses SLACK_APP_ID, SLACK_TEAM_ID, SLACK_CONFIG_TOKEN. |
| Linear | LINEAR_ACCESS_TOKEN (LINEAR_API_KEY fallback), LINEAR_REFRESH_TOKEN, LINEAR_CLIENT_ID, LINEAR_CLIENT_SECRET, LINEAR_WEBHOOK_SECRET, LINEAR_APP_USER_ID; comma-separated LINEAR_ALLOWED_ISSUES, LINEAR_ALLOWED_TEAMS. LINEAR_OUTBOUND_ENABLED=0 or false disables outbound API effects. |
| Delegate identity | LINEAR_AGENT_HANDLE, LINEAR_AGENT_DISPLAY_NAME override CORTEX_DELEGATE_HANDLE, CORTEX_DELEGATE_NAME; CORTEX_DELEGATE_PROFILE with LINEAR_CLI_PROFILE fallback; CORTEX_PROTECTED_PROFILES identifies protected personal profiles. |
| SMS/phone | TWILIO_ACCOUNT_SID, TWILIO_AUTH_TOKEN, TWILIO_PHONE_NUMBER (TWILIO_FROM_NUMBER fallback), TWILIO_PHONE_NUMBER_SID; comma-separated TWILIO_ALLOWED_NUMBERS (ALLOWED_PHONE_NUMBERS fallback). PI_DURABLE_PUBLIC_URL supplies callback base; TWILIO_API_BASE_URL overrides provider API endpoint. |
| Realtime voice | OPENAI_REALTIME_API_KEY (OPENAI_API_KEY fallback), XAI_API_KEY, ELEVENLABS_API_KEY, ASSEMBLYAI_API_KEY, ELEVENLABS_VOICE_ID, PI_DURABLE_ELEVENLABS_MODEL_ID; endpoint overrides OPENAI_REALTIME_WS_URL, XAI_REALTIME_WS_URL, ELEVENLABS_WS_URL, ELEVENLABS_API_URL, ASSEMBLYAI_STREAMING_WS_URL, ASSEMBLYAI_API_URL. Endpoint overrides affect transport selection; review them before diagnosing latency. |
| Bridges | HERDR_BIN, HERDR_SOCKET_PATH, HERDR_SESSION (session-specific socket). CLOUDFLARED_BIN selects tunnel executable. |
| Memory | Profile engram settings or ENGRAM_BIN, ENGRAM_DB_PATH, ENGRAM_OTE_PATH, ENGRAM_SEAT_TOKEN; CNS_VITALS_PATH diagnostic sink. |
Allowlists and signatures are separate from identity admission. An empty allowlist is not an automatic deny-all policy. Endpoint overrides, executable paths, shell selection, outbound mounts and public tunnel targets are authority-bearing settings, not cosmetic preferences.