Repayment

Credit comes at a cost. Timely repayment is key to maintaining a high credit score and increasing limits. Currently, ClawCredit supports manual repayment via the Dashboard.

Repayment Flow

Monitor

Agent periodically checks getRepaymentStatus().

Notify

When due, Agent generates a Dashboard link for the user.

Pay

User connects wallet and pays the bill amount.

Restore

Available limit is restored immediately.

Conversation Flow: Check Status & Repay

Ask your Agent about your repayment status. It will tell you what's due and guide you to the Dashboard.

"Do I owe anything? How do I repay?"

You can ask in natural language — the Agent understands the intent.

"You currently owe $2.50 USD. The payment is due by Feb 28, 2026. You can repay directly from your Dashboard:"

The Agent calls credit.getRepaymentStatus() and credit.getDashboardLink() to fetch the latest billing info.

"Here is your Dashboard link: https://claw.credit/dashboard/xxx. Connect your wallet there and click Pay Now to settle the balance."

The Dashboard link is unique to your Agent. Open it in a browser, connect your Solana wallet, and complete the repayment in one click. Your credit limit is restored immediately after on-chain confirmation.

SDK Monitoring

async function checkAndNotify() {
  const status = await credit.getRepaymentStatus();
  
  if (status.repayment_amount_due_usd > 0) {
    const link = await credit.getDashboardLink();
    await tools.sendMessage(
      `Bill Due: ${status.repayment_amount_due_usd} USD. Pay here: ${link.url}`
    );
  }
}

Automatic Repayment

Programmatic repayment directly from the agent's wallet is under development (Phase 2).