Quick Start
Bootstrap Your Environment
Section titled “Bootstrap Your Environment”Detect your platform, probe for existing backends, and generate a models.json:
az bootstrapThis checks common ports (11434 for Ollama, 8080 for llama.cpp, 8000 for vLLM), recommends the best backend for your platform, and optionally installs it. Use --non-interactive for CI or --skip-model to skip model downloads.
Initialize a Project
Section titled “Initialize a Project”cd your-projectaz init --privateThis creates .agentzero/ with:
policy.yml— security policy rulessettings.toml— default provider and modelmodels.json— provider configurationsaudit/— audit event logssessions/— conversation historyvault/— encrypted secretsprompts/— custom system promptsskills/— local skill overridesindex/— semantic search index (when usingaz index build)
Chat with Your Project
Section titled “Chat with Your Project”az chatThe agent can read files, list directories, search code, and execute tools — all governed by your policy.
you> what does this project do? [tool: read] ok (1234 bytes) [tool: list] ok (450 bytes)
agentzero> This is a Rust workspace with 13 crates implementing...Run a Security Scan
Section titled “Run a Security Scan”az run repo-security-auditScans for secrets, PII, prompt injection attempts, and unsafe patterns.
Query Your Documents
Section titled “Query Your Documents”Build a semantic index of your project files, then ask questions about them in chat:
ollama pull nomic-embed-textaz index buildaz chatyou> how does the policy engine work? [tool: query] ok (2048 bytes)
agentzero> The policy engine uses deny-by-default semantics with...See the Document Querying guide for details.
Use as MCP Server
Section titled “Use as MCP Server”Add to your Claude Code or Cursor settings:
{ "mcpServers": { "agentzero": { "command": "agentzero", "args": ["mcp"] } }}Now your editor’s AI gets policy-controlled tool access through AgentZero.
Editor Integration
Section titled “Editor Integration”Generate editor-native config files during init:
az init --private --editor vscodeThis creates .vscode/tasks.json configured to launch az serve. Also works with cursor and zed.
For scripting and automation, use single-shot mode:
az chat -P "what does this project do?" --mode jsonThis sends one message, prints the JSON response, and exits.
Choose a Different Model
Section titled “Choose a Different Model”# Use a specific modelaz chat --model codellama
# Use llama.cpp instead of Ollamaaz chat --provider llama-cpp
# Use vLLM on a custom portaz chat --provider vllm --url http://gpu-box:8000Search for Skills
Section titled “Search for Skills”az search "security audit"Returns matching skills from the index with name, description, trust tier, and tags. Use --json for machine-readable output.
View Audit Summary
Section titled “View Audit Summary”az audit summaryShows a human-readable summary of audit activity: session count, total events, denied actions, and redactions applied. Use --json for structured output.
Generate a Tool
Section titled “Generate a Tool”The agent can create new WASM tools during a chat session:
you> I need a tool that counts lines in all .rs files [APPROVE generate_tool: line-counter?] (y/yes-all/n) y [tool: generate_tool] ok — registered line-counter v1
agentzero> Created and registered the line-counter tool. It's now available for use.Encryption (On by Default)
Section titled “Encryption (On by Default)”Encryption is enabled by default — you’ll be prompted for a passphrase:
az chat# Encryption passphrase: ********# Audit logs and sessions encrypted at restTo disable, pass --no-encrypt.