View Claude Code and Codex local projects on your phone with Tailscale
View Claude Code and Codex local projects on your phone with Tailscale
A quick guide to making AI coding agents publish previews via Tailscale so local apps can be opened on a phone without exposing them publicly.
With Tailscale, you can open local projects started via Claude Code or Codex directly on your phone.
Setup takes just a few steps:
- Install Tailscale on your computer and phone, then sign in to the same account. The service can be used for free.
- Open the project in Claude Code or Codex.
- Ask the AI agent to start the project and send a preview link.
- Add the following instruction to
AGENTS.mdorCLAUDE.mdso the agent always creates a link accessible from your phone:
Whenever you give me a link to something running on this computer (project preview, check page, or dashboard), use a Tailscale link instead of
localhost. I work from multiple computers and a phone. Publish the local service withtailscale serve, open the link yourself, confirm it works, and only then send it to me.
Now you can run the project on your computer and open it on your phone through Tailscale without configuring public access to the local server.
Why it matters
AnalysisDevelopers can test local UIs on mobile quickly while keeping the server private.
Discuss in community
Share your questions and insights with developers
Related in Ecosystem
Practical guides, core terminology, and agent skills
Claude Code Projects: How a Single AI Orchestrates a Team of Autonomous Agents
A deep dive into Claude Code Projects: Coordinator and Threads architecture, parallel branches, shared memory via MEMORY.md, and cloud agent management.
Part II. How to Work with Codex + Optimization/Security/Team
Codex is not just code autocomplete in a chat; it is a full-fledged engineering agent: it reads the repository, plans changes, edits files, runs tests, reviews its own diffs, and c...
Claude Code
The official terminal agent from Anthropic, operating directly in the command line via Claude 3.7 Sonnet with native support for Bash, Git, file systems, and the MCP protocol.
database-architect agent for Claude Code: safer database migrations
The agent analyzes existing schemas, migration history, lock risks, and validates migrations on a temporary database before completion.