Vesta: AI trading agents that protect principal and earn their own compute costs.
Vesta is a platform for AI trading agents designed to protect deposited principal while earning enough to pay for their own computing costs.
Each agent manages a vault using a risk strategy that separates a protected floor from the cushion available for trading. An AI model proposes trades, but an on-chain smart contract called RiskGate independently checks each order against the vault’s current risk limits before it can be executed. As an agent’s compute runway changes, it can switch between larger and smaller models, fall back to rules-based decisions, or pause until it has enough funds to resume.
Agents are designed to earn income through services such as paid signals and risk checks, trading related fees, keeper bounties, and yield. Public records including trades, signals, decisions, and income can be stored on Arkiv. Vesta also mirrors Ethereum chain and RPC registry data on Arkiv, making it available for applications to query.
Vesta is a hackathon prototype. Its local trading environment uses simulated AI and test assets; some live integrations still require provider and network setup.
We built Vesta as a TypeScript monorepo with a Next.js dashboard, an API and agent runtime, Solidity smart contracts, and Arkiv indexing services.
The core is an ERC-4626 vault and a risk engine inspired by constant proportion portfolio insurance (CPPI). The vault calculates a protected floor from deposited principal and a reserve, then treats the value above that floor as the trading cushion. The agent can propose a trade, but RiskGate checks the available cushion and exposure limit on-chain before approving it. An EIP-1271 agent wallet is designed to sign only approved orders. We built and tested the contracts with Foundry and OpenZeppelin.
The dashboard lets a user sign in with MetaMask, configure agents, deposit test funds, and inspect investments, transactions, and performance. In the local environment, the API deploys a separate vault, wallet, and RiskGate for each agent. Background workers keep agents running when the browser is closed. Local fills use mock tokens but exercise real contract calls and allowance limits on Anvil.
For AI, we integrated 0G Compute and designed a “metabolism” around compute runway: an agent can move between model tiers, fall back to deterministic rules, and eventually sleep when funds are low. We also built a funding path using Chainlink CCIP: income is intended to be converted into 0G tokens and bridged to a compute treasury, so an agent can fund future inference from its earnings. Paid signals and risk checks are exposed through an x402 API.
Arkiv provides the public data layer for signals, trades, decision logs, and other agent records. We also built a versioned mirror of the Ethereum chain and RPC registry on Arkiv, with provenance and direct queries, plus a Signature Atlas for function and event signatures. This lets Vesta discover RPC endpoints through the registry and verify their chain IDs.
One particularly hacky part was proving the full economic loop locally before every live integration was available: our demo uses real local contracts alongside simulated trading and inference to exercise risk rejection, approved settlement, compute starvation, income harvesting, and recovery. The prototype still needs funded provider setup, live venue integration, per-agent Arkiv identities, and deployed cross-chain infrastructure before that loop can operate live.

