The Deska blog

How to Check on a Codex CLI Run From Your Phone

Learn how to check on a Codex CLI run from your phone using relays or the Deska mobile app to monitor AI coding agents remotely and securely.

· 10 min read

Running long operations with AI coding agents often requires patience. When you start a complex task using Codex CLI, you might find yourself tethered to your workstation while the model iterates through file changes or tests. Learning how to check on a Codex CLI run from your phone is essential for developers who need to step away from their desks without losing visibility into their automated workflows. Since Codex lacks a native mobile interface, you must rely on clever networking or specialized tools to bridge the gap.

The Challenge of Remote AI Agent Monitoring

Codex CLI operates primarily in the terminal. It executes commands, modifies local files, and runs test suites based on natural language prompts. Because these tasks can take several minutes or even hours for large scale refactors, monitoring them is a common pain point.

Standard remote access methods like SSH are reliable but often clunky on small screens. Typing commands into a mobile terminal emulator is prone to errors. Furthermore, exposing your local machine to the internet via port forwarding introduces significant security risks. Developers need a way to view the output of their AI agents without compromising their local environment.

Methods for Checking Codex Runs Remotely

There are several ways to observe your terminal activity from a mobile device. Each method involves different levels of complexity and security.

Terminal Multiplexers

Tools like tmux or Screen allow you to keep a session alive even if you disconnect. You can start your Codex CLI run inside a tmux session on your workstation and then attach to that same session from your phone using an SSH client.

  1. Start a session on your desktop: tmux new -s codex-session.
  2. Run your Codex command: codex "refactor the auth module".
  3. On your phone, open an SSH app and connect to your machine.
  4. Attach to the session: tmux attach -t codex-session.

While functional, this requires you to manage your own network configuration and handle the difficulties of a virtual keyboard in a CLI environment.

Web Based Log Streaming

Another approach involves piping the output of your Codex run to a web based logging service. By redirecting stdout and stderr to a service that provides a URL, you can view the progress in a mobile browser. This provides read only access, which is often enough if you just want to see when the agent finishes its work.

Secure Relays and Dedicated Apps

A more modern approach uses a secure relay. Instead of opening ports on your router, a relay creates a temporary, encrypted bridge between your workstation and your mobile device. This is the foundation for tools that provide a GUI for AI agents.

Using Deska for Mobile Monitoring

Deska offers a specialized approach to this problem through its mobile app and secure relay system. Because Deska is a local-first application, your code and sessions stay on your machine. However, the mobile app allows you to pair your phone directly with your desktop workspace.

Within the Deska desktop app, you can run coding agents like Codex CLI, Claude Code, and OpenCode as individual panels on an infinite canvas. When you need to leave your desk, the mobile app provides a mirrored view of these active panels.

How to Set Up Mobile Monitoring in Deska

  1. Download the desktop app for your OS at /download.
  2. Open the terminals panel and start your Codex CLI session.
  3. Open the Deska mobile app on your phone.
  4. Pair the devices using the secure pairing code. No ports are exposed to the public internet during this process.
  5. Select the Codex panel from your phone to see the live output.

This method is particularly useful because you are not just seeing text. You can see the entire state of your workspaces, including any browser widgets or notes you have open alongside your code.

Comparing Remote Monitoring Strategies

FeatureSSH + TmuxWeb Log RelayDeska Mobile
Setup DifficultyHighModerateLow
Visual FidelityLow (Text only)Low (Text only)High (Full Panels)
SecurityManual ConfigVariableSecure Relay
InteractionFull TerminalRead OnlyUI Controlled

Leveraging AI Assistance While Mobile

Sometimes checking the run is not enough. You might need to ask the agent to pause or pivot based on the results you see. If you are using Ask Deska, you can use voice commands to interact with your workspace. Through the voice interface, you can ask the assistant to check the status of a specific panel or run a new command if the previous Codex run failed.

This level of control ensures that you are not just a passive observer. You can manage agent threads and view code and git files directly from the mobile interface to verify that the changes made by Codex are correct.

Security Considerations for Remote Access

Security should be your primary concern when accessing local files from a phone. You should avoid:

  • Opening port 22 to the entire internet without a firewall.
  • Using unencrypted logging services for sensitive code.
  • Storing long lived credentials on mobile devices.

The benefit of using a direct pairing method is that the connection is ephemeral and tied to your specific hardware. Deska prioritizes this by ensuring that data and storage remain under your control, adhering to strict privacy standards.

FAQ: Mobile Codex Monitoring

How to see Codex CLI output on Android?

You can use an SSH client like Termux to connect to your desktop if you have configured a server. Alternatively, installing the Deska mobile app allows you to view your terminal panels directly through a secure relay without manual server configuration.

Can I run Codex CLI directly on my phone?

Running Codex CLI directly on a mobile OS is difficult because it requires a Node.js environment and access to your local source code. It is much more efficient to run the agent on your desktop and use a remote access tool to monitor the session.

Is it safe to monitor AI agents over public Wi-Fi?

It is only safe if you use an encrypted connection. Using a VPN or a secure relay service ensures that the traffic between your workstation and your phone cannot be intercepted by others on the same network.

Get Started with Mobile Monitoring

If you want a turnkey solution for monitoring your AI coding agents, you can download Deska for Mac, Windows, or Linux. The workspace allows you to run multiple agents side by side and keep track of them from anywhere.

Visit /download to get the latest version and start managing your Codex runs more effectively.

💡 Ideas+🐛 BugsSuggest a feature or report a bug