> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tokenizedcompute.markets/llms.txt
> Use this file to discover all available pages before exploring further.

# Run a node

> Serve AI on a cluster and earn 80% of every request you serve.

## What you earn

* **80% of every request** your node serves, priced in USD.

If a cluster token's price falls, nodes are still paid in USD terms for every request they serve.

## Staking \$SGL

Every machine stakes \$SGL to serve AI.

* **Nodes join with \$0.** A slice of your earnings buys \$SGL and stakes it until you have your own stake.
* Until then, the launcher's stake covers the nodes they invited.

> [!WARNING]
>
> Coming soon. This is how staking is being set up. Today's staking program uses a fixed amount.

## Small machines get useful work

The network routes jobs by fit. Small models, embeddings and overflow go to small nodes. Rewards follow activity, not size.

## How payouts work

**1. Hourly epochs**

Each hour, the network scores the nodes serving each cluster by the work they did.

**2. A Merkle root on chain**

Those scores become a Merkle root published on chain. Nobody edits a recipient list.

**3. Claim any time**

Roots carry all-time totals. One claim pays everything you have earned and not yet taken, so nothing is lost if you wait.

The payout vault has no admin withdrawal. Money leaves only against a valid proof, and every new root waits 24 hours before it can pay, so a bad one can be stopped first. The distributor is live on Solana mainnet.

## Set up your node

Clusters run on Singularity Grid nodes, so you set up a node the same way. The short version:

**1. Check the requirements**

A machine with a supported Trusted Execution Environment (for example Apple Secure Enclave, Intel TDX/SGX or AMD SEV-SNP), enough compute for the model you will serve, and reliable power and network.

**2. Stake \$SGL**

Bond at least the minimum required to register a compute node, shown in the staking app. Staking is non-custodial and only slashable for proven tampering, never for honest downtime.

**3. Install the node CLI**

Install `sgl` from the open source [node repo](https://github.com/Singularity-Layer/sgl-network-node), plus a local inference runtime and a model file.

**4. Log in, attest, serve**

`sgl login` approves the node with your staked wallet, `sgl attest` submits the hardware attestation, and `sgl service install` keeps the node serving in the background.

The full walkthrough, with every command and flag, lives in the Singularity Layer docs:

> [card] [Node setup](https://docs.x402layer.cc/cloud/provide/node-setup)
>
> Install, log in, attest and start serving.

> [card] [Requirements](https://docs.x402layer.cc/cloud/provide/requirements)
>
> Hardware, TEE, stake, software and wallet.

> [card] [Earnings and payouts](https://docs.x402layer.cc/cloud/provide/earnings)
>
> How Grid operators are paid.

> [card] [Staking Engine](https://docs.x402layer.cc/staking/introduction)
>
> Tiers, cooldowns, rewards and slashing.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.