/install kash
Kash Payment Skill
This skill gives your OpenClaw agent access to a Kash wallet so it can pay for external services autonomously, within your configured budget.
Security model
KASH_KEYandKASH_AGENT_IDare required. The skill will fail at load time if either is missing — it will not silently proceed.KASH_API_URLis validated against an allowlist (api.kash.dev and localhost only) at startup. Setting it to any other domain is rejected immediately to preventKASH_KEYfrom being sent to an untrusted server.KASH_BUDGETis enforced locally in code as a session cap. It is not just a guideline — the spend function checks it before every call.- Spends above
KASH_SPEND_CONFIRMATION_THRESHOLD($5.00 default) requireconfirmed=true, which the agent must only set after receiving an explicit YES from the user in the current conversation. - Budget enforcement happens at two layers: locally (KASH_BUDGET) and server-side (Kash dashboard budget). Both must pass. The server is the authoritative source of truth.
Tools provided
kash_spend
Spend from the Kash agent wallet before making a paid API call.
Parameters:
amount(number, required) — amount in USDdescription(string, required) — what you are paying formerchant(string, optional) — name of the serviceconfirmed(boolean, optional) — set true only after explicit user YES for spends above threshold
Return values:
OK. Spent $X for "..."— spend succeededCONFIRMATION_REQUIRED: ...— ask user for YES, then retry with confirmed=trueLOCAL_BUDGET_EXCEEDED: ...— session cap hit, stop and notify userBUDGET_EXCEEDED: ...— server-side budget hit, stop and notify userAGENT_PAUSED: ...— agent paused by user in Kash dashboardUNAUTHORIZED: ...— KASH_KEY invalid or expiredERROR: ...— unexpected failure
kash_balance
Check remaining budget without spending. Returns both server-side balance and local session cap.
When to use this skill
Use kash_spend BEFORE making any paid external call — API calls, web searches, data purchases, or any service that charges per request. Always call it before the paid operation, not after.
Use kash_balance before starting a multi-step task that will require several paid operations.
Rules the agent must follow
- Always call
kash_spendBEFORE the paid call, never after - If
CONFIRMATION_REQUIREDis returned, ask the user for explicit YES — never bypass it - If
BUDGET_EXCEEDEDorLOCAL_BUDGET_EXCEEDEDis returned, stop the task immediately and tell the user - Never set
confirmed=truewithout a real user confirmation in the current conversation - Never attempt to work around a budget limit
- If
kash_spendreturns any error, do NOT proceed with the paid call
Kash Payment Skill
Use this skill to pay for external APIs, tools, and services from your Kash agent wallet.
Setup
Configure in ~/.openclaw/openclaw.json:
{
"skills": {
"entries": {
"kash": {
"enabled": true,
"apiKey": "ksh_live_...",
"env": {
"KASH_KEY": "ksh_live_...",
"KASH_AGENT_ID": "your-agent-id",
"KASH_BUDGET": "50",
"KASH_SPEND_CONFIRMATION_THRESHOLD": "5.00"
}
}
}
}
}
Get KASH_KEY and KASH_AGENT_ID from kash.dev/dashboard/agents after registering your agent.
Tools
kash_spend
Call this BEFORE any paid API call or service. Never after.
Parameters:
amount(number, required) — cost in USD e.g. 0.003description(string, required) — what you are paying for e.g. "serper web search"merchant(string, optional) — service name e.g. "Serper"confirmed(boolean, optional) — set true ONLY after explicit user YES for spends above threshold
Returns:
OK. Spent $X for "..."— proceed with the paid callCONFIRMATION_REQUIRED: ...— ask user for YES, then retry with confirmed=trueLOCAL_BUDGET_EXCEEDED: ...— stop, tell user to top up at kash.devBUDGET_EXCEEDED: ...— stop, tell user to top up at kash.devAGENT_PAUSED: ...— tell user to resume agent at kash.dev/dashboard/agentsUNAUTHORIZED: ...— tell user their KASH_KEY may be invalidERROR: ...— do not proceed with the paid call
kash_balance
Check remaining budget. Use before starting multi-step paid tasks.
No parameters required.
Rules
- Always call
kash_spendBEFORE the paid call, never after - If
CONFIRMATION_REQUIREDis returned, ask the user for explicit YES before retrying withconfirmed=true - If any error or budget exceeded is returned, stop immediately and tell the user
- Never set
confirmed=truewithout a real user YES in the current conversation - Never attempt to work around a budget limit
- Never reveal
KASH_KEYvalue in any message or log
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install kash - 安装完成后,直接呼叫该 Skill 的名称或使用
/kash触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Kash - Agentic Payment Provider 是什么?
Pay for APIs, tools, and services from your agent's Kash wallet. Spends below $5 are autonomous; above $5 requires explicit user YES. Requires KASH_KEY and K... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 398 次。
如何安装 Kash - Agentic Payment Provider?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install kash」即可一键安装,无需额外配置。
Kash - Agentic Payment Provider 是免费的吗?
是的,Kash - Agentic Payment Provider 完全免费(开源免费),可自由下载、安装和使用。
Kash - Agentic Payment Provider 支持哪些平台?
Kash - Agentic Payment Provider 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Kash - Agentic Payment Provider?
由 DevFaraaz(@devfaraaz)开发并维护,当前版本 v1.0.7。