Codex is OpenAI's coding agent, included in every ChatGPT plan from Free to Pro at $100–500 a month (OpenAI, October 17, 2026). It builds an iPhone app on a Mac with Xcode, in the ChatGPT desktop app, in the terminal or inside Xcode 26.3 and later. You can steer it from your iPhone, but it can't produce an iOS build without a Mac.
Can Codex build an iOS app, and where does it run?
Codex runs in five places, and it can build an iPhone app wherever a Mac with Xcode is at hand. In the cloud and on your phone it writes code and shows diffs, while the build still happens on a Mac.
| Where | How to get it | What it does for iOS |
|---|---|---|
| ChatGPT desktop app for Mac | from OpenAI's site, Apple silicon build, called the Codex app in OpenAI's changelog | writes code, builds and runs the simulator through Xcode on that Mac, sees the screen in the built-in browser and through computer use |
| Codex in the terminal | OpenAI's install command, Homebrew or npm | writes code, builds with xcodebuild, runs the simulator and takes screenshots with xcrun simctl |
| Inside Xcode 26.3 and later | Xcode › Settings › Intelligence | builds the project, checks SwiftUI Previews, in Xcode 27 launches the app in the simulator itself |
| Codex cloud tasks | ChatGPT on the web and in the apps | writes and tests code on a cloud machine, doesn't build iOS apps |
| ChatGPT on iPhone | the ChatGPT app from the App Store | starts cloud tasks and drives work on a connected Mac, you approve commands from the phone |
From the Codex docs on learn.chatgpt.com, the desktop app, terminal, cloud environments and mobile pages, checked October 17, 2026. The cloud environments page mentions neither macOS nor Xcode.
Codex uploads to App Store Connect with the same Xcode commands, as long as Xcode on that Mac has your developer account. Approve those steps by hand.
Xcode runs its own copy of Codex. Xcode 27.0 on our Mac downloads Codex 0.145.0, while version 0.163.0 shipped on GitHub on October 15, 2026 (the AgentVersions.plist file inside Xcode and the releases page, October 17, 2026). New Codex features reach Xcode with Xcode updates. What the agents in Xcode can do is in Claude and ChatGPT in Xcode 26.
Is Codex free, and which ChatGPT plans include it?
Codex comes with every ChatGPT plan, with no separate subscription. The Free plan covers quick coding tasks, and paid plans raise the limits (OpenAI, October 17, 2026).
| Plan | Price a month | Codex |
|---|---|---|
| Free | $0 | quick coding tasks |
| Go | $8 | included, OpenAI gives no limit figures |
| Plus | $20 | five-hour windows, for example 350–3,000 messages with GPT-6 Luna or 15–160 with GPT-6.1 Sol |
| Pro | $100, $200 or $500 | no five-hour limit, Ultrafast mode for GPT-6.1 Sol on the $500 plan since October 8, 2026 |
| Business | $20 per user billed yearly, $25 monthly | same limits as Plus |
From the Codex pricing page and the changelog, checked October 17, 2026. OpenAI calls the limits estimates, local and cloud work share one allowance, and weekly limits may apply.
For an iPhone app the five-hour window matters most. Every round of edit, build and screenshot uses messages, so on Plus it pays to describe a screen in one detailed task. Pick the model with /model. On October 14, 2026 OpenAI retired GPT-5.5 from Codex for ChatGPT sign-in and recommends GPT-6.1 Sol, so update your config.toml if it still names the old model.
How do you start an iPhone app in Codex?
Start with a Mac that already has Xcode and an empty folder under Git. From there Codex runs the project, and you check the screens.
- Xcode. Install Xcode from the Mac App Store and an iOS simulator runtime. A first project by hand is in How to build an app in Xcode.
- Codex. Download the ChatGPT desktop app for Mac from OpenAI or install Codex in the terminal with the command below. On first launch, choose Sign in with ChatGPT.
- Project folder. Create a folder, run
git initin it and open it in Codex. Git lets you undo a bad change. - AGENTS.md. The
/initcommand writes a starter file with project rules. Extend it, there's an example in the next section. - Plan. The
/plancommand toggles plan mode. Codex lays out the screens and the order of work before it edits any code. - First screen. Ask it to create a SwiftUI project for iPhone, build it for the simulator and show you a screenshot.
curl -fsSL https://chatgpt.com/codex/install.sh | shCommand and slash commands from the terminal and slash commands docs, checked October 17, 2026.
AGENTS.md for an iOS project
AGENTS.md is the project rules file for Codex, the way CLAUDE.md is for Claude Code. Codex reads it before it starts and merges several such files into one.
- Global file. The ~/.codex folder holds rules for every project.
- Project files. Codex walks from the repository root down to the current folder and takes one file per folder, AGENTS.override.md first, then AGENTS.md. Files closer to your working folder come later and override earlier rules.
- Size cap. By default Codex reads up to 32 KiB of rules, set by project_doc_max_bytes. Anything past that is ignored.
- Other names. project_doc_fallback_filenames lets Codex read a file with another name, such as CLAUDE.md when Claude Code already works on the project.
From the AGENTS.md docs, checked October 17, 2026.
For an iPhone app, AGENTS.md needs limits as much as build commands. Left alone, an agent will happily fix signing, change the bundle identifier and upload builds, unless you tell it those steps are yours.
# Project
Native iPhone app in SwiftUI, iOS 18 and later.
Scheme: Hello. No third-party packages unless I ask.
# Check every screen
Build for the iPhone 17 Pro simulator with xcodebuild,
launch it with xcrun simctl and show me a screenshot
in light and dark mode.
# Ask me first
Do not change signing, the team or the bundle identifier.
Do not archive or upload builds to App Store Connect.
# Git
Commit after every screen that builds and looks right.
Is there a Codex plugin for iOS, and can Codex see the simulator?
OpenAI ships an official iOS plugin, Build iOS Apps. It gives Codex skills for SwiftUI and the simulator, and you install it from the Plugins tab in the ChatGPT app or with /plugins in the terminal.
As of October 17, 2026 it's version 0.1.2 with nine skills. They cover building, running and debugging in the simulator, mirroring the simulator in ChatGPT's built-in browser with live SwiftUI previews, Liquid Glass for iOS 26, SwiftUI performance, memory leaks and App Intents for Siri and Spotlight. The plugin lives in the open openai/plugins repository, which has 7,473 stars and was last updated on October 8, 2026 (GitHub, October 17, 2026).
Codex sees your app through screenshots and the simulator window. There are four ways.
- Xcode commands. xcodebuild builds the project, xcrun simctl boots the simulator and takes a screenshot. That's how Codex works in the terminal with no plugins.
- Build iOS Apps plugin. Shows the simulator in the ChatGPT app's built-in browser. You see what the agent sees and can tap it yourself.
- Computer use. In the ChatGPT desktop app for Mac, Codex clicks inside other apps, and OpenAI lists checking an app in the iOS simulator as a good fit. On a Mac it needs Screen Recording and Accessibility permissions, and it can't drive the terminal (docs, October 17, 2026).
- The agent in Xcode 27. Launches the app in the simulator, taps the screen and takes screenshots itself.
A task for Codex for the first screen
A task for one screen fits in five lines. What you're building, which screen, what's on it, how to check it and what not to touch.
Create a SwiftUI iPhone app called Hello, iOS 18 and later.
First screen: a list of today's tasks with a + button.
Tapping + opens a sheet with one text field and Save.
Build for the iPhone 17 Pro simulator and send me screenshots
in light and dark mode. Don't touch signing settings.One change at a time with a screenshot after each helps you stay inside the five-hour window. How to describe a whole first version is in How to brief an AI agent. Codex, Claude Code and Cursor on the same task are compared in AI for iOS coding, and the full path with Claude Code is in How to build an iOS app with Claude Code.
Appto works with Codex and Claude Code on your subscription, and each app in Appto can have its own agent. Beyond the code it checks the niche on App Store data, designs the screens as mockups, walks every screen in the simulator itself, prepares the App Store page in every language and fills in App Store Connect, asking for your OK before each change. The full path from niche to App Store has been run in Claude Code, which built all 9 Appto apps on the App Store as of October 13, 2026.
Questions
Is there a Codex app for iOS?
Codex works inside the ChatGPT app for iPhone. From there you start cloud tasks and continue work on a connected Mac, while the iOS build itself runs on a Mac with Xcode (OpenAI docs, October 17, 2026).
What is the Codex app?
OpenAI's desktop app for Codex, now documented as the ChatGPT desktop app for Mac, Windows and Linux. The Mac download is an Apple silicon build (OpenAI docs, October 17, 2026).
Is Codex free?
The Free plan includes Codex for quick coding tasks. Go at $8, Plus at $20 and Pro from $100 a month allow more work, and Pro has no five-hour limit (OpenAI, October 17, 2026).
Can Codex build an iOS app for me?
Yes, given a Mac with Xcode. It writes SwiftUI, builds with xcodebuild, runs the simulator and reads screenshots, and with the Build iOS Apps plugin it mirrors the simulator in the built-in browser.
Is AGENTS.md the same as CLAUDE.md?
Same idea, different agents. Codex reads AGENTS.md, up to 32 KiB by default, Claude Code reads CLAUDE.md, and project_doc_fallback_filenames lets Codex read a file with another name (October 17, 2026).
Build your own app in Appto
Appto checks the niche on fresh App Store data, designs the screens, writes the code, builds the App Store page and submits to Apple from your account or shows you what to press in App Store Connect. Runs on your own Claude Code or Codex.
Download for Mac