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.json → start.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
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
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)
backend= field shows which backend was selected.
3. Test Backend Selection
Troubleshooting
Config Changes Not Applied
Solution:- Save config file
- Fully quit Claude Code (not just close window)
- Restart Claude Code
- Check logs to verify settings
Config File Not Loaded
Check file location:- Wrong directory:
~/.config/typemux/config❌ (should betypemux-cc) - Wrong filename:
~/.config/typemux-cc/config.sh❌ (should beconfigwith no extension) - File not readable:
chmod 644 ~/.config/typemux-cc/config
Backend Not Found
Error in logs:Log File Permission Denied
Error: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
Environment-Based Configuration
~/.config/typemux-cc/config
Config File Template
Copy this template to get started:~/.config/typemux-cc/config
Related Pages
- Environment Variables - Complete env var reference
- Logging - Log monitoring and analysis