CLI commands

init

Interactive guided setup wizard.


Creates configuration files at ~/.securitylayer/ through an interactive prompt-based wizard.

Usage

sl init

Prompts

PromptDefaultDescription
Session nameclaude-codeName for the default session (must match ^[a-z0-9-]+$)
Capabilitiesexec, file.read, file.write, web_fetchMulti-select capability grants
Default taintownerBase trust level (owner, trusted, untrusted)
LLM judgeNoEnable semantic analysis layer
ProviderAnthropic, OpenAI, Google, xAI, or OpenAI-compatible
ModelModel name (e.g., claude-haiku-4-5-20251001)
API key env varEnvironment variable for the API key
Base URLFor OpenAI-compatible providers only

Files created

FilePurpose
config.yamlMain configuration
capabilities/sessions.yamlSession capability grants
capabilities/channels.yamlChannel capability restrictions
capabilities/skills.yamlSkill capability declarations
ai-tools.yamlAI tool caller profiles
projects.yamlProject directory trust rules
learned-rules.jsonAuto-approved patterns (initially empty)

Exit codes

CodeMeaning
0Setup completed successfully

See also

On this page