AHK Integration

Switch profiles and stop all tools from AutoHotKey scripts without opening the GUI. The Python sidecar (kalam-core.exe) is a standalone CLI that AHK calls via RunWait.

Commands

CommandArgsWhat it does
listappDataDir listPrints JSON array [{id, name}, ...] to stdout
currentappDataDir currentPrints {id, name} of active profile or null
apply-by-nameappDataDir apply-by-name "Profile Name"Looks up profile by name and applies it
stop-allappDataDir stop-allStops all managed tools

appDataDir is %APPDATA%\Kalam.

Example AHK Script (v2)

#SingleInstance
Sidecar := "C:\Program Files\Kalam\kalam-core.exe"
AppData := A_AppData . "\Kalam"

; Win+1 → Gaming profile
#1:: RunWait('"' Sidecar '" "' AppData '" apply-by-name "Gaming"', , "Hide")

; Win+2 → Work profile
#2:: RunWait('"' Sidecar '" "' AppData '" apply-by-name "Work"', , "Hide")

; Ctrl+Win+S → Stop all
^#s:: RunWait('"' Sidecar '" "' AppData '" stop-all', , "Hide")

Sidecar CLI Reference

CommandArgsOutputDescription
listappDataDir listJSON array [{id, name}]List all profiles
currentappDataDir current{id, name} or nullShow active profile
apply-by-nameappDataDir apply-by-name "Name"(none)Look up profile by name and apply it
stop-allappDataDir stop-allStatus textStop all managed tools
<id>appDataDir <id>(none)Apply profile by numeric ID

Windhawk Smart Restart

When applying profiles with Windhawk-Mods, the sidecar compares the desired mod settings against the current registry state. If nothing changed (re-applying the same profile, or switching between profiles with identical Windhawk configs), the service restart is skipped entirely — no UAC prompt, no service interruption.