Discover bounded Venice-powered micro-work calls with exact x402 USDC prices.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Privacy-first, machine-discoverable micro-work powered by private Venice inference and paid in USDC through x402.
This repository is a fail-closed, agent-first Base mainnet storefront. It exposes six bounded workers over plain HTTP + x402, publishes them to the CDP Bazaar, and adds A2A 1.0, MCP, OpenAPI, llms.txt, and portable-skill discovery surfaces.
Public beta: diem-agent-workers.vercel.app
| Worker | Bounded outcome | Beta price |
|---|---|---|
extract_text_to_json | Caller-schema-valid extraction | $0.020 USDC |
classify_text | Exactly one caller-supplied label | $0.010 USDC |
summarize_text | Structured abstract and key points | $0.020 USDC |
text_to_speech | Up to 1,000 characters as MP3 | $0.010 USDC |
generate_draft_image | One safe-mode 1024px WebP | $0.020 USDC |
transcribe_audio | Up to 60 seconds of verified PCM WAV | $0.015 USDC |
These are fixed prices per successful authorization attempt, not estimates. The public deployment is a low-cap Base mainnet beta: an atomic 0.25 DIEM software budget limits daily inference starts, while the Venice API key retains a separate 1.69 DIEM provider backstop.
The optional USDC-to-DIEM treasury remains disabled in production and is not part of the storefront runtime. No wallet signer or private key is deployed to Vercel.
llms.txt, A2A 1.0 Agent Card, JSON-RPC SendMessage, and Streamable HTTP MCP discoveryThe service is not affiliated with or endorsed by Venice.ai.
Requirements: Node.js 22+ and pnpm.
Add a server-side Venice key to .env:
VENICE_DIEM_EPOCH_CAP publishes the cap in service discovery and must match the native EPOCH consumption limit configured on the Venice API key. Venice enforces the hard stop. Before issuing a 402, the service also checks current epoch access and the exact configured model's online/private/capability state; it never estimates DIEM billing from token counts.
The development server binds to 127.0.0.1:8402.
With PAYMENTS_MODE=off, the worker is callable without payment for local testing:
Production refuses to start unless PAYMENTS_MODE=production, durable delivery credits are enforced, the global compute budget is enforced, and aggregate-only metrics are enabled. The checked-in and local defaults remain PAYMENTS_MODE=off, STOREFRONT_ENABLED=false, AGGREGATE_METRICS_MODE=off, and TREASURY_MODE=disabled.
Import a downloaded CDP Secret API Key without printing its values:
The command tightens both the downloaded key file and .env to owner-only permissions. It refuses to overwrite configured credentials and does not enable payments.
Start on Base Sepolia:
The server uses the address form of the CDP configuration, so payments settle directly to TREASURY_ADDRESS; CDP does not provision or control that wallet. An unpaid request to the worker should return HTTP 402 and a PAYMENT-REQUIRED header.
Mainnet is fail-closed unless durable delivery credits are enforced. Provision an Upstash Redis database through the Vercel Marketplace, then configure:
Agents should generate one unpredictable Idempotency-Key per logical job and
reuse it only with the identical request and payment authorization. Signed paid
attempts without the header fail before settlement. The Redis record contains
only HMAC fingerprints, worker ID, state, lease, and expiryβnever request bodies,
provider responses, payer addresses, payment headers, or transaction hashes.
Normal successful delivery consumes the key. If the process is interrupted after
settlement but before delivery completes, the same authorization, key, worker, and
request may redeem one retry without another settlement. Conflicting reuse is
rejected, and storage outages return 503 before settlement.
Production also requires an atomic global compute budget:
The service reserves a conservative amount equal to the job's USDC price after x402 verification but before Venice inference. Delivery retries reserve again because they can consume provider capacity even when the buyer is not charged again. A Redis outage or exhausted budget aborts new payment settlement and blocks inference. Set STOREFRONT_ENABLED=false and redeploy to disable all paid work before payment.
Run the guarded local Base Sepolia settlement test with:
This is an actual testnet transaction: it creates an ephemeral in-memory buyer,
requests faucet USDC, validates the exact quote before signing, pays one worker
call, and reconciles the treasury's test-USDC increase. It refuses to run unless
the saved PAYMENTS_MODE is off and TREASURY_MODE is disabled. Local HTTP
tests are not published to Bazaar; a public HTTPS deployment is required.
Mainnet launch checklist:
/terms.PAYMENTS_MODE=production, keep TREASURY_MODE=disabled, and deploy.The mainnet acceptance harness uses a distinct cents-only buyer kept in macOS Keychain, verifies every payment requirement before signing, and refuses a combined storefront authorization above $0.095 USDC. Select individual workers with MAINNET_X402_TEST_WORKERS or use pnpm test:mainnet:all; multi-worker runs require the exact acknowledgement PAY_UP_TO_0_095_USDC_WITH_DISTINCT_BUYER_ON_BASE. Its output deliberately omits wallet addresses, transaction hashes, request bodies, and provider responses.
The treasury is a deterministic one-shot runner, not a prompt-driven wallet agent.
Create a new dedicated wallet on macOS with:
The command stores the private key in macOS Keychain and writes only the public address and Keychain labels to .env. It refuses to replace an existing wallet and requires payments and treasury execution to be disabled.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/diem-agent-workers)<a href="https://allmcps.com/mcp/diem-agent-workers"><img src="https://allmcps.com/api/badge/diem-agent-workers?style=directory" alt="DIEM Agent Workers on AllMCPs" /></a>