OMC
Oh My ClaudeCodev4.12.0

Environment Variables

Complete list and usage of environment variables that control OMC behavior

Core Environment Variables

DISABLE_OMC

Disables all OMC hooks.

export DISABLE_OMC=1

When any value is set, OMC is completely disabled. Claude Code runs with its default behavior without OMC.

OMC_SKIP_HOOKS

Skips only specific hooks. Separate with commas.

export OMC_SKIP_HOOKS="keyword-detector,persistent-mode"

Use this when you want to disable specific hooks without a full disable (DISABLE_OMC).

State Management

OMC_STATE_DIR

Manages state files in a centralized location.

export OMC_STATE_DIR="$HOME/.claude/omc"
ItemDefaultAfter setting
State storage location{worktree}/.omc/$OMC_STATE_DIR/{project-id}/
On worktree deletionState deleted with itState preserved

The project identifier uses a hash of the Git remote URL. State is shared across different worktrees of the same repository.

Feature Control

VariableDefaultDescription
OMC_PARALLEL_EXECUTIONtrueAllow parallel agent execution
OMC_LSP_TOOLStrueEnable LSP tools
OMC_MAX_BACKGROUND_TASKS5Maximum background tasks
OMC_LSP_TIMEOUT_MS15000LSP request timeout (milliseconds)

Model Routing

VariableDefaultDescription
OMC_ROUTING_ENABLEDtrueEnable intelligent model routing
OMC_ROUTING_DEFAULT_TIERMEDIUMDefault model tier (LOW/MEDIUM/HIGH)
OMC_ROUTING_FORCE_INHERITfalseForce parent model inheritance
OMC_ESCALATION_ENABLEDtrueAllow escalation

Tier Model Override

export OMC_MODEL_HIGH="claude-opus-4-6"    # HIGH tier default model
export OMC_MODEL_MEDIUM="claude-sonnet-4-6" # MEDIUM tier default model
export OMC_MODEL_LOW="claude-haiku-4-5"    # LOW tier default model

Overrides the default model ID for each tier. Particularly useful in Bedrock/Vertex AI environments.

Model Alias Override

export OMC_MODEL_ALIAS_HAIKU="custom-haiku-model"
export OMC_MODEL_ALIAS_SONNET="custom-sonnet-model"
export OMC_MODEL_ALIAS_OPUS="custom-opus-model"

Maps model names when using non-standard providers.

External Models

VariableDefaultDescription
OMC_EXTERNAL_MODELS_DEFAULT_CODEX_MODELgpt-5.3-codexDefault Codex CLI model
OMC_EXTERNAL_MODELS_DEFAULT_GEMINI_MODELgemini-3.1-pro-previewDefault Gemini CLI model
OMC_EXTERNAL_MODELS_DEFAULT_PROVIDER-Default external provider (codex/gemini)
OMC_EXTERNAL_MODELS_FALLBACK_POLICYprovider_chainFallback policy on model failure
OMC_CODEX_DEFAULT_MODEL-(Legacy) Use OMC_EXTERNAL_MODELS_DEFAULT_CODEX_MODEL instead
OMC_GEMINI_DEFAULT_MODEL-(Legacy) Use OMC_EXTERNAL_MODELS_DEFAULT_GEMINI_MODEL instead

Delegation Routing

VariableDefaultDescription
OMC_DELEGATION_ROUTING_ENABLEDfalseEnable delegation routing to external providers
OMC_DELEGATION_ROUTING_DEFAULT_PROVIDERclaudeDefault delegation provider

MCP Servers

VariableDescription
EXA_API_KEYExa MCP server API key

Advanced Settings

VariableDescription
OMC_BRIDGE_SCRIPTPython bridge script path (auto-detected)
OMC_USE_NODE_HOOKSWhen set to 1, uses Node.js hooks on macOS/Linux

Usage Examples

Cost-saving Mode

# Disable routing, all agents inherit parent model
export OMC_ROUTING_FORCE_INHERIT=true

Debug Mode

# Disable specific hooks to isolate issues
export OMC_SKIP_HOOKS="persistent-mode,keyword-detector"

Large Projects

# Increase LSP timeout
export OMC_LSP_TIMEOUT_MS=30000

# Allow more background tasks
export OMC_MAX_BACKGROUND_TASKS=10

On this page