Usage
Flags
Policy profile to install:
standard, paranoid, yolo, block-prompt-injection, research-agent, or mcp-serverCreate
.rampart/policy.yaml in the current directory for team-shared project rulesOverwrite existing config and profile files
Use default settings and overwrite existing files (alias for
--force)Auto-detect installed tools and generate a tailored policy
What it does
Global initialization
By default,rampart init creates:
- Config directory:
~/.rampart/ - Policy directory:
~/.rampart/policies/ - Audit directory:
~/.rampart/audit/ - Profile file:
~/.rampart/policies/<profile>.yaml
Project initialization
With--project, creates:
- Project directory:
.rampart/ - Project policy:
.rampart/policy.yaml
Policy profiles
standard
Balanced protection for general development work:- Blocks credential theft
- Blocks destructive commands
- Requires approval for network egress
- Allows most development tools
paranoid
Maximum security — blocks nearly everything:- Requires approval for all file writes
- Requires approval for all command execution
- Blocks all network operations
- Best for high-risk environments
yolo
Monitor-only mode — allows everything:- All actions allowed by default
- Audit logging only
- Useful for testing and experimentation
block-prompt-injection
Focused on prompt injection attacks:- Blocks indirect prompt injection patterns
- Blocks jailbreak attempts
- Allows normal operations
research-agent
Optimized for autonomous research agents:- Allows web browsing and API calls
- Blocks file system modifications
- Requires approval for command execution
mcp-server
Lockdown for MCP server environments:- Minimal permissions
- Blocks most operations by default
- Requires explicit allow rules
Examples
Basic initialization
~/.rampart/policies/standard.yaml
Paranoid mode
Project policy
.rampart/policy.yaml in the current directory:
Auto-detect environment
Force reset
custom.yaml and token are preserved.
Multiple profiles
Project policies
Project policies are applied on top of your global policy:- Global
default_actionalways takes precedence - Project rules can only add restrictions
- Set
RAMPART_NO_PROJECT_POLICY=1to skip loading project policy
Troubleshooting
Config already exists
--force to reset:
Project policy already exists
Invalid profile
See also
- rampart policy - Manage policies
- rampart setup - Install agent hooks
- rampart quickstart - One-shot setup