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-client)<a href="https://agentmods.dev/commands/dexter-dao/opendexter-ide/setup-x402-client"><img src="https://agentmods.dev/badge/commands/dexter-dao/opendexter-ide/setup-x402-client/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-client"><img src="https://agentmods.dev/badge/commands/dexter-dao/opendexter-ide/setup-x402-client.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.00023 | $0.00615 |
| Opus 5 | $0.00012 | $0.00308 |
| Sonnet 5 | $0.00005 | $0.00123 |
| Haiku 4.5 | $0.00002 | $0.00061 |
Grade A, and why
setup-x402-client 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 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.
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 — 88 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Add x402 Client to Your Project
Set up automatic x402 payment handling so your application can call paid APIs.
This command builds an independent @dexterai/x402 SDK client. It is not the
OpenDexter MCP runtime, does not inherit an OpenDexter OAuth bearer or grant,
and must never be used as a fallback for a disconnected or unavailable
OpenDexter account-bound tool.
Steps
- Install the SDK:
npm install @dexterai/[email protected] @dexterai/[email protected]
- Create an application-owned payment helper. Add this file to your project:
// lib/x402.ts
import { createKeypairWallet, payAndFetch } from '@dexterai/x402/client';
const solana = await createKeypairWallet(process.env.SOLANA_PRIVATE_KEY!);
export async function x402Fetch(url: string, init: RequestInit = {}) {
const result = await payAndFetch(url, init, { solana }, {
maxAmountAtomic: '1000000', // Safety limit: max $1.00 per request
solanaRpcUrl: process.env.SOLANA_RPC_URL,
});
if (!result.ok) {
throw new Error(`${result.reason}: ${result.detail ?? ''}`);
}
if (!result.response) {
throw new Error('Payment settled, but the merchant returned no response');
}
return result.response;
}
- Add your private key to
.env:
SOLANA_PRIVATE_KEY=your-base58-private-key-here
- Use it anywhere in your application:
import { x402Fetch } from './lib/x402';
const response = await x402Fetch('https://x402-api.example.com/data');
const data = await response.json();
- For dual-chain support (Solana + EVM), add
viemand an EVM wallet:
npm install viem
import { createEvmKeypairWallet } from '@dexterai/x402/client';
const wallets = {
solana,
evm: await createEvmKeypairWallet(process.env.EVM_PRIVATE_KEY!),
};
V6 has no wrapFetch or createX402Client export. Use payAndFetch, and do
not automatically retry payment_unconfirmed: the first payment may already
have settled.
Verify
Test with the Dexter test endpoint:
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 · 23 tokens per session scan A cb885e7cf368
setup-x402-client is a command published in the GitHub repository Dexter-DAO/opendexter-ide (2 stars, last pushed 4d ago), licensed MIT. It adds 23 tokens to every session and 615 once invoked, about $0.0001 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.
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.
deps-audit
Audit project dependencies for vulnerabilities, outdated packages, license conflicts, and supply chain risks — then provide actionable remediation strategies.
status
Display project status, active tracks, and next actions.
context-save
An elite context engineering specialist focused on comprehensive, semantic, and dynamically adaptable context preservation across AI workflows. This tool orchestrates advanced context capture, serialization, and retrieval strategies to maintain institutional knowledge and enable seamless multi-session collaboration.
enrich
Enrich project memory by mining 100 recently merged PRs: extracts decisions, conventions, gotchas, and architectural facts from PR discussions, review comments, and PR bodies.
t800-update
A command for updating the T-800 agent system from its GitHub repository. GitHub is a service for storing and versioning code.