AI Assistant Setup
Web.Casa includes a built-in AI assistant with 73 tools that can manage your server, diagnose issues, generate configurations, review code, run system health inspections, and auto-heal problems. It natively supports three API protocols, covering six major LLM providers.
Warning: The AI assistant can execute real actions on your server (deploying projects, running commands, managing containers). A confirmation dialog is shown before risky operations, but you should still review each action carefully.
Provider Presets
Section titled “Provider Presets”Web.Casa natively supports 6 providers with 3 API protocols:
| Provider | API Format | Base URL | Models |
|---|---|---|---|
| OpenAI | openai-chat | https://api.openai.com | gpt-4o, gpt-4o-mini, o3-mini |
| Anthropic | anthropic-messages | https://api.anthropic.com | claude-sonnet-4-20250514, claude-haiku-4-20250414 |
| Google Gemini | google-generativeai | https://generativelanguage.googleapis.com | gemini-2.0-flash, gemini-2.5-pro |
| DeepSeek | openai-chat | https://api.deepseek.com | deepseek-chat, deepseek-reasoner |
| Moonshot (Kimi) | openai-chat | https://api.moonshot.cn | moonshot-v1-8k, moonshot-v1-32k, moonshot-v1-128k |
| Zhipu (智谱) | openai-chat | https://open.bigmodel.cn/api/paas | glm-4-flash, glm-4 |
Any OpenAI-compatible endpoint (Ollama, LM Studio, vLLM) also works by selecting the openai-chat format and entering a custom base URL.
Configuration
Section titled “Configuration”- Navigate to Settings > AI
- Select a provider preset or choose custom
- The API format is auto-selected based on the provider
- Enter the Base URL for the API endpoint
- Enter your API Key (encrypted with AES-GCM at rest)
- Select the Model to use
- Save settings and test the connection
Tip: API keys are encrypted at rest and never exposed in the UI after saving.
Embedding Model (Optional)
Section titled “Embedding Model (Optional)”For semantic search and vector-based memory retrieval, you can configure a separate embedding model:
| Provider | Models |
|---|---|
| OpenAI | text-embedding-3-small, text-embedding-3-large, text-embedding-ada-002 |
| Zhipu | embedding-3, embedding-2 |
You can optionally provide separate credentials for the embedding endpoint (Base URL + API Key). If not specified, the main provider’s credentials are used as fallback.
Chat Interface
Section titled “Chat Interface”The AI assistant is accessible through a chat panel in the Web.Casa UI:
- Conversation history — previous messages are maintained within the session
- Fullscreen mode — expand the chat to full screen for complex interactions
- Ctrl+Enter to send messages
- Clear conversation history at any time
Tools (73 Total)
Section titled “Tools (73 Total)”The AI assistant has access to 73 tools organized in 17 categories:
Host Management (7 tools)
Section titled “Host Management (7 tools)”list_hosts— list all reverse proxy hostsget_host— get details of a specific hostcreate_host— create a new reverse proxy hostupdate_host— modify an existing hostdelete_host— remove a host permanentlytoggle_host— enable or disable a hostclone_host— duplicate a host configuration to a new domain
Project Deployment (10 tools)
Section titled “Project Deployment (10 tools)”list_projects— list all deployed projectsget_project— get project detailscreate_project— create a new project from a Git repositorydeploy_project— trigger a build and deploymentget_build_log— retrieve build logsget_runtime_log— retrieve runtime logsstart_project/stop_project— start or stop a projectrollback_project— rollback to a specific build numberauto_deploy— one-command: Git URL → project creation → framework detection → build → reverse proxy with HTTPS
Docker Operations (9 tools)
Section titled “Docker Operations (9 tools)”docker_ps— list all containers with statusdocker_logs— view container logsdocker_list_stacks— list Compose stacksdocker_manage_container— start, stop, or restart a containerdocker_run_container— create and run a new containerdocker_pull_image— pull an image from a registrydocker_get_container_stats— real-time CPU/memory/network/IO statsdocker_remove_container— remove a containerdocker_prune— clean up unused resources (containers, images, volumes, or all)
Database Operations (5 tools)
Section titled “Database Operations (5 tools)”database_list_instances— list MySQL, PostgreSQL, MariaDB, Redis instancesdatabase_create_instance— create a new database instance in Dockerdatabase_create_database— create a logical databasedatabase_create_user— create a database user with access grantsdatabase_execute_query— execute read-only SQL queries (SELECT, SHOW, DESCRIBE, EXPLAIN)
File Management (5 tools)
Section titled “File Management (5 tools)”read_file— read file contents (restricted to safe directories)list_dir— list directory contents with metadatawrite_file— create or overwrite a file (max 1MB)delete_file— delete a file or directoryrename_file— rename or move a file
System & Metrics (3 tools)
Section titled “System & Metrics (3 tools)”get_system_metrics— current CPU, memory, disk usageget_system_info— hostname, OS, kernel, uptime, CPU cores, architecturerun_command— execute a shell command (dangerous commands are blocked)
AI-Powered Diagnostics (6 tools)
Section titled “AI-Powered Diagnostics (6 tools)”suggest_env_vars— recommend environment variables for a frameworkgenerate_dockerfile— generate optimized, production-ready Dockerfilesdiagnose_runtime— AI-analyze runtime logs for errors and performance issuesreview_code— security, performance, and best practices code reviewsuggest_rollback— analyze deployment history and recommend rollbacksummarize_alerts— AI summary of recent monitoring alerts with root cause analysis
Memory (4 tools)
Section titled “Memory (4 tools)”save_memory— store persistent facts for future conversationssearch_memory— search memory by keyword (with optional vector retrieval)list_memories— list stored memories with paginationdelete_memory— remove a memory entry
Firewall (3 tools)
Section titled “Firewall (3 tools)”firewall_status— get firewalld status, zones, and active ruleslist_firewall_rules— list port, service, and rich rules for a zonemanage_firewall_rule— add or remove firewall rules
PHP (2 tools)
Section titled “PHP (2 tools)”php_list_runtimes— list installed PHP runtimes (FPM + FrankenPHP)php_list_sites— list PHP websites with version and runtime info
Caddy Management (3 tools)
Section titled “Caddy Management (3 tools)”caddy_status— Caddy version, running state, config pathcaddy_restart— restart Caddycaddy_reload— reload configuration without downtime
Notification Channels (2 tools)
Section titled “Notification Channels (2 tools)”list_notify_channels— list configured channels (Webhook, Email, Discord, Telegram)test_notify_channel— send a test message
Monitoring Alert Rules (3 tools)
Section titled “Monitoring Alert Rules (3 tools)”list_alert_rules— list all alert rules and their statuscreate_alert_rule— create a threshold-based alert (e.g., CPU > 90% for 5 min)delete_alert_rule— remove an alert rule
App Store (3 tools)
Section titled “App Store (3 tools)”appstore_search_apps— search available applicationsappstore_install_app— one-click app installation via Dockerappstore_list_installed— list installed applications
Backup (1 tool)
Section titled “Backup (1 tool)”trigger_backup— trigger an immediate system backup
System Inspection (1 tool)
Section titled “System Inspection (1 tool)”run_inspection— comprehensive health check: disk, memory, containers, SSL certificates, and AI-powered summary report
Cron Job Management (6 tools)
Section titled “Cron Job Management (6 tools)”list_cron_jobs— list all scheduled jobs (optional tag filter)get_cron_job_logs— get execution logs for a jobcreate_cron_job— create a scheduled job (standard 5-field cron format)update_cron_job— update job settingsdelete_cron_job— delete a job and its logstrigger_cron_job— manually run a job immediately
Key Capabilities
Section titled “Key Capabilities”System Health Inspection
Section titled “System Health Inspection”The AI can run a comprehensive system audit checking disk usage, memory pressure, container health, SSL certificate expiration, and configuration issues. Results include an AI-generated summary with prioritized recommendations.
Self-Healing Engine
Section titled “Self-Healing Engine”When monitoring alerts fire, the AI’s SelfHealEngine automatically analyzes the situation and suggests remediation actions. This is rate-limited (5-minute cooldown) and integrates with the monitoring alert system via EventBus.
Auto-Diagnosis on Build Failure
Section titled “Auto-Diagnosis on Build Failure”When a project build fails (deploy.build.failed event), the AI automatically analyzes the build logs and provides a diagnosis with suggested fixes — no manual intervention needed.
Compose Generation
Section titled “Compose Generation”Describe the application you want to deploy in natural language, and the AI generates a complete docker-compose.yml:
“Set up a WordPress site with MySQL and Redis caching”
Confirmation Dialog
Section titled “Confirmation Dialog”Operations that modify your server trigger a confirmation dialog showing exactly what will be executed. You must approve before the action proceeds.