Files
huty dc2d2acc82 feat: initial framework for AI-powered ops terminal
Scaffold an MVP of the natural-language ops terminal: inventory + intent
template registry, SSH/WinRM/local connectors, risk-gated executor with
SQLite audit log, Claude-driven agent layer using Function Calling, plus a
Typer CLI and FastAPI surface.

Includes 10 cross-OS intents (disk/system/service) and example inventory.
Verified end-to-end on the local Windows host: hosts/intents listing,
check_disk_usage execution, and WRITE-class confirmation gating.

Co-Authored-By: Claude Opus 4 <noreply@anthropic.com>
2026-05-21 11:01:43 +09:00

26 lines
580 B
Bash

# Anthropic API
ANTHROPIC_API_KEY=sk-ant-xxx
# Model selection
OPS_MODEL_MAIN=claude-sonnet-4-6
OPS_MODEL_FAST=claude-haiku-4-5-20251001
# Storage
OPS_DB_URL=sqlite+aiosqlite:///./data/ops.db
# Paths (relative to project root)
OPS_INVENTORY_PATH=config/inventory.yaml
OPS_TEMPLATES_DIR=templates
OPS_APPS_DIR=apps
OPS_PLAYBOOKS_DIR=playbooks
# Safety
# Whether WRITE-class intents auto-execute (default false: require confirm)
OPS_AUTO_EXECUTE_WRITE=false
# Whether DESTRUCTIVE intents are allowed at all
OPS_ALLOW_DESTRUCTIVE=false
# Server
OPS_HOST=127.0.0.1
OPS_PORT=8000