# Stream API credentials. The router keeps every conversation that is not incognito in this # Stream app's Chat, so a session opened without `incognito: true` needs real keys here. STREAM_API_KEY=your_stream_api_key_here STREAM_API_SECRET=your_stream_api_secret_here EXAMPLE_BASE_URL=https://pronto.getstream.io # Deepgram API credentials DEEPGRAM_API_KEY=your_deepgram_api_key_here # ElevenLabs API credentials ELEVENLABS_API_KEY=your_elevenlabs_api_key_here # Optional. Leave blank to use each SDK's own default voice; a placeholder here is worse # than nothing, since it is sent upstream and rejected. ELEVENLABS_VOICE_ID= # OpenAI API credentials OPENAI_API_KEY=your_openai_api_key_here OPENAI_MODEL=model_to_use OPENAI_REALTIME_MODEL=gpt-4o-realtime-preview # Google Gemini API credentials GOOGLE_API_KEY=your_google_api_key_here # Alternative environment variable name (both supported) GEMINI_API_KEY=your_gemini_api_key_here # Cartesia API credentials CARTESIA_API_KEY=your_cartesia_api_key_here # Anthropic API credentials ANTHROPIC_API_KEY=your_anthropic_api_key_here # xAI API credentials, also used by acceleration/cmd/xsearch to search X through Grok XAI_API_KEY=your_xai_api_key_here # Roboflow API credentials ROBOFLOW_API_KEY=your_roboflow_api_key_here ROBOFLOW_API_URL=your_roboflow_api_url_here # MiniMax API credentials MINIMAX_API_KEY=your_minimax_api_key_here MINIMAX_BASE_URL=https://api.minimax.io/v1 # Fish Audio API credentials, used by the Go model router's hosted S2 Pro voice FISH_API_KEY=your_fish_api_key_here # Optional Fish reference id to clone a voice from FISH_VOICE_ID= # Baseten, used by the Go model router's self-hosted Parakeet and S2 Pro deployments, # and by DeepSeek on the shared Model APIs, which need no deployment BASETEN_API_KEY=your_baseten_api_key_here PARAKEET_WS_URL=wss://model-xxxxxxx.api.baseten.co/environments/production/websocket S2PRO_WS_URL=wss://model-xxxxxxx.api.baseten.co/environments/production/websocket # Optional; overrides Baseten's shared Model APIs endpoint for a dedicated DeepSeek DEEPSEEK_BASE_URL= # The Gemma 4 endpoint root, ending in /v1, on Baseten or Nebius. See acceleration/deploy/gemma-4 GEMMA_BASE_URL= # Optional; the host's bearer token for GEMMA_BASE_URL. BASETEN_API_KEY is used when unset GEMMA_API_KEY= # Gemma 4 31B on Cerebras' public inference API, which needs no deployment of our own CEREBRAS_API_KEY= # QwenCloud (Alibaba), used by the Go model router for Qwen4-Max and the qwen realtime models DASHSCOPE_API_KEY= # Optional; a QwenCloud key works only in its own region. Singapore is the default: # https://ap-southeast-1.maas.qwencloudapi.com/compatible-mode/v1 QWEN_BASE_URL= # The hosts of open-weight models. They serve the same weights -- GLM, DeepSeek, Kimi, # Qwen, MiniMax, Nemotron, MiMo, Hy, Gemma -- over the same OpenAI-compatible protocol, # so a key is the whole setup for each. A host with no key here has its provider built # and unit-tested but no entry in router.yaml, because routing sends real traffic at # every model declared there and nothing should be declared before it has answered. # # BASETEN_API_KEY above is also what the baseten provider uses. Each host takes an # optional _BASE_URL alongside its key, for a private deployment. ATLASCLOUD_API_KEY= COREWEAVE_API_KEY= DEEPINFRA_API_KEY= DIGITALOCEAN_INFERENCE_KEY= FIREWORKS_API_KEY= GMI_API_KEY= INCEPTRON_API_KEY= IONET_API_KEY= NEXTBIT_API_KEY= NOVITA_API_KEY= PARASAIL_API_KEY= PHALA_API_KEY= QIANFAN_API_KEY= SAIL_API_KEY= SILICONFLOW_API_KEY= TOGETHER_API_KEY= VENICE_API_KEY= WAFER_API_KEY= # Cloudflare puts the account in the endpoint rather than in the token, so both are # needed before Workers AI can be reached. CLOUDFLARE_API_KEY= CLOUDFLARE_ACCOUNT_ID= # Baseten's shared Model APIs, for the models the deepseek and gemma providers do not # cover. Separate from BASETEN_BASE_URL, which names a dedicated deployment. BASETEN_INFERENCE_BASE_URL= # TypeSafe's System One models. The flow controller benchmark in .factory/evals puts the # twelve conversation states to Jev and to Gemma 4 and compares them. TYPESAFE_API_KEY= # The Go model router itself. These replace sprint 1's STT_ROUTER_* names. # Both stores are optional: without Postgres nothing is recorded, without Redis routing # ignores live health. Their defaults come from acceleration/internal/environment/, picked # by ROUTER_ENV (development when unset); set one here only to override it. The Go # integration suites always use testing.yaml and its own database, whatever is set here. # ROUTER_ENV=development # ROUTER_ADDR=:8080 # ROUTER_POSTGRES_DSN=postgres://postgres:postgres@localhost:55432/model_router?sslmode=disable # ROUTER_REDIS_ADDR=localhost:56379 # A second, isolated stack (see DEVELOPMENT.md). In a second checkout's own .env, set # COMPOSE_PROJECT_NAME and these host ports so that it gets its own containers, volume and # router image and runs beside the first. Leave them unset in the checkout whose data is in # the vision-agents_pgdata19 volume: a project name there moves it to a new, empty one. # COMPOSE_PROJECT_NAME=vision-agents # ROUTER_PUBLISH_PORT=8080 # USAGE_PUBLISH_PORT=8070 # POSTGRES_PUBLISH_PORT=55432 # REDIS_PUBLISH_PORT=56379 # The key the router seals the secrets it holds under (connector credentials, Stream app # keys, channel credentials, SIP trunk passwords). Any random string works. The router # refuses to start without it in the default api_key auth mode, or with connectors on or # ROUTER_STREAM_TENANCY=app; in proxy mode without those, channels and SIP trunks are off. Generate one once with `openssl rand -hex 32`, # and keep it: changing it leaves the secrets already stored unreadable. Single-quote a # value with a `$` in it, since compose expands one. ROUTER_DEV_KEK= # Spend limits: enforce, shadow or off. compose.yaml defaults to off, since a local # organization has no credit to spend; set enforce here to test limits locally. # ROUTER_LIMITS_MODE=off # Path to a capability config; leave blank for the built-in one ROUTER_CONFIG= # Path to a telephony vendor list; leave blank for the built-in one ROUTER_PHONE_CONFIG= # Where this router is reachable from the internet. Two things need it. Plivo and Bandwidth # fetch a call plan when the person answers, so without it they refuse to place a call rather # than placing one nothing will answer. Inbound calling needs it because Stream reports an # arriving call by webhook, and a router nothing can reach never hears about the call. In # development this is a tunnel, e.g. ngrok http 8080. Setting it here does not register the # webhook: run `go run ./cmd/phone hooks -url $ROUTER_PUBLIC_URL` once for that. ROUTER_PUBLIC_URL= # Sentry error tracking. Read by the SDK itself, which is why these are not # ROUTER_-prefixed like the settings above. An unset DSN disables reporting rather # than failing, so a checkout without one still runs. Set it locally only with # SENTRY_ENVIRONMENT=development alongside, so a panic you caused while editing is # filterable and does not read as a production incident. In the cluster both come # from the chart, which sets the environment from the release. SENTRY_DSN= SENTRY_ENVIRONMENT=development # mem0, what an agent remembers between calls. Without it the agent remembers nothing. MEM0_API_KEY=your_mem0_api_key_here # Telephony. Eight of eleven vendors are implemented, and seven of those eight can place a # call; the other three are declared in acceleration/internal/phone/phone.yaml and say plainly # that they are not. Any vendor whose credentials are all set here is searched when no vendor # is named, so setting one is enough. # Twilio and Telnyx do everything, including answering on a number. # A call to /v1/phone/hooks/twilio that names another account than TWILIO_ACCOUNT_SID is hung up. TWILIO_ACCOUNT_SID=your_twilio_account_sid_here TWILIO_AUTH_TOKEN=your_twilio_auth_token_here # Optional: sign requests with an API key instead. TWILIO_AUTH_TOKEN then holds its secret. # TWILIO_API_KEY_SID=SK... # Optional: the Auth Token of the Twilio account whose webhooks the router checks; it only checks signatures. # It turns on /v1/phone/hooks/twilio/events (Monitor alerts, usage triggers) and /v1/phone/hooks/twilio (calls), # which also need ROUTER_PUBLIC_URL. # TWILIO_WEBHOOK_AUTH_TOKEN= TELNYX_API_KEY=your_telnyx_api_key_here # The Telnyx TeXML application numbers and calls are on, needed for inbound and outbound TELNYX_CONNECTION_ID= # Telnyx's base64 public key, so the router can check calls sent to /v1/phone/hooks/telnyx TELNYX_PUBLIC_KEY= # The five below buy numbers and call out on them, but do not answer on them. Several need a # second set of credentials to place a call, because at those vendors voice is a different # product from numbers. SINCH_PROJECT_ID=your_sinch_project_id_here SINCH_KEY_ID=your_sinch_key_id_here SINCH_KEY_SECRET=your_sinch_key_secret_here # The Sinch calling API is an application's rather than the project's SINCH_APPLICATION_KEY=your_sinch_application_key_here SINCH_APPLICATION_SECRET=your_sinch_application_secret_here BANDWIDTH_ACCOUNT_ID=your_bandwidth_account_id_here BANDWIDTH_USERNAME=your_bandwidth_username_here BANDWIDTH_PASSWORD=your_bandwidth_password_here # The Bandwidth sub-account an ordered number is billed and configured under BANDWIDTH_SITE_ID=your_bandwidth_site_id_here # The Bandwidth voice application a placed call belongs to BANDWIDTH_APPLICATION_ID=your_bandwidth_application_id_here VONAGE_API_KEY=your_vonage_api_key_here VONAGE_API_SECRET=your_vonage_api_secret_here # Vonage's voice API is JWT-authenticated by an application rather than by the api key, so # placing a call needs these two as well. The private key is the PEM itself or a path to it. VONAGE_APPLICATION_ID=your_vonage_application_id_here VONAGE_PRIVATE_KEY= # The key's own bk_{region}_ prefix decides which Bird host it is valid against BIRD_ACCESS_KEY=your_bird_access_key_here PLIVO_AUTH_ID=your_plivo_auth_id_here PLIVO_AUTH_TOKEN=your_plivo_auth_token_here # DIDWW sells numbers and cannot place a call: it has no call control API at all, only SIP # origination against a trunk you point your own switch at. It disables /v3/available_dids # until you ask them to enable it. DIDWW_API_KEY=your_didww_api_key_here # The phone examples. OUTBOUND_TO is the handset example 13 rings. INBOUND_NUMBER is one of # your own attached numbers, which is what you ring to reach example 14. OUTBOUND_TO=+15550001111 INBOUND_NUMBER=