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 --detach -p "review this PR" # Start a daemon-managed session without attaching
clud --detachable -p "fix CI"     # Ctrl+C asks whether to keep the session in background
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 attach                       # List background sessions you can reattach to
clud attach sess-123              # Attach to a specific session
clud list                         # Show background session IDs, PIDs, and cwd
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
--detach Start a daemon-managed session directly in the background
--detachable Run attached under the daemon; Ctrl+C prompts whether to background or end
--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.

Detached Sessions

Use daemon-managed sessions when you want to disconnect and reattach later.

clud --detachable --codex -p "refactor the parser"
# press Ctrl+C, then press y within 5 seconds to keep it running in background

clud attach
clud attach sess-123
clud list

If you press Ctrl+C in a --detachable session, clud asks continue session in the background? with a 5-second countdown. Press y to background it. Press Ctrl+C again, press anything else, or do nothing to end the session instead.

clud attach without a session ID lists background sessions. clud list shows the same sessions with their root PID and current working directory.

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.4.tar.gz (51.7 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.4-py3-none-win_arm64.whl (2.1 MB view details)

Uploaded Python 3Windows ARM64

clud-2.0.4-py3-none-win_amd64.whl (2.9 MB view details)

Uploaded Python 3Windows x86-64

clud-2.0.4-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.3 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

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

Uploaded Python 3manylinux: glibc 2.17+ ARM64

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

Uploaded Python 3macOS 11.0+ ARM64

clud-2.0.4-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.4.tar.gz.

File metadata

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

File hashes

Hashes for clud-2.0.4.tar.gz
Algorithm Hash digest
SHA256 436901da9cb23165f202c4e5f2f6cb6e6aa0932569b4a2e4e76e77a202627928
MD5 7d2511c9f763738a3c39b24ffba12afd
BLAKE2b-256 175689274167073431ceb987f49d66f74b1cd4ba1d2031cbdbbd972e1c00deea

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for clud-2.0.4-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 d6035d30296c9ce4d28b19d627b0cedeac31f9a64bfedc4bcc8ee0a11808bc64
MD5 2e55c2d9c9266524fcbebbe8f099f55c
BLAKE2b-256 9d4bec2dde070764685aed65d2293b788e0317bd3f016b63c03f3ec044518301

See more details on using hashes here.

File details

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

File metadata

  • Download URL: clud-2.0.4-py3-none-win_amd64.whl
  • Upload date:
  • Size: 2.9 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.4-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 dc040f020104a217f78e3f4edeb3db511b2c26e86e37b64c8f42d828db828936
MD5 ac3c6f583db0036f2aa76d2cde993a8c
BLAKE2b-256 224b2234e165bd84a69e711f81953782655051b9cad099e86bce654bf936f271

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for clud-2.0.4-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d09321d5dce7b7518f529eb546bf3cf3d7b9a68af9b0dc689ce6ecf7014179b8
MD5 d28d7e013a7e11cd569c312207104f1e
BLAKE2b-256 59b75690d5fe2b4dd73a765a1b11d813a95f298ddcf9d4588cd1f75cc02b6f7e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for clud-2.0.4-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 c55f74ff8863b25705de50e41861f0fcec3f42d28dd49f9bf2423f23d0f32716
MD5 4091a63b53649dfdabbfc6b90421347c
BLAKE2b-256 4fa199a8bd9f4dc5ccdbcc25a2fa3833159bf730fc1f9c019cfbc9f414dda0ed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for clud-2.0.4-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b5635715deeaa5f81a6deb8418b23fa4b352b56dd8fe3a891a9269a7c8e15d59
MD5 ae21b37031a97cecafc74fc3d3243f21
BLAKE2b-256 b8eca630eeba26b10efd565796f12ff3fedc7ea36eef8626bb058be374efa91b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for clud-2.0.4-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 2421a7f775230171a4180860af20904af3206d895011898b3ad46ebe20f8ebd2
MD5 93655c915c219fe0c035f8715fbf97c3
BLAKE2b-256 da2cd1f031a125a7c4b6d816b506c727fc9aefa6e58d41dc4f7e9f2cb43bb509

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