x402-debugging

x402-debugging is a skill for Claude Code from Dexter-DAO/opendexter-ide. It costs 46 tokens per session (723 once invoked), scanned A, original, MIT.

Troubleshooting guidance for OpenDexter’s x402 payment and access flow. It separates failures involving login, wallet setup, payment construction, request dispatch, settlement, and the provider’s response.

In plain words
What is it for?
Use it when OpenDexter checks, fetches, status requests, access attempts, or wallet operations fail, especially with OAuth, wallet binding, intent, provider, or settlement errors.
Why use it?
It helps identify which layer failed before retrying a request. That matters because retrying at the wrong point could risk sending a duplicate payment.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the opendexter plugin — 3 skills, 1 MCP server shipped together

Good fit Use it when OpenDexter checks, fetches, status requests, access attempts, or wallet operations fail, especially with OAuth, wallet binding, intent, provider, or settlement errors.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dexter-dao/opendexter-ide/x402-debugging
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Dexter-DAO/opendexter-ide --skill x402-debugging
Clone the repo
git clone --depth 1 https://github.com/Dexter-DAO/opendexter-ide

Made for: Claude Code.

Or install opendexter, the plugin that ships this one along with the rest of its 3 skills, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for x402-debugging

README.md
[![agentmods](https://agentmods.dev/badge/skills/dexter-dao/opendexter-ide/x402-debugging.svg)](https://agentmods.dev/skills/dexter-dao/opendexter-ide/x402-debugging)
Your own site
<a href="https://agentmods.dev/skills/dexter-dao/opendexter-ide/x402-debugging"><img src="https://agentmods.dev/badge/skills/dexter-dao/opendexter-ide/x402-debugging.svg" alt="Measured on agentmods" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 723 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00046 $0.00723
Opus 5 $0.00023 $0.00362
Sonnet 5 $0.00009 $0.00145
Haiku 4.5 $0.00005 $0.00072

Measured 3d ago against content hash 4c6183d10a93, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

x402-debugging scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

opendexter-plugin/skills/x402-debugging/SKILL.md · 67 lines

How it starts

The opening of the file, as written. The whole thing — 67 lines — stays where its author put it; the contents beside it link to each section on GitHub.

OpenDexter Debugging

Identify the failed layer before retrying:

  1. Connector registration: the host cannot reach the canonical OpenDexter endpoint or discover its OAuth metadata.
  2. OAuth connection: the initial initialize or tool-discovery request gets an HTTP 401 before tools appear, or an established connection later returns authentication_required.
  3. Wallet binding: OAuth succeeded, but no ready Dexter Wallet is bound.
  4. Quote or intent custody: an authorized x402_check cannot obtain requirements, or a purchasable quoteOnly=false result has no executable intentId. A quoteOnly=true result is non-purchasable by design.
  5. Hosted authority: the same intent needs consent before execution.
  6. Payment build: requirements exist, but payment proof was not constructed.
  7. Dispatch or validation: proof was sent and rejected.
  8. Settlement: dispatch occurred, but definitive finality is absent.
  9. Provider response: settlement succeeded, but the merchant returned an application error.

These layers are independent. Connector installation, OAuth, wallet binding, passkey enrollment, payment construction, and merchant settlement do not prove one another.

Safe response

  • For the initial HTTP 401, use the host's native OpenDexter Connect action on https://open.dexter.cash/mcp, complete OAuth, and reload the tool list once.
  • If an established connection later returns authentication_required, let the host resume OAuth and retry the same tool once.
  • For wallet-not-ready, call dexter_wallet; do not invent or surface a personalized connector or legacy pairing URL.
  • For insufficient funds, use the returned receiveAddress. Never use vaultPda or Swig state as a deposit fallback.
  • For quote-above-limit, stop and request a new explicit ceiling from the user.
  • For quoteOnly=true, report that the checked quote has no executable intent and do not call x402_fetch. For quoteOnly=false without an intentId, stop and preserve the same request; do not invent an intent ID.
  • For hosted consent, preserve the same intentId, complete the returned Dexter consent surface, and resume only that intent.
  • For malformed requirements or build failure, preserve intentId, stage, and the safe error code for diagnosis.
  • For any preparing, ambiguous, or post-dispatch result, call x402_status with only the same intentId. Never retry x402_fetch automatically.

Read the full file on GitHub · 67 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago Changed · +7 lines 4c6183d10a93
  2. 8d ago First seen · 60 lines · 46 tokens per session scan A e018f6f4cbe5

Subscribe to this mod's changes

x402-debugging is a skill published in the GitHub repository Dexter-DAO/opendexter-ide (2 stars, last pushed 3d ago), licensed MIT. It adds 46 tokens to every session and 723 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

debugging-strategies

Master systematic debugging techniques, profiling tools, and root cause analysis to efficiently track down bugs across any codebase or technology stack. Use when investigating bugs, performance issues, or unexpected behavior.

wshobson/agents · 43 tokens

defi-protocol-templates

Implement DeFi protocols with production-ready templates for staking, AMMs, governance, and flash loans. Use when building decentralized finance applications or smart contract protocols.

wshobson/agents · 38 tokens

sql-optimization-patterns

Master SQL query optimization, indexing strategies, and EXPLAIN analysis to dramatically improve database performance and eliminate slow queries. Use when debugging slow queries, designing database schemas, or optimizing application performance.

wshobson/agents · 44 tokens

parallel-debugging

Debug complex issues using competing hypotheses with parallel investigation, evidence collection, and root cause arbitration. Use this skill when debugging bugs with multiple potential causes, performing root cause analysis, or organizing parallel investigation workflows.

wshobson/agents · 44 tokens

git-advanced-workflows

Master advanced Git workflows including rebasing, cherry-picking, bisect, worktrees, and reflog to maintain clean history and recover from any situation. Use when managing complex Git histories, collaborating on feature branches, or troubleshooting repository issues.

wshobson/agents · 54 tokens

error-handling-patterns

Master error handling patterns across languages including exceptions, Result types, error propagation, and graceful degradation to build resilient applications. Use when implementing error handling, designing APIs, or improving application reliability.

wshobson/agents · 43 tokens