elizaos-plugin-gate402
ElizaOS plugin for Gate402 — gives your agent pay-per-call
GPU/CPU compute + open-model LLM inference, plus Base market data, over x402
(USDC). No vendor API keys to manage: the agent pays the HTTP 402, and a free-tier key is
auto-claimed on first use.
Actions
GATE402_COMPUTE | Rent metered GPU/CPU to run a container job, per-second; signed execution receipt |
GATE402_INFER | Per-token open-model LLM inference (Llama 3.1 / Qwen / mistral-small) |
GATE402_ONCHAIN | On-chain wallet/token intel on Base (balances, EOA/contract, tx count) |
GATE402_TOKEN_RISK | Rug/tradeability verdict for a Base token (0-100 + SAFE/CAUTION/AVOID, live honeypot sim) |
GATE402_DEX | Live DEX price / liquidity / 24h volume |
GATE402_MOMENTUM | Momentum + order-flow (RISING/FALLING, ACCUMULATION/DISTRIBUTION) |
GATE402_BEST_SWAP | Which pool + estimated price impact for a trade size |
GATE402_LAUNCHES | Radar of the freshest Base token launches |
Install
npm install elizaos-plugin-gate402
Add it to your character/agent plugins:
import gate402Plugin from 'elizaos-plugin-gate402';
export const character = {
name: 'MyDeFiAgent',
plugins: [gate402Plugin],
};
Config (optional)
GATE402_API_KEY | (auto free tier) | A funded Gate402 account key to skip the free tier |
GATE402_BASE_URL | https://gate402.app | Override the gateway |
The free tier auto-claims a credited key per host on first call; when it runs out, actions
return a top-up link. Set GATE402_API_KEY to a funded account for production volume.
How it's paid
Each action is a pay-per-call Gate402 endpoint settled over x402 (USDC on Base). The
payment is the auth — there are no accounts to create. See the full catalog at
https://gate402.app/v1.
MIT.