Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Configuration

guard-server

VariableDefault
GUARD_ADMIN_TOKENcontents of <data dir>/keys/admin.token, created on first startOperator token, at least 32 characters
GUARD_DATA_DIRguard-data (relative to the working directory)Keys and agent logs
GUARD_BIND127.0.0.1:9200Listen address

Data directory

guard-data/
  keys/
    audit.key      Ed25519 signing key (hex)        0600
    token.key      agent-token HMAC secret (hex)    0600
    admin.token    operator token, if not set by env 0600
  agents/
    <agent-id>.jsonl

Python client and example apps

VariableUsed by
GUARD_URLclient, appsGuard server URL (default http://127.0.0.1:9200)
GUARD_ADMIN_TOKENclient, appsOperator token; otherwise found in the data directory
GUARD_DATA_DIRclientWhere to look for keys/admin.token
DEEPSEEK_API_KEYDeepSeek appRead from the environment or .env at the repository root
DEEPSEEK_BASE_URLDeepSeek appDefault https://api.deepseek.com
ANTHROPIC_API_KEYClaude appOr sign in with ant auth login

Install script

VariableDefault
LINEAGE_VERSIONlatestVersion to install
LINEAGE_INSTALL_DIR~/.local/binWhere to put lineage and guard-server
LINEAGE_BASE_URLhttps://lineagrs.tech/downloadsDownload mirror