
Security News
Ruby's Bundler 4.0.18 Extends Cooldown to bundle lock and bundle cache
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.
mastra-gate402
Advanced tools
Mastra tools for Gate402: pay-per-call GPU/CPU compute + open-model LLM inference, plus Base market data (token-risk, DEX, momentum, launches, best-swap, onchain), over x402 (USDC). No API keys — the agent pays the 402.
Mastra tools for Gate402 — pay-per-call GPU/CPU compute + open-model LLM inference, plus Base market data, over x402 (USDC). No vendor API keys: the agent pays the HTTP 402, and a free-tier key is auto-claimed on first use.
npm install mastra-gate402
import { Agent } from '@mastra/core/agent';
import { gate402Tools } from 'mastra-gate402';
export const defiAgent = new Agent({
id: 'defi-agent',
name: 'DeFi Agent',
instructions: 'Vet Base tokens before acting: check risk, liquidity, and momentum.',
model: 'openai/gpt-5.5',
tools: { ...gate402Tools }
});
Or import individual tools:
import { gate402TokenRisk, gate402Infer } from 'mastra-gate402';
| Tool | What it does |
|---|---|
gate402_compute | Rent metered GPU/CPU to run a container job, per-second; signed execution receipt |
gate402_token_risk | Rug/tradeability verdict + live honeypot sim for a Base token |
gate402_dex | Live DEX price / liquidity / 24h volume |
gate402_momentum | Momentum + order-flow signal |
gate402_best_swap | Best pool + estimated price impact for a trade size |
gate402_onchain | Wallet/token intel (balances, EOA/contract, tx count) |
gate402_launches | Freshest Base token launches |
gate402_infer | Per-token open-model LLM inference (Llama 3.1 / Qwen / mistral-small) |
| Env | Default | Purpose |
|---|---|---|
GATE402_API_KEY | (auto free tier) | Funded Gate402 account key to skip the free tier |
GATE402_BASE_URL | https://gate402.app | Override the gateway |
Each tool is a pay-per-call Gate402 endpoint settled over x402 (USDC on Base) — the payment is the auth. Full catalog: https://gate402.app/v1.
MIT.
FAQs
Mastra tools for Gate402: pay-per-call GPU/CPU compute + open-model LLM inference, plus Base market data (token-risk, DEX, momentum, launches, best-swap, onchain), over x402 (USDC). No API keys — the agent pays the 402.
We found that mastra-gate402 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.

Company News
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.