doum-cli
🤖 AI-Powered Terminal Assistant - Natural language interface for OS commands
Features
- 💬 Ask Mode: Get answers to technical questions
- 🔍 Suggest Mode: Command suggestions with copy/execute options
- 🎯 Auto Mode: LLM automatically selects the appropriate mode
- 🔐 Secret Management: Secure API key storage with OS keyring
- ⚙️ Config Management: Simple config commands (set/get/unset/show/reset)
- 🌍 Multi-Provider: Support for OpenAI (GPT) and Anthropic (Claude)
Quick Start
Installation
Using Installation Script (Recommended)
Linux / macOS:
|
Windows (PowerShell):
iwr -useb https://raw.githubusercontent.com/junhyungL/doum-cli/main/scripts/install.ps1 | iex
From GitHub Releases
Download the latest binary for your platform from Releases:
- Linux (x86_64):
doum-linux-x86_64.tar.gz - macOS (Intel):
doum-macos-x86_64.tar.gz - macOS (Apple Silicon):
doum-macos-aarch64.tar.gz - Windows (x86_64):
doum-windows-x86_64.zip
Extract and add to your PATH.
Using Cargo
Setup API Key
# Configure OpenAI secret (interactive)
# Or set via environment variable (if keyring doesn't work)
# PowerShell:
$env:OPENAI_SECRET='{"api_key":"sk-..."}'
# Bash/Zsh:
Usage Examples
# Ask questions
# Get command suggestions
# Auto mode
Commands
| Command | Description |
|---|---|
doum ask <question> |
Ask questions and get answers |
doum suggest <task> |
Get command suggestions and execute |
doum secret <provider> |
Configure API keys (openai/anthropic) |
doum switch |
Switch LLM provider or model |
doum config <subcommand> |
Manage configuration (show/set/get/unset/reset) |
doum <input> |
Auto mode (LLM selects mode) |
Documentation
- Architecture - Architecture and module structure
- Commands - Detailed command reference
- Quick Start - Installation and getting started
- TODO - Development roadmap
Tech Stack
- Language: Rust 2024
- Terminal UI: dialoguer
- Secret Storage: keyring (OS-level credential store)
- LLM: OpenAI GPT, Anthropic Claude
Development
# Build
# Run tests
# Run
License
MIT License - see LICENSE for details