0G Forge

ZeroClaw-style agent framework and CLI built on 0G Compute, Storage, and Chain.

0G Forge

Created At

Open Agents

Project Description

0G Forge is a terminal-native agent framework and CLI for building, previewing, and deploying AI-generated apps on the 0G protocol stack.

It exposes three core primitives — AgentLoop, ToolRegistry, and MemoryLayer — that any autonomous agent can build on top of.

The included goal agent runs multi-step goals with a reflection loop (continue / retry / skip), persists memory to 0G Storage, and registers itself on 0G Chain via a deployed FrameworkRegistry contract.

Developers use og create / og edit for prompt-driven code generation powered by 0G Compute inference, og sync push/pull for decentralized project metadata storage, and og deploy for Vercel deployment — all from the terminal.

How it's Made

Built as a pnpm monorepo. The CLI (apps/cli/) handles all og commands using a plan → diff → apply pipeline against 0G Compute's OpenAI-compatible /v1/chat/completions endpoint.

The forge-agent runtime (packages/forge-agent/) implements AgentLoop, ToolRegistry, and MemoryLayer as composable TypeScript primitives. The 0G Storage provider (packages/storage-0g/) uses @0glabs/0g-ts-sdk's Indexer class to upload project sync payloads and store the resulting file hash on our FrameworkRegistry.sol contract deployed on 0G Chain Galileo Testnet (chainId 16602).

The goal agent (examples/goal-agent/) dynamically imports the forge-agent runtime via tsx and demonstrates autonomous multi-step app building with reflection and on-chain self-registration.

background image mobile

Join the mailing list

Get the latest news and updates

0G Forge | ETHGlobal