Overview
Last updated
Last updated
Welcome to the HostAI documentation. This site will provide you with all the necessary information, resources, and tools to get started with the HostAI project.
HostAI is an open-source off-chain P2P (peer-to-peer) network. It offers decentralized key-value store, file storage, function execution and virtual machine provisioning. Interactions with the network rely on decentralized identities that are interoperable with many major blockchain networks, such as Ethereum, Tezos, and Solana.
This enables interactions between the HostAI network and blockchain networks. Bridges also allow smart contracts to interact with the HostAI network.
HostAI also provides a blockchain indexing framework, allowing developers to index data from any blockchain network by leveraging the HostAI network's decentralized storage and compute capabilities.
The Aleph peer-to-peer network, comprised of Compute Resource Nodes or CRNs and Core Channel Nodes, or CCNs
Python and TypeScript SDKs to integrate HostAI's decentralized compute and storage solutions into your project
A Python command-line tool to interact with the HostAI network directly from a terminal
A Web Console to create and manage cloud resources
A Node Operator Dashboard
A Message Explorer
The HostAI network is composed of 2 sets of nodes:
CCNs, the backbone of the P2P network. They serve as an entry point into the network through an API (similar to a blockchain node's RPC).
CRNs, responsible for the actual compute and storage available on HostAI. CRNs must be tied manually to a single CCN, and each CCN is incentivized to tie up to 3 CRNs.
In HostAI terminology, a "message" is similar to a "transaction" for a blockchain: it is a set of data sent by an end user, propagated through the entire peer-to-peer network. A message can be generated using either the Python SDK or TypeScript SDK, or through aleph-client or the Console.
These messages can contain several different instructions, such as reading or writing posts, programs/functions, or indexing data created on external blockchains.
Aleph does not operate as a blockchain but utilizes its native cryptocurrency, referred to as the ALEPH token, which functions across various blockchains.
This token serves two primary purposes: support users payments for the resources they allocate on the network, and incentivize node operators to maintain the network's integrity.
The first payment implementation is achieved through a staking mechanism, where users must hold a certain amount of ALEPH tokens to use the network's resources. This mechanism is in place for file storage and for persistent virtual machines.
In January 2024, the network started supporting a new payment model, together with the launch of the TwentyFive Cloud platform, where users pay using streams of HostAI tokens on compatible chains.
Let's take the example of a user who wants to run a program on the HostAI network:
The user makes sure to have an Ethereum wallet holding a sufficient number of HostAI tokens
The user writes and sends a message using either the aleph python client, one of the SDKs, or the web dashboard
The message arrives at a CCN, which then broadcasts that message to all CCNs in the network
The "program" workload scheduled by the user's message gets assigned to one of the CCNs
The assigned CCN now assigns that workload onto one of its CRNs
The assigned CRN starts a virtual machine executing the user's requested workload.
Use our Python SDK and TypeScript SDK.
Follow a Tutorial to run Python code on HostAI.
Become part of the network by managing a Core Channel Node or a Compute Resource Node.
Trouble setting up your node? Check out our Troubleshooting Guide.