KIRHA CLI
Command Line Interface (CLI)
The CLI runs KIRHA from your terminal: log in, search, preview plans, browse and call tools, and set up the KIRHA MCP server and skill in your coding agents. Most commands print JSON, so scripts and agents can parse the output. The catalogue views — tools list, tools match and tools get — print a readable table instead, and take --json when you need the machine form.
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
Browse the tool catalogue and call a single tool directly. Browsing is free, only tools run spends credits.
Find a tool
tools match ranks the catalogue against an intent written in plain language, so you don't have to know the catalogue to find your way into it:
kirha tools match "who holds this token" --limit 3The ranked picks come first, then the tools relation expansion surfaced, each pointing back at the pick that brought it in. Those were not ranked against your intent: each chains with its pick, which makes the pair an execution order you can follow. They come on top of --limit, which caps the ranked section only, so you can get back more tools than you asked for.
Add --focus <slug> to rank one vertical instead of the whole catalogue, --expand to print both schemas with each tool, --full-description to keep descriptions whole rather than cut to the terminal width, --json for the raw API response.
List the catalogue
# Everything, 20 tools at a time
kirha tools list
# One provider, or one vertical
kirha tools list --provider pubmed
kirha tools list --focus crypto
# Page through it
kirha tools list --page 2 --limit 50Each tool is listed with its provider, what a call costs and what it does. Without --page or --limit you get the first 20, and the footer tells you how to reach the rest.
Prop
Type
Descriptions are only cut to fit when you are reading them in a terminal. Redirect the output to a file or pipe it into something else and they come through whole, so kirha tools list | grep sees the text you would otherwise lose past the right edge.
Read one tool
tools get prints a tool's schemas untouched, what a call costs, and the other tools its provider serves:
kirha tools get pubmed_searchPubmedRun 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 list --page 2
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
Commands output JSON, one object per invocation. Pipe to jq for processing:
kirha search "Summarize latest NVIDIA earning calls" --summarize | jq '.summary'tools list, tools match and tools get are the exception: they print columns meant to be read. Pass --json to get the API response instead:
kirha tools match "who holds this token" --json | jq '.tools[].name'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