Skip to main content

Fast Rust CLI for running Claude Code and Codex in YOLO mode

Project description

clud

hero-clud

A fast Rust CLI for Claude Code and Codex that runs in YOLO mode by default — no permission prompts, maximum velocity.

The name clud is simply a shorter, easier-to-type version of claude.

Platform Build Lint Unit Test Integration Test
Linux x86 Build Lint Unit Test Integration Test
Linux ARM Build Lint Unit Test Integration Test
Windows x86 Build Lint Unit Test Integration Test
Windows ARM Build Lint Unit Test Integration Test
macOS x86 Build Lint Unit Test Integration Test
macOS ARM Build Lint Unit Test Integration Test

Installation

pip install clud

Usage

clud                              # Launch Claude in YOLO mode via subprocess
clud --codex                      # Use Codex as the backend
clud --claude                     # Use Claude as the backend (default)
clud --pty                        # Force PTY launch mode
clud --subprocess                 # Force subprocess launch mode
clud -c                           # Continue the most recent conversation
clud --resume                     # Resume a session
clud --resume abc123              # Resume a specific session by ID or search term
clud -p "refactor the auth layer" # Run with a prompt, exit when done
clud -m "what does this do?"      # Send a one-off message
clud --model opus -p "review PR"  # Choose a model
clud --safe -p "drop the table"   # Disable YOLO mode (keeps permission prompts)
clud --dry-run -p "hello"         # Print what would run without executing
echo "explain this error" | clud  # Pipe mode: read prompt from stdin
clud -- --verbose --debug         # Pass extra flags through to the backend
clud wasm guest.wasm              # Run a local wasm module with clud's embedded runtime

Flags

Flag Description
-p, --prompt Run with a prompt, exit when complete
-m, --message Send a one-off message
-c, --continue Continue the most recent conversation
-r, --resume [TERM] Resume by session ID or search term
--claude Use Claude as the backend
--codex Use Codex as the backend
--subprocess Force subprocess launch mode
--pty Force PTY launch mode
--model <NAME> Set model preference (e.g., haiku, sonnet, opus)
--safe Disable YOLO mode (don't inject --dangerously-skip-permissions)
--dry-run Print what would be executed, then exit
-v, --verbose Show debug output
-h, --help Show help
-V, --version Show version

Unknown flags are forwarded directly to the backend agent.

clud now defaults to subprocess launch mode for Claude and Codex. Use --pty to opt back into PTY while Claude PTY issues are being investigated.

Voice Mode

clud can capture microphone input and transcribe it into the active console prompt with whisper-rs.

# English-only small model
export CLUD_VOICE=1
export CLUD_WHISPER_MODEL=/path/to/ggml-small.en.bin

clud

On Windows PowerShell:

$env:CLUD_VOICE = "1"
$env:CLUD_WHISPER_MODEL = "C:\models\ggml-small.en.bin"

clud

Behavior:

  • Press F3 to start recording and play a short ding
  • Release F3 to stop recording and play a short dong
  • The transcript is inserted into the current prompt without auto-submitting it
  • If the terminal does not emit key-release events, pressing F3 again stops recording

Optional environment variables:

Variable Description
CLUD_VOICE Enable voice mode (1, true, yes, on)
CLUD_WHISPER_MODEL Path to a local whisper.cpp GGML model such as ggml-small.en.bin
CLUD_VOICE_LANGUAGE Force a Whisper language code such as en

clud loop — Autonomous Loop

Run the backend in an autonomous loop that iterates on a task (default: 50 iterations).

clud loop "Implement the API endpoints from the spec"
clud loop TASK.md                     # Read prompt from a file
clud loop --loop-count 10 "fix bugs"  # Custom iteration count

The loop stops early if any iteration exits with a non-zero code.

clud rebase — Auto-Rebase

Fetches from origin, rebases the current branch, and resolves conflicts.

clud rebase

clud fix — Auto-Fix

Detects linting and test tools in your repo, runs them, and fixes failures in a loop until everything passes.

clud fix

clud up — Ship It

Runs lint, test, cleanup, then commits.

clud up

clud wasm — Embedded Runtime

Loads a local .wasm module, wires up a host logging import, and invokes an exported function.

clud wasm hello.wasm
clud wasm hello.wasm --invoke _start

Development

bash build                  # Build dev wheel (Rust binary + Python package)
bash lint                   # Lint (cargo fmt + clippy + ruff + banned imports)
bash test                   # Unit tests (Rust + Python)
bash test --integration     # Include integration tests with mock agents

License

BSD 3-Clause License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

clud-2.0.3.tar.gz (47.9 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

clud-2.0.3-py3-none-win_arm64.whl (2.0 MB view details)

Uploaded Python 3Windows ARM64

clud-2.0.3-py3-none-win_amd64.whl (2.8 MB view details)

Uploaded Python 3Windows x86-64

clud-2.0.3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.2 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

clud-2.0.3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.2 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

clud-2.0.3-py3-none-macosx_11_0_arm64.whl (2.3 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

clud-2.0.3-py3-none-macosx_10_12_x86_64.whl (1.7 MB view details)

Uploaded Python 3macOS 10.12+ x86-64

File details

Details for the file clud-2.0.3.tar.gz.

File metadata

  • Download URL: clud-2.0.3.tar.gz
  • Upload date:
  • Size: 47.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.11

File hashes

Hashes for clud-2.0.3.tar.gz
Algorithm Hash digest
SHA256 8938e363e135f3c6e97140633c2191120b8ea86b97dd4f01384119b500254791
MD5 cb83230e3514dfbd9aabeb838f46072f
BLAKE2b-256 b380a768f2ca0d3b35788d81d61c5aa985c5f9e5bbfa9d9714ff6f5af5ba9050

See more details on using hashes here.

File details

Details for the file clud-2.0.3-py3-none-win_arm64.whl.

File metadata

  • Download URL: clud-2.0.3-py3-none-win_arm64.whl
  • Upload date:
  • Size: 2.0 MB
  • Tags: Python 3, Windows ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.11

File hashes

Hashes for clud-2.0.3-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 af5681c0f4bc6a6e3a41d1b0a598ea3b436d3fe32ebc01291ff68032b205c09b
MD5 be22076f82a37caec01a9d287f9830d3
BLAKE2b-256 66436c885bf6d7653b4d0d8d9f502e45d5529d374bca0b17fb86a477fde0f7f9

See more details on using hashes here.

File details

Details for the file clud-2.0.3-py3-none-win_amd64.whl.

File metadata

  • Download URL: clud-2.0.3-py3-none-win_amd64.whl
  • Upload date:
  • Size: 2.8 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.11

File hashes

Hashes for clud-2.0.3-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 9265de4144aec3d424204780f0973ef121f5b3107a04c99615850bdef985e228
MD5 57cf248f12d69a365a2d5872489e44a0
BLAKE2b-256 687b15f359301b52538375828f0e9789192da61341c26efd39f8d084fff1ed4a

See more details on using hashes here.

File details

Details for the file clud-2.0.3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for clud-2.0.3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3cb5091f3c4ed2e19c87b36638f79d089317fe49bdeeaac70d2fc9011eb4b917
MD5 112fcbf3f298baccc90a7a84e2ea897d
BLAKE2b-256 446fec4a92634083d6fba34145ee073f7b806a068a64a1d43d3650315e1fb797

See more details on using hashes here.

File details

Details for the file clud-2.0.3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for clud-2.0.3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2b27b3a42ede45570f10f2598a90348887c40e91a67a36e4e5ef0605ad703b69
MD5 feb06364255c97001fd96f6fb5e9b503
BLAKE2b-256 a449e61828c6bfd0959fc146b91f0a8e5ee81b3a11cba3f20219f842b52eed9d

See more details on using hashes here.

File details

Details for the file clud-2.0.3-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for clud-2.0.3-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f482b750d94aef08560a45ccfec92d3bde4e2dd8bb1570550430514679f002a2
MD5 a2cabd37abe5aa3a07ec26bc883964c1
BLAKE2b-256 b515a961e62c94b61e145ce8f10a165ee8aa317ca4724c9e4cf0b88b75cbe644

See more details on using hashes here.

File details

Details for the file clud-2.0.3-py3-none-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for clud-2.0.3-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 37ddab2183dcaeacecfb8346aa63e6e676040b86bf69c04eace42fbac4720921
MD5 50838913d18e7adb67110dd4b39b2913
BLAKE2b-256 18db5a7c580443568e980b2bae20ba5d8785ca0f6b78c419122affa7553e943c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page