Skip to main content
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.

Configuration Variables

All CLI flags have corresponding environment variables. CLI flags take precedence when both are set.

Core Configuration

Logging Configuration

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 ty
  • pyrefly - Astral’s pyrefly
Example:

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 to 0 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 like textDocument/definition and textDocument/references are queued until:
  1. Backend sends $/progress notification with kind: "end", OR
  2. Timeout expires (fail-open: forward requests anyway)
Set to 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

Configuration Precedence

When multiple configuration sources are present:
  1. CLI flags (highest priority)
  2. Environment variables
  3. Default values (lowest priority)
Example:

Persistent Configuration

When running as a Claude Code plugin, create a config file to persist settings: Location: ~/.config/typemux-cc/config Setup:
Restart Claude Code to apply changes.

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