# GitHub Pages Tunnel

> Deploy private projects to GitHub Pages for free using separate public repos and Cloudflare Tunnels.

GitHub Pages Tunnel is a paid AI agent skill on Agensi by leon yang (里昂), in Agents & Orchestration. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $10 (one-time purchase)
- Creator: [leon yang (里昂)](https://www.agensi.io/creators/leon-yang)
- Category: [Agents & Orchestration](https://www.agensi.io/skills/agents-orchestration)
- Version: 1.0
- Last updated: 2026-11-30
- Security: scan passed (2026-11-30); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/github-pages-tunnel
- Tags: ai-agents, github-pages, cloudflare-tunnel, devops, automation

## About this skill

Publish static sites and dynamic local servers for $0—while keeping your main repository private.

`github-pages-tunnel` is an AI agent skill that sets up a clean, zero-cost publishing workflow using GitHub Pages and Cloudflare Quick Tunnel. Instead of burning through Netlify/Vercel build minutes or exposing private source code, this skill separates your private project from a dedicated public output repository.

Two Ready-to-Use Modes:
- Mode A — Static Web Pages: Publish one-page decks, product landing pages, and event sites to a public GitHub Pages repo without touching your private codebase.
- Mode B — Dynamic Server + Fixed Entrypoint: Run a local or private server behind a Cloudflare Quick Tunnel and give users a permanent GitHub Pages URL that automatically fetches the latest live tunnel URL and online/offline status via cache-busted status.json.

What's Included:
- Step-by-step SOP for gh CLI repo setup, .nojekyll, and GitHub Pages activation
- Export, sync, and one-click launcher patterns (start-public.ps1 / sync-pages.mjs)
- Optional 15-minute cron automation pattern for keeping tunnel status in sync
- Security guardrails so .env, keys, and private source code are never leaked
- Full bilingual instructions (English & Traditional Chinese)

## Requires

- Git

## Known limitations

Cloudflare Quick Tunnel URLs change on every restart. Periodic health checks require an active environment to run cron tasks. Output repo must be public for free hosting.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the GitHub Pages Tunnel skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does this skill help me save money on hosting?

This skill automates the process of using a public GitHub repository as a free hosting layer for your private projects, allowing you to showcase live demos or local servers without exposing your source code or paying for premium hosting.

### What exactly is included in the purchase?

The skill provides the necessary automation scripts (PowerShell/Node.js), pre-configured deployment templates, and a guided workflow to connect GitHub Pages with Cloudflare Tunnels safely.

### Is this skill compatible with all AI agents?

Yes, the skill is designed to work with any AI agent that has access to a terminal and the GitHub CLI, including popular coding assistants and local LLM agents.

### Does this process risk exposing my private source code to the public?

No, this skill implements a 'static separation' architecture that ensures your private source code and environment variables never leave your local machine or private repo.

### How does the skill handle the fact that Cloudflare Quick Tunnel URLs are temporary?

The skill includes specific cache-busting logic and sync scripts that automatically update your public entrypoint whenever your local server or tunnel URL changes.

### What are the technical prerequisites for using this skill?

You will need the GitHub CLI (gh), Git, and Cloudflare's tunnel utility installed on your local machine; the skill handles the configuration and orchestration between these tools.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
