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.
git 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/commands/dexter-dao/opendexter-ide/setup-x402-server)<a href="https://agentmods.dev/commands/dexter-dao/opendexter-ide/setup-x402-server"><img src="https://agentmods.dev/badge/commands/dexter-dao/opendexter-ide/setup-x402-server/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/commands/dexter-dao/opendexter-ide/setup-x402-server"><img src="https://agentmods.dev/badge/commands/dexter-dao/opendexter-ide/setup-x402-server.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.00024 | $0.00668 |
| Opus 5 | $0.00012 | $0.00334 |
| Sonnet 5 | $0.00005 | $0.00134 |
| Haiku 4.5 | $0.00002 | $0.00067 |
Grade A, and why
setup-x402-server scanned grade A with 1 finding 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 8d 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
3. Test with curl — first request gets a 402: How it starts
The opening of the file, as written. The whole thing — 88 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Add x402 Paywall to Your Server
Protect any Express endpoint with x402 payments. Users pay USDC to access your API.
The test client below is an independent @dexterai/x402 SDK integration. It
is not the OpenDexter MCP runtime and does not inherit OpenDexter identity,
authority, limits, or receipts. Never substitute it for a blocked OpenDexter
account-bound operation.
Steps
- Install the SDK:
npm install @dexterai/[email protected] @dexterai/[email protected]
- Add the middleware to any Express route:
import express from 'express';
import { x402Middleware } from '@dexterai/x402/server';
const app = express();
app.get('/api/premium-data',
x402Middleware({
payTo: 'YOUR_SOLANA_ADDRESS', // Replace with your wallet address
amount: '0.01', // $0.01 per request
}),
(req, res) => {
// This only runs after successful payment
res.json({
data: 'premium content',
payer: req.x402?.payer,
transaction: req.x402?.transaction,
});
}
);
app.listen(3000);
- Test with curl — first request gets a 402:
curl -i http://localhost:3000/api/premium-data
# HTTP/1.1 402 Payment Required
# PAYMENT-REQUIRED: eyJ4NDAy...
- Test with a funded x402 client:
import { createKeypairWallet, payAndFetch } from '@dexterai/x402/client';
const solana = await createKeypairWallet(process.env.SOLANA_PRIVATE_KEY!);
const paid = await payAndFetch(
'http://localhost:3000/api/premium-data',
{ method: 'GET' },
{ solana },
{ maxAmountAtomic: '10000', solanaRpcUrl: process.env.SOLANA_RPC_URL },
);
if (!paid.ok) throw new Error(`${paid.reason}: ${paid.detail ?? ''}`);
if (!paid.response) throw new Error('Payment settled without a merchant response');
const res = paid.response;
console.log(await res.json());
// { data: "premium content", payer: "2SB3V...", transaction: "5xK9..." }
Options
- Dynamic pricing: Use
getAmount: (req) => calculatePrice(req.body)for request-dependent pricing. - EVM chains: Set
network: 'eip155:8453'for Base instead of Solana. - Multi-chain: Pass a network array and a per-network
payTomap.
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.
- 8d ago First seen · 88 lines · 24 tokens per session scan A fcf7c6946d07
setup-x402-server is a command published in the GitHub repository Dexter-DAO/opendexter-ide (2 stars, last pushed 3d ago), licensed MIT. It adds 24 tokens to every session and 668 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other commands, from other repositories
api-mock
You are an API mocking expert specializing in creating realistic mock services for development, testing, and demonstration purposes. Design comprehensive mocking solutions that simulate real API behavior, enable parallel development, and facilitate thorough testing.
pn-audit-data
Design or review database schema — normalization, indexing strategy, migration plan, and data model decisions. Surgical command for database design. Use standalone or as part of pn-backend-audit.
pn-audit-performance
Identify and fix backend performance issues — N+1 queries, missing cache layers, blocking I/O, slow queries, and connection pool exhaustion. Surgical backend performance pass.
pn-audit-security
OWASP-guided security review — auth posture, input validation, secrets, CORS, JWT, rate limiting. Surgical command for backend security. Use standalone or as part of pn-backend-audit.
pn-audit-api
Surgical API design review — REST conventions, status codes, response shapes, validation, and schema leaks. Use standalone or as part of pn-backend-audit. Outputs a scored fix roadmap.
pn-audit-errors
Standardize error handling — consistent shapes, structured logging, correlation IDs, safe client responses. Surgical command for error handling. Use standalone or as part of pn-backend-audit.