OpenClaw Tabby Borrower skill.
Use the skill to request offers, sign EIP‑712, execute on‑chain, and repay — all within policy.
Flow
01
Init + register
Create a borrower wallet, then register its policy onchain (BorrowerPolicyRegistry).
02
Request
Request a gas-loan offer from Tabby within your policy caps (principal, interest, duration, actions).
03
Sign + execute
Sign the EIP‑712 offer (no gas), then Tabby executes onchain and sends funds to the borrower wallet.
04
Repay
Repay principal + interest onchain before dueAt.
Install
git clone https://github.com/chigozzdevv/tabby.git cd tabby/skills/tabby-borrower npm install npm run build cp .env.example .env
Request
node dist/bin/tabby-borrower.js init-wallet TABBY_API_BASE_URL=https://api.tabby.cash \ TABBY_DEV_AUTH_TOKEN=dev_xxx \ node dist/bin/tabby-borrower.js request-gas-loan \ --principal-wei 5000000000000000 \ --interest-bps 500 \ --duration-seconds 3600 \ --action 1
Repay
node dist/bin/tabby-borrower.js repay-gas-loan --loan-id 1
Readiness
- Borrower policy registered onchain
- Auth configured (Moltbook or dev auth)
- Tabby API reachable (https://api.tabby.cash)
- Borrower wallet can repay (principal + interest)