@zeromodern/agentkit-provider-0mod
v1.3.0
Published
Coinbase AgentKit action provider for the 0mod API Gateway
Maintainers
Readme
@zeromodern/agentkit-provider-0mod
Coinbase AgentKit action provider for the 0mod API Gateway. HTTP 402 micropayments on Base EVM are handled automatically.
Wallet & Network Prerequisites
0mod gateway utilities use x402 HTTP 402 micropayments on Base EVM:
- Network: Base Mainnet (
eip155:8453) - Asset: USDC on Base
- Environment Variable:
PAYER_PRIVATE_KEY=0x...(orEVM_PRIVATE_KEY/X402_PRIVATE_KEY)
When PAYER_PRIVATE_KEY is present in your bot's environment, actions transparently sign payment authorizations and execute with zero manual intervention.
Requirements
- Node.js >= 18
- npm >= 9
Install
npm install @zeromodern/agentkit-provider-0modSetup & Code Example
import { AgentKit } from "@coinbase/agentkit";
import { zeroModActionProvider, ZeroModActionProvider } from "@zeromodern/agentkit-provider-0mod";
// Set PAYER_PRIVATE_KEY in process.env for automatic 402 payment signing
process.env.PAYER_PRIVATE_KEY = "0x_your_private_key_here";
const agentKit = await AgentKit.from({
actionProviders: [
zeroModActionProvider(),
],
});
// Call an action directly using the provider
const provider = new ZeroModActionProvider();
const resultJson = await provider.domainCheck(null, { domain: "base.org" });
console.log("Domain Check Output:", JSON.parse(resultJson));Available Actions
💡 Pricing: For live per-call pricing and endpoint status across all actions, visit api.0mod.com or fetch
https://api.0mod.com/api/v1/discovery.
| Action Name | Description | Input Schema Example |
| :--- | :--- | :--- |
| stealth_dom_fetch | Headless web page fetch from Cloudflare edge | { "url": "https://example.com" } |
| airgap_pii_scrub | Redact SSN, phone, email, ZIP via Workers AI | { "text": "Call me at 555-0199" } |
| rag_shrink_html | Strip HTML boilerplate to clean Markdown for RAG | { "html": "<html>...</html>" } |
| code_denoise | Remove comments, docstrings, sourcemaps from code | { "code": "const x = 1;" } |
| domain_check | Query RDAP registry for domain availability | { "domain": "example.com" } |
| dex_price_summary | Real-time DEX token price, volume, liquidity | { "query": "USDC" } |
| x_sentiment | Social & market sentiment scoring | { "topic": "crypto market" } |
| image_ocr_shrink | Vision OCR text and table extraction | { "imageUrl": "https://..." } |
| embed_text | 768-dim text embedding generation | { "text": "sample text" } |
| embed_multilingual | 1024-dim multilingual text embedding generation | { "text": "sample text" } |
| summarize_text | Executive TL;DR document summarization | { "text": "long text string" } |
Ecosystem Packages
- 🤖 MCP Server (Any AI Agent):
@zeromodern/mcp-server-0mod - 🟣 ElizaOS Plugin:
@zeromodern/eliza-plugin-0mod - 🔵 Coinbase AgentKit Provider:
@zeromodern/agentkit-provider-0mod - ⚡️ Live Gateway Service: api.0mod.com
Troubleshooting
- Import error: Make sure you're importing from
@zeromodern/agentkit-provider-0mod. - Payment / Auth errors: Ensure
PAYER_PRIVATE_KEYis set with a valid Base EVM private key holding a USDC balance for x402 micropayments.
License
MIT
