The plumbing behind Kodachi: workflows, logs, dependency checks, launchers, status, and online information. Use this area when operating or troubleshooting the stack: run workflows, inspect logs, validate dependencies, and monitor system status.
WorkflowsLogsDependenciesStatus
Service Infrastructure Backbone
Infrastructure binaries provide the operational foundation for Kodachi services: centralized logs, dependency validation, global deployment, workflow orchestration, and controlled online intelligence feeds.
Enterprise-Grade Service Infrastructure and Management
The infrastructure tools in Kodachi OS provide the foundational service layer for logging, dependency management, service deployment, and information control. These production-ready binaries ensure reliable system operation through centralized logging, automated deployment, and comprehensive dependency validation.
On the command line, every binary here prints its help with <binary> help as well as --help, and its help ends with the exit codes it returns. See Help and Exit Codes.
Core Architecture Principles - Verified
Centralized Management: Single point of control for logs, dependencies, and deployments
Zero Configuration: Embedded configurations with no external YAML dependencies
Service Orchestration: Automated deployment and verification of all binaries
Information Control: Secure management of online exposure and data feeds
Kodachi's Rust binaries, AI binaries such as ai-cmd and ai-monitor included
Deployment Chain
Services deployed by global-launcher
All Rust binaries
Authentication
Services requiring online-auth
online-info-switch (paste only), workflow-manager (template changes), and seven of the eight AI binaries (all but ai-discovery) for their non-read-only commands
System Health
Services using health-control
online-info-switch
System Requirements and Permissions
Privilege Escalation Requirements
Operation Type
Required Permissions
Affected Binaries
Log Maintenance
sudo for root-owned log files
logs-hook (rotate and wipe of logs written by root services)
Conditions and the kill policy decide what runs after a failed step; there are no automatic retries
Timeout Control
Configurable timeouts per step
Dry Run Mode
Test workflows without execution
Centralized Logging (logs-hook - 4 commands)
Feature
Description
Log Levels
Multiple levels: info, warn, error, debug, fatal
Script Categorization
Script-based log categorization
JSON Output
JSON format for automation
Log Rotation
Automatic rotation once a log passes 2,000 lines
Secure Wiping
Wipe overwrites a log with three random passes and a zero pass, then removes it
Selective Operations
Selective file operations
Auto-embedded
Linked into Kodachi's Rust binaries as a shared library
Centralized Storage
/opt/kodachi/dashboard/hooks/logs/ directory
Structured Format
Consistent logging format
Dependency Management (deps-checker - 6 commands)
Feature
Description
Single Binary Check
Dependency checking for individual binaries
System-wide Audit
Complete dependency audit across system
Profile-based Checking
Minimal/full profile options
Auto Installation
Automatic missing package installation
Script Generation
Generate install scripts for multiple shells
SBOM Generation
Software Bill of Materials generation
Database Support
External dependency database
Version Tracking
Track dependency versions
Security Audit
Integration with security auditing
Binary Deployment (global-launcher - 3 commands)
Feature
Description
Dynamic Discovery
Automatic binary discovery
Global Symlinks
Create symlinks in /usr/local/bin
Multi-language Support
Support for Rust binaries
Status Checking
Deployment status verification
Integrity Verification
Symlink integrity checks
Rollback
Rollback capabilities
Folder Containment
Execution folder containment
Permission Preservation
Maintain file permissions
Atomic Operations
Ensure operation atomicity
Information Hub (online-info-switch - 11 commands)
Feature
Description
Status Detection
Online/offline status detection
RSS Feeds
Security RSS feed aggregation
Paste Services
Public paste service integration
Proof of Freshness
News + blockchain verification
Crypto Prices
Cryptocurrency price monitoring
Wallet Balance
Bitcoin wallet balance checking
Transport
HTTPS for most services, validated against the system CA bundle (no certificate pinning)
Auth Verification
Authentication verification
Rate Limiting
Public price APIs can rate-limit lookups; there is no limiter of its own
Desktop Telemetry (conky-status - 4 commands)
Feature
Description
Unified Snapshot
One collection pass over the security, system, network and resource fields (snapshot)
Single Key Lookup
get <key> returns one snapshot path, legacy alias or user.<name> value
Batched Panels
panel <security|system|network|resources|gauges|all> returns one subset per Conky panel instead of one call per field
User Commands
user <path|init|list|run> manages and runs user-defined commands from a JSON registry
Cache Control
--refresh, --cached and --ttl <sec> govern reuse of the cached snapshot
Collection Limits
--max-parallel <n> and --timeout-ms <ms> bound each collection pass
Common Workflows
Workflow Management
# Create workflow templateworkflow-managercreatemy-workflow
# Add commands (comma-separated for multiple)workflow-manageraddmy-workflow"sudo ip-fetch","online-auth check-login"# Run workflowsudoworkflow-managerrunmy-workflow
# Test without executionsudoworkflow-managerrunmy-workflow--dry-run
# List all workflowsworkflow-managerlist
Logging Operations
# Log a message with specific levellogs-hooklog--script"deployment"--levelinfo"Service started"# Rotate logs when they get largesudologs-hookmaintenancerotate--file/opt/kodachi/dashboard/hooks/logs/health-control-log.log
# Secure wipe of old logssudologs-hookmaintenancewipe--all
Dependency Management
# Check dependencies for specific binarydeps-checkercheckhealth-control
# System-wide dependency auditsudodeps-checkercheck-all--profilefull
# Install missing dependenciessudodeps-checkerinstall-missing
# Generate installation scriptdeps-checkergenerate-script--shellbash>install_deps.sh
Service Deployment
# Deploy all binaries globallycd/opt/kodachi/dashboard/hooks&&sudo./global-launcherdeploy
# Verify deployment statuscd/opt/kodachi/dashboard/hooks&&./global-launcherverify
# Clean up deploymentscd/opt/kodachi/dashboard/hooks&&sudo./global-launchercleanup
Information Services
# Check online statusonline-info-switchstatus--json
# Get security RSS feedsonline-info-switchrss--max-items10# Proof of freshnessonline-info-switchfreshness--json
# Cryptocurrency pricesonline-info-switchpriceall
Infrastructure tools have system-wide impact. Always verify operations before execution, especially deployment and package installation commands.
Security Features
Feature
Description
Embedded Configurations
No external config files to tamper
Execution Containment
Services operate within bounds
HTTPS
Network services use HTTPS where the remote service offers it
Audit Trails
Complete logging of operations
Permission Preservation
Maintain security boundaries
Best Practices
Practice
Description
Regular Audits
Check dependencies weekly
Log Management
Rotate and archive logs
Deployment Verification
Always verify after deploy
Network Security
Use authentication for online services
Backup Strategy
Maintain deployment rollback capability
Advanced Features
Log Analysis
# Search logs for errorsgrep-ierror/opt/kodachi/dashboard/hooks/logs/*.log
# Error lines across all service logs (log files are plain text)grep-F'[ERROR]'/opt/kodachi/dashboard/hooks/logs/*-log.log
# Real-time monitoringtail-f/opt/kodachi/dashboard/hooks/logs/health-control-log.log