crun is a cross-platform TUI tool for interactively selecting Claude Code startup flags. Browse 71 flags across 15 groups, search by name / description / pinyin, and launch claude <flags> โ no more memorizing CLI arguments.
Linux (amd64 / arm64):
curl -fsSL https://raw.githubusercontent.com/BingMoeNone/crun/main/scripts/install.sh | bashWindows (amd64, Windows Terminal recommended):
irm https://raw.githubusercontent.com/BingMoeNone/crun/main/scripts/install.ps1 | iexSpecify a version: CRUN_VERSION=v0.6.1 (Linux) or $env:CRUN_VERSION="v0.6.1" (Windows). See releases for all versions.
Prerequisite: The
claudeCLI must be installed and available in PATH.
- 71 flags, 15 groups โ full Claude Code CLI reference, organized and browsable
/instant search โ filter by flag name, Chinese/English description, or choice values- Pinyin fuzzy search โ type
moxingto matchๆจกๅ, supports partial pinyin - Search highlighting โ matched characters highlighted in yellow bold
- Mutual exclusion โ conflicting flags (
--chromeโ--no-chrome) auto-deselected - Sub-argument prompts โ
single/valueflags prompt immediately on toggle - Inline tooltips โ cursor-focused flag shows usage tip at screen bottom
- Command history โ 9-entry ring buffer, adaptive layout (A/B), number-to-reuse
- Parameter presets โ save/load named flag combinations for different workflows
- Custom keybindings โ configure in
preferences.json, conflict detection at startup - Custom flags โ extend via
~/.config/crun/flags_custom.json - Bilingual UI โ first-run wizard (Chinese / English)
crun| Key | Action |
|---|---|
โ / โ or j / k |
Move cursor |
Space |
Toggle flag |
Enter |
Confirm selection |
/ |
Enter search mode |
Backspace |
Delete search char |
Esc |
Exit search / quit selector |
Ctrl+C |
Cancel |
Ctrl+D / Ctrl+U |
Page up/down (Vim) |
Customize keybindings via keybindings in ~/.config/crun/preferences.json.
~/.config/crun/ # Windows: %LOCALAPPDATA%\crun\
โโโ preferences.json # language, search_mode, keybindings, etc.
โโโ flags_custom.json # custom/override flag definitions
โโโ history.json # 9 most recent runs (ring buffer)
โโโ presets.json # saved parameter presets
โโโ flags_default.json # built-in flags (read-only, embedded)
Add or override flags in ~/.config/crun/flags_custom.json:
{
"version": 1,
"flags": [
{
"flag": "--my-custom-flag",
"description": { "zh": "ๆ็่ชๅฎไนๅๆฐ", "en": "My custom flag" },
"required_args": [],
"type": "multi",
"group": "custom"
}
]
}git clone git@github.com:BingMoeNone/crun.git
cd crun
# uv is required: curl -LsSf https://astral.sh/uv/install.sh | sh
uv sync --all-groups
uv pip install -e .
# Run tests
uv run pytest tests/ -v
# Build binary
uv run pyinstaller --onefile --name crun --paths src \
--add-data "data/flags_default.json:data" \
--add-data "pyproject.toml:." \
--copy-metadata crun \
src/claude_run/__main__.pySee CONTRIBUTING.md for PR guidelines and SECURITY.md for vulnerability reporting.