Getting Started
Rafter provides local security features for autonomous agents to prevent secrets leakage and dangerous operations.What is Agent Security?
Agent Security adds a safety layer to autonomous coding agents by:- π Detecting secrets before theyβre committed to git
- π‘οΈ Validating commands before execution
- π Audit logging all security events
- βοΈ Configurable policies for different risk levels
Installation
Install the Rafter CLI globally:Python 3.10+ required for pip installs. Verify your version:On Ubuntu/Debian, Python and pip may not be installed by default:On Fedora/RHEL:
sudo dnf install python3 python3-pip.
macOS: brew install python. Windows: install from python.org β pip is included.Quick Setup
Initialize agent security with one command:- Create
~/.rafter/config.jsonconfiguration - Initialize directory structure
- Auto-detect installed agents and install skills:
- Claude Code (
~/.claude) β installs to~/.claude/skills/rafter/ - Codex CLI (
~/.codex) β installs to~/.agents/skills/rafter/ - OpenClaw (
~/.openclaw) β installs to~/.openclaw/skills/
- Claude Code (
- Download Gitleaks binary for enhanced secret detection
- Set up audit logging
Choose Your Risk Level
During setup, choose from three risk levels:Minimal (Permissive)
Minimal (Permissive)
- Basic guidance only
- Most commands allowed
- Good for local development
Moderate (Recommended)
Moderate (Recommended)
- Standard protections
- Approval required for high-risk commands
- Secrets always blocked
- Default setting
Aggressive (Maximum Security)
Aggressive (Maximum Security)
- Maximum security
- Requires approval for most operations
- Best for sensitive environments
Verify Installation
Run the built-in health check to confirm everything is set up correctly:Whatβs Next?
Secret Scanning
Learn how to detect secrets in your code
Command Execution
Safely execute shell commands with validation
Claude Code
Set up Rafter with Claude Code
Codex CLI
Set up Rafter with OpenAI Codex CLI
OpenClaw
Set up Rafter with OpenClaw agents
MCP Integration
Use with Cursor, Windsurf, Claude Desktop, Cline
Command Reference
Complete CLI command reference
Troubleshooting
Fix common install and runtime issues
Directory Structure
After initialization, Rafter creates:Agent Auto-Detection
rafter agent init detects all supported agents and installs the appropriate skills:
| Agent | Detected via | Skills installed to | Skip flag |
|---|---|---|---|
| Claude Code | ~/.claude | ~/.claude/skills/rafter/ | --skip-claude-code |
| Codex CLI | ~/.codex | ~/.agents/skills/rafter/ | --skip-codex |
| OpenClaw | ~/.openclaw | ~/.openclaw/skills/ | --skip-openclaw |
--claude-code or --codex flags.
Restart your agent after initialization to load the installed skills.
Support
Need Help?
- Documentation: docs.rafter.so
- GitHub Issues: rafter-cli/issues
- Support: rafter.so/help

