Skip to content

feat: add claw credit integration and fix premium payment fallback compatibility#33

Closed
tsubasakong wants to merge 5 commits intoBlockRunAI:mainfrom
tsubasakong:fix/premium-payment-fallback-compat-rebased
Closed

feat: add claw credit integration and fix premium payment fallback compatibility#33
tsubasakong wants to merge 5 commits intoBlockRunAI:mainfrom
tsubasakong:fix/premium-payment-fallback-compat-rebased

Conversation

@tsubasakong
Copy link

@tsubasakong tsubasakong commented Feb 16, 2026

Summary

  • add claw.credit payment mode integration for BlockRun inference (paymentMode: clawcredit)
  • switch claw.credit path to official @t54-labs/clawcredit-sdk pay flow
  • add setup automation script for OpenClaw clawcredit config (scripts/setup-clawcredit.sh)
  • harden premium payment error parsing and fallback behavior for wrapped x402 merchant proxy failures

Included Commits

  • feat(clawrouter): support claw.credit payment mode for BlockRun inference
  • feat(clawrouter): switch clawcredit mode to official SDK pay flow
  • feat(clawrouter): add openclaw clawcredit setup script
  • fix(scripts): make clawcredit setup script bash-safe
  • fix: handle x402 premium payment failures with safer fallback

Test Plan

  • bun run test/premium-compat.ts
  • npx -y tsx test/clawcredit-mode.ts
  • npm run typecheck
  • bun run build

…ence

Add a claw.credit-backed payment path for OpenClaw BlockRun proxy requests, including payment mode selection, env/config wiring, health/reporting updates, and integration coverage.
Replace custom claw.credit payload construction with @t54-labs/clawcredit-sdk pay() integration, add SDK dependency/types, and tighten integration tests to assert official sdk_meta identity and richer audit context capture.
@tsubasakong tsubasakong changed the title fix: improve premium payment compatibility with safer fallback handling feat: add claw credit integration and fix premium payment fallback compatibility Feb 16, 2026
@tsubasakong
Copy link
Author

Superseded by split PRs for easier review:

Closing this combined PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments