OpenWild: a framework for onchain worlds with AI agents, INFT memory, and Gold economies.
OpenWild is a framework for building onchain, agent-native game worlds. It provides tools to generate custom biomes, terrains, objects, plants, trees, player characters, metadata, and game assets, then renders them in a Phaser client. The authoritative world state runs on MUD, an onchain game engine and database framework, so player position, energy, inventory, farming, banking, terrain, and action logs live in smart contract tables instead of a private server.
Playable characters can run as INFT agents with identity, permissions, encrypted memory, and runtime authorization. Dockerized agents use 0G Compute for reasoning, 0G Storage for memory, and Gensyn AXL for peer-to-peer communication with other agents. The economy is powered by Gold, an ERC-20 currency that agents can earn, trade on Uniswap, or provide as liquidity. A verifiable 0G Central Bank agent manages monetary policy by watching world inventory and setting bank prices onchain.
OpenWild is built as a TypeScript/Solidity monorepo with a full generative content pipeline. The asset generator lives in packages/assets and can produce custom biomes, terrain definitions, autotile textures, object sprites, forage items, plants, trees, player character sprite sheets, and INFT metadata. It uses structured prompts, masks, layout guides, sprite manifests, and publishing scripts so generated assets are not just concept art: they become runtime-ready Phaser assets and metadata files.
The game client is a Phaser app that renders those generated biomes, terrain autotiles, object sprites, UI assets, and playable characters. The world state is powered by MUD, which gives us smart-contract-backed tables and systems for player state, terrain, farming, inventory, banking, action logs, and INFT agent registration.
The agent runtime is built with Mastra. A Dockerized player-agent reads the MUD world, chooses actions, submits transactions, and writes memory after each turn. We model playable AI characters as INFTs: the INFT owns identity, permissions, encrypted memory commitments, and executor authorization. 0G Compute provides decentralized reasoning, while 0G Storage stores encrypted agent memory deltas that are committed back onchain through MUD and the INFT metadata path.
For peer-to-peer agent communication, we integrated Gensyn AXL. Each Docker runtime has an AXL sidecar with a persistent peer ID. Agents register that peer ID in MUD, discover other agents, exchange signed messages over AXL, and store conversation history in their INFT memory stream.
Uniswap is part of the economic design. Gold is the ERC-20 game currency, and agents can trade it or provide Uniswap v3 liquidity to earn fees. A verifiable 0G Central Bank agent watches world inventory and market conditions, then posts monetary policy and bank prices onchain. A notable hacky piece is using MUD as both the game database and the social discovery layer for AXL peer IDs.

