
tunnel
by sztwiorok
SKILL.md
name: tunnel description: 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.
Buddy Tunnels
Expose local services to the internet via secure Buddy tunnels. Ideal for webhook testing, client demos, mobile testing, and temporary service sharing.
CRITICAL: AI Agent Requirements
STOP: Read this section completely before creating any tunnel.
1. Run tunnels in background (MANDATORY)
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
2. Ask about HTTP authentication (MANDATORY)
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:
- "HTTP Basic Auth (username:password)" → use
-a username:passwordflag - "Buddy Authentication" → use
--buddyflag - "No authentication (public access)" → proceed without auth
3. Verify app binds to 0.0.0.0
Applications MUST bind to 0.0.0.0 (all interfaces), NOT 127.0.0.1 (localhost only). If tunnel shows "connection refused", this is likely the cause.
Prerequisites
Authentication Required: Verify with bdy workspace ls. If it fails, user must run bdy login in a separate terminal (AI agents cannot perform interactive login).
Quick Start
HTTP Tunnel (most common)
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
TCP Tunnel (databases, SSH)
bdy tunnel tcp localhost:5432 # PostgreSQL
bdy tunnel tcp localhost:3306 # MySQL
bdy tunnel tcp localhost:22 # SSH
TLS Tunnel (custom certificates)
bdy tunnel tls localhost:8443 --key key.pem --cert cert.pem
Common Options
| 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) |
Troubleshooting
Connection Refused
- Verify app is running on specified port
- Check app binds to
0.0.0.0, not127.0.0.1
Authentication Failed
- Run
bdy workspace lsto verify auth - User may need to run
bdy loginin separate terminal
References
For detailed options, configurations, and examples see:
- references/commands.md - Complete command reference with all flags
- references/examples.md - Use cases: webhooks, demos, databases, etc.
Score
Total Score
Based on repository quality metrics
SKILL.mdファイルが含まれている
ライセンスが設定されている
100文字以上の説明がある
GitHub Stars 100以上
3ヶ月以内に更新がある
10回以上フォークされている
オープンIssueが50未満
プログラミング言語が設定されている
1つ以上のタグが設定されている
Reviews
Reviews coming soon