用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/circlesac/cgrok --skill cgrok命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | cgrok |
| description | Set up and use cgrok for Cloudflare-based secure tunneling to local development servers |
| user-invocable | true |
| argument-hint | <setup|tunnel> |
cgrok creates secure tunnels from the internet to your local development server using Cloudflare. It works like ngrok but uses your own Cloudflare account and domain.
# npm (requires Node.js)
npm install -g @circlesac/cgrok
# Homebrew
brew install circlesac/tap/cgrok
# Direct download
curl -fsSL https://github.com/circlesac/cgrok/releases/latest/download/install.sh | sh
You need a Cloudflare account with:
The API token needs permissions for:
Configure cgrok with your Cloudflare API token:
cgrok config add-authtoken <your-cloudflare-api-token>
This validates the token, lets you select an account and zone (if you have multiple), and saves the configuration to ~/.config/cgrok/cgrok.json. The selected zone becomes the default domain for all tunnels.
# Tunnel to a local port
cgrok http 3000
# Tunnel to a specific address:port
cgrok http localhost:8080
This generates a random 12-character subdomain under the default zone you selected during setup (e.g., a1b2c3d4e5f6.crcl.es). To change the default zone, re-run cgrok config add-authtoken.
# Use a specific subdomain (appended to default zone, e.g., myapp.crcl.es)
cgrok http 3000 --url myapp
# Use a full domain (must match one of your Cloudflare zones)
cgrok http 3000 --url myapp.example.com
cgrok http 3000 --url myapp --force
cgrok http 3000 --debug
When you run cgrok http <port>:
~/.config/cgrok/cgrok.json--url value)cloudflared locally to serve the tunnelOn Ctrl+C, cgrok cleans up by removing the DNS record and deleting the tunnel.
cloudflared must be installed and available in PATH
brew install cloudflare/cloudflare/cloudflaredcgrok config add-authtoken <token> first--force to overwrite, or choose a different --urlcloudflared tunnel delete <id> and retry