skills/tunnel/SKILL.md
This skill should be used when the user asks to "expose localhost", "create tunnel", "share local server", "test webhooks locally", "tunnel to localhost", "make local dev accessible", "public URL for localhost", or mentions exposing local services, testing webhooks, or sharing development servers.
npx skillsauth add sztwiorok/buddy-plugin tunnelInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Expose local services to the internet via secure Buddy tunnels. Ideal for webhook testing, client demos, mobile testing, and temporary service sharing.
STOP: Read this section completely before creating any tunnel.
Tunnel commands run in foreground and WILL BLOCK your execution. You MUST use run_in_background: true parameter in Bash tool:
Bash tool call:
command: bdy tunnel http localhost:3000
run_in_background: true
Before creating ANY HTTP tunnel, you MUST use AskUserQuestionTool to ask about authentication.
DO NOT skip this step. DO NOT proceed until user has made a choice.
Question: "Do you want to protect this HTTP tunnel with authentication?"
Options:
-a username:password flag--buddy flagIf running in Docker, the containerized app MUST bind to 0.0.0.0 so the host can reach it. For regular local development (not Docker), 127.0.0.1 works fine with tunnels.
If any bdy command returns Token not provided or Not logged in, ask the user to run bdy login in a separate terminal (interactive browser auth — AI cannot do it).
bdy tunnel http localhost:3000 # basic
bdy tunnel http localhost:3000 -a user:pass # with HTTP basic auth
bdy tunnel http localhost:3000 --buddy # with Buddy auth
bdy tunnel http localhost:3000 -n my-tunnel # named tunnel
bdy tunnel tcp localhost:5432 # PostgreSQL
bdy tunnel tcp localhost:3306 # MySQL
bdy tunnel tcp localhost:22 # SSH
bdy tunnel tls localhost:8443 --key key.pem --cert cert.pem
| Option | Description |
|--------|-------------|
| -n, --name | Named tunnel for identification |
| -a, --auth user:pass | HTTP basic authentication |
| --buddy | Buddy account authentication |
| -r, --region eu\|us\|as | Regional endpoint |
| -w, --whitelist | IP CIDR restrictions |
| -t, --timeout | Connection timeout (seconds) |
0.0.0.0 inside the containerToken not provided or Not logged in, user must run bdy login in a separate terminalFor detailed options, configurations, and examples see:
tools
Deploy apps to Buddy sandboxes, publish artifacts, create tunnels, manage domains, configure distributions, and run CI/CD pipelines using `bdy` CLI. Triggers on: deploy, sandbox, tunnel, expose, artifact, static site, publish, domain, distribution, pipeline, CI/CD.
development
Deploy static websites to Buddy Packages. Use when user asks to "deploy static site", "host static files", "publish website", "upload build artifacts", or mentions deploying pre-built HTML/CSS/JS files, SPA builds, or static exports.
testing
Deploy and test applications in Buddy Sandbox cloud environments. Use when user asks about "deploy app", "create sandbox", "test in cloud", "isolated environment", "remote environment", "run app in sandbox", or mentions deploying, testing, or running applications in cloud sandboxes.
data-ai
Delegate AI tasks to Claude agents running in isolated Buddy Sandbox environments. Use when user asks to "delegate task", "run task in sandbox", "parallel agent execution", "isolated AI task", "YOLO mode", "sub-agent", "compare solutions", "multi-agent", or mentions running AI tasks in sandboxes.