Kodachi Binaries
This is the suite map for operators and power users: see what each tool does, how the categories fit together, and where to find exact generated commands.
The signed command-line stack
What this suite is
A collection of 25 auto-documented, command-bearing Rust binaries registered as 26 CLI services, plus bundled companion runtimes, that form the backbone of Kodachi OS's privacy, anonymity, and intelligence infrastructure. Security and control binaries deliver enterprise-level protection and policy enforcement; AI binaries provide natural-language command execution, trusted agent orchestration, and machine-safe execution, all processed locally by default.
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.
How to read this page
Use the tabs above to move between the category map, the per-binary descriptions, the architecture and dependency view, the generated command surface, practical workflows, and the security model. For the big-picture pitch and comparison, see the Kodachi overview.
Suite taxonomy at a glance
oniux (process isolation helper) and tun2socks (proxy tunnel bridge).The signed release set contains 30 artifacts: 29 binary files plus the signed host-exposure-defaults.json policy artifact.
Core architecture principles
Zero-trust
Authentication-first design: protected commands check for an active online-auth session before they run.
Memory safe
Rust-first implementation with comprehensive error handling and rigorous safety practices.
Modular design
Independent services sharing cli-core, auth-shared, and logs-hook.
Forensic resistance
Multi-pass secure wiping, memory cleaning, and emergency data-destruction capabilities.
Privacy-first AI
Local engines run on the device by default. Selecting a configured external provider can transmit prompts and context; routing that traffic through VPN or Tor does not make the provider local.
Signed and verifiable
Every binary is cryptographically signed, so you can inspect and trust what you run.
Documentation hub
Complete command-line reference for all 25 command-bearing CLI binaries, plus guided category hubs.
Looking for a complete solution?
These are individual security components for advanced users who want to integrate specific tools into their workflow. For a full desktop experience with GUI, Conky system monitor, LibreWolf browser, and 10 dynamic application layers, choose the Kodachi Desktop Edition (built on Debian 13 Trixie). For a headless, command-line-only environment optimized for testing, SOCKS proxy deployment, and server operations, choose the Kodachi Terminal Server. Both editions ship every binary pre-installed and configured, the KAICS AI engine, and the ai-gateway agent execution layer.
Support the project
Kodachi is built and maintained by one person since 2013. These 27 Kodachi-authored binaries and hundreds of commands are provided free. Your support keeps them maintained.
Installation and compatibility model
The Downloads page is the canonical place for current commands. This section explains why the choices differ and what each package layer provides.
Full supported suite
Debian 13, Ubuntu 24.04, and Kodachi itself. The kodachi metapackage installs the complete integrated stack.
Older Debian-family releases
The current stable packages need glibc 2.34 or newer (2.35 for kodachi-ai). Debian 12 (2.36) and Ubuntu 22.04 (2.35) meet that floor, so APT resolves the same packages there. Check the Downloads page for the route recommended for your release.
Portable Linux path
Fedora, Arch, and other modern x86_64 distributions can use the signed portable binaries. Their package names differ, so system dependencies remain the operator's responsibility.
APT package layers
| Layer | Packages | Role |
|---|---|---|
| Full metapackage | kodachi | Pins the matching core, AI, dashboard, desktop integration, Conky, and assets. Recommended privacy-tool packages and Pi-hole are offered through APT recommendations. |
| Shared core | kodachi-hooks-core | Signed command-line services, shared configuration, install helpers, network controls, authentication, logging, integrity, and security workflows. |
| Optional first-party layers | kodachi-ai, kodachi-dashboard, kodachi-conky | Local-first AI commands, the native desktop control center, and the on-screen status widget. Each pulls its required shared core automatically. |
| Standalone privacy tools | kodachi-xray, kodachi-hysteria, kodachi-mieru, kodachi-v2ray, kodachi-v2ray-plugin, kodachi-kloak, kodachi-dnscrypt | Individually installable signed tool packages for operators who do not want the full suite. |
| DNS filtering | kodachi-pihole | Optional Pi-hole integration using the shared Kodachi setup path and DNSCrypt-compatible port layout. |
Repository trust boundary
The setup script installs the Kodachi signing key and repository definition. APT then verifies repository metadata and package hashes before installation. The published key fingerprint is 17D7 C4B0 2273 0515 B3FC D94D 38CB C528 166E AF7B.
What each delivery path does
APT repository
APT is the normal online path. It resolves compatible package layers, downloads only changed packages, verifies the signed repository, and supports targeted Kodachi updates. Removing or purging only the metapackage leaves its dependency packages installed. A reviewed apt autoremove --purge is a separate cleanup step for dependencies that APT considers unused.
Portable and offline
The portable installer verifies the release signature and checksum before extracting the binary pack. Its second helper installs Debian-family dependencies. The downloadable tarball exists for air-gapped or manual workflows where the online installer is not suitable.
Ready to install?
Use the current commands on Downloads, verify files and signatures in the browser, or open the searchable FAQ when an installation step fails.
Binary categories and requirements
At-a-glance authentication, privilege, and auto-start requirements for every binary, grouped by role. Each name links to its full generated reference page. Auth says whether a command needs an active online-auth login (Mixed: some commands do). Sudo is counted from each binary's signed help (Mixed: some commands need it). Auto-start says whether it runs without you starting it: Auto starts on its own (with the desktop session on the Desktop edition, or when another Kodachi service calls it), Optional is a background service you can enable, No runs only when you call it.
Network and privacy tools
| Binary | Primary function | Auth | Sudo | Auto-start |
|---|---|---|---|---|
| tor-switch | Advanced Tor network orchestration (127 commands) | Mixed | Mixed | No |
| routing-switch | Multi-protocol routing (14 protocols) plus External VPN Providers (VPN Gate, Riseup, NordVPN, IVPN, PIA, Surfshark, Mullvad-WG, and more) | Mixed | Mixed | No |
| ip-fetch | Secure IP geolocation with multi-source verification | Bulk only | No | No |
| dns-switch | DNS management with a categorized resolver database | Mixed | Mixed | No |
| dns-leak | Real-time DNS leak detection and analysis | Mixed | No | No |
System security and protection
| Binary | Primary function | Auth | Sudo | Auto-start |
|---|---|---|---|---|
| health-control | Emergency kill switches and panic modes | Mixed | Mixed | No |
| integrity-check | Cryptographic system integrity verification | No | Mixed | No |
| permission-guard | Real-time permission monitoring and enforcement | No | Mixed | No |
| online-auth | Secure authentication and heartbeat monitoring | Provider | Required | No |
| kodachi-soc | Host security monitoring with MITRE ATT&CK telemetry (no process kills; writes score history, and under root the refresh baselines, exposure policy and the watcher unit) | No | Mixed | No |
| kodachi-soc-notifier | Host exposure alerts in the desktop session while the dashboard is closed | No | No | Auto |
| kodachi-session-helper | Global emergency keyboard shortcuts in the desktop session | No | No | Auto |
Infrastructure and management
| Binary | Primary function | Auth | Sudo | Auto-start |
|---|---|---|---|---|
| logs-hook | Centralized secure logging infrastructure | No | No | Auto |
| deps-checker | Dependency validation and security auditing | No | Mixed | No |
| global-launcher | System-wide binary deployment manager | No | Mixed | No |
| workflow-manager | Batch command execution with conditional logic | Mixed | No | No |
| online-info-switch | Online information hub and RSS feeds | Mixed | No | No |
| conky-status | Unified Rust telemetry gateway for Conky desktop panels | No | No | Auto |
GUI applications and desktop interface
| Application | Primary function | Technology | Auth | Sudo |
|---|---|---|---|---|
| kodachi-dashboard | Unified GUI control center for all security services | Native desktop app | Mixed | Required |
AI and intelligence
| Binary | Primary function | Type | Sudo | Auto-start |
|---|---|---|---|---|
| ai-cmd | Natural language CLI for Kodachi commands | On-demand | No | No |
| ai-trainer | ML model training and validation | On-demand | Mixed | No |
| ai-learner | Learning orchestration and analysis | On-demand | No | No |
| ai-admin | Database management and diagnostics | On-demand | No | No |
| ai-discovery | Binary watcher and auto-indexer daemon | Daemon | Mixed | Optional |
| ai-scheduler | Cron-based task scheduler | Daemon | Mixed | Optional |
| ai-monitor | Proactive system monitoring daemon | Daemon | No | Optional |
| ai-gateway | Unified agent command gateway, policy firewall, and safe executor | On-demand | Policy | No |
Binary descriptions and use cases
A user-friendly overview of each binary's functionality, primary use cases, and operational capabilities. Each block links to its full generated documentation for exact command references and authentication requirements.
GUI control center
kodachi-dashboardUnified GUI control center
Modern desktop application providing a unified graphical interface for all Kodachi security services. It ships five cockpits: Circle (free, control), Lite Classic (free, control), ColonyOps (premium, control), Vitals (premium, monitoring) and SOC (premium, monitoring). Built for native performance and an elegant user experience. Features comprehensive control panels for authentication management (online-auth), network routing configuration (routing-switch with 14 protocols plus the External VPN Providers tab covering VPN Gate, Riseup, NordVPN, IVPN, PIA, Surfshark, AirVPN, Mullvad-WG, Windscribe, ProtonVPN, ExpressVPN, TorGuard), Tor network operations (tor-switch with 127 commands), DNS management (dns-switch), and system health monitoring (health-control). Provides real-time status displays, visual feedback for operations, and streamlined workflows for complex security tasks. Eliminates the need for multiple terminal windows by consolidating all binary operations into an intuitive dashboard interface. Supports dark and light themes, system tray integration, and keyboard shortcuts for power users. Ideal for users who prefer graphical interfaces while maintaining full access to all CLI capabilities.
Key features
- Centralized authentication: visual monitoring and management of online-auth service status and API key validation.
- Network protocol control: easy switching between VPN, WireGuard, Shadowsocks, V2Ray, Xray, Hysteria2, and Tor routing.
- Tor management: GUI access to 127 tor-switch commands including circuit rotation, exit node selection, and load balancing.
- DNS configuration: visual DNS server selection, DNSCrypt management, and real-time leak detection.
- System health dashboard: emergency kill switches, panic modes, integrity verification, and security scoring.
- Centralized notification center: one place for every alert (admin messages, SOC findings, command queue results, auto command runner, hardening and emergency alerts, updates, device status), reached from a bell in the sidebar. Per item you can mark read, dismiss, snooze, or play a sound if it recurs; a settings panel controls which severities are kept and per-category muting.
- Modern tech stack: a Rust backend for security with a native desktop runtime for a responsive, reactive UI.
Use cases
- Quick access to all security features without memorizing CLI commands.
- Visual monitoring of system security status and active connections.
- Rapid protocol switching for different anonymity requirements.
- Dashboard-style overview of all Kodachi services in one window.
- Ideal for users transitioning from GUI-based privacy tools.
AI suite (KAICS)
ai-cmdAI-powered command interface
Natural language command-line interface for Kodachi OS with 9 named engine paths: TF-IDF, ONNX intent classifier, ONNX semantic, Mistral.rs, GenAI/Ollama, legacy local LLM, Claude CLI, Codex CLI, and OpenCode. Translates plain English queries into Kodachi commands with real-time streaming responses and native tool calling. The built-in TF-IDF engine provides immediate local matching, while Mistral.rs supports local GGUF inference. GenAI/Ollama can stay local or use a configured external provider; external-provider selections can transmit prompts and context even when their network route uses VPN or Tor.
ai-gatewayUnified agent command gateway
Machine-facing gateway for AI agents and automation. Provides unified command discovery (list, search, help), machine invocation metadata in search results, policy-enforced execution, per-agent capability controls, audit logging, rate limiting, and trusted batch execution. Supports JSON argument payloads (--args-json) and explicit approval semantics for dangerous commands, while keeping dry-run planning available for safe automation.
Validated integration points
search --jsonexposesinvocation(service,command) for deterministic agent calls.run --args-jsonaccepts object payloads for shell-quote-safe invocation.- dangerous commands require explicit confirmation for live execution.
- dangerous
--dry-runremains available for planning. - recognized agent profiles include:
nullclaw,agentzero,openclaw,picoclaw,nanoclaw,claude-code,gpt,gemini,open-interpreter(unauthenticated callers fall back to theanonymousdefault identity).
ai-trainerML model training and validation
Machine learning model management tool for the KAICS system. Downloads pre-trained ONNX semantic models, trains intent classifiers from training data, performs incremental updates, validates model accuracy, and exports trained models for deployment. Essential for upgrading from Tier 1 (TF-IDF) to Tier 2 (ONNX semantic) accuracy. All training happens locally with no cloud dependency.
ai-learnerLearning orchestration and analysis
Continuous improvement engine for the KAICS AI system. Learns from accumulated user feedback and command usage patterns to improve intent classification accuracy over time. Supports incremental learning, period-based analysis, and report generation in markdown or JSON format. Can be scheduled via ai-scheduler for automated periodic learning cycles.
ai-adminDatabase management and diagnostics
Administrative tool for KAICS AI infrastructure. Provides full system diagnostics, database statistics and integrity checks, backup and restore operations, and performance tuning capabilities. Essential for maintaining AI system health and troubleshooting issues.
ai-discoveryBinary watcher and auto-indexer
inotify-based binary watcher daemon that automatically detects and indexes new or updated Kodachi binaries. Maintains a real-time service registry used by ai-cmd for command resolution. Supports hot-reload of the AI command index without requiring service restart. Essential for keeping the AI system aware of all available commands.
ai-schedulerCron-based task scheduler
Cron-based task scheduler for automated Kodachi operations. Uses a strict command whitelist for security, supports standard cron expressions, and provides persistent task storage that survives service restarts. Ideal for scheduling recurring security checks, Tor circuit rotations, DNS leak tests, and AI learning cycles.
ai-monitorProactive system monitoring daemon
Background monitoring daemon that continuously tracks VPN connections, Tor circuit health, DNS leak status, and system security scores. Runs checks every 30 seconds and generates actionable suggestions categorized by network, DNS, Tor, and security domains. Provides early warning of potential issues before they impact privacy or security.
Core services
online-authAuthentication and heartbeat monitoring
Provides authentication services for Kodachi OS through cryptographic API validation and secure session management. Handles service heartbeats for connection monitoring and manages API keys for authorized access. Implements privacy-preserving authentication protocols with encrypted credential storage and secure token rotation. Protects communication between local services and authentication endpoints with authenticated, encrypted transport; this does not by itself make the channel anonymous. Maintains session persistence across restarts while adhering to anti-forensic principles.
routing-switchMulti-protocol network routing
Comprehensive encrypted routing service with 14 scored protocols (WireGuard, OpenVPN, Tor, Xray VLESS, Xray VLESS-Reality, Hysteria2, Xray Trojan, V2Ray, Shadowsocks, Mita, Dante, plus xray-vmess as a legacy factory fallback, plus the two opt-in obfuscated transports AmneziaWG and OpenVPN over Cloak). auto-select ranks the plain protocols by default; AmneziaWG and OpenVPN over Cloak only enter the ranking with --prefer-obfuscated. It provides tunnel management, obfuscation options, and route layering. These controls change route topology but do not guarantee anonymity; latency, endpoint trust, and traffic-correlation risks remain.
tor-switchAdvanced Tor network orchestration
Manages Tor network connections and circuit isolation for Kodachi OS. Provides control over Tor instances, exit node selection, and circuit rotation. Features multi-instance Tor management, load balancing across circuits, DNS leak prevention, and traffic routing configuration. Supports transparent proxy setup, bridge configuration, and country-based exit node selection. Includes monitoring capabilities for circuit health and connection status.
ip-fetchSecure IP geolocation
Fetches IP geolocation data with multi-provider support and fallback mechanisms. Retrieves current IP address information including location, ISP, and connection details. Features automatic provider rotation when services are unavailable, response caching for efficiency, and verification through multiple sources. Supports both IPv4 and IPv6 addresses with JSON output format. Integrates with VPN and Tor connections to verify routing status.
online-info-switchInformation hub and RSS feeds
Information aggregation service providing RSS feed monitoring and data collection. Manages various information sources including security feeds, cryptocurrency data, and paste services. Features scheduled feed updates, content filtering, and data categorization. Supports multiple RSS sources with configurable refresh intervals. Provides structured output for collected information with timestamp tracking and source attribution.
conky-statusUnified Conky telemetry gateway
Rust telemetry gateway that unifies data collection for Kodachi Conky desktop panels. Replaces fragmented shell polling with a single snapshot cache and compatibility aliases, while preserving Conky-friendly outputs. Supports JSON, panel batching, key lookup, and refresh and TTL controls for stable desktop monitoring without script storms.
health-controlEmergency kill switches and panic modes
System health monitoring and emergency control service for Kodachi OS. Provides network connectivity checks, panic mode operations, and system state management. Features multiple emergency response levels (soft, medium, hard), network kill switches using iptables and nftables, secure data wiping capabilities, and MAC address randomization. Includes system scoring for security posture assessment, hardware monitoring, and USB device protection. Supports recovery operations for restoring network connectivity after emergency procedures.
dns-switchDNS management and resolver control
DNS management service supporting multiple secure resolver configurations. Manages system DNS settings from a categorized resolver database (reputable, normal, encrypted, fallback and remotely fetched servers) that includes privacy-focused options. Features DNSCrypt and DNS-over-HTTPS (DoH) through dnscrypt-proxy; DNS-over-TLS is not configured. Provides automatic resolver switching, fallback mechanisms, and Pi-hole integration. Includes DNS cache management and resolver health monitoring. Supports custom resolver configuration and automatic optimal server selection.
dns-leakDNS leak detection and prevention
DNS leak detection and prevention service for network privacy verification. Performs comprehensive leak tests across all network interfaces to identify DNS configuration issues. Features real-time leak detection, multi-provider verification, and automated alert generation. Monitors DNS queries to ensure they route through configured secure channels. Provides detailed reports on DNS resolver usage and potential privacy issues.
kodachi-socHost security monitoring
Host security monitoring service that powers the SOC cockpit. Collects host-security telemetry across file and critical-binary integrity, boot-autoload monitoring, rootkit and account-integrity checks, and CIS hardening posture, tagging findings with MITRE ATT&CK techniques. It is hardening-aware, so Kodachi's own protections never read as compromise. Exposes five commands: snapshot (collect all SOC telemetry), refresh (re-run the expensive background scans), watch (the service-owned always-on host exposure watcher), exposure (read host exposure findings, qualification and acknowledgement state) and policy (review, approve, revoke, list and explain host exposure policy). policy approve and policy revoke change stored policy, so it is not purely read-only.
kodachi-soc-notifierHost exposure session notifier
Bounded local user-session notifier for Kodachi host exposure findings. It consumes only the bounded local summary written by kodachi-soc watch and raises visual warning, critical, degraded, untrusted and unsupported alerts while the dashboard is closed. It exposes no subcommands of its own and is driven by the kodachi-soc-notifier.service user unit. It never scores or acknowledges a finding, so it can add no privilege of its own.
integrity-checkCryptographic system verification
System integrity verification service using cryptographic checksums and digital signatures. Validates file integrity through BLAKE3 hashing (SHA-256 as fallback) and signature verification. Features binary authentication, configuration file monitoring, and tamper detection. Provides scheduled integrity scans and on-demand verification. Maintains baseline checksums for critical system files and detects unauthorized modifications. Supports custom file lists and exclusion patterns for targeted verification.
permission-guardReal-time permission monitoring
File permission monitoring and enforcement service for system security. Monitors file system permissions and ownership to detect unauthorized changes. Features real-time permission tracking, automated correction of insecure permissions, and privilege escalation detection. Provides scheduled scans and on-demand verification of critical directories. Maintains permission baselines and reports deviations. Supports custom permission policies and automated remediation workflows.
logs-hookCentralized logging infrastructure
Provides centralized logging infrastructure with secure log collection, rotation, and deletion capabilities. Supports multiple log levels and rotation with configurable limits. Log files are stored as plain text: logs-hook does not encrypt them, and it implements no authentication of its own. Its wipe command overwrites a log file with three random passes and a final zero pass before truncating and removing it.
deps-checkerDependency validation and auditing
Validates system dependencies and performs security auditing of installed packages. Features automated dependency scanning, version conflict detection, and security vulnerability identification. Provides package relationship analysis, compatibility verification, and installation script generation. Includes system configuration validation and dependency tree analysis. Maintains databases of tested configurations for optimal system security.
global-launcherSystem-wide binary deployment
Deploys Kodachi binaries system-wide while maintaining proper execution contexts and security validation. Features intelligent shortcut creation, environment variable management, and working directory preservation. Provides binary integrity verification and automated rollback capabilities. Includes security validation protocols and comprehensive deployment logging. Enables global accessibility without compromising security isolation.
workflow-managerBatch command execution and automation
Comprehensive workflow automation service for batch command execution with advanced conditional logic and state management. Features template-based workflow creation and a hybrid conditional system combining success and fail states with pattern matching and JSON path evaluation. Provides interactive pause controls for manual checkpoints, plain-text run logging through logs-hook, and configurable per-step timeouts. Steps run one at a time in template order with no automatic retries, and a dry-run mode allows safe testing. Enables complex multi-step automation with regex pattern matching, substring searching, and JSON response evaluation for precise control flow. Ships with 122 ready-to-use built-in profiles stored in dashboard/hooks/config/profiles/, and users can create custom profiles for their specific automation requirements. Critical for system maintenance workflows, batch operations, and automated diagnostic procedures requiring conditional execution paths.
kodachi-session-helperGlobal emergency shortcut daemon
Global emergency keyboard shortcut daemon for Kodachi OS. It listens for the configured panic key combination so an emergency action can be triggered without opening the dashboard. Exposes three commands: daemon (run in the foreground until signalled), status (query the running daemon over its Unix socket) and reload (send SIGHUP to reload its configuration). None of the three requires sudo.
Inter-binary dependencies matrix
How the services call each other. online-auth gates protected operations and logs-hook is the shared logging spine used by every binary.
Binary communication flow
| Service | Calls these binaries | Called by these binaries |
|---|---|---|
| online-auth | logs-hook | Authentication required by: ip-fetch, tor-switch, routing-switch, dns-switch, dns-leak, health-control, online-info-switch, workflow-manager, and the AI binaries ai-cmd, ai-gateway, ai-admin, ai-learner, ai-trainer, ai-monitor, ai-scheduler |
| logs-hook | None | Integrated by all services for centralized logging |
| ip-fetch | logs-hook, online-auth, routing-switch | tor-switch, routing-switch, dns-switch, dns-leak |
| tor-switch | logs-hook, online-auth, ip-fetch | routing-switch |
| routing-switch | logs-hook, online-auth, tor-switch, ip-fetch | health-control, ip-fetch |
| dns-switch | logs-hook, online-auth, ip-fetch | None |
| dns-leak | logs-hook, online-auth, ip-fetch | None |
| health-control | logs-hook, online-auth, routing-switch | dns-switch, online-info-switch |
| integrity-check | logs-hook | None |
| permission-guard | logs-hook | Can be used alongside online-auth for permission checks |
| kodachi-soc | logs-hook (read-only telemetry) | Consumed by the dashboard SOC page |
| deps-checker | logs-hook | None |
| global-launcher | logs-hook | Can be orchestrated by online-auth for deployments |
| workflow-manager | logs-hook | None (user-initiated batch operations) |
| online-info-switch | logs-hook, online-auth, health-control | None |
| conky-status | logs-hook, online-auth, ip-fetch, dns-switch, health-control | None (consumed by Conky desktop panels) |
| ai-gateway | logs-hook | ai-cmd, external agents |
Critical service dependencies
| Dependency type | Description | Affected services |
|---|---|---|
| Authentication chain | Services requiring valid authentication before operation | ip-fetch, tor-switch, routing-switch, dns-switch, dns-leak, health-control, online-info-switch, workflow-manager, ai-cmd, ai-gateway, ai-admin, ai-learner, ai-trainer, ai-monitor, ai-scheduler |
| Logging infrastructure | All services use logs-hook for centralized logging | All binaries |
| IP verification | Services that call ip-fetch for network testing | tor-switch, routing-switch, dns-switch, dns-leak |
| System management | Services that may interact with online-auth | permission-guard, global-launcher |
System requirements and permissions
Privilege escalation requirements
| Operation type | Required permissions | Affected binaries |
|---|---|---|
| Network configuration | sudo / root | tor-switch (iptables/nftables), routing-switch, dns-switch |
| System security | sudo / root | health-control (network/MAC/hostname operations), kodachi-soc (host telemetry collection) |
| Authentication management | sudo / root | online-auth (system-wide operations) |
| Read-only operations | Standard user | ip-fetch, dns-leak, integrity-check, logs-hook, conky-status |
| AI operations | Standard user for most commands; sudo for ai-trainer model operations and some ai-discovery and ai-scheduler service commands | ai-cmd, ai-trainer, ai-learner, ai-admin, ai-discovery, ai-scheduler, ai-monitor, ai-gateway |
Service daemon capabilities
| Service | Daemon mode | Command | Purpose |
|---|---|---|---|
| online-auth | Heartbeat daemon | online-auth authenticate --keep-alive or --relogin | Maintains authentication session |
| logs-hook | Integrated by all services | Automatic | Centralized logging for all operations |
| global-launcher | Service management | Standalone | Binary deployment and management |
| ai-monitor | Background daemon | ai-monitor start --daemon | Proactive VPN/Tor/DNS monitoring |
| ai-scheduler | Background daemon | ai-scheduler start | Cron-based automated task execution |
| ai-discovery | Background daemon | ai-discovery start | Binary watcher and auto-indexer |
Command surface matrix
Current command totals (generated from bin-json/*_rust_binary.json)
| Service | Commands | Privilege model | Primary use case |
|---|---|---|---|
| health-control | 255 | Mixed (many system operations require sudo) | Emergency kill switches, panic modes, system hardening |
| tor-switch | 127 | Mixed (network stack and firewall operations may require sudo) | Tor orchestration and circuit controls |
| dns-switch | 45 | Mixed (runtime checks plus privileged DNS and system updates) | DNS management and resolver control |
| routing-switch | 31 | Mixed (routing and protocol transitions may require sudo) | Multi-protocol network routing |
| online-auth | 21 | Requires sudo (all 21 commands) | Authentication service and heartbeat and session management |
| ai-cmd | 14 | User-level; delegated commands vary | Natural language command interface |
| workflow-manager | 12 | Workflow-dependent | Batch command execution and automation |
| ip-fetch | 11 | User-level | IP geolocation and network verification |
| online-info-switch | 11 | User-level | Information feeds and freshness checks |
| ai-gateway | 9 | Policy-dependent | Agent command gateway and policy firewall |
| ai-trainer | 8 | Mixed (model operations require sudo) | ML model training and validation |
| integrity-check | 7 | Mixed (read-only checks vs protected paths) | System integrity verification |
| deps-checker | 6 | Mixed (install-missing requires sudo) | Dependency validation |
| conky-status | 4 | User-level | Conky telemetry gateway (legacy conky-details) |
| permission-guard | 4 | Mixed (watch and scan require sudo) | Permission monitoring and remediation |
| dns-leak | 5 | User-level | DNS leak testing |
| ai-scheduler | 4 | Mixed (start requires sudo; a scheduled command keeps its own needs) | Cron-based task scheduling |
| ai-monitor | 4 | User-level | Proactive monitoring daemon |
| ai-learner | 4 | User-level | Learning orchestration and analysis |
| logs-hook | 4 | User-level (sudo only to write into a root-owned base directory) | Logging and log maintenance |
| global-launcher | 3 | Mixed (deploy and cleanup require sudo) | Binary deployment and verification |
| kodachi-session-helper | 3 | User-level | Session helper utility |
| ai-discovery | 3 | Mixed (start requires sudo) | Binary discovery and indexing daemon |
| ai-admin | 3 | User-level | AI database diagnostics and maintenance |
| kodachi-soc | 8 | No process kills. Writes score history on every snapshot, and under root the refresh baselines, exposure policy (approve/revoke/renew), finding acknowledgements and the watcher unit | Host security telemetry, exposure findings and policy |
flag_h.commandCategories metadata in docs/binaries/bin-json/. They map the documented CLI surface of the 25 command-bearing binaries registered as 26 CLI services; the published headline of 606 generated commands also counts generated flag and subcommand variants. Privilege and auth requirements are command-specific, so check each binary page for exact per-command behavior.
Authentication patterns by service type
| Pattern | Services | Description |
|---|---|---|
| No authentication | logs-hook, global-launcher, deps-checker, permission-guard, integrity-check, kodachi-soc, conky-status, ai-discovery | No online-auth login check in any command |
| Mixed authentication | online-info-switch, dns-leak, routing-switch, ip-fetch, dns-switch, tor-switch, health-control, workflow-manager | Selective command authentication |
| Login for changes | ai-cmd, ai-gateway, ai-admin, ai-learner, ai-trainer, ai-monitor, ai-scheduler | Read-only and help commands run without a login; every other command requires an active online-auth session |
| Bulk operations auth | ip-fetch | Only bulk lookups require auth |
| Emergency bypass | health-control | Critical recovery commands bypass auth |
| Special provider | online-auth | Authentication provider service |
- Security and auth workflows: online-auth and health-control.
- Network routing that needs cards: routing-switch, tor-switch, and dns-switch.
- Generated flags and exact command syntax: CLI Reference.
Key capabilities overview
Advanced network operations
| Feature | Capability | Details |
|---|---|---|
| Tor operations | 127 commands | Control over instances, circuits, and exit nodes |
| Load balancing | Native kernel-level | Traffic distribution across multiple Tor instances |
| Protocol support | 14 protocols | OpenVPN, WireGuard, AmneziaWG, OpenVPN over Cloak, Tor, Shadowsocks, V2Ray, Xray variants, and more |
| DNS resolvers | Categorized database | DNSCrypt, DoH, Pi-hole integration |
Security and protection
| Feature | Implementation | Purpose |
|---|---|---|
| Emergency kill switch | health-control kill-network | Instant network termination |
| Panic system | 3 levels (soft, medium, hard) | Escalating emergency response: soft cuts the network, clears the clipboard and locks the screen; medium also stops processes, clears memory caches and unmounts external drives; panic-recover restores the saved network state; hard also forces the power off, then runs a RAM wipe until the power goes |
| Data wiping | Multi-pass shredding | Secure deletion with verification |
| MAC randomization | Auto and manual modes | Hardware address anonymization |
| Hostname management | Random generation | System identity protection |
System integration
| Aspect | Approach | Benefit |
|---|---|---|
| Memory safety | Rust-first implementation | Memory safety and explicit error handling |
| Performance | Optimized binaries | Fast response for critical operations |
| Output format | JSON-first design | Easy automation and scripting |
| Path detection | Dynamic resolution | Works on any Linux environment |
| Containment | Execution folder only | Enhanced security isolation |
Performance metrics
The generated fleet manifest records current signer-run sizes for 25 command-bearing CLI binaries plus the notifier. The wider signed set also includes the Kodachi dashboard and companion binaries. Fourteen routing protocols carry scores; plain auto-select ranks twelve of them, because AmneziaWG and OpenVPN over Cloak are opt-in under --prefer-obfuscated. The DNS resolver database is split into five categories (reputable, normal, encrypted, fallback and remotely fetched); its size differs between installs because fetched resolvers are added at run time.
Common workflows
Practical command sequences for everyday privacy operations. Copy any block and adapt it to your setup.
Network anonymization setup
# Authenticate and configure Tor
sudo online-auth authenticate # Basic authentication
# Or use --relogin for automatic reconnection on session expiry
sudo online-auth authenticate --relogin
sudo tor-switch start-tor
sudo tor-switch torrify-system-nftables # Prefer nftables (modern)
# sudo tor-switch torrify-system-iptables # Alternative: iptables (legacy)
ip-fetch fetch # Fetch current IP info through Tor (ISP/ASN shows Tor exit node)Multi-protocol routing
# Connect through various protocols
sudo routing-switch connect openvpn
sudo routing-switch connect shadowsocks
sudo routing-switch connect wireguard
sudo routing-switch status # Check active routing
sudo routing-switch list-protocols # List available protocols with scores
sudo routing-switch disconnect # Disconnect current protocolSecurity hardening
# System hardening workflow
sudo health-control set-random-hostname
sudo health-control mac-change-all
sudo permission-guard scan
sudo integrity-check check-integrity --jsonDNS configuration
# Secure DNS setup
dns-switch status --json # Read current DNS mode/status (no sudo)
dns-switch dnscrypt-monitor-status --json # Monitor DNSCrypt watchdog state
sudo dns-switch switch --category encrypted # Use encrypted DNS
dns-leak discover --json # Discover and analyze DNS configuration
sudo dns-switch random --type encrypted --count 3 # Use random encrypted resolvers
sudo dns-switch fix-dns # Emergency DNS repair fallback
sudo dns-switch fix-dns --force # Run complete DNS repair chainEmergency response
# Quick privacy mode
sudo health-control panic-soft
sudo tor-switch restart-tor # Get new Tor circuit
sudo health-control recover-internet --check-dns # Recover connectivity + DNS if needed
sudo health-control fast-recover-internet --force # Force quick recovery then escalate if still unhealthy
# Complete shutdown
sudo health-control kill-network
sudo health-control wipe-logsKeep internet alive (auto-recovery loop)
# Keeps checking connectivity recovery every 10s.
# Starts recover-internet only if another recovery process is not already running.
while true; do
if ! pgrep -fx "health-control recover-internet" > /dev/null; then
sudo health-control recover-internet &
fi
sleep 10
done
Security considerations
Security implementation details
| Feature | Implementation |
|---|---|
| Authentication | Services use KODACHI_CALLING_SERVICE environment variable for identity |
| Transport security | online-auth talks to the Kodachi server over HTTPS only (TLS 1.2 or newer), validated against the system CA bundle and checked for the kodachi.cloud domain |
| Error handling | Comprehensive error propagation without crashes |
| Audit trail | All operations logged through centralized logs-hook service |
Example JSON error an AI binary such as ai-admin prints when --json is set and the online-auth login check fails. The other services report the same failure inside their standard result envelope (status, command, version, an errors array of code and message, and metadata).
{
"status": "error",
"service": "ai-admin",
"error": {
"code": "AUTH_FAILED",
"message": "Authentication failed. Please authenticate using online-auth first"
}
}
Authentication flow
| Step | Command | Purpose |
|---|---|---|
| 1 | sudo online-auth authenticate --keep-alive or --relogin | Initial authentication (--relogin includes keep-alive) |
| 2 | online-auth check-login | Check authentication status |
| 3 | Service usage | Authenticated services automatically verify before execution |
| 4 | online-auth logout | Logout when finished |
System information
The authoritative version stamp is the release banner in the Overview tab. Values below track the current signed build.
| Component | Version | Build date | License |
|---|---|---|---|
| Kodachi OS | 10.0.3 | 2026 | Proprietary |
| Rust binaries | 10.0.3 (build #75) | 2026 | Proprietary |
| Documentation | 10.0.3 | 2026 | (c) 2026 Kodachi OS |
| Author | Warith Al Maawali | n/a | All rights reserved |