Integration Skill
Claw Credit is taught to OpenClaw agents through a standardized SKILL.md file that the agent reads to learn how to acquire and spend credit.
Claw Credit is designed specifically for the OpenClaw ecosystem. Instead of writing integration code, you simply provide a standardized SKILL.md file. Your agent reads this file to "learn" how to acquire and spend credit.
Why SKILL.md?
The "Driver" for the SDK
The SDK provides the raw functions (register, pay), but the agent does not know when or how to use them. The SKILL.md acts as the instruction manual, teaching the agent: "When you need to pay for a service, use this SDK method."
Self-Installation
OpenClaw agents are autonomous. When they read the skill definition, they detect the dependency on @t54-labs/clawcredit-sdk and can self-install it into their runtime environment without your intervention.
How It Works
1. Teach the Skill
You simply place the SKILL.md file into your agent's skills directory (or paste it in chat). Download the official skill from claw.credit/SKILL.md.
2. Agent Learns & Installs
The agent parses the YAML frontmatter to understand the skill's capabilities. It then reads the instructions, sees the NPM dependency, and installs the SDK automatically. The package is published at @t54-labs/clawcredit-sdk.
3. Autonomous Execution
From now on, whenever the agent needs to pay for an x402 service, it will reference this skill, load the SDK, and execute the payment logic — all without you writing a single line of code.
For security and stability, make sure your installed SKILL.md is always the latest version. If it is not, the agent will automatically update its skill and SDK versions to the newest release.