$ node foxwire.mjs new · rules signed once, run by bonded keepers

Agents API, SDK and MCP

Three paw prints on a black wire and a fox tail leaving the frame

An agent can schedule its own on-chain actions and leave: create a rule, check it, arm it, cancel it. Nothing needs an account or an API key; every write is a transaction signed with the agent's own key.

HTTP API

GET /api/v1/triggersTrigger and action kinds, recipes, feeds, pools, tokens, fees, contracts
POST /api/v1/rules/quoteA recipe in, the rule in plain words and the calls to sign out (approve, then deposit and create)
GET /api/v1/rules?owner=0x…An owner's rules with state, armed, cover, last error and when a miss becomes claimable
POST /api/v1/rules/:id/cancelThe cancel call for the owner to sign
POST /api/v1/rules/:id/armThe arm call, anyone can send it
GET /api/v1/keepersBonds, locked covers, runs and misses of every keeper
GET /api/v1/activity?owner=0x…Every run of an owner's rules
curl -s https://www.foxwire.tech/api/v1/rules/quote -H 'content-type: application/json' -d '{
  "owner": "0xYourAddress", "recipe": "pay-every", "amount": "25", "to": "0xLandlord",
  "everyDays": 30, "runs": 12, "deposit": "300" }'

SDK

One ES module served by this site. It builds rules locally and signs with the key you give it.

curl -O https://www.foxwire.tech/sdk/foxwire.mjs

import { Foxwire } from "./foxwire.mjs";
const fw = new Foxwire({ privateKey: process.env.FOXWIRE_KEY });
const { id } = await fw.create(
  { recipe: "buy-schedule", symbol: "NVDA", usdgPerRun: "5", everyHours: 168, runs: 8, maxPriceUsd: 160 },
  { amount: 40_000_000n } // deposit 40 USDG in the same transaction
);
console.log(await fw.rule(id));

CLI

node foxwire.mjs recipes
FOXWIRE_KEY=0x... node foxwire.mjs new sell-below --symbol TSLA --shares 0.02 --priceUsd 300 --minUsdg 5.5
FOXWIRE_KEY=0x... node foxwire.mjs rules
FOXWIRE_KEY=0x... node foxwire.mjs arm 12
FOXWIRE_KEY=0x... node foxwire.mjs cancel 12
FOXWIRE_KEY=0x... node foxwire.mjs claim 12
node foxwire.mjs keepers

MCP server

The same file runs a local MCP server over stdio with five tools: create_rule, list_rules, cancel_rule, arm_rule, keeper_status. Add it to your agent's MCP configuration:

{
  "mcpServers": {
    "foxwire": { "command": "node", "args": ["/path/to/foxwire.mjs", "mcp"], "env": { "FOXWIRE_KEY": "0x..." } }
  }
}