Any model. Any provider. Any project. Any machine. Any task. One user-controlled AI agent.
"Any model. Any provider. Any project. Any machine. Any task. One user-controlled AI agent."
HADES is distributed globally via npm. No local Rust compilation required.
npm install -g @pareekshith/hadeyRun hadey inside any project directory or repository:
hadey- Press
/to open the command palette and select/model. - Choose your provider:
- Local (Free & Offline): Select Ollama (automatically detects models on
localhost:11434). - Cloud Providers: Select OpenAI, Groq, DeepSeek, or Custom OpenAI-Compatible and provide your API key.
- Local (Free & Offline): Select Ollama (automatically detects models on
- Start building, debugging, refactoring, and automating!
Hades is a high-performance, universal AI agent CLI runtime engineered from the ground up in Rust. Built for software engineers, DevOps practitioners, and developers who demand speed, privacy, and full control over their workflows, Hades connects cloud LLMs and offline local models into a unified, sandboxed terminal cockpit.
Unlike browser-based assistants or opaque cloud coding tools, Hades executes natively on your machine with a strict permission engine, multi-agent orchestration, web intelligence, and Model Context Protocol (MCP) extensibility.
┌─────────────────────────────────────────────────────────┐
│ HADES-CLI │
│ Universal AI Agent CLI Runtime │
└────────────────────────────┬────────────────────────────┘
│
┌───────────────────────┬───────────────┴───────────────┬───────────────────────┐
▼ ▼ ▼ ▼
┌──────────────┐ ┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
│ AI Engine │ │ 53-Tool Sandbox │ │ Multi-Agent │ │ Web & Browser │
│ OpenAI / Groq│ │ Filesystem, OS, │ │ Orchestration │ │ Direct Search & │
│ DeepSeek │ │ Shell, Network, │ │ Planner, Coder, │ │ Fetch, Headless │
│ Local Ollama │ │ Process & Runtime│ │ Reviewer, DevOps│ │ Chromium Sidecar│
└──────────────┘ └─────────────────┘ └─────────────────┘ └─────────────────┘
- Cloud & Local Integration: Seamlessly switch between cloud providers (OpenAI, Groq, DeepSeek, OpenRouter) and offline local models (Ollama, LM Studio, vLLM, LocalAI).
- Auto-Discovery for Local Models: Automatically discovers local Ollama daemon instances (
http://127.0.0.1:11434) and lists installed models with zero manual setup. - Dynamic Capability Probing: Inspects model capabilities on the fly (streaming, tool payloads, JSON schema validation, context window size).
- Secure Credential Vault: API keys are securely stored in local encrypted files (
~/.hades/credentials.json) and automatically redacted from logs, transcripts, and UI viewports.
- Filesystem & Codebase Operations: Safe file creation, surgical line-based editing, directory scanning, and deletion within validated workspace boundaries.
- Shell & Process Management: Run build scripts, test suites, and terminal commands with configurable timeouts and output truncation guards.
- System & Network Diagnostics: Inspect CPU, memory, uptime, open ports, socket states, and running processes with PID resolution.
- Path Traversal Sandboxing: Strict boundary enforcement confines agent operations to the designated workspace root to prevent unintended system escapes.
- Interactive Risk Approvals: Dangerous actions (
system.process.terminate, destructive shell commands, custom evaluations) require explicit interactive user approval (Allow Once,Allow Session,Deny).
- Hierarchical Agent Dispatch: The orchestrator decomposes complex tasks into structured plans and coordinates specialist subagents.
- Dedicated Agent Roles:
- Architect: System design, directory structure planning, and architectural reviews.
- Coder: Code implementation, refactoring, and bug fixes.
- Researcher: Codebase exploration, dependency inspection, and documentation retrieval.
- Reviewer: Code quality analysis, lint checks, and test coverage verification.
- Security Auditor: Vulnerability scanning, permission auditing, and secret leak detection.
- DevOps: Build optimization, containerization, CI/CD scripts, and environment configuration.
- Browser Agent & Web Testing Agent: Web exploration, live UI testing, and network diagnostics.
- Zero-Overhead Search & Fetch:
- Direct HTTP Search (
web.search): Fast DuckDuckGo search queries returning titles, URLs, and snippets without browser overhead. - Direct HTTP Fetch (
web.fetch): Sanitizes HTML to clean, readable Markdown stripped of ads, scripts, and tracking tags.
- Direct HTTP Search (
- Headless Browser Automation (
browser.*):- Automatically discovers local Chrome, Chromium, Microsoft Edge, and Brave installations.
- Communicates directly via Chrome DevTools Protocol (CDP) over WebSockets.
- Accessibility-First Snapshots: Maps interactive DOM nodes to stable identifiers (
[ref_001] button "Submit"). - Dispatches clicks, form fills, keypresses, and scrolling with built-in loop detection tripwires.
- Generates high-resolution screenshots and PDF artifacts.
- Live inspection of JavaScript console logs and network traffic.
- Client & Server Support: Implements the official MCP standard (
protocolVersion: 2024-11-05). - STDIO & Streamable HTTP Transports: Connects to community MCP servers (
npx,uvx,python,docker). - Dynamic Tool Namespacing: External tools are automatically registered (e.g.
github.create_issue,postgres.query_schema) and guarded by HADES risk assessment. - Hades as an MCP Server: Expose HADES workspace inspection and diagnostics directly to Claude Desktop, Cursor, or external agents:
hadey mcp-server --workspace /path/to/project
- Fiery Dark-Mode Gradient: High-contrast theme featuring the HADES trident identity (
🜲 HADES). - 5-Region Responsive Layout: Fixed header border, scrollable conversation viewport, multi-line prompt input, status bar, and keymap footer.
- Real-Time Token Streaming: Low-latency rendering with manual scroll lock and incremental line navigation.
- Interactive Copy Mode (
Ctrl+Y): Extract clean Markdown text directly to the system clipboard across macOS, Linux, and Windows. - Command Palette (
/): Access slash commands, session management, tool lists, and settings with fuzzy autocompletion.
# Launch interactive TUI in current working directory
hadey
# Launch in a specific project workspace
cd /path/to/my-project && hadey
# Resume a previous conversation session by ID
hadey --session 3f9a1b2c-4d5e-6f7a-8b9c-0d1e2f3a4b5c
# One-off non-interactive prompt for scripts and CI (streams to stdout, exits 0 on success)
hadey -p "What is 2+2?"
hadey -p "explain this error: $(cat error.log)"
cat error.log | hadey -p -
# Read-only tools run automatically; tools that need approval are skipped in this mode.
# Shell completions (add the line to your shell profile)
source <(hadey --completions bash) # bash
hadey --completions zsh > "${fpath[1]}/_hadey" # zsh
hadey --completions fish > ~/.config/fish/completions/hadey.fish
hadey --completions powershell | Out-String | Invoke-Expression # PowerShell
# Launch with custom configuration and data paths
hadey --config ~/.config/hades/custom.toml --data-dir ~/my_hades_storage
# Clean up saved sessions with no messages (and optionally ones idle for 30+ days)
hadey --prune
hadey --prune-older-than 30
# Launch as a background Model Context Protocol (MCP) server
hadey mcp-server --workspace /path/to/projectUsage: hadey [OPTIONS] [COMMAND]
Commands:
mcp-server Launch Hades in Model Context Protocol (MCP) server mode over STDIO
help Print this message or the help of the given subcommand(s)
Options:
-c, --config <FILE> Custom path to configuration file (default: ~/.hades/config.toml)
-d, --data-dir <DIR> Custom directory for persistent storage (default: ~/.hades/data)
-l, --log-dir <DIR> Custom directory for log files (default: ~/.hades/logs)
--prune Delete saved sessions that have no messages, then exit (active session is kept)
--prune-older-than <DAYS> Also delete sessions inactive for more than DAYS days (implies --prune)
-s, --session <SESSION_ID> Resume an existing conversation session by ID
-p, --prompt <TEXT> Run one prompt non-interactively, stream the answer to stdout and exit ("-" reads stdin)
--completions <SHELL> Print a shell completion script (bash, zsh, fish, powershell, elvish) and exit
-h, --help Print help
-V, --version Print version
Open the interactive model picker inside HADES by typing /model in the prompt:
- Install and start Ollama (
ollama serveor system daemon). - Pull your preferred models:
ollama pull llama3.2orollama pull deepseek-r1:7b. - Select
/model-> Ollama in HADES. All local models appear automatically. - Long local generations are never cut off while tokens are flowing. If a large model takes more than 10 minutes to load or emit its first token, raise
local_stream_idle_timeout_secsunder[provider]inconfig.toml.
- Obtain an API key from platform.openai.com.
- Select
/model-> OpenAI. - Choose
gpt-4o,gpt-4o-mini,o1, oro3-mini. - Enter your API key (stored securely in
~/.hades/credentials.json).
- Get an API key from console.groq.com.
- Select
/model-> Groq. - Choose
llama-3.3-70b-versatile,mixtral-8x7b-32768, ordeepseek-r1-distill-llama-70b.
- Get an API key from platform.deepseek.com.
- Select
/model-> Custom OpenAI-Compatible. - Base URL:
https://api.deepseek.com, Model:deepseek-chatordeepseek-reasoner.
- Select
/model-> Custom OpenAI-Compatible. - Base URL:
http://localhost:1234/v1(LM Studio) orhttp://localhost:8000/v1(vLLM). - Specify Model Identifier and optional Bearer token.
| Key Binding | Context | Action |
|---|---|---|
[Input] + Enter |
Prompt Input | Submit message or instruction to active agent. |
/ |
Empty Prompt | Open interactive Command Palette. |
Ctrl + Y |
Active Viewport | Open Interactive Copy Mode (export turn to clipboard). |
Ctrl + C |
Global | Cancel streaming response or exit application cleanly. |
Up / Down |
Viewport | Scroll conversation view line-by-line. |
PageUp / PageDn |
Viewport | Scroll conversation view by full screen page. |
Home / End |
Viewport | Jump to beginning or end of conversation history. |
Ctrl + L |
Viewport (also while streaming) | Jump to the latest output and resume auto-scroll. |
Enter |
Modals & Dialogs | Confirm modal selection or execute selected palette action. |
Esc |
Modals & Dialogs | Dismiss modal dialog and return focus to chat. |
Type / in the prompt input field to activate the command palette. Shorthand aliases are shown in parentheses; typing one highlights its command:
| Command | Arguments | Description |
|---|---|---|
/help (/h) |
None | Display modal listing all available keyboard shortcuts and slash commands. |
/model (/m) |
None | Open model picker to switch AI providers and target models. |
/tools (/t) |
None | Inspect registry of 53 built-in agent tools and external MCP tools. |
/browser |
None | Inspect web intelligence status, detected browser binary, and active tabs. |
/mcp |
None | Inspect configured Model Context Protocol (MCP) servers, tools, and diagnostics. |
/permissions |
None | View security rules, permission scopes, and risk levels for active session. |
/workspace |
None | View active workspace root directory path and detected project metadata. |
/sessions (/s) |
tag|untag <name>, prune [days] |
Open session manager to view, rename, switch, or delete saved conversations. /sessions tag bugfix labels the current session (shown as badges in the session manager); /sessions untag bugfix removes it. /sessions prune removes empty sessions; /sessions prune 30 also removes sessions inactive for 30+ days. The current session is never removed. |
/new |
None | Create a new isolated conversation session. |
/clear |
None | Clear the conversation and reset model context while keeping the current session. |
/switch |
None | Quick-switch to a recent conversation session. |
/status |
None | View active model status, system health, context token usage, and storage stats. |
/exit |
None | Save session state and exit HADES cleanly. |
| Category | Tool Identifier | Risk Level | Description |
|---|---|---|---|
| Filesystem | filesystem.read |
Safe | Read full or partial line ranges of workspace files. |
filesystem.write |
Low | Write new contents to specified workspace file paths. | |
filesystem.edit |
Low | Perform surgical, line-targeted replacements in existing files. | |
filesystem.create |
Low | Create empty files or directories within workspace sandbox. | |
filesystem.delete |
High | Delete specified workspace files (Requires confirmation). | |
filesystem.list |
Safe | List directory trees and file metadata within workspace. | |
filesystem.search |
Safe | Regex or literal content search across workspace files with line numbers and snippets. | |
| Workspace | workspace.info |
Safe | Retrieve project name, language detection, and structure details. |
workspace.scan |
Safe | Scan workspace tree for configuration files and build manifests. | |
workspace.dependencies |
Safe | Parse package manifests (Cargo.toml, package.json, pyproject.toml, go.mod). | |
| Shell & Execution | shell.execute |
High | Execute terminal commands with timeout limits (Requires confirmation). |
| Environment | environment.get |
Safe | Read specific environment variable values with auto-redaction. |
environment.list |
Safe | List defined environment variables with credential masking. | |
environment.set |
Low | Set session-level environment variables for child processes. | |
| System Info | system.info |
Safe | Host machine diagnostics: OS kernel, system load, hostname, uptime. |
system.platform |
Safe | Identify operating system platform (macOS, Linux, Windows). | |
system.architecture |
Safe | Inspect CPU architecture (x86_64, aarch64). | |
system.gpu |
Safe | Report GPU model, VRAM and utilization (nvidia-smi or native OS tools) for local inference. | |
system.hostname |
Safe | Retrieve network node hostname. | |
system.uptime |
Safe | Inspect host uptime in seconds and formatted duration. | |
| Process Control | system.process.list |
Safe | List running system processes with PID, CPU, and memory metrics. |
system.process.inspect |
Safe | Detailed view of process memory footprint, arguments, and status. | |
system.process.find |
Safe | Search active processes by executable name or keyword regex. | |
system.process.terminate |
Critical | Terminate running process by PID (Requires interactive approval). | |
| Network | system.network.interfaces |
Safe | List active network hardware interfaces and IP addresses. |
system.network.port_check |
Safe | Test TCP socket accessibility on host or remote address. | |
system.network.port_process |
Safe | Resolve process PID owning a specified TCP/UDP listening port. | |
system.network.connections |
Safe | List active TCP socket connections and socket states. | |
| Runtime & PATH | system.runtime.which |
Safe | Locate binary path of executables present on host PATH. |
system.runtime.version |
Safe | Determine installed version string of runtime binaries (node, rustc, python). |
| Category | Tool Identifier | Risk Level | Description |
|---|---|---|---|
| Web Retrieval | web.search |
Safe | Perform direct DuckDuckGo web search without launching a browser. |
web.fetch |
Safe | Fetch web page and extract clean Markdown (strips scripts, styles, SVGs). | |
| Browser Sidecar | browser.start |
Low | Launch headless browser sidecar process (Chrome, Edge, Brave). |
browser.close |
Safe | Terminate browser session and clean up temporary profiles. | |
browser.status |
Safe | Inspect browser runtime state, detected binary, and active tabs. | |
browser.tabs |
Safe | List open browser tabs and URLs. | |
browser.open |
Safe | Navigate active browser tab to a specified URL. | |
browser.snapshot |
Safe | Capture accessibility tree mapping interactive DOM nodes to refs. | |
browser.extract_text |
Safe | Extract visible text content from the active webpage. | |
browser.extract_markdown |
Safe | Convert live rendered DOM structure to formatted Markdown. | |
browser.get_links |
Safe | Extract all links (<a> tags) and destination URLs from current page. |
|
browser.get_page_info |
Safe | Retrieve page title, URL, viewport dimensions, and metadata. | |
browser.click |
Medium | Click an interactive element by reference (ref_001) or selector. |
|
browser.fill |
Medium | Clear and type text into an input field by reference or selector. | |
browser.select |
Medium | Select dropdown option in <select> elements. |
|
browser.scroll |
Safe | Scroll page viewport up, down, or to a specific coordinate. | |
browser.hover |
Safe | Hover pointer over a specific element reference. | |
browser.press_key |
Medium | Send keyboard keypresses (Enter, Tab, Escape, Arrow keys). | |
browser.screenshot |
Safe | Capture high-resolution viewport or full-page PNG screenshot artifact. | |
browser.pdf |
Safe | Print current webpage to a PDF document artifact. | |
browser.console |
Safe | Retrieve live JavaScript console logs and browser error entries. | |
browser.network |
Safe | Inspect live HTTP network requests, headers, and status codes. | |
browser.evaluate |
High | Execute sandboxed JavaScript expression in page context. |
HADES automatically initializes ~/.hades/config.toml on first run:
# General System Settings
[general]
app_name = "hadey"
default_mode = "simple"
theme = "fire" # TUI color palette: "fire" (default), "matrix", "cyan", "monochrome"
scroll_speed = 3 # Lines per mouse-wheel notch (1-100)
# Terminal Interface Settings
[ui]
theme = "dark"
show_status_bar = true
# Active Model & Provider Settings
[model]
provider_id = "groq"
model_id = "llama-3.3-70b-versatile"
# Provider Network Timeouts (seconds, 0 disables a timeout)
[provider]
connect_timeout_secs = 10 # Fast detection of offline/unreachable servers
cloud_request_timeout_secs = 300 # Total limit for non-streaming cloud requests
cloud_stream_idle_timeout_secs = 120 # Max silence between streamed chunks (cloud)
local_request_timeout_secs = 0 # Disabled: slow local inference is never cut off
local_stream_idle_timeout_secs = 600 # Max silence between chunks, incl. model load (Ollama)
# Browser Sidecar & Web Settings
[browser]
enabled = true
mode = "isolated" # "isolated" (temp profile) or "persistent"
preferred_browser = "auto" # "auto", "chrome", "chromium", "edge", "brave"
headless = true
default_timeout_seconds = 30
max_actions_per_task = 100
max_tabs = 10
# Model Context Protocol (MCP) Configuration
[mcp]
enabled = true
[mcp.servers.github]
transport = "stdio"
command = "npx"
args = ["-y", "@modelcontextprotocol/server-github"]
token_env = "GITHUB_TOKEN"
timeout_secs = 30
enabled = true
auto_start = true
[mcp.servers.postgres]
transport = "stdio"
command = "npx"
args = ["-y", "@modelcontextprotocol/server-postgres", "postgresql://localhost/mydb"]
enabled = false
auto_start = falseHADES is built as a modular, decoupled Cargo workspace consisting of 11 dedicated crates:
graph TD
CLI[hades-cli<br/><i>Binary Entry Point, CLI Args, MCP Server Mode</i>] --> TUI[hades-tui<br/><i>Ratatui Interface, 5-Region Layout, Copy Mode</i>]
TUI --> CORE[hades-core<br/><i>State Machine, Command Registry, Coordinator</i>]
CORE --> AGENT[hades-agent<br/><i>Multi-Agent Orchestrator, Specialist Roles & Planner</i>]
CORE --> BROWSER[hades-browser<br/><i>Web Search/Fetch & Headless Browser CDP Sidecar</i>]
CORE --> PROVIDER[hades-provider<br/><i>AI Provider Abstraction, Ollama Prober, SSE Streaming</i>]
CORE --> TOOLS[hades-tools<br/><i>29 Core Sandboxed Agent Tools & Permissions</i>]
CORE --> MCP[hades-mcp<br/><i>Model Context Protocol Client & Server Engine</i>]
CORE --> STORAGE[hades-storage<br/><i>Session Persistence & Timestamp Formatter</i>]
CORE --> CONFIG[hades-config<br/><i>TOML Configuration Engine</i>]
CORE --> EVENTS[hades-events<br/><i>Async Pub/Sub Telemetry Event Bus</i>]
| Crate | Purpose |
|---|---|
crates/hades-cli |
Main binary entry point, CLI arguments parsing via clap, file logging, and MCP server mode. |
crates/hades-tui |
Full-screen terminal UI built on ratatui and crossterm. 5-region layout, clipboard export, and theme rendering. |
crates/hades-core |
Central application orchestrator, state machine (AppState), command registry, and execution loop. |
crates/hades-agent |
Multi-agent orchestration, specialist agent roles, task decomposition, and decision engine. |
crates/hades-browser |
Direct HTTP search & fetch, headless Chromium/Edge/Brave sidecar, CDP client, and accessibility snapshots. |
crates/hades-provider |
Universal provider abstraction (Provider), model managers, local Ollama prober, credential vault, SSE streaming. |
crates/hades-tools |
29 core sandboxed tools (filesystem, shell, network, process, environment, runtime) and permission engine. |
crates/hades-mcp |
Model Context Protocol (MCP) client, multi-server manager, STDIO & HTTP transports, and Hades MCP server mode. |
crates/hades-storage |
JSON/file session storage, conversation recovery, relative timestamp formatting. |
crates/hades-config |
Schema-validated TOML configuration management at ~/.hades/config.toml. |
crates/hades-events |
Asynchronous Pub/Sub event bus for telemetry, lifecycle events, and audit logging. |
If you wish to contribute to HADES or compile directly from source:
- Rust Toolchain: Rust 1.80.0+ (
rustup update stable) - C/C++ Build Tools:
build-essential(Linux), Xcode CLI Tools (macOS), or MSVC/MinGW (Windows)
# Clone the repository
git clone https://github.com/PareekshithPalat/HADES_CLI.git
cd HADES_CLI
# Build release binary
cargo build --release
# Run locally
cargo run --bin hadesAll contributions must pass the project's strict zero-warning quality gates:
# 1. Formatting check
cargo fmt --all -- --check
# 2. Workspace compilation check
cargo check --workspace --all-targets
# 3. Full test suite (135+ tests)
cargo test --workspace
# 4. Strict Clippy lint check
cargo clippy --workspace --all-targets --all-features -- -D warningsWe welcome community contributions, bug reports, and feature requests. Please check CONTRIBUTING.md for development workflows and submission guidelines.
Distributed under the MIT License. See LICENSE for complete details.
