Overview
defenseclaw init — Initialize DefenseClaw environment.
Reference
Synopsis
defenseclaw init [OPTIONS]
Description
Initialize DefenseClaw environment
Initialize DefenseClaw environment.
Creates ~/.defenseclaw/, default config, SQLite database, and installs scanner dependencies.
Use --sandbox to set up openshell-sandbox standalone mode (Linux only). Use --enable-guardrail to configure the LLM guardrail inline.
Options
| Flag | Type | Default | Env var | Required | Description |
|---|---|---|---|---|---|
--skip-install | boolean | — | — | no | Skip automatic scanner dependency installation |
--enable-guardrail | boolean | — | — | no | Configure LLM guardrail during init |
--sandbox | boolean | — | — | no | Set up sandbox mode (Linux only: creates sandbox user and directories) |
Usage
Initialize with guardrail enabled
defenseclaw init --enable-guardrail
This creates the local DefenseClaw state and enables the guardrail setup path.
Skip dependency installation
defenseclaw init --skip-install
Use this when dependencies are already installed by another provisioning step.