Claude Code Root Runner banner
gagarinyury gagarinyury

Claude Code Root Runner

Development community

Description

🔥 Utility script to run Claude Code CLI with --dangerously-skip-permissions as root by creating temporary non-root user. Bypass root restrictions safely in containers and server environments.

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

Claude Code Root Runner 🚀

A utility that allows running [Claude Code CLI](https://claude.ai/code) with root privileges by creating a temporary non-root user and bypassing permission restrictions.

✨ Features

  • 🔒 Safe Root Bypass - Creates temporary user instead of running as root
  • 📁 Two Operating Modes - Current directory or interactive workspace selection
  • ⚡ Full System Access - Sudo privileges for system administration tasks
  • 🔧 Easy Installation - One-line installer script
  • 🛡️ Security Focused - Temporary user with controlled permissions

🎯 Use Cases

  • Docker Containers running as root
  • Server Administration scenarios
  • CI/CD Pipelines requiring elevated permissions
  • Development Environments in sandboxed systems

📦 Installation

Quick Install (Recommended)

curl -sSL https://raw.githubusercontent.com/gagarinyury/claude-code-root-runner/main/install.sh | sudo bash

Manual Installation

# Download scripts
sudo curl -fsSL https://raw.githubusercontent.com/gagarinyury/claude-code-root-runner/main/claude-plus.sh -o /usr/local/bin/claude+
sudo curl -fsSL https://raw.githubusercontent.com/gagarinyury/claude-code-root-runner/main/claude-workspace.sh -o /usr/local/bin/claudew

# Make executable
sudo chmod +x /usr/local/bin/claude+ /usr/local/bin/claudew

🚀 Usage

Mode 1: Current Directory (`claude+`)

Works in your current directory - perfect for quick tasks and server administration.

# Basic usage
claude+ "check system status and running services"

# File operations in current directory
claude+ "create a backup script for important configs"

# System administration
claude+ "analyze nginx logs and suggest optimizations"

Mode 2: Workspace Selection (`claudew`)

Prompts you to choose or create a working directory - ideal for projects.

# Interactive workspace selection
claudew "create a new web application"
# Will prompt: Enter workspace directory pa