cloudflare-container-gateway-autostart

Configure a public start endpoint and cron job to keep gateway processes running in Cloudflare Workers Containers.

Updated Mar 4, 2026
One-click install
npx skills add https://github.com/hubeiqiao/skills --skill cloudflare-container-gateway-autostart
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cloudflare-container-gateway-autostart
Source: https://github.com/hubeiqiao/skills/tree/main/cloudflare-container-gateway-autostart
Command: npx skills add https://github.com/hubeiqiao/skills --skill cloudflare-container-gateway-autostart

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill ensures that essential gateway processes within Cloudflare Workers Containers, particularly for bots like Discord or Telegram, start automatically and remain running, preventing them from going offline.

Core Features & Use Cases

  • Automatic Gateway Startup: Initiates the gateway process even without direct inbound authenticated requests.
  • Cron-Based Health Check: Periodically checks and restarts the gateway to maintain bot responsiveness.
  • Use Case: Your Discord bot, hosted on Cloudflare Workers Containers and protected by Cloudflare Access, suddenly stops responding. This Skill can be used to automatically restart the bot's gateway process, bringing it back online without manual intervention.

Quick Start

Use the cloudflare-container-gateway-autostart skill to ensure your bot's gateway process is running.

Frequently Asked Questions about cloudflare-container-gateway-autostart

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
Why does my Discord bot go offline in Cloudflare Workers Containers behind Cloudflare Access?

Discord bots in Cloudflare Workers Containers go offline when the internal gateway process fails to initiate due to a lack of inbound authenticated requests. Without these requests, the container stays active but the bot stops responding.

How do I keep a gateway process running automatically in Cloudflare Workers Containers?

To keep a gateway process running automatically in Cloudflare Workers Containers, add a public start endpoint and configure a cron job. This setup periodically checks and restarts the gateway to maintain continuous bot responsiveness.

What is a cron-based health check for Cloudflare Workers Containers?

A cron-based health check for Cloudflare Workers Containers is a periodic monitoring mechanism that verifies if the internal gateway process is active. It automatically restarts the gateway to ensure bots behind Cloudflare Access remain online.

Can I use a cron job to start a bot gateway without direct authenticated requests?

Yes, you can use a cron job combined with a public start endpoint to initiate the gateway process automatically. This configuration ensures the gateway starts even without direct inbound authenticated requests.

How do I configure an automatic restart for a Telegram bot hosted on Cloudflare Workers?

To configure an automatic restart for a Telegram bot on Cloudflare Workers, implement a public start endpoint and set up a cron job. This continuously monitors and restarts the gateway process to prevent the bot from going offline.