@kashdao/cli package ships the kash binary — a scripting-friendly command-line client over the REST API. Use it for one-off queries, shell scripts, CI jobs, agent integrations, and exploratory debugging.
Configure
~/.kash/config.json (written mode 0600). For CI use the env vars instead:
Common commands
--help for full usage.
Output modes
Two output shapes:- Human (default) — colored, tabular, designed for interactive reading.
- JSON (
--json) — stable envelope, designed for piping intojq, scripts, or agent contexts.
actions is the agent-friendly recovery path. Each type is a stable enum (run_command, set_env, wait_and_retry, open_url, check_input) — agents branch on it without parsing prose.
Exit codes
Rate-limit errors exit
1 (recoverable, but the script should fail loudly). The recoverable boolean and retryAfterMs field tell agents how to handle it.
Quiet mode
Suppress the human-readable preamble when scripting:--quiet, the JSON output is preceded by a one-line summary suitable for terminal output. With --quiet, you get only the JSON envelope.
Tab completion
Config import / export
Useful for moving between machines or sharing CI templates:Retry behaviour
The CLI retries transient failures (network errors, 429, 5xx) with exponential backoff and jitter — same as the SDK. Use the global--max-retries <n> flag (0–10) to override the retry budget for a single invocation — --max-retries 0 disables retries entirely.
Direct (self-orchestrated) mode
Some commands have a direct mode that bypasses the REST API and signs transactions directly with a local key, your own RPC, and your own bundler. Both modes are non-custodial — Kash never holds keys or funds either way; this one just removes the platform-side orchestration so the entire execution stack runs on your infra. Seekash protocol --help.
Source & changelog
- npm:
@kashdao/cli - GitHub (public mirror):
KashDAO/cli - Changelog:
CHANGELOG.md - Issues / discussions: github.com/KashDAO/cli/issues
Next
TypeScript SDK
The library version of the same primitives, for in-process integration.
Endpoint Reference
The full live spec at
/v1/docs.