- Push-to-talk: Hold a key to record, release to send
- Voice-activated: Speak naturally and Klaus detects your voice automatically
Hotkey Settings
The push-to-talk key. Hold this key to record audio, release to process your question.Valid values: Any keyboard key name recognized by the
pynput library, including:- Function keys:
F1,F2,F3, etc. - Special keys:
§, ```, etc. - Modifier combinations not supported
- macOS:
§(section sign, key above Tab on ISO keyboards) - Windows/Linux:
F2
Key to toggle between voice-activated and push-to-talk input modes.Valid values: Same as
hotkeyPlatform defaults:- macOS:
§ - Windows/Linux:
F3
Example Configuration
config.toml
Hotkey Behavior
Klaus implements hotkeys with two parallel systems:1. In-App Hotkeys (Always Active)
- Work when Klaus window is focused
- No special permissions required
- Always available on all platforms
2. Global Hotkeys (Optional)
- Work even when Klaus is in the background
- Require Accessibility permissions on macOS
- Powered by
pynputlibrary
macOS F-Key Considerations
On macOS, function keys (F1-F12) trigger system actions by default:F1/F2: BrightnessF3: Mission ControlF10/F11/F12: Volume
Option 1: Press Fn + F-key
Hold theFn key while pressing the function key (e.g., Fn+F2).
Option 2: Enable Standard Function Keys
- Open System Settings → Keyboard
- Enable “Use F1, F2, etc. keys as standard function keys”
- Function keys will now work directly without
Fn
Option 3: Use a Different Key
Editconfig.toml to use a non-F-key:
macOS Accessibility Permissions
For global hotkeys to work when Klaus is not focused, macOS requires Accessibility permission:- When you first use a hotkey, macOS prompts for Accessibility access
- Grant permission to your Terminal app (or Klaus if running standalone)
- Hotkeys will work globally after permission is granted
- In-app hotkeys still work when Klaus is focused
- Global hotkeys won’t trigger when Klaus is in the background
- You can grant permission later in System Settings → Privacy & Security → Accessibility
Key Name Reference
Common key names you can use forhotkey and toggle_key:
Function Keys
Special Keys
Letters and Numbers
Key names are case-sensitive. Use lowercase for letters (e.g.,
hotkey = "a", not hotkey = "A").Troubleshooting
Hotkeys Don’t Work
- Check Klaus window focus: In-app hotkeys only work when Klaus is focused
- Verify macOS permissions: Global hotkeys need Accessibility permission
- Check for conflicts: Another app may be using the same key
- Try a different key: Some keys may be reserved by your OS
Global Hotkeys Crash on macOS
- This is a known issue with macOS 26 + Python 3.14
- Klaus auto-detects this and disables global hotkeys
- Use Python 3.13 for stable global hotkey support
- In-app hotkeys continue to work normally
F-Keys Trigger System Actions on macOS
- See macOS F-Key Considerations above
- Either use
Fnmodifier, enable standard F-keys in settings, or choose a different key