Best use case
remote-access is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
ttyd + Tailscale for mobile terminal access
Teams using remote-access should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/remote-access/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How remote-access Compares
| Feature / Agent | remote-access | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
ttyd + Tailscale for mobile terminal access
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Infra Remote Access
> Access Claude Code from your phone via ttyd + Tailscale
## When to use
- "I want to use my phone"
- "remote access"
- "mobile access"
- Setting up a new device
## Components
| Tool | Purpose |
|------|---------|
| **ttyd** | Web terminal (browser access to shell) |
| **Tailscale** | Private VPN network (secure connection) |
## Installation
```bash
# Mac
brew install ttyd tailscale
```
On phone:
- iOS: App Store → Tailscale
- Android: Google Play → Tailscale
---
## IMPORTANT: Tailscale on Mac
Tailscale via brew **requires sudo** for VPN tunnel. There are two options:
### Option 1: Mac App Store (recommended)
Download Tailscale from Mac App Store -- it has all permissions and persists the session.
```bash
# Check status
tailscale status
tailscale ip -4
```
### Option 2: Userspace mode (without sudo)
If using brew version and no sudo:
```bash
# Stop brew service
brew services stop tailscale
# Start in userspace mode
/usr/local/opt/tailscale/bin/tailscaled --tun=userspace-networking --state=/tmp/tailscale.state --socket=/tmp/tailscaled.sock &
# Connect (NOTE: different socket!)
tailscale --socket=/tmp/tailscaled.sock up
# Check status
tailscale --socket=/tmp/tailscaled.sock status
tailscale --socket=/tmp/tailscaled.sock ip -4
```
**Downsides of userspace mode:**
- New session = requires browser authorization
- Must specify `--socket=/tmp/tailscaled.sock` in every command
- Does not work as a full VPN (Tailscale traffic only)
---
## Setup
### Step 1: Tailscale
```bash
# If Mac App Store version:
tailscale up
tailscale ip -4
# Example: 100.x.x.x
# If userspace mode:
tailscale --socket=/tmp/tailscaled.sock up
# Open the authorization URL in browser
tailscale --socket=/tmp/tailscaled.sock ip -4
```
On phone:
1. Install Tailscale from App Store / Play Store
2. Log in with the same account
3. Ensure both devices are online in `tailscale status`
### Step 2: ttyd
```bash
# Stop if already running
pkill ttyd
# Basic launch
ttyd -W -p 7681 bash
# For Claude Code directly
ttyd -W -p 7681 claude
# With authorization (recommended for security)
ttyd -c user:password -W -p 7681 claude
```
**Parameters:**
- `-W` -- allow write (input) -- REQUIRED
- `-p 7681` -- port
- `-c user:pass` -- Basic Auth
### Step 3: Access from phone
On phone, open in browser:
```
http://<tailscale-ip>:7681
```
Example:
```
http://100.x.x.x:7681
```
---
## Quick Start (copy-paste)
```bash
# 1. Check/start Tailscale
tailscale status || tailscale up
TSIP=$(tailscale ip -4)
echo "Tailscale IP: $TSIP"
# 2. Start ttyd
pkill ttyd 2>/dev/null
ttyd -W -p 7681 bash &
# 3. Done!
echo "Open on phone: http://$TSIP:7681"
```
---
## Auto-start ttyd
```bash
mkdir -p ~/Library/LaunchAgents
cat > ~/Library/LaunchAgents/com.ttyd.plist << 'EOF'
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.ttyd</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/ttyd</string>
<string>-W</string>
<string>-p</string>
<string>7681</string>
<string>bash</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
</dict>
</plist>
EOF
launchctl load ~/Library/LaunchAgents/com.ttyd.plist
```
---
## Status check
```bash
# Tailscale
tailscale status
# or for userspace:
tailscale --socket=/tmp/tailscaled.sock status
# ttyd process
pgrep -l ttyd
# Port
lsof -i :7681
```
---
## Troubleshooting
| Problem | Solution |
|---------|----------|
| `tailscaled requires root` | Use userspace mode or Mac App Store version |
| `failed to connect to local tailscaled` | Restart: `brew services restart tailscale` or start userspace mode |
| Phone cannot see Mac | Check `tailscale status` -- both must be online |
| ttyd not connecting | Check `pgrep ttyd`, restart |
| Port occupied | `lsof -i :7681`, change port to `-p 7682` |
| No input in terminal | Add `-W` parameter |
| New Tailscale authorization | Open URL in browser, log in |
---
## Security
- Tailscale encrypts all traffic (WireGuard)
- ttyd is accessible only via Tailscale IP (not public)
- Additionally -- Basic Auth: `-c user:password`
- Do not use on public IP!
---
## Current configuration
```
Mac IP: 100.x.x.x
ttyd port: 7681
URL: http://100.x.x.x:7681
```
---
## Related skills
- `google-auth` -- if you need Google API from phone
- `telegram-session` -- Telegram from phoneRelated Skills
remote-openclaw-deploy
通用远程部署 OpenClaw Agent 项目。支持任意定制化 agent 团队、跨 macOS/Linux、多渠道(飞书/Telegram/Discord)、deploy.json 声明式配置注入。一个脚本完成从零到可用的全流程。
remote-ollama-gpu-scheduler
调度远程 Ollama GPU 资源执行批量 embedding 或推理任务,提升多机环境下的算力利用率。
accessibility-compliance-accessibility-audit
You are an accessibility expert specializing in WCAG compliance, inclusive design, and assistive technology compatibility. Conduct audits, identify barriers, and provide remediation guidance.
wemp-operator
> 微信公众号全功能运营——草稿/发布/评论/用户/素材/群发/统计/菜单/二维码 API 封装
zsxq-smart-publish
Publish and manage content on 知识星球 (zsxq.com). Supports talk posts, Q&A, long articles, file sharing, digest/bookmark, homework tasks, and tag management. Use when publishing content to 知识星球, creating/editing posts, uploading files/images/audio, managing digests, batch publishing, or formatting content for 知识星球.
zoom-automation
Automate Zoom meeting creation, management, recordings, webinars, and participant tracking via Rube MCP (Composio). Always search tools first for current schemas.
zoho-crm-automation
Automate Zoho CRM tasks via Rube MCP (Composio): create/update records, search contacts, manage leads, and convert leads. Always search tools first for current schemas.
ziliu-publisher
字流(Ziliu) - AI驱动的多平台内容分发工具。用于一次创作、智能适配排版、一键分发到16+平台(公众号/知乎/小红书/B站/抖音/微博/X等)。当用户需要多平台发布、内容排版、格式适配时使用。触发词:字流、ziliu、多平台发布、一键分发、内容分发、排版发布。
zhihu-post-skill
> 知乎文章发布——知乎平台内容创作与发布自动化
zendesk-automation
Automate Zendesk tasks via Rube MCP (Composio): tickets, users, organizations, replies. Always search tools first for current schemas.
youtube-knowledge-extractor
This skill performs deep analysis of YouTube videos through **both information channels** Multimodal YouTube video analysis through both audio (transcript) and visual (frame extraction + image analysis) channels. Especially powerful for HowTo videos, tutorials, demos, and explainer videos where what is SHOWN (screenshots, UI demos, diagrams, code, physical actions) is just as important as what is SAID. Use this skill whenever a user wants to analyze, summarize, or create step-by-step guides from YouTube videos, or when they share a YouTube URL and want to understand what happens in the video. Triggers on requests like "Analyze this YouTube video", "Create a step-by-step guide from this video", "What does this video show?", "Summarize this tutorial", or any YouTube URL shared with analysis intent.
youtube-factory
Generate complete YouTube videos from a single prompt - script, voiceover, stock footage, captions, thumbnail. Self-contained, no external modules. 100% free tools.