Skip to content

English · Português

KABUL_* variables ​

Scripts, terminals and agents get:

VariableValue
KABUL_WORKSPACE_NAMEWorkspace name (the city)
KABUL_WORKSPACE_IDWorkspace id
KABUL_WORKSPACE_PATHWorktree path
KABUL_ROOT_PATHMain checkout of the repository
KABUL_DEFAULT_BRANCHDefault branch
KABUL_TARGET_BRANCHTarget branch of the workspace
KABUL_PORTFirst of ten reserved ports (KABUL_PORT … KABUL_PORT+9)
KABUL_IS_LOCAL1 when running on this machine

Your own variables ​

Settings › Environment has two scopes:

  • User: variables for every chat, optionally only for one agent (claude, codex, opencode…). Paste KEY=VALUE lines in bulk or point to a .env file.
  • Repository: shared variables from .kabul/settings.toml appear as inherited; yours go to settings.local.toml and override them.

Released under the MIT License.