Download

Codex and iOS apps. How to build an iPhone app with OpenAI's Codex

Where Codex runs and what each place can do for iOS, what it costs, how to set up AGENTS.md and the official iOS plugin, how Codex sees the simulator and what a good task looks like.

In short

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.

WhereHow to get itWhat it does for iOS
ChatGPT desktop app for Macfrom OpenAI's site, Apple silicon build, called the Codex app in OpenAI's changelogwrites 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 terminalOpenAI's install command, Homebrew or npmwrites code, builds with xcodebuild, runs the simulator and takes screenshots with xcrun simctl
Inside Xcode 26.3 and laterXcode › Settings › Intelligencebuilds the project, checks SwiftUI Previews, in Xcode 27 launches the app in the simulator itself
Codex cloud tasksChatGPT on the web and in the appswrites and tests code on a cloud machine, doesn't build iOS apps
ChatGPT on iPhonethe ChatGPT app from the App Storestarts 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.

Where Codex runs and what each place does for iOSWhere Codex runs and what each place can do for an iPhone app, per OpenAI's docs as of October 17, 2026. ChatGPT desktop app for Mac on Apple silicon: writes code, builds through Xcode, sees the simulator in the built-in browser and through computer use, uploads to App Store Connect after your OK. Codex in the terminal on a Mac with Xcode: writes code, builds with xcodebuild, takes simulator screenshots with simctl, uploads after your OK. Inside Xcode 26.3 and later: writes code, builds in Xcode, works with the simulator itself in Xcode 27, uploads through Xcode. Cloud tasks: write code, don't build iOS, no Xcode on the cloud machine. ChatGPT on iPhone: steers work on a connected Mac or in the cloud, doesn't build by itself.Where Codex runs and what each place does for iOSOnly Codex next to a Mac with Xcode can build an iPhone app. OpenAI docs, October 17, 2026Writes codeBuilds iOSSimulatorUpload to App StoreConnectChatGPT desktop appfor Mac, Apple siliconCodex in the terminalon a Mac with XcodeInside Xcode26.3 and laterCloud tasksa cloud machineChatGPT on iPhonesteering from the phoneyesthrough Xcodebrowser and clicksafter your OKyesxcodebuildsimctl screenshotsafter your OKyesXcode builditself in Xcode 27through Xcodeyesno Xcodenonovia a Mac or the cloudvia the Macvia the Macnocan do itwith a caveatcan't
Codex writes code anywhere, but builds an iPhone app only on a Mac with Xcode. Codex docs on learn.chatgpt.com, checked October 17, 2026.

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).

PlanPrice a monthCodex
Free$0quick coding tasks
Go$8included, OpenAI gives no limit figures
Plus$20five-hour windows, for example 350–3,000 messages with GPT-6 Luna or 15–160 with GPT-6.1 Sol
Pro$100, $200 or $500no 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 monthlysame 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.

  1. 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.
  2. 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.
  3. Project folder. Create a folder, run git init in it and open it in Codex. Git lets you undo a bad change.
  4. AGENTS.md. The /init command writes a starter file with project rules. Extend it, there's an example in the next section.
  5. Plan. The /plan command toggles plan mode. Codex lays out the screens and the order of work before it edits any code.
  6. 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 | sh

Command 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.
Four ways Codex sees the iOS simulatorFour ways Codex sees the iPhone simulator, as of October 17, 2026. Xcode commands with no plugins: xcodebuild builds, xcrun simctl boots the simulator and takes a screenshot, in the terminal. The official OpenAI plugin Build iOS Apps, version 0.1.2 with nine skills: mirrors the simulator in ChatGPT's built-in browser with live SwiftUI previews. Computer use in the ChatGPT desktop app for Mac: Codex taps inside the simulator itself, with Screen Recording and Accessibility permissions. The agent inside Xcode 27: launches the app in the simulator, taps and takes screenshots. Sources: OpenAI docs and GitHub openai/plugins.Four ways Codex sees the iOS simulatorBuild iOS Apps plugin 0.1.2, nine skills. OpenAI docs and GitHub, October 17, 2026no pluginsofficial OpenAI pluginChatGPT desktop app for MacXcode 27Xcode commandsBuild iOS AppsComputer useThe agent inside Xcodexcodebuild builds, xcrun simctl boots the simulator andtakes a screenshot. Works in the terminal.Mirrors the simulator in ChatGPT's built-in browser withlive SwiftUI previews. You see what the agent sees.Codex taps inside the simulator itself. Needs ScreenRecording and Accessibility.Launches the app in the simulator, taps the screen andtakes screenshots itself.
Without plugins Codex sees the app only as screenshots, while the Build iOS Apps plugin shows you and the agent the same live simulator. OpenAI docs and GitHub, checked October 17, 2026.

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