Skip to main content
The config file allows you to set persistent environment variables that are loaded automatically when typemux-cc runs as a Claude Code plugin.

Location

The config file is loaded from:
This file is not created by default. You must create it manually if you want persistent configuration.

How It Works

When typemux-cc is installed as a Claude Code plugin, the wrapper script (plugin.jsonstart.sh) sources this config file before launching the binary:
start.sh (plugin wrapper)
The config file is a standard bash script that exports environment variables. It’s sourced (not executed), so you can use bash syntax like conditionals and variable expansion.

Creating the Config File

Quick Setup

You must restart Claude Code after creating or modifying the config file. The wrapper script only loads the config at startup.

Example Configurations

Minimal (Backend Selection Only)

~/.config/typemux-cc/config

Production (File Logging + Info Level)

~/.config/typemux-cc/config

Development (Verbose Logging + Large Pool)

~/.config/typemux-cc/config

Conditional Configuration (Advanced)

~/.config/typemux-cc/config

Available Settings

All environment variables can be set in the config file: See Environment Variables for detailed descriptions.

Config vs CLI Flags

When to Use Config File

Use config file when:
  • Running typemux-cc as a Claude Code plugin (standard usage)
  • Settings should persist across sessions
  • You want to switch backends without modifying Claude Code settings
  • Enabling persistent logging for troubleshooting

When to Use CLI Flags

Use CLI flags when:
  • Running typemux-cc manually (development/testing)
  • Temporarily overriding config file settings
  • Automating with scripts that need specific configurations
  • Testing different backends without editing config
Example: CLI flag override
CLI flags take precedence over environment variables (including those from config file).

Verifying Configuration

Check that your config is loaded correctly:

1. Check Environment Variables

2. Check Logs (if file logging enabled)

Look for the startup message:
The backend= field shows which backend was selected.

3. Test Backend Selection

Expected output:

Troubleshooting

Config Changes Not Applied

Most common issue: Forgot to restart Claude Code after editing config.
Solution:
  1. Save config file
  2. Fully quit Claude Code (not just close window)
  3. Restart Claude Code
  4. Check logs to verify settings

Config File Not Loaded

Check file location:
Should output:
Common mistakes:
  • Wrong directory: ~/.config/typemux/config ❌ (should be typemux-cc)
  • Wrong filename: ~/.config/typemux-cc/config.sh ❌ (should be config with no extension)
  • File not readable: chmod 644 ~/.config/typemux-cc/config

Backend Not Found

Error in logs:
Solution: Install the backend binary:
Then verify it’s in PATH:

Log File Permission Denied

Error:
Solution: Use a writable directory:

Advanced: Dynamic Configuration

Since the config file is a bash script, you can use logic to set variables dynamically:

Project-Specific Backend

~/.config/typemux-cc/config
The wrapper script runs in the plugin directory, not your project directory. Git commands may not work as expected. This example is for illustration only.

Environment-Based Configuration

~/.config/typemux-cc/config

Config File Template

Copy this template to get started:
~/.config/typemux-cc/config