Installation

Get Hostify up and running in under 2 minutes.

Latest Version: 0.2.0 - Now with CLI support!

Requirements

🐍 Python >= 3.9

☁️ Cloudflare account with a domain

🔑 API Token from Cloudflare

Install Hostify

Terminal

Install from PyPI using pip:

pip install hostify

Cloudflare Setup

Step 1: Get API Token

  1. Go to Cloudflare API Tokens

  2. Click “Create Token”

  3. Use “Edit Cloudflare Zero Trust” template or create custom token with:

    • Account → Cloudflare Tunnel → Edit

    • Zone → DNS → Edit

    • Zone → Zone → Read

  4. Copy the token

Tip

For detailed Cloudflare setup instructions, see the Cloudflare Setup Guide

Step 2: Set Environment Variable

Windows PowerShell

Windows (PowerShell):

$env:CF_API_TOKEN="your_token_here"
Linux/macOS Terminal

Linux/Mac:

export CF_API_TOKEN="your_token_here"

Permanent Setup:

For Linux/Mac, add to ~/.bashrc or ~/.zshrc:

echo 'export CF_API_TOKEN="your_token_here"' >> ~/.bashrc

For Windows, use System Environment Variables:

setx CF_API_TOKEN "your_token_here"

Step 3: Add Domain to Cloudflare

Make sure your domain is added to Cloudflare and nameservers are configured.

Verify Installation

Python

Test your installation:

from hostify import Host
print("Hostify installed successfully!")

Note

If you encounter any issues, check the Troubleshooting guide.

✨ Hostify is now ready. Your local machine just became a server.