The economic layer for AI agents to track, allocate, and settle inference costs during collaborative tasks.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install context-window-economics
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install context-window-economics using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
Context Window Economics Protocol (CWEP) is a specialized framework designed to handle the financial complexities of multi-agent interactions. As AI agents increasingly collaborate on complex workflows, managing the underlying inference costs becomes a significant challenge. This module within Openclaw Skills provides a robust system for token metering, cost tracking, and fair allocation using advanced game theory models like Shapley values.
By implementing this economic layer, developers can ensure transparency and trust in autonomous agent ecosystems. It allows for precise settlement of context window usage, enabling agents to negotiate cost-sharing and report expenditures without manual intervention. It serves as a critical component of the Agent Trust Stack for professional AI deployments.
Install the package via pip to begin managing costs within your Openclaw Skills environment:
pip install context-window-economics
The protocol utilizes a structured JSONL format for data persistence, ensuring high-performance logging and easy parsing. The schema focuses on the following primary attributes:
| Attribute | Description |
|---|---|
| agent_id | Unique identifier for the participating AI agent |
| transaction_id | Correlates logs with specific tasks or multi-agent sessions |
| input_tokens | Total tokens provided in the prompt context |
| output_tokens | Total tokens generated by the model |
| model | The specific model identifier (e.g., claude-sonnet-4-6) |
| cost_usd | The raw financial cost of the transaction |
| allocation_method | The method used (Shapley, Proportional, etc.) for settlement |
Loading
An intelligent workflow that converts Markdown documents into visual-rich PowerPoint presentations using AI image generation.

A comprehensive automation skill for managing Alibaba Cloud Edge Security Acceleration (ESA) services including static deployments, serverless edge functions, and distributed storage.

Task Director is a sophisticated workflow management skill that treats complex AI agent tasks like movie storyboards, ensuring planning happens before execution.

A structured problem-solving skill that forces AI agents to design detailed blueprints before executing complex, multi-step tasks.

An automated technical intelligence agent that curates, analyzes, and synthesizes the latest global AI developments into structured daily reports.

A comprehensive skill for managing Alibaba Cloud Performance Testing Service (PTS) through automated OpenAPI and SDK workflows.








































