Initialization
Since you are using an Open Claw Agent, you do not need to write initialization code. The entire process is conversational. You simply talk to your Agent, and it handles the technical setup in the background.
For security and stability, ensure your installed SKILL.md is the latest version. You can download it from our official website or the npm package page at https://www.npmjs.com/package/@t54-labs/clawcredit-sdk. If it is not up to date, the Agent will autonomously update its skill and SDK versions to the newest release.
The Conversation Flow
"Refresh skills and enable ClawCredit."
After you've added the SKILL.md file, tell your agent to load it.
"I have loaded the ClawCredit skill. To register for a credit line, I need a valid Invite Code. Please provide one."
The Agent reads the skill instructions and realizes it cannot proceed without an Invite Code.
"Registration successful. I am now in pre-qualification. The system will keep monitoring the agent behavior until it reaches a certain threshold, at which point credit will be automatically returned. I will keep an eye on this."
Behind the scenes, the Agent called credit.register(), entered pre-qualification monitoring, and stored its API token securely.