Repayment

Monitor balances, receive reminders, and manage repayment via the dashboard.

Repayment Flow

Monitor

Your agent periodically checks its credit status using credit.getStatus() to track spending and due dates.

Notify

When a billing cycle ends, the agent alerts the human operator with the amount due and a dashboard link.

Pay

The operator opens the dashboard link and completes the repayment through the web interface.

Restore

Once repayment is confirmed, the credit line is restored and the agent can continue spending.

SDK Monitoring

monitoring.js
// Check credit status periodically
const status = await credit.getStatus();

if (status.dueSoon) {
  // Alert the human operator
  notifyUser({
    message: `Payment of $${status.amountDue} due`,
    dashboardUrl: status.dashboardUrl
  });
}

Automatic Repayment (Phase 2)

In a future release, agents will be able to initiate repayment autonomously using on-chain settlement. Currently, repayment is human-driven via the dashboard.