Remote Access to Cherry Studio from iPhone
Summary
Turn your Cherry Studio on PC into a personal AI server and access it from anywhere with an iPhone: enable the API server, set up a tunnel, and connect the mobile client.
What We Are Building
Cherry Studio is running on your PC with your models. We will make it possible for your iPhone to send requests to these models, and the LLM will execute commands on the computer through MCP.
flowchart LR
A[iPhone client] -->|HTTPS| B[ngrok tunnel]
B --> C[Cherry Studio API server]
C --> D[LLM in Cherry Studio]
D --> E[MCP: commands on PC]
Step 1. Enable the API Server in Cherry Studio
- Open Cherry Studio on your PC.
- Go to Settings → API server.
- Press ▶ Start.
Remember two things from the settings page:
- Port — default is
23333; - API key — a string like
cs-sk-....
Key is the password to all your models
The key cs-sk-... gives full access to all models connected to Cherry Studio. Do not show it to anyone or publish it.
Step 2. Set Up a Tunnel to the Internet
The API server listens only to 127.0.0.1 — it is not accessible from outside. A tunnel creates a public address for the local port.
Option A: ngrok (Easy Start)
Install ngrok and run:
ngrok http 23333
A public address like https://xxxx.ngrok-free.app will appear in the console. Check that the status is online.
Option B: cloudflared (Cloudflare Tunnel)
cloudflared tunnel --url http://localhost:23333
You will receive an address https://xxxx.trycloudflare.com — no registration required.
Option C: cpolar
An alternative for those who prefer a Chinese service with a free plan. The logic is the same: specify port 23333 and receive a public address.
Safer: Tailscale
ngrok opens the port to the entire internet. If access is needed only by you, use a closed network Tailscale: install it on your PC and iPhone, log in to the same account — and the phone will get access via an address like http://100.x.x.x:23333 without a public address and without security holes.
Step 3. Connect from iPhone
- Download any client supporting the OpenAI API (e.g., ChatX, OpenCat, or similar).
- In the client settings, specify:
| Field | Value |
|---|---|
| Base URL | https://xxxx.ngrok-free.app/v1 (your tunnel address + /v1) |
| API Key | cs-sk-... (key from Cherry Studio) |
- Send a test message. If the list of models loads — it works.
Step 4. Give LLM Commands on PC Through MCP
To make the assistant not only respond but also execute actions on the computer (launch scripts, work with files), connect an MCP server in Cherry Studio:
- In Cherry Studio, open the MCP section.
- Add a server with the necessary tools — for example, a file system or shell.
- Ensure the server is running and available in the chat.
Now you can write from iPhone, for example, «show what occupies space on drive D:» — and the LLM will execute the command on the PC through MCP.
Be careful with shell access
MCP with shell access gives full control over the PC. Limit the available commands and do not leave the tunnel open without necessity.
Security: Checklist
- Strong API key and do not share it;
- Turn off the tunnel when it is not needed;
- Use Tailscale instead of a public tunnel for personal access;
- For shell access through MCP — whitelist commands;
- Update Cherry Studio to the latest version.
What to Choose
| Task | Recommendation |
|---|---|
| Personal access from iPhone only | Tailscale + Cherry Studio API server |
| Access from anywhere, needed quickly | ngrok / cloudflared |
| LLM should execute commands on PC | MCP server with limited rights |
| Full remote control of PC (with screen) | RustDesk / AnyDesk |