ai-plugin/skills/run-arena-agent/SKILL.md
Trigger phrases: "start trading", "run agent", "start arena agent", "begin trading", "start auto-trading", "stop trading"
npx skillsauth add NickVanzo/hackathon-eth-global-2026 run-arena-agentInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Start the autonomous trading loop that queries pool state, asks the LLM for a trading decision, and submits intents on-chain every N seconds.
AGENT_PRIVATE_KEY set in .env (the wallet must be registered as an agent)register-agent.mjs first if neededAGENTS.md present in the current working directory (ai-plugin/)OPENCLAW_GATEWAY_TOKEN set), orOG_COMPUTE_API_KEY set for 0G Compute direct access| User says | intervalMs |
|-----------|-----------|
| "every 2 minutes" / default | 120000 |
| "every 30 seconds" | 30000 |
| "every 5 minutes" | 300000 |
| "every 10 minutes" | 600000 |
Convert to milliseconds and pass as the first argument.
# Default: 2-minute interval, OpenClaw gateway at localhost:3000
node skills/run-arena-agent/arena-loop.mjs
# Custom interval (e.g. 30 seconds)
node skills/run-arena-agent/arena-loop.mjs 30000
# Custom interval + custom gateway URL + token
node skills/run-arena-agent/arena-loop.mjs 60000 http://127.0.0.1:3000 <token>
AGENT_PRIVATE_KEY=0x... \
OPENCLAW_GATEWAY_TOKEN=<token> \
node skills/run-arena-agent/arena-loop.mjs 120000
AGENT_PRIVATE_KEY=0x... \
OG_COMPUTE_API_KEY=<key> \
node skills/run-arena-agent/arena-loop.mjs 120000
action (open/close/rebalance/hold)
and optional amountUSDC, tickLower, tickUpper, reason fields.hold, ABI-encodes the intent
params and calls AgentManager.submitIntent(agentId, actionType, params).intervalMs before the next epoch.Send SIGINT (Ctrl+C) or SIGTERM. The loop exits cleanly after the current
epoch finishes.
OPENCLAW_GATEWAY_TOKEN set?
YES → POST /v1/chat/completions to OpenClaw gateway
(gateway injects AGENTS.md as system context automatically)
NO → OG_COMPUTE_API_KEY set?
YES → POST to 0G Compute directly
(reads AGENTS.md from cwd as system prompt)
NO → Error — set at least one of the above
The OpenClaw gateway is preferred because it handles model selection and automatically injects the agent's strategy document.
development
Submit a trading intent to the AgentManager contract on 0G Chain. Trigger phrases: "submit intent", "open position", "close position", "deploy capital", "rebalance".
testing
Triggered by: "register agent", "join arena", "sign up for arena", "deploy agent", "check registration", "am I registered"
data-ai
Example TaskFlow authoring pattern for inbox triage. Use when messages need different treatment based on intent, with some routes notifying immediately, some waiting on outside answers, and others rolling into a later summary.
data-ai
Example TaskFlow authoring pattern for inbox triage. Use when messages need different treatment based on intent, with some routes notifying immediately, some waiting on outside answers, and others rolling into a later summary.