Official Whisper Context skill for OpenClaw. Cuts context tokens via delta compression + caching, and adds long-term memory across sessions.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install usewhisper或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install usewhisper⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/usewhisper/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: whisper-context version: 0.1.0 description: Official Whisper Context skill for OpenClaw. Cuts context tokens via delta compression + caching, and adds long-term memory across sessions. author: "Whisper" metadata: openclaw: requires: bins: ["node"] env: ["WHISPER_CONTEXT_API_KEY", "WHISPER_CONTEXT_PROJECT"] optional_env: ["WHISPER_CONTEXT_API_URL"] security: notes: - Makes outbound HTTPS requests to the Whisper Context API using a user-provided API key. - Does not require additional npm dependencies. - Review the script before use. ---
Reduce OpenClaw API spend by shrinking the context you send to the model (delta compression + caching), while keeping long-term memory across sessions.
This skill provides a minimal Node-based helper (whisper-context.mjs) that OpenClaw agents can run to:
query_context) with compress: true and compression_strategy: "delta"ingest_session)memory_write, memory_search)oracle_search)get_cost_summary)cache_stats, cache_warm)npx clawhub@latest install whisper-context
ClawHub installs the skill folder into your OpenClaw skills workspace (typically ~/.openclaw/workspace/skills/).
Set environment variables (where OpenClaw reads env for your agent):
WHISPER_CONTEXT_API_URL=https://context.usewhisper.dev
WHISPER_CONTEXT_API_KEY=YOUR_KEY
WHISPER_CONTEXT_PROJECT=openclaw-cost-optimization
Notes:
WHISPER_CONTEXT_API_URL is optional (defaults to https://context.usewhisper.dev).WHISPER_CONTEXT_PROJECT can be a project slug/name.user_id and session_id values (don’t hardcode them globally; derive them per user/session in your agent).All commands print JSON to stdout.
--project : override WHISPER_CONTEXT_PROJECT--api_url : override WHISPER_CONTEXT_API_URL--timeout_ms : request timeout (default: 30000)query_context first and inject the returned context instead of re-sending your entire chat history.compress: true, compression_strategy: "delta", and use_cache: true (the defaults in this helper) to maximize token savings.user_id and session_id so memory works across sessions and cache keys stay effective.node whisper-context.mjs query_context \
--query "What did we decide about the retriever cache?" \
--user_id "user-123" \
--session_id "session-123"
node whisper-context.mjs ingest_session \
--user_id "user-123" \
--session_id "session-123" \
--user "..." \
--assistant "..."
If your message text is large or hard to shell-escape, pass JSON via stdin:
echo '{ "user": "....", "assistant": "...." }' | node whisper-context.mjs ingest_session --session_id "session-123" --turn_json -
ingest_session sends both user and assistant text to the Context API (so it can build memory and improve retrieval).@path (or stdin via -).WHISPER_CONTEXT_API_KEY like a secret; don’t commit it to git.node whisper-context.mjs memory_write \
--memory_type "preference" \
--content "User prefers concise answers." \
--user_id "user-123"
node whisper-context.mjs memory_search \
--query "preferences" \
--user_id "user-123"
node whisper-context.mjs oracle_search --query "How does delta compression work?" --mode search
node whisper-context.mjs oracle_search --query "Design a plan..." --mode research --max_steps 3
node whisper-context.mjs get_cost_summary \
--start_date "2026-01-01T00:00:00.000Z" \
--end_date "2026-02-01T00:00:00.000Z"
node whisper-context.mjs cache_stats
node whisper-context.mjs cache_warm --queries "retriever cache,l1 query cache,delta compression" --ttl_seconds 3600
query_context and prepend the returned context (if present) to your prompt.ingest_session with the user + assistant messages to persist memory.Missing WHISPER_CONTEXT_API_KEY: export the env var where OpenClaw runs commands.HTTP 401/403: verify your API key and that it has access to the project/org.HTTP 404 Project not found: verify WHISPER_CONTEXT_PROJECT (slug/name) exists.安装 usewhisper 后,可以对 AI 说这些话来触发它
Help me get started with usewhisper
Explains what usewhisper does, walks through the setup, and runs a quick demo based on your current project
Use usewhisper to official Whisper Context skill for OpenClaw
Invokes usewhisper with the right parameters and returns the result directly in the conversation
What can I do with usewhisper in my marketing & growth workflow?
Lists the top use cases for usewhisper, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/usewhisper/ 目录(个人级,所有项目可用),或 .claude/skills/usewhisper/(项目级)。重启 AI 客户端后,用 /usewhisper 主动调用,或让 AI 根据上下文自动发现并使用。
usewhisper 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
usewhisper 可免费安装使用。请查阅仓库了解许可证信息。
Official Whisper Context skill for OpenClaw. Cuts context tokens via delta compression + caching, and adds long-term memory across sessions.
usewhisper 属于「Marketing & Growth」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my marketing & growth tasks using usewhisper
Identifies repetitive steps in your workflow and sets up usewhisper to handle them automatically