Urgent.News

What's breaking now, across hundreds of outlets.

AI

Code From Your Phone with Codex: Complete Beginner Walkthrough

You can use Codex in the ChatGPT mobile app to handle coding tasks from your phone, including sending tasks, following progress, and inspecting results.

Code From Your Phone with Codex: Complete Beginner Walkthrough

When you need coding assistance while away from your computer, the Codex feature in the ChatGPT mobile app enables you to manage tasks remotely. Choose a connected computer and project, send the task, monitor progress, and examine the outcome—all from your phone. The actual code execution remains on the designated computer.

In the demonstration, an image-generator project is utilized. The user requests Codex to explain the code, suggest improvements, create a plan, and execute it. Codex reports eleven successful offline tests before requesting a browser preview for interface verification.

To begin, set up a small change and a project you can verify. The complete video walkthrough is available at this link: https://youtu.be/CUIkNCYl2lI?embedable=true

Prepare the computer that will run the task by ensuring you have a ChatGPT account and workspace with Codex access, the latest ChatGPT desktop app on your computer, and the latest ChatGPT mobile app signed in to the same account and workspace. The computer must remain awake, connected to the internet, and running the desktop app. Download the apps from the official ChatGPT download page, open Codex on your computer, and confirm your project is accessible before pairing.

Pairing involves enabling remote control in the desktop app settings. The phone pairing process requires scanning a QR code displayed on the computer. On the phone, open the ChatGPT link, verify the account and workspace, and approve the connection, including any required passkey, SSO, or multi-factor authentication prompts. Each pairing connects a specific device to a specific computer, so repeat the setup if you need additional phone-host control.

Keep the computer awake by enabling the "Keep this PC awake" option if available. The desktop app must remain open and connected to power for the task execution. On your mobile device, open Codex in the ChatGPT sidebar, and select your connected computer to access its project files and tools. Cloud execution is an alternative, but it doesn't automatically include the files present on your laptop; refer to the Codex Cloud tutorial for more details.

In the mobile app, initiate a new chat and select the desired project. Be sure to verify the computer and project names to avoid confusion. Set permissions before initiating the first prompt, choosing a model and reasoning effort. In the demo, Codex uses the "High" setting. Next, open the approval settings to determine the level of access granted for commands.

In the video, the user selects "Approve for me," which reviews actions automatically and prompts for potentially unsafe actions. The user then issues a simple prompt: "Tell me about this repository." Before making any changes, it is advisable to request a more specific explanation, such as "Explain what this project does, how to run it, and how to test it."

Review the project instructions, starting with the AGENTS.md file, which contains project instructions for coding agents. Summarize the code and its execution process. Before implementing any changes, read and understand the project requirements thoroughly.

Rewritten by urgent.news; may contain errors — check the original.

Source: hackernoon.com

Read the original at hackernoon.com →

Report a problem with this story

More in AI

More from Wednesday 11 November →