# Use Codex CLI remote control from your phone

> Compare Codex mobile remote control, SSH from a phone, and Codex CLI remote app-server workflows, then publish generated output with Revdoku.

There are three different workflows people often mix together when they search for Codex CLI remote control from a phone:

1. Use ChatGPT mobile to control a Codex app host.
2. Use the Codex CLI to connect to a remote app server.
3. SSH from the phone into a development machine and run Codex there.

The best choice depends on what you mean by "from my phone" and where the project files live.

## Quick recommendation

Use ChatGPT mobile plus the Codex app host when you want the supported phone-first workflow.

Use SSH when you are comfortable with terminal access from your phone and the project lives on a server or always-on machine.

Use the CLI remote app-server workflow only when you understand the networking and authentication model. Do not expose an unauthenticated remote Codex endpoint to the public internet.

## Option 1: ChatGPT mobile controls a Codex app host

This is the cleanest phone workflow for most people.

You need:

- ChatGPT mobile on iOS or Android.
- The Codex app on a Mac or Windows host.
- The same ChatGPT account and workspace on both devices.
- The host awake, online, and signed in.
- Workspace permission for remote control.

Setup:

1. Open Codex on the host.
2. Select **Set up Codex mobile**.
3. Scan the QR code with your phone.
4. Finish setup inside ChatGPT.
5. Use **Settings > Connections** on the host to manage access.

This gives the phone access to the connected host's projects, threads, files, tools, plugins, permissions, and local setup.

## Option 2: SSH from your phone and run Codex

This is simple if you already use a remote development machine.

You need:

- A trusted SSH client on your phone.
- SSH access to the development machine.
- Codex installed and authenticated on that machine.
- The project available on that machine.

Basic flow:

```bash
ssh devbox
cd /path/to/project
codex
```

This is not the same as Codex mobile remote control. It is just a terminal session from your phone. That may be exactly what you want if you already trust the devbox and can handle terminal input on mobile.

Use this for quick prompts, status checks, and small follow-up instructions. For heavy review, use the desktop Codex app when possible.

## Option 3: Codex CLI remote app-server mode

The Codex CLI can connect a terminal UI to a remote app-server endpoint.

At a high level:

1. Start a Codex app server on the host.
2. Connect the CLI to that endpoint with `--remote`.
3. Use a local-only WebSocket connection or a secure remote connection.
4. Add authentication for non-local access.
5. Use TLS for non-local clients.

For local or SSH-forwarded use, a local WebSocket connection can be appropriate. For non-local clients, use authentication and a secure transport.

Treat this as an advanced workflow. If your goal is simply "I want to approve and steer Codex from my phone," use ChatGPT mobile remote control instead.

## Security checklist

Before controlling Codex remotely, confirm:

- The machine is yours or managed by your organization.
- The project does not contain secrets you should not expose.
- The workspace allows the workflow.
- Remote endpoints require authentication.
- You are not publishing an unauthenticated listener.
- You can review commands, diffs, and outputs before accepting changes.

Remote Codex work can read and edit real files. Keep the boundary clear.

## Publish the generated folder after the session

Once Codex has created an output folder, use Revdoku to publish it without building another deployment pipeline.

Example:

```text
demo-from-codex/
index.html
app.js
style.css
report.md
data/results.csv
```

With Revdoku:

1. Upload the folder.
2. Publish it as a website.
3. Use built-in navigation for the files.
4. Add password protection if the output is not public.
5. Share one URL.
6. Update the folder and republish as Codex improves it.

![Publishing a folder as a website in Revdoku](/assets/en/blog/codex-cli-remote-control-from-phone/publish-folder-as-website.webp)

![Published folder navigation in Revdoku](/assets/en/blog/codex-cli-remote-control-from-phone/published-folder-navigation.webp)

For most phone workflows, use ChatGPT mobile to control a Codex app host. Use SSH if you want direct terminal access from the phone. Use CLI remote app-server mode only when you deliberately need that architecture and can secure it properly.

Then use Revdoku for the last mile: publish the generated files, protect access, and share the result.

## Revdoku workflow screenshots

![A Revdoku bucket published from CLI output with a live URL](/assets/en/blog/codex-cli-remote-control-from-phone/chrome-revdoku-live-bucket-custom-domain-files.png)

![Share dialog with recipient links and QR code options](/assets/en/blog/codex-cli-remote-control-from-phone/chrome-revdoku-share-recipient-links-qr.png)

## Sources checked

- OpenAI Codex remote connections: https://developers.openai.com/codex/remote-connections
- OpenAI Codex CLI features: https://developers.openai.com/codex/cli/features
- OpenAI Codex CLI reference: https://developers.openai.com/codex/cli/reference

Just ask to &ldquo;publish to Revdoku&rdquo; to
publish your HTML pages presentation dashboard app prototype game prototype
as a fast and secure website

from your Codex , Claude or another AI app publish files or folders

Connect
Skill
MCP

Paste this into your AI app.

Copy

Install the Revdoku skill in your AI app.

Copy
npx skills add revdoku/revdoku --skill revdoku -g

Choose your AI app to connect through MCP.

Codex CLI
Claude Code
Other

Copy codex mcp add revdoku --url https://app.revdoku.com/mcp
codex mcp login revdoku

Copy claude mcp add --transport http revdoku https://app.revdoku.com/mcp
claude mcp login revdoku

Transport Streamable HTTP Auth Browser OAuth

Copy https://app.revdoku.com/mcp

Open the MCP setup guide &rarr;

Free · Public or protected · Visitor analytics · Forms and email alerts Building websites for clients? Explore Revdoku for agencies →

---

[View the canonical page](https://revdoku.com/blog/codex-cli-remote-control-from-phone/) · [Browse llms.txt](https://revdoku.com/llms.txt)
