تخطَّ إلى المحتوى

Commands

هذا المحتوى غير متوفر بلغتك بعد.

This reference lists the main CLI commands available from khadim. Use khadim --help for the exact help text from your installed version.

Terminal window
khadim [OPTIONS]
khadim exec [OPTIONS] [PROMPT]
khadim rpa [OPTIONS]
khadim rpa exec [OPTIONS] [PROMPT]
khadim assistant [OPTIONS]

Without --prompt or exec, Khadim launches the interactive terminal UI.

OptionDescription
--cwd PATHSet the working directory
--prompt TEXTRun in batch mode; - reads stdin
--provider NAMESet the AI provider
--model IDSet the AI model
--session NAMELoad a saved session
--system-prompt TEXTOverride the system prompt for the run
--harness NAMESelect coding, rpa, assistant, or a custom harness
--verboseEnable verbose logging
-h, --helpShow help
-v, --versionShow version

Type / in the terminal UI to browse commands with live preview.

CommandDescription
/helpShow commands and shortcuts
/sessionsList saved sessions
/session NAMESwitch to a saved session
/newStart a new session
/save NAMESave the current session
/delete NAMEDelete a saved session
/rename OLD NEWRename a saved session
/themeSwitch theme
/providerSwitch AI provider
/modelSwitch model
/harnessSwitch harness
/loginStart OAuth login for supported providers
/settingsOpen the settings panel
/providersList providers and auth status
/resetReset the session
/copyCopy the last response to the clipboard
/export [PATH]Export the conversation to Markdown
/system PROMPTSet a custom system prompt
/tokensShow token usage
/historyShow input history
/clear-historyClear input history
/configShow the config directory path
/versionShow version info
/refresh-modelsRefresh dynamic model lists
ShortcutAction
EnterSend message
Shift+EnterInsert newline
TabAccept command suggestion
EscapeAbort or close overlay
Ctrl+CQuit
Ctrl+LClear session
Ctrl+KClear input
Ctrl+OToggle tool output
Ctrl+Left / Ctrl+RightMove by word
Ctrl+WDelete word before cursor
Ctrl+A / Ctrl+EJump to start or end of line
Up / DownNavigate input history when input is focused
F2Open the settings panel
PageUp / PageDownScroll by page
Mouse wheelScroll transcript