Environment variables provide an alternative way to configure typemux-cc. They are especially useful when running as a Claude Code plugin or in containerized environments.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/K-dash/typemux-cc/llms.txt
Use this file to discover all available pages before exploring further.
Configuration Variables
All CLI flags have corresponding environment variables. CLI flags take precedence when both are set.Core Configuration
| Variable | Type | Default | Description |
|---|---|---|---|
TYPEMUX_CC_BACKEND | enum | pyright | LSP backend type: pyright, ty, or pyrefly |
TYPEMUX_CC_LOG_FILE | path | (not set) | Path to log file. When set, logs to both stderr and file |
TYPEMUX_CC_MAX_BACKENDS | integer | 8 | Maximum concurrent backend processes (minimum: 1) |
TYPEMUX_CC_BACKEND_TTL | integer | 1800 | Backend TTL in seconds. Set to 0 to disable TTL eviction |
TYPEMUX_CC_WARMUP_TIMEOUT | integer | 2 | Warmup timeout in seconds. Set to 0 to disable warmup queueing |
Logging Configuration
| Variable | Type | Default | Description |
|---|---|---|---|
RUST_LOG | string | typemux_cc=debug | Log level filter. See Logging Levels |
Variable Details
TYPEMUX_CC_BACKEND
Selects which LSP backend to use for Python type checking. Valid values:pyright- Microsoft’s Pyright (default)ty- Google’s typyrefly- Astral’s pyrefly
TYPEMUX_CC_LOG_FILE
Path to log file for debug output. When set, logs are written to both stderr and the specified file. Example:TYPEMUX_CC_MAX_BACKENDS
Maximum number of concurrent LSP backend processes. The proxy maintains one backend per.venv. When the pool is full, the least recently used backend is evicted.
Valid range: Minimum 1, no upper limit
Example:
TYPEMUX_CC_BACKEND_TTL
Backend time-to-live in seconds. Idle backends are automatically evicted after this timeout. Set to0 to disable TTL-based eviction (backends only evicted via LRU when pool is full).
Example:
TYPEMUX_CC_WARMUP_TIMEOUT
Maximum time (in seconds) to wait for backend index warmup before forwarding queued requests. After spawning, backends need time to build their cross-file index. Requests liketextDocument/definition and textDocument/references are queued until:
- Backend sends
$/progressnotification withkind: "end", OR - Timeout expires (fail-open: forward requests anyway)
0 to disable warmup queueing entirely (all requests forwarded immediately).
Default: 2 seconds
Example:
This variable is not available as a CLI flag. It must be set via environment variable.
RUST_LOG
Controls log level and filtering. Accepts standard Rust tracing directives. Default:typemux_cc=debug
Example:
Logging Levels
| Level | Use Case |
|---|---|
trace | All search steps, detailed message routing |
debug | Default. Venv search details, LSP method names |
info | Venv switches, session info, warmup transitions |
warn | Unexpected conditions, recoverable errors |
error | Fatal errors, backend crashes |
Configuration Precedence
When multiple configuration sources are present:- CLI flags (highest priority)
- Environment variables
- Default values (lowest priority)
Persistent Configuration
When running as a Claude Code plugin, create a config file to persist settings: Location:~/.config/typemux-cc/config
Setup:
Usage Examples
Minimal Configuration
Enable Logging
Large Monorepo
Use ty Backend
Disable Warmup Queueing
Combined Configuration
Monitoring and Debugging
Real-time Log Monitoring
Backend Pool Activity
Warmup Transitions
Session Tracking
See Also
- CLI Flags - Command-line flag reference
- Configuration - Detailed configuration strategies
- Logging - Comprehensive logging setup and debugging