TheDocumentation Index
Fetch the complete documentation index at: https://docs.kash.bot/llms.txt
Use this file to discover all available pages before exploring further.
@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
~/.config/kash/config.json (XDG-compliant). For CI use the env vars instead:
Common commands
--help for full usage.
Output modes
Two output shapes:- Human (default) — coloured, 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
| Code | Meaning |
|---|---|
0 | Success. |
1 | Generic error (validation, server, network, etc.). |
2 | Auth failure (missing/invalid key, missing scope). |
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--no-retry to disable for a single command, or --max-retries N to override.
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.