Summary
Use a managed Bittensor endpoint if your application needs Subtensor RPC and you prefer not to operate a chain node. For self-hosting, use a lite node for recent state or an archive node for historical reads. The official Subtensor guide provides Compose services for Finney mainnet and testnet.
Choose lite, archive, or managed RPC
A lite node keeps recent state after warp sync. An archive node keeps historical state for old block reads and indexer backfills. The Bittensor operator guide lists roughly 128 GB of disk for lite and at least 3.5 TB and growing for archive. Use that guide to size the host for your current workload. For a hosted connection, start with the Bittensor Finney RPC reference.
Start a Finney node with Docker Compose
Start with the Compose file in the official repository. The service below runs Finney mainnet in lite mode. Select mainnet-archive, testnet-lite, or testnet-archive when you need the corresponding chain or retention. Preserve the data volume across updates and confirm RPC port 9944 is limited to localhost or a trusted network. Port 30333 serves P2P traffic.
git clone https://github.com/RaoFoundation/subtensor.git
cd subtensor
docker compose up -d mainnet-lite
docker compose logs -f mainnet-lite
Verify the RPC before routing traffic
Run system_health on the local endpoint and confirm syncing has completed. Monitor peers, disk growth and finalized block progress. Compare the finalized head with an independent endpoint before moving traffic. If you need historical state, repeat a read against a known old block. This catches a pruned deployment before it interrupts an indexer.
curl http://127.0.0.1:9944 -H 'Content-Type: application/json' \
--data '{"jsonrpc":"2.0","id":1,"method":"system_health","params":[]}'