Skip to main content
The following environment variables are available in all agent bash tool executions, including init hooks.

Available Variables

VariableDescription
MUX_PROJECT_PATHAbsolute path to the project root on the local machine. Always refers to your local project path, even on SSH workspaces.
MUX_RUNTIMERuntime type: "local", "worktree", "ssh", or "docker"
MUX_WORKSPACE_NAMEName of the workspace (typically the branch name)
MUX_MODEL_STRINGModel identifier (e.g., "anthropic:claude-sonnet-4-20250514")
MUX_THINKING_LEVELReasoning level: "off", "low", "medium", "high", or "xhigh"
MUX_COSTS_USDCumulative session costs in USD, formatted to 2 decimal places (e.g., "1.23")

Usage Example

Use Cases

  • PR footers: Include model and cost information in automated PR descriptions
  • Conditional logic: Adapt scripts based on runtime environment
  • Logging: Track which model and settings were used for a task
  • Cost monitoring: Check cumulative costs before expensive operations