Skip to content

ai-admin

AI system administration and maintenance

Version: 9.0.1 | Size: 2.5MB | Author: Warith Al Maawali warith@digi77.com

License: Proprietary | Website: https://www.digi77.com


File Information

Property Value
Binary Name ai-admin
Version 9.0.1
Build Date 2026-02-14T07:59:25.574743441Z
Rust Version 1.82.0
File Size 2.5MB
JSON Data View Raw JSON

SHA256 Checksum

966851f86432c28249fa64edcf4f63f84bbc9c5f82be8f69cd49341809029d76

Features

Feature Description
Core Advanced functionality for Kodachi OS

Security Features

Feature Description
Inputvalidation All inputs are validated and sanitized
Ratelimiting Built-in rate limiting for network operations
Authentication Secure authentication with certificate pinning
Encryption TLS 1.3 for all network communications

System Requirements

Requirement Value
OS Linux (Debian-based)
Privileges root/sudo for system operations
Dependencies OpenSSL, libcurl

Global Options

Flag Description
-h, --help Print help information
-v, --version Print version information
-n, --info Display detailed information
-e, --examples Show usage examples
--json Output in JSON format
--json-pretty Pretty-print JSON output with indentation
--json-human Enhanced JSON output with improved formatting (like jq)
--verbose Enable verbose output
--quiet Suppress non-essential output
--no-color Disable colored output
--config <FILE> Use custom configuration file
--timeout <SECS> Set timeout (default: 30)
--retry <COUNT> Retry attempts (default: 3)

Commands

Commands

db

Database management operations

Usage:

ai-admin db [OPTIONS]

diagnostics

Run system diagnostics

Usage:

ai-admin diagnostics [OPTIONS]

tune

Performance tuning and optimization

Usage:

ai-admin tune [OPTIONS]

Examples

Database Operations

Database backup, restore, and management

Create database backup

ai-admin db backup --output ./backup.db
Expected Output: Backup created successfully

Note

Backup file will be created in execution folder

Restore database from backup

ai-admin db restore --backup ./backup.db
Expected Output: Database restored successfully

Note

Current database will be backed up before restore

Check database integrity

ai-admin db integrity-check
Expected Output: Database integrity check results

Run database migrations

ai-admin db migrate
Expected Output: Migrations applied successfully

Show database information and statistics

ai-admin db info
Expected Output: Database size, table counts, and statistics

Note

Useful for monitoring database growth

Show database info as JSON

ai-admin db info --json
Expected Output: Database information in JSON format

Note

Useful for automated monitoring

System Diagnostics

System health checks and diagnostics

Run basic diagnostics

ai-admin diagnostics
Expected Output: System diagnostics report

Run full diagnostics including integrity checks

ai-admin diagnostics --full
Expected Output: Comprehensive diagnostics report

Note

Includes database integrity and model validation

Full diagnostics with JSON output

ai-admin diagnostics --full --json
Expected Output: Comprehensive diagnostics in JSON format

Note

Full diagnostics include integrity checks

Run diagnostics with JSON output

ai-admin diagnostics --json
Expected Output: Basic diagnostics in JSON format

Note

Useful for automated health monitoring

AI Tier Configuration

Administration of the 6-tier AI engine system

Full diagnostics including all AI tier health

ai-admin diagnostics --full --json
Expected Output: JSON with tier availability, model paths, and health status

Note

Covers TF-IDF, ONNX, Mistral.rs, GenAI/Ollama, Legacy LLM, Claude

Quick diagnostics with AI tier status summary

ai-admin diagnostics --json
Expected Output: JSON with basic tier configuration info

Note

Faster than --full, covers essential tier checks

Performance Tuning

Database optimization and performance tuning

Optimize database performance

ai-admin tune optimize
Expected Output: Database optimized successfully

Note

Runs VACUUM and ANALYZE operations

Rebuild database indexes

ai-admin tune rebuild-index
Expected Output: Indexes rebuilt successfully

Clean up old data (older than 30 days)

ai-admin tune cleanup --days 30
Expected Output: Cleanup completed, X records removed

Clean up data older than 7 days

ai-admin tune cleanup --days 7
Expected Output: Cleanup completed, X records removed

Note

More aggressive cleanup for recent data

Optimize database with JSON output

ai-admin tune optimize --json
Expected Output: Optimization results in JSON format

Note

Shows detailed optimization statistics

Rebuild indexes with JSON output

ai-admin tune rebuild-index --json
Expected Output: Index rebuild results in JSON format

Note

Structured output for automation pipelines

Aggressive cleanup with JSON output

ai-admin tune cleanup --days 7 --json
Expected Output: JSON with cleanup statistics and records removed

Note

Combines short retention with structured output

Environment Variables

Variable Description Default Values
RUST_LOG Set logging level info error
NO_COLOR Disable all colored output when set unset 1

Exit Codes

Code Description
0 Success
1 General error
2 Invalid arguments
3 Permission denied
4 Network error
5 File not found