Documentation Index
Fetch the complete documentation index at: https://docs.rafter.so/llms.txt
Use this file to discover all available pages before exploring further.
OpenClaw Integration
Rafter integrates seamlessly with OpenClaw to add local security to your development workflow.Setup
1. Install Rafter CLI
Install globally:2. Initialize Local Security
Run initialization (auto-detects OpenClaw):- ✓ Install skill to
~/.openclaw/workspace/skills/rafter-security/SKILL.md(the canonical ClawHub path; was~/.openclaw/skills/rafter-security.mdin v0.7.7 and earlier — reinstall on top of the old layout strips the legacy file) - ✓ Write ClawHub-required top-level frontmatter (
name,description,version) alongside theopenclaw:runtime block - ✓ Enable agent integration in config
- ✓ Set up security policies
Alternative install: since v0.8.0, the rafter-security skill is also auto-published to ClawHub on every prod release. OpenClaw users can install via
clawhub skill install rafter-security as an alternative to rafter agent init --with-openclaw.3. Restart OpenClaw
Restart OpenClaw to load the Rafter skill:How It Works
Once integrated, OpenClaw uses Rafter for security-sensitive operations:Example Flow
User request:- Generates commit message
- Calls Rafter:
rafter agent exec "git commit -m '...'" - Rafter evaluates command risk level
- Rafter scans staged files for secrets (for git commands)
- If clean: Executes commit
- If secrets found or command blocked: Alerts user
Skill Commands
The Rafter skill provides these commands to OpenClaw:/rafter-scan
Scan files for secrets before operations.
When OpenClaw uses it:
- Before git commits
- When reading sensitive files
- After generating code with credentials
Note: rafter agent scan still works but is deprecated — it will be removed in a future major version.
/rafter-bash
Execute shell commands with validation.
When OpenClaw uses it:
- For any shell command execution
- Before destructive operations
- When using sudo
/rafter-audit
View security event logs.
When OpenClaw uses it:
- After blocked commands
- When reviewing security events
- For compliance reporting
Configuration
Risk Levels for OpenClaw
Choose based on your use case:Minimal (Development)
Minimal (Development)
Best for: Local development, prototyping
- Allows most commands
- Basic secret detection
- Minimal interruption to workflow
Moderate (Recommended)
Moderate (Recommended)
Best for: General use, team environments
- Blocks critical commands
- Requires approval for high-risk operations
- Secret scanning on all git operations
- Default setting
Aggressive (Production)
Aggressive (Production)
Best for: Sensitive environments, compliance requirements
- Maximum security checks
- Requires approval for most operations
- Comprehensive audit logging
- Best for production agents
Command Policy
Control how commands are handled:Usage Examples
Safe Development Workflow
Blocked Dangerous Operation
Approval Required
Best Practices
Recommended Setup
- Start with moderate risk level: Adjust based on experience
- Review audit logs daily:
rafter agent audit --last 20 - Train agents on Rafter commands: Ensure agents know when to use security checks
- Test policies in development: Before deploying to production
- Keep Rafter updated:
npm update -g @rafter-security/cli
Monitoring
View Agent Activity
Check what your agent is doing:Audit Reports
Generate reports for compliance:Troubleshooting
Skill Not Loading
If OpenClaw doesn’t recognize Rafter commands:-
Check skill file exists:
(Pre-0.8.0 layout was
~/.openclaw/skills/rafter-security.md— that path is no longer read by ClawHub at runtime.) -
Reinstall skill:
-
Restart OpenClaw:
Commands Not Being Validated
If commands bypass Rafter:-
Check config:
-
Verify policy mode:
-
Enable if disabled:
False Positives
If safe commands are being blocked:-
Check audit log:
-
Adjust risk level:
- Report issue: rafter-cli/issues
Advanced Configuration
Custom Blocked Patterns
Add organization-specific patterns: Edit~/.rafter/config.json:
Approval Patterns
Require approval for specific commands:Multi-Agent Setup
Running multiple OpenClaw instances:Support
Need Help?
- Documentation: docs.rafter.so
- OpenClaw Docs: openclaw.com/docs
- Issues: rafter-cli/issues
- Community: OpenClaw Discord
Next Steps
Command Reference
Complete CLI command reference
Secret Scanning
Learn about secret detection

