Payments
How to Set Up a Decentralized Cloud VM with Aleph CLI
Deploy a decentralized VM in 10 minutes with Aleph Cloud's Rust CLI. Install, fund with USDC/ALEPH, launch Ubuntu instances for ~$10/month, and SSH in. No Python, no centralized cloud.
5 min. read -
Deploy your website on Aleph Cloud’s cutting-edge decentralized infrastructure for unmatched privacy, security, and uptime. This comprehensive tutorial guides you through creating and hosting any static website or dApp using Aleph Cloud’s Web3-native platform.
Your website files are uploaded to IPFS (InterPlanetary File System) and fully managed by the Aleph network. Aleph Cloud is fully GDPR-compliant, and if you decide to delete your dApp or stop holding the required tokens, your website will be automatically garbage collected by the network.
**Note: **IPFS being a public P2P network, your files or folder could still be available in the network if other nodes pinned it
What do you need to start
Basic knowledge of web development (HTML, CSS, JavaScript)
Node.js and npm installed on your machine.
A source-code editor like VS code (optional)
A GitHub account.
Aleph tokens in your wallet
Step 1: Setting Up Your Development Environment
Install Node.js and npm: If you haven’t already, download and install Node.js from nodejs.org. npm is included with Node.js. You can actually use any framework (and package manager, such as NPM, PNPM, YARN, BUN…) to create your website.
Install Git: Download and install Git from git-scm.com.
Create a New Project Directory:
mkdir my-aleph-blog
cd my-aleph-blog
NOTE: Keep in mind that your website must only contain client-side components and the dependencies used by it. For backend support, check out the section below.
When your project is ready, you can build and generate your static folder. For example, using NPM:
npm install
npm run build
NOTE: The name of the output folder depends on the framework, but it’s usually out or dist.
Step 2: Creating a Blog Template
npm init -y
npx create-next-app@latest my-blog
cd my-blog
mkdir pages/poststouch
pages/posts/[id].js
// pages/posts/[id].js
import { useRouter } from 'next/router'
const Post = () => {
const router = useRouter()
const { id } = router.query
return (
<div>
<h1>Blog Post {id}</h1>
<p>This is the content of blog post {id}.</p>
</div>
)
}
export default Post
npm run dev
Open http://localhost:3000/posts/1 *to see your first blog post.
Deploy and host your website
Deploy a secure, censorship-resistant Web3 site using IPFS and Aleph Cloud’s decentralized infrastructure.
Step 3: Deploy to Aleph Cloud
Access the Console
Upload Your Website
Step 4: Check out
Review the amount of $ALEPH needed to host your website
Sign the message and deploy your website. Your tokens won’t leave your wallet and won’t be consumed. Please note that if you withdraw your tokens from your wallet you will lose access to your website.
Step 5: Continuous Deployment
Monitor your site
Use the Aleph Cloud dashboard to:
Update your website
Upload your updated folder to the dashboard whenever you make changes - Aleph Cloud will automatically rebuild and deploy your site.
By default, IPFS can’t handle fallback redirections. To enable this, you should add a _redirects* file to your dapp structure.
For simple websites, it should be located in the root folder. For framework-based websites, it should be located in the public folder. Then, at build time, it will be moved to the root. Check out the documentation for more details.
Default Gateway Service
When your website is live on the Aleph network, we provide you with a gateway URL to easily access it: https://<ipfs-cid-v1>.ipfs.aleph.sh*
You can also access it similarly using alternative gateways, as your website is hosted on IPFS. Check out alternative gateways here: Public Gateway Checker
ENS Domains
Since your website is hosted on IPFS, it is compatible with the ENS standard. To make it usable with an ENS resolver such as https://<your-ens-name>.eth.limo* or https://<your-ens-name>.eth.link*, you need to set up the content hash field of your ENS with: ipfs://<ipfs-cid-v1>*
Aleph is currently not compatible with IPNS, which would allow you to automatically update the live version of your dapp. We are planning to support it in the near future and are working on building our own Aleph-native alternative to Limo, which is currently not a decentralized and scalable service.
Backend Support
To add a backend to your website and make it a real fullstack dapp, there are two current approaches you can implement:
Deploy your backend as a function using our serverless solution.
Deploy your instance, set up your environment, and expose your APIs to the internet.
NOTE: You should set up your backend in advance to integrate the necessary endpoint URLs into your website later.
You now have a fully functional, decentralized website hosted on Aleph Cloud’s Web3 infrastructure! This setup provides superior security, uptime, and censorship resistance compared to traditional hosting while maintaining excellent performance and user experience.
Continue building the decentralized web with Aleph Cloud’s powerful hosting solutions.
Payments
Deploy a decentralized VM in 10 minutes with Aleph Cloud's Rust CLI. Install, fund with USDC/ALEPH, launch Ubuntu instances for ~$10/month, and SSH in. No Python, no centralized cloud.
Computing
Aleph tokenomics introduces a dual-stream rewards model for decentralized cloud operators: a transitional reward floor plus a usage-based revenue share.
Payments
Pay As You Go and Holder Tier payments are officially deprecated. Aleph Cloud now runs on a single credit system. Top up with USDC, fiat, or ALEPH and pay for what you use.
Virtual Machines
Explore how OpenClaw AI agents, and Aleph Cloud’s decentralized AI Supercloud are redefining autonomous computing with sovereign, censorship-resistant infrastructure.