Skip to main content
skill CX Codex

cloudflare-tunnel — Claude Code skill: reach services behind Access

A skill that hands the agent working curl recipes for services protected by Cloudflare Access, using a service token and its two headers.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add okou-ai/okou-skills --skill cloudflare-tunnel -a claude-code
Open on GitHub

What cloudflare-tunnel does

Use it when an endpoint sits behind a Cloudflare Access policy and you need to call it from the shell. The skill gives the agent the header pair to attach: CF-Access-Client-Id and CF-Access-Client-Secret, with the client ID ending in .access.

Recipes cover GET, a POST that reads its JSON body from /tmp/request.json, saving a response to /tmp/output.file, basic auth via -u, and stacking a service Authorization: Bearer on top. A troubleshooting table maps 403 to bad headers or a token missing from the Access policy, 401 to the service's own credentials, and a refused connection to cloudflared not running.

You need a service token from Zero Trust and cloudflared on the host. The -k flag switches off certificate checks for self-signed setups; leave it on and a man in the middle goes unnoticed, so fix the cert instead when it matters.

What it helps with

  • call an Access-protected API from curl
  • send a POST with a JSON body to a gated service
  • download a file from a host behind an Access policy
  • pair a Cloudflare service token with a Bearer token
  • diagnose a 403 or 401 response

Example prompts for the agent

  • Fetch https://your-protected-service.example.com/api/endpoint through Cloudflare Access and show me the response
  • POST the body in /tmp/request.json to the protected endpoint
  • I keep getting 403 from the service behind Cloudflare — work out why

How to install cloudflare-tunnel

1Skills CLI (Vercel)

npx skills add okou-ai/okou-skills --skill cloudflare-tunnel -a claude-code

2Manually: put the files in place

~/.claude/skills/cloudflare-tunnel/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/cloudflare-tunnel/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about cloudflare-tunnel

How do I install cloudflare-tunnel in Claude Code?

Run npx skills add okou-ai/okou-skills --skill cloudflare-tunnel -a claude-code. The skill lands at ~/.claude/skills/cloudflare-tunnel/SKILL.md.

What does cloudflare-tunnel do?

It supplies the agent with request patterns for Cloudflare Access-protected services and a table of common failures with their causes.

What do I need before it works?

A Cloudflare service token (client ID and secret) plus a running cloudflared; with no tunnel up, requests end in connection refused.

Similar skills

All skills for DevOps and infrastructure →

From the same set2

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor