Skip to content

hmmhmmhm/claude-remote-yolo

Repository files navigation

CRY (Claude Remote YOLO)

A TypeScript wrapper around the Claude CLI that always runs remote-control with bypass permissions.

npm version License: MIT Node.js Coverage

What it does

Every invocation is normalized to:

claude remote-control --permission-mode bypassPermissions

On first run, the wrapper asks for consent once and persists the decision to ~/.claude-remote-yolo-state.json.

Installation

Prerequisite: The claude CLI must be available on your system.

Global install

# npm
npm install -g claude-remote-yolo

# pnpm
pnpm add -g claude-remote-yolo

Run directly with npx

npx claude-remote-yolo "summarize this repository"

Usage

# Basic usage
claude-remote-yolo "summarize this repository"

# With --yolo flag (accepted for compatibility, ignored)
claude-remote-yolo --yolo "summarize this repository"

# Help
claude-remote-yolo --help

Alias — Run with cry

After installing globally, you can register a cry alias for quick access.

macOS / Linux

Add an alias to your shell config:

# Bash
echo 'alias cry="claude-remote-yolo"' >> ~/.bashrc && source ~/.bashrc

# Zsh
echo 'alias cry="claude-remote-yolo"' >> ~/.zshrc && source ~/.zshrc

Windows (PowerShell)

Add a function to your PowerShell profile:

# Create profile if it doesn't exist
if (!(Test-Path -Path $PROFILE)) { New-Item -ItemType File -Path $PROFILE -Force }

# Register the alias
Add-Content -Path $PROFILE -Value 'function cry { claude-remote-yolo @args }'

Open a new terminal and you're good to go: cry "summarize this repository"

Development

# Install dependencies
pnpm install

# Run all checks (lint + test + build)
pnpm check

# Run locally
node dist/bin.js "summarize this repository"

Scripts

Command Description
pnpm build Build with tsup (CJS, Node 20)
pnpm lint ESLint with zero warnings
pnpm test Vitest with coverage
pnpm check Full pipeline: file-lines check → lint → test → build

Quality Gates

  • ESLint — zero warnings allowed
  • Vitest — 100% coverage (lines, functions, statements, branches)
  • File line limit — 450 lines max per file
  • Pre-commit hook — runs pnpm check via simple-git-hooks

Design Decisions

  • Wraps the public Claude CLI command — no patching of Claude's installed source files
  • --yolo flag is accepted for compatibility and silently ignored
  • Consent state is persisted per-user, not per-project

License

MIT

About

Run Claude Code remote mode in YOLO mode.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors