I build the reliability + payment layer for AI agents โ open-source SDKs, skills, and MCP servers that let any agent pay, get paid, and ship correct output, across every chain and every model.
I'm an open-source contributor shipping the plumbing that AI agents need to act autonomously in the real economy:
- ๐ณ Payments โ one SDK call, any chain, any protocol โ
n-payment - ๐ก๏ธ Reliability โ a harness that forces agents to verify output before shipping โ
nim-skill - ๐งฉ Skills & MCP โ installable, host-portable packages any agent can pick up in one command โ
payment-skillยทbrain-skill - ๐ Consumer surfaces โ turning any web3 dApp into something an agent can browse and pay for โ
HyperMove
All MIT-licensed. All shipped, not slideware โ see proof-of-work below.
One
fetchWithPayment(url)call. Any chain, any protocol, any stablecoin. The SDK auto-detects the402 Payment Requiredchallenge, signs the right payment, and retries โ your agent's code never branches on chain.
- ๐ 27+ chains across 11 chain families (EVM, XRPL, Stellar, Solana, Cosmos, Sui, Tron, TON, Bitcoin L2s, Spark, Filecoin, NEAR) via one CAIP-2 multichain wallet
- ๐ก Protocol coverage: x402, MPP, GOAT x402, XRPL native, Stellar Sessions, Cosmos
MsgSend, Soroban payment channels, on-chaintransferWithAuthorization, NTT bridge-as-payment - ๐ช Sell, not just buy โ
createPaywall,paidTool, and a spec-compliant paid MCP server turn any HTTP handler into an agent-payable endpoint in <20 lines - ๐ก๏ธ Policy by default โ per-tx / per-hour / per-day spend caps, rate limits, facilitator allowlists, on-disk audit log
- ๐ Yield-bearing treasury โ idle agent funds auto-supply to lending markets while the agent sleeps
- ๐ชช AP2 verifiable intent โ cryptographic proof a payment was authorized by a specific user mandate
npm install n-paymentconst client = createPaymentClient({ chains: ['base-mainnet'], ows: { wallet: 'my-agent' } });
const res = await client.fetchWithPayment('https://api.example.com/data'); // 402 handled, signed, retried๐ github.com/phamdat721101/n-payment ยท npmjs.com/package/n-payment
"The agent harness is the architecture โ the model is not the bottleneck."
An open, local-first, host-portable toolkit that wraps any agent task so it's verified before it ships, recovers from errors, and costs less โ without rewriting the agent into a framework.
runHarnessed(skill, input, ctx)
โ guard โ cost cap ยท rate limit ยท agentjacking defense
โก context โ per-run token budget + progressive disclosure ("see")
โข errorHandler โ classify โ retry / backoff / circuit-breaker / fallback ("recover")
โฃ enforcer โ verify output before ship โ unbypassable ("enforce")
โค cache โ provider-agnostic prompt caching, 45โ80% input-cost cut ("save")
โฅ monitor โ trace every run: tokens, cost, latency, verify pass/fail
- โ 9 installable primitives shipped and tested (173 tests passing)
- ๐งฎ
nim-profileauto-detects model tier and tightens (never loosens) reliability for weaker open-weight models - ๐
nim-indexmeasures the standing token-tax of your MCP/skill tool list before it silently eats your context window - ๐ Works in any host: Claude Code, Cursor, Kiro, Hermes, OpenClaw, any MCP client โ offline by default
npx github:phamdat721101/nim-skill install๐ github.com/phamdat721101/nim-skill
A single self-installing package that turns any AI host into an economic actor โ plain English in, signed on-chain transaction out.
- ๐ฏ 42 tools โ pay any URL, monetize an endpoint, discover services in the bazaar, earn yield, cash out to fiat via MoneyGram (174 countries), bridge across chains, register on-chain identity, generate universal QR payment links
- ๐ฅ๏ธ One skill, 7 hosts โ Claude Code, Kiro, Cursor, Windsurf, Continue, Gemini CLI, Copilot โ same 42 tools, zero per-host glue
- ๐ One wallet, every chain โ a single encrypted keyfile (Web3 Secret Storage v3) derives keypairs across EVM, XRPL, Stellar, Solana, Cosmos, BTC-L2
npx -y github:phamdat721101/payment-skill๐ github.com/phamdat721101/payment-skill
Paste one URL. Any AI agent can now discover it, hit a paywall, sign, and get a
200 OKโ the homepage is the demo.
- ๐ธ๏ธ Implements WebMCP (
.well-known/webmcp.json) so agents discover paid endpoints without custom integration - ๐ต Wired to
n-paymentfor the actual x402-USDC settlement โ 5-minute monetization for any existing web3 dApp - ๐งฑ MIT, open-source, self-hostable โ no vendor lock-in
๐ hypermove.xyz ยท Build log: How HyperMove Turns Any AI Agent Into a Web3 Power-User
Portable, queryable memory so an agent's context survives past a single session โ the missing layer between "stateless chatbot" and "actual assistant."
๐ github.com/phamdat721101/brain-skill
Publish an agent once with one natural-language prompt (~30 seconds, no wizard, no chain-picker, no seed phrase) and it inherits the full web3 stack: payments, identity, and โ going further โ a full training pipeline so a published agent doesn't stop at "form filled," it graduates with real skills.
๐ Build log series: OpenX ships one-prompt agent onboarding โ Your agent just enrolled in a web3 university โ From "publish an agent" to "train an agent team"
Every product above is engineered to be model-agnostic by design, not bolted on. Here's the real provider matrix shipped in production code:
| Layer | Providers wired | Where |
|---|---|---|
| ๐ง Direct API | Anthropic Claude (Sonnet/Haiku/Opus family), OpenAI GPT-4o | HyperMove live-agent demo, OpenX agent runtime |
| โ๏ธ Amazon Bedrock (Converse API) | Anthropic Claude, Amazon Nova, Meta Llama, Mistral, Cohere โ one schema, swap via env var | OpenX chat + agent orchestration, provider-cascading fallback (Bedrock โ OpenAI on failure) |
| ๐ Open-weight & regional models | GLM (Zhipu), MiniMax, Qwen (Alibaba), DeepSeek, Gemini, Kimi (Moonshot AI) | nim-cache's provider-agnostic caching layer + nim-profile's reliability-tier detection |
| ๐งฎ Model-tier awareness | Auto-tightens guardrails for weaker open-weight models (e.g. GLM-5, MiniMax-M3) โ never loosens for frontier models | nim-profile |
๐ On Kimi specifically โ Moonshot AI's Kimi K2 โ K2 Thinking โ K2.5 โ K2.6 โ K3 (2.8T-parameter, 1M-token context, world's first open 3T-class model, weights shipping Jul 27 2026) is one of the fastest-moving open-weight lines in the market. Kimi ships an OpenAI-compatible API, so it drops into the same implicit-prefix cache path nim-cache already uses for OpenAI/GLM/DeepSeek โ one base-URL swap, no adapter rewrite. I track every Kimi release as a target model for nim-profile's reliability-tier work: a 2.8T open model with agentic coding + tool-use at this level is exactly the kind of "verify, don't just trust" case the harness exists for.
Why this matters: most agent tooling is written against one lab's API and breaks the moment you swap models. My stack treats the model as a pluggable adapter โ the harness, the payment logic, and the caching strategy all stay correct whether you're running Opus, Nova Micro, GLM-5, Kimi K3, or DeepSeek behind it.
I build three layers that compose, not compete:
- ๐งฉ Skills (
payment-skill,nim-skill) โ the thinnest possible install (npx github:...) that gives any host new tools in one command, with zero per-host rewrite - ๐ฆ SDK (
n-payment) โ the typed, testable core logic every skill/MCP server calls into โ one API surface, many entry points - ๐ MCP servers (
n-payment/mcp,nim-skill's host bridge) โ spec-compliant endpoints any MCP client (Claude Desktop, Cursor, AWS Bedrock AgentCore) can discover and pay over out of the box
The saving-cost angle is explicit engineering, not marketing:
- ๐ธ Prompt caching, provider-agnostic โ
nim-cachegets the 45โ80% input-cost cut available on modern APIs, correctly, across 7 different cache mechanics (explicit inline, resource-ref, implicit-prefix) โ changelog - ๐ Token-tax visibility โ
nim-indextells you what your standing tool list costs before it silently eats your context window - ๐ชซ Sub-cent settlement โ off-chain vouchers + Soroban payment channels in
n-paymentso agent-to-agent micropayments don't get eaten by gas - ๐ฏ Cheapest-model-first defaults โ Amazon Nova Micro as the Bedrock default (~$0.035/$0.14 per 1M tokens), swap up only when a task needs it
Every post below ships with working code the same day. Full archive โ phamnim.substack.com
Open-source, chain-agnostic, model-agnostic โ building the plumbing so agents can transact.




