DEEPSEEK_BASE_URL
optional
Custom DeepSeek API endpoint, defaults to https://api.deepseek.com.
DEFAULT_MODEL
optional
Default model for requests, defaults to deepseek-v4-flash.
SHOW_COST_INFO
optional
Whether to show cost info in responses, default true.
REQUEST_TIMEOUT
optional
Request timeout in milliseconds, default 60000.
MAX_RETRIES
optional
Maximum retries for failed requests, default 2.
SKIP_CONNECTION_TEST
optional
Skip the startup API connection test, default false.
MAX_MESSAGE_LENGTH
optional
Maximum message content length in characters, default 100000.
SESSION_TTL_MINUTES
optional
Session time-to-live in minutes, default 30.
MAX_SESSIONS
optional
Maximum number of concurrent sessions, default 100.
FALLBACK_ENABLED
optional
Enable automatic model fallback on errors, default true.
CIRCUIT_BREAKER_THRESHOLD
optional
Consecutive failures before the circuit opens, default 5.
CIRCUIT_BREAKER_RESET_TIMEOUT
optional
Milliseconds before the circuit half-opens, default 30000.
MAX_SESSION_MESSAGES
optional
Max messages per session (sliding window), default 200.
RESPONSE_SCHEMA_MAX_RETRIES
optional
Repair retries when response_schema validation fails, default 2, 0 disables.
ENABLE_MULTIMODAL
optional
Enable multimodal (image) input support, default false.
TRANSPORT
optional
Transport mode: stdio or http, default stdio.
HTTP_PORT
optional
HTTP server port when TRANSPORT=http, default 3000.
HTTP_HOST
optional
Bind address for HTTP transport, default 127.0.0.1.
HTTP_ALLOWED_HOSTS
optional
Comma-separated allowed Host headers for DNS rebinding protection when binding to 0.0.0.0.