KIRHA CLI
Command Line Interface (CLI)
The CLI runs KIRHA from your terminal: log in, search, preview plans, call tools, and set up the KIRHA MCP server and skill in your coding agents. Every command prints JSON, so scripts and agents can parse the output.
kirha-ai/kirha-cli
Installation
curl -fsSL https://cli.kirha.com/install.sh | shDownloads a precompiled binary for macOS (arm64/x64) or Linux (x64/arm64) and installs to ~/.kirha/bin/kirha. Your shell PATH is updated automatically.
npm install -g @kirha/cliOr run once without installing:
npx @kirha/cli search "..."Authentication
Get an API key
Sign up at app.kirha.com, then create a key at app.kirha.com/api-keys.
Log in
kirha auth login --api-key <YOUR_API_KEY>Or interactively:
kirha auth loginCredentials are stored in ~/.config/kirha/auth.json (user-readable only).
API key resolution order
--api-keyflag (per command) → 2. Config file (~/.config/kirha/auth.json) → 3.KIRHA_API_KEYenvironment variable.
Commands
Search
KIRHA picks the providers itself, across every vertical.
kirha search "What does the boxed warning on Ozempic say?"With a summary:
kirha search "Summarize latest NVIDIA earning calls" --summarize
kirha search "List top 10 stablecoins yield on Ethereum" --summarize --instruction "Format as a table"To restrict the search to one vertical, pass --focus:
kirha search "List top 10 stablecoins yield on Ethereum" --focus cryptoProp
Type
Input can come from argument, stdin, or pipe:
echo "How to stream AI responses in Next.js using the latest AI SDK?" | kirha searchPlan
Preview execution steps and estimated cost before running a query.
# Create a plan
kirha plan create "Find engineers working at companies behind the latest patents in Machine Learning"
# → { "id": "search_...", "steps": [...], "usage": {...} }
# Run it
kirha plan exec search_abc123plan create takes --runtime too. A plan expires 5 minutes after it is created.
Tools
Call a single KIRHA tool directly. Listing tools needs a focus.
# List available tools
kirha tools list --focus crypto
# Run a tool
kirha tools run zerion_getEthereumWalletProfitAndLoss \
--input '{"currency":"usd","ethereumAddress":"0x..."}'Discovery
Browse available verticals and providers.
kirha discovery verticals list
kirha discovery verticals get crypto
kirha discovery providers list
kirha discovery providers get zerionMCP
Install the KIRHA MCP server in your AI clients.
# Interactive picker
kirha mcp install
# Target specific clients
kirha mcp install --client claudecode
kirha mcp install --client claudecode,codex
kirha mcp install --client allSupported clients: Claude Code, Codex, OpenCode, Gemini CLI, Droid.
kirha mcp update --client claudecode # re-sync API key
kirha mcp remove --client claudecode # uninstall
kirha mcp show --client claudecode # show configSkills
Install the KIRHA skill in your AI agents.
kirha skills install --yes
kirha skills install --agent claude-code --yesSupports 45+ agents including Claude Code, Cursor, Cline, Codex, and more.
Config
Set defaults so you don't have to repeat flags.
kirha config set focus crypto
kirha config set runtime standard
kirha config get focus
kirha config list
kirha config unset focusPriority: flag → config file → environment variable (KIRHA_FOCUS, KIRHA_RUNTIME).
Upgrade
kirha upgrade # install latest version
kirha upgrade --check # check without installingOutput format
All commands output JSON, one object per invocation. Pipe to jq for processing:
kirha search "Summarize latest NVIDIA earning calls" --summarize | jq '.summary'Errors go to stderr as stable JSON:
{ "error": { "code": "AUTH_REQUIRED", "message": "..." } }Exit codes: 0 success, 2 bad usage, 3 auth required, 4 rate limit, 5 network error, 6 expired plan.
Uninstall
rm -rf ~/.kirha ~/.config/kirhanpm uninstall -g @kirha/cli
rm -rf ~/.config/kirha