About
NerOS is a hackathon project (targeting the 0G Track 2 — iNFT Innovation) that turns an ERC-721 NFT into an autonomous DeFi trading agent. The core idea: you mint an NFT, and that NFT has an AI brain that makes real trades on your behalf while you sleep.
What it does end-to-end
You mint an iNFT — giving it a name, risk tolerance (1–10), trading style, and preferred assets. This personality is serialized to JSON and uploaded to 0G Decentralized Storage, and the resulting content hash (CID) is stored on-chain inside the NFT's Intelligence struct.
The AI brain runs (npm run agent) — it spins up a tool-use loop powered by 0G Compute AI Inference (an OpenAI-compatible endpoint accessed via the 0G Compute Network broker). The AI has 6 tools it can call:
read_memory — fetches the NFT's trade history from 0G Storage get_market_data — fetches live ETH/token prices from CoinGecko get_portfolio_balance — checks current holdings via the PortfolioManager contract read_ens_instructions — reads a human instruction left in an ENS text record execute_trade — fires a real Uniswap V3 swap on Sepolia via PortfolioManager.sol write_memory — appends the new trade record to 0G Storage and updates the on-chain memory CID
The smart contracts enforce safety: PortfolioManager.sol enforces max position size and requires amountOutMin > 0 (no unbounded slippage). KeeperAdapter.sol exposes checkUpkeep/performUpkeep so the agent runs on a schedule via KeeperHub automation — fully autonomous, no manual triggering needed.
You can send instructions (npm run send-instruction) — writes a plain-English command (e.g., "be more conservative") into an ENS text record. The next agent cycle reads it, acts on it, then clears it so it's never applied twice.
History is persistent and immutable (npm run history) — every trade is appended to a JSON log in 0G Storage. The on-chain NFT always points to the latest CID. History is append-only by design; it can never be overwritten.
The CLI is a rich terminal UI built with Ink (React for terminals) — showing a styled header with NFT identity, live spinner rows per tool call, and a color-coded BUY/SELL/HOLD decision badge with a clickable Etherscan link.
From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.






