ПромптыOpenClaw
What the assistant spends on models
Сценарий
A nightly council is quiet until the bill arrives. Every model call is appended to a log with the provider, the model, the token counts, the kind of task, and an estimated cost. You can ask for a day, a week, or a month, and you can split it by model or by task.
Что подключить
The providers you actually call: Anthropic, OpenAI, Google, xAI, or others. A JSONL file on disk. Price table for the AI models you use.
Настройка
- Set COST_LOG to a path outside any folder you publish.
- Fill [PRICE TABLE PATH] with the per-token prices you are willing to estimate from. Update it when a price changes.
- Hook the log into the shared AI model caller so a call that bypasses it is treated as a bug, not a silent miss.
- Save the prompt as model-costs and make one real call. Confirm a JSONL line appears with tokens and a cost.
Отредактируйте перед отправкой: The log path, the price table, and which providers you want included.
Промпт для вставки в OpenClaw
Save this as a skill named model-costs. Log every model call from this assistant to [COST LOG], as one JSON object per line. Fields: time, provider, model, input tokens, output tokens, task type, estimated cost. Providers to include: [Anthropic, OpenAI, Google, xAI], plus any other provider I add later in one line. Estimate cost from [PRICE TABLE PATH]. If a model is missing from the table, log the tokens and set cost to null. Tell me once that the table needs a row. Do not invent a price. When I ask, report: - A day, a week, or a month. - Optional filter by model or by task type. - Total estimated cost, and the top tasks by cost. Write the report in sentences I can scan. A small table is fine if I ask for a breakdown. Do not send the raw log to a group chat.
Другие промпты для OpenClaw
- Asana as the system of record for work
Video ideas and other tracked work already live in Asana. OpenClaw should file new cards there, and when a card already exists it should comment instead of rewriting the description. The business council then knows what is moving, what is stuck, and what is done.
- Heartbeat that speaks only when something is wrong
You should not have to ask whether the assistant is healthy. A heartbeat checks the things that rot quietly: stale social data, a repo that swallowed a large file, repeating errors, a gateway that is suddenly public. If you hear nothing, the checks passed.
- Ask before you update OpenClaw
The framework moves, and you do not want a surprise restart in the middle of the day. Each night OpenClaw checks for a new version, posts a short changelog, and waits. You say update, and it applies the version and restarts the gateway.
- Personal CRM from mail and calendar
A year of email and meetings is a pile of names you cannot search. OpenClaw reads Gmail and Google Calendar, drops newsletters and cold pitches, and keeps a local profile for each person worth remembering. You ask in plain language who you know at a company, or who has gone quiet.