kashdao-cli for Openclaw

A non-custodial command-line interface for the Kash prediction market protocol, allowing developers and AI agents to query markets, execute trades, manage webhooks, and run on-chain operations.

bwhdx
v0.1.0
May 21, 2026
1
710
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install kashdao-cli

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install kashdao-cli using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is kashdao-cli?

The kashdao-cli is an official command-line tool designed for the Kash prediction market protocol. It stands out in the directory of Openclaw Skills as a highly robust, developer-first tool for managing non-custodial positions, analyzing market depth, and automating transactions with maximum security. Under the hood, Kash never holds user keys or balances; instead, all interactions operate via delegated MPC smart accounts managed securely by Privy.

This utility provides dual-mode flexibility. Developers can use the default Kash-orchestrated REST API for high-performance off-chain matching and webhook monitoring, or opt for a completely self-orchestrated, direct-to-chain approach with their own RPC nodes and signers. By deploying this capability alongside other Openclaw Skills, developers can build reliable, automated trading bots that leverage stable JSON outputs, rigorous idempotency validations, and multi-profile workflows.

kashdao-cli Use Cases

  • Automating prediction market execution on active markets based on news sentiment or data signals.
  • Building autonomous trading agents that perform high-frequency quoting and non-custodial trade execution.
  • Setting up notification triggers using automated webhook tracking and secret rotations.
  • Monitoring smart-account balances, USDC holdings, and active market positions.
  • Deploying automated market makers or trading strategies as autonomous agents utilizing Openclaw Skills.

How kashdao-cli Works

  1. Installation & Authentication: The user installs the CLI globally via npm and configures their API key, which auto-routes to production or staging based on its prefix.
  2. Market Discovery: The agent or developer queries active prediction markets, obtaining complete state structures in stable, machine-readable JSON.
  3. Price Impact Quoting: Before risking capital, the CLI simulates transaction outcomes to determine slippage and token yields for target buy or sell amounts.
  4. Idempotent Trade Execution: Commands are dispatched with mandatory idempotency keys to guarantee execution safety across flaky network environments.
  5. State & Webhook Tracking: The terminal processes asynchronous confirmations, tracks trade statuses, and receives real-time transaction updates via structured webhooks.

kashdao-cli Setup

Ensure you have Node.js 22+ installed on your system. Obtain a staging API key by contacting engineering@kash.bot.

Install the CLI globally:

npm install -g @kashdao/cli@latest

Verify that the binary is available:

kash --version

Authenticate using your API key. This will write the key with secure permissions (0600) to ~/.kash/config.json:

kash auth set-key kash_test_your_api_key_here

You can also override the active API key per-session by setting the KASH_API_KEY environment variable.

kashdao-cli Data Schema & Taxonomy

CLI Configuration File

The configuration file is located at ~/.kash/config.json and manages profile-specific parameters:

Parameter Description Required
apiKey Your active Kash developer key Yes
rpcUrl Custom Ethereum RPC URL (Protocol mode) No
smartAccount Your Privy-managed MPC Smart Account address No
signerKeyRef Reference to key (file:<path> or env:<NAME>) No

Error Response Structure

All errors return a structured JSON response schema to help automated agents debug issues:

Field Type Description
ok Boolean Always false on error
error.code String A stable, machine-readable error string
error.message String Human-readable explanation
error.recoverable Boolean Indicates if the error can be automatically recovered
error.suggestion String Actionable remediation tip
error.actions Array Suggested recovery strategies (e.g., wait_and_retry)

kashdao-cli Advanced Features

  • High-Value Confirmations: Safeguards transactions exceeding standard thresholds using a secure, two-phase submit-and-confirm execution loop with single-use tokens.
  • Direct-to-Chain (Self-Orchestrated) Mode: Fully bypasses the Kash backend servers using @kashdao/protocol-sdk to talk directly to blockchain RPCs.
  • Idempotent Replay Prevention: Mandatory execution keys ensure that connection losses never trigger duplicate orders or cause financial loss.
  • Machine-Ready Output Control: Full support for --json and --quiet flags, turning interactive CLI results into clean JSON streams optimized for Openclaw Skills configurations.
  • Request Tracing: Allows users to correlate CLI commands with backend execution pathways using unique correlation tracing IDs.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*