@diogenesgateway/agentkit-action-provider
v1.0.0
Published
Coinbase AgentKit Action Provider for Diogenes Edge Microservices with autonomous Base EVM micropayments
Maintainers
Readme
Diogenes Action Provider for Coinbase AgentKit
Official Coinbase AgentKit Action Provider equipping autonomous on-chain agents with Diogenes Edge Microservices and native Base EVM Machine Payments Protocol (MPP) micropayments:
- Solana SPL Token Risk Analysis (
evaluate_solana_token_risk): Real-time detection of freeze authority, mint authority, Token-2022 extensions, and honeypot transfer taxes before executing cross-chain or Solana swaps. - Smart Contract Honeypot Auditing (
audit_smart_contract): Static and behavioral verification for Solidity, Rust, and Anchor programs. - Pre-Execution Guardrails (
enforce_agent_guardrail): Deterministic prompt injection firewall and destructive shell command blocker. - Sandboxed AST Evaluation (
execute_ast_code_sandbox): Parse and evaluate JS/Python ASTs safely. - Bitcoin Mempool Oracle (
query_bitcoin_mempool_fees): Live sats/vB fee rate estimations. - LLM Markdown Web Extractor (
scrape_web_markdown): High-speed, ad-free web content scraping. - Universal Edge Invoker (
execute_microservice): Access to all 121 Diogenes edge microservices.
📦 Installation
npm install @diogenesgateway/agentkit-action-provider @coinbase/agentkit viem zod🚀 Quickstart
import { AgentKit, CdpWalletProvider } from "@coinbase/agentkit";
import { diogenesActionProvider } from "@diogenesgateway/agentkit-action-provider";
// 1. Initialize CDP Wallet Provider on Base
const walletProvider = await CdpWalletProvider.configureWithWallet({
apiKeyName: process.env.CDP_API_KEY_NAME,
apiKeyPrivateKey: process.env.CDP_API_KEY_PRIVATE_KEY,
networkId: "base-mainnet",
});
// 2. Initialize Diogenes Action Provider
const diogenes = diogenesActionProvider({
// Optional: Provide a prepaid session key, or leave undefined for autonomous Base EVM micropayments
sessionKey: process.env.DIOGENES_SESSION_KEY,
// Optional: Set to true for zero-cost demo tier
demoMode: false,
});
// 3. Initialize AgentKit with Diogenes Action Provider
const agentKit = await AgentKit.from({
walletProvider,
actionProviders: [diogenes],
});⚡ Autonomous Base EVM Micropayments
When demoMode: false and a live EvmWalletProvider on Base is provided:
- Diogenes Gateway returns an
HTTP 402 Payment Requiredchallenge containing settlement rail options. - The Action Provider automatically transfers the micro-settlement (~0.000005 ETH / ~$0.015) on Base to the Diogenes Base treasury (
0x3EDF655a6cF3A1Be4110545464932c3aB5Cf3836). - The provider automatically awaits transaction inclusion and retries the request with
PAYMENT-SIGNATURE: 0x...headers.
🌐 Endpoints & Edge Infrastructure
- Live Gateway: https://diogenesgateway.com
- Base EVM Treasury:
0x3EDF655a6cF3A1Be4110545464932c3aB5Cf3836 - Solana x402 Treasury:
5RwSxvj4A2LPLPSQQkiGUdbp7uCfgHd1Ao7V21a6Ahmm - MCP Catalog: https://diogenesgateway.com/.well-known/mcp.json
