Funding

Get funded, then build.

Three different things get funded on 0G: testnet gas while you develop, mainnet 0G when you ship, and compute credit for inference. Here is where each one comes from.

§ 01 · Testnet gas

Everything you build against Galileo, the 0G testnet, runs on free tokens. Claim them, deploy, break things, claim again.

Testnet 0G has no market value and only pays gas on Galileo. Nothing you claim here works on mainnet.

§ 02 · Mainnet 0G

Mainnet needs real 0G. How you get it depends on where your money already is, so we keep one guide that asks that question instead of a list of venues that goes stale.

Canonical route

get.0g.ai

An interactive decision tree. Pick your starting point (fiat, crypto on another chain, funds sitting on a centralized exchange, a DeFi position, or a wallet you already hold 0G in) and it routes you to the exchanges, bridges, and swaps that fit that path.

Open get.0g.ai

Exchange, bridge, and DEX listings live on get.0g.ai so there is a single place to keep them current.

§ 03 · Compute credit

Compute credit is the balance that pays providers on 0G Compute when your app generates tokens.

Credit is not gas

Gas pays for transactions on 0G Chain; compute credit pays providers for inference, and a funded wallet does not give you either one automatically.

Easiest

Top up in Private Computer

Add credit to your account from the PC dashboard and watch the balance draw down per request.

pc.0g.ai

From the CLI

Deposit with 0g-compute-cli

Wallet-based flow: the first deposit creates your ledger, and 3 OG is the minimum that will do it.

0g-compute-cli deposit --amount 3 # 3 OG minimum, creates the ledger
0g-compute-cli get-account # check the remaining balance

Wiring credit into an app? The broker flow is on the Compute page.

Not sure which of the three you need?

Ask the docs AI