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.
npx skills add Dexter-DAO/opendexter-ide --skill x402-reactgit clone --depth 1 https://github.com/Dexter-DAO/opendexter-ideWrote 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.
[](https://agentmods.dev/skills/dexter-dao/opendexter-ide/x402-react)<a href="https://agentmods.dev/skills/dexter-dao/opendexter-ide/x402-react"><img src="https://agentmods.dev/badge/skills/dexter-dao/opendexter-ide/x402-react/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/dexter-dao/opendexter-ide/x402-react"><img src="https://agentmods.dev/badge/skills/dexter-dao/opendexter-ide/x402-react.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00056 | $0.01928 |
| Opus 5.5 | $0.00022 | $0.00771 |
| Sonnet 5.5 | $0.00011 | $0.00386 |
| Haiku 4.5 | $0.00006 | $0.00193 |
Grade A, and why
x402-react 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 233 lines — stays where its author put it; the contents beside it link to each section on GitHub.
@dexterai/x402 React Hooks
React hooks for x402 v2 payments. Works with Solana wallet adapters and wagmi/viem for EVM.
npm install @dexterai/x402 @solana/wallet-adapter-react
useX402Payment
Main hook for payment-enabled fetch with wallet state:
import { useX402Payment } from '@dexterai/x402/react';
import { useWallet } from '@solana/wallet-adapter-react';
function PayButton() {
const solanaWallet = useWallet();
const {
fetch: x402Fetch,
isLoading,
status,
error,
balances,
connectedChains,
transactionUrl,
sponsoredRecommendations,
} = useX402Payment({
wallets: { solana: solanaWallet },
});
return (
<div>
<p>Solana: {connectedChains.solana ? 'Connected' : 'Disconnected'}</p>
{balances.map(b => (
<p key={b.network}>{b.chainName}: ${b.balance.toFixed(2)} {b.asset}</p>
))}
<button
onClick={async () => {
const res = await x402Fetch('https://api.example.com/paid-data');
const data = await res.json();
console.log(data);
}}
disabled={isLoading}
>
{isLoading ? 'Paying...' : 'Get Data ($0.01)'}
</button>
{status === 'error' && <p>Error: {error?.message}</p>}
{transactionUrl && <a href={transactionUrl}>View tx</a>}
{sponsoredRecommendations?.map(r => (
<p key={r.resourceUrl}>{r.sponsor}: {r.description}</p>
))}
</div>
);
}
Multi-chain with wagmi
import { useX402Payment } from '@dexterai/x402/react';
import { useWallet } from '@solana/wallet-adapter-react';
import { useAccount } from 'wagmi';
function MultiChainPay() {
const solanaWallet = useWallet();
const evmAccount = useAccount();
const { fetch: x402Fetch, connectedChains, balances } = useX402Payment({
wallets: {
solana: solanaWallet,
evm: evmAccount,
},
preferredNetwork: 'eip155:8453', // Prefer Base
});
// ...
}
UseX402PaymentConfig
| Option | Type | Description |
|---|---|---|
wallets |
{ solana?, evm? } | Wallet instances per chain |
preferredNetwork |
string | CAIP-2 network to prefer |
rpcUrls |
Record<string, string> | Custom RPC URLs |
verbose |
boolean | Debug logging |
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.
- 2mo ago First seen · 233 lines · 56 tokens per session scan A 2fc95bc9f4d9
x402-react is a skill published in the GitHub repository Dexter-DAO/opendexter-ide (2 stars, last pushed 8d ago), licensed MIT. It adds 56 tokens to every session and 1,928 once invoked, about $0.0002 per session on Opus 5.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.
x402-react compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| x402-reactDexter-DAO/opendexter-ide | Skill | 2 | 8d ago | MIT | A | 56 | Cursor |
| serasera-cx/sera-agents | Skill | 20 | 2d ago | MIT | A | 24 | Claude Code, Codex |
| serasera-cx/sera-agents | Skill | 20 | 2d ago | MIT | A | 90 | Claude Code, Codex |
| x402aomi-labs/skills | Skill | 8 | 2d ago | MIT | A | 84 | Claude Code |
| sera-protocolsera-cx/sera-agents | Skill | 20 | 2d ago | MIT | A | 58 | Claude Code, Codex |
| pn-dcf-modelperniemann/pnCore | Skill | 0 | 5d ago | MIT | A | 61 | Cursor |
| pn-gl-reconcilerperniemann/pnCore | Skill | 0 | 5d ago | MIT | A | 72 | Cursor |