OAuth for iCloud developer guide

Give Codex Access to Your iMessage History

Use the local Apple Messages plugin or connect Codex to read-only Figment Messages. Verify the route before searching old conversations.

Figment editorial teamPublished Updated Facts checked November 30, 2026

Give Codex access to your iMessage history with the Apple Messages plugin in the supported Mac desktop app, or connect it to our remote Figment Messages MCP server. Choose the route that matches your Codex surface. The local plugin and remote server have different sending permissions.

We recommend starting with a known-message read. For the remote route, use our Messages setup guide.

Which Codex route should I use?

OpenAI documents the Apple Messages plugin in the Apple Silicon macOS desktop app. It is not directly available in Codex CLI or the IDE extension. Those surfaces can instead use a compatible MCP connection. See the plugin guide.

For a Mac-dependent agent task, a separate Figment Mac can provide the computer. It still needs the agent, Apple sign-in, message availability, and permissions configured. Choose Apple Silicon for the desktop Messages plugin. Renting a Mac does not preconnect the account.

How do I use the local plugin?

Install Apple Messages in the supported desktop app, start a new Codex task, and complete its requested macOS permissions. Ask it to find one chat you know. Check the participants and one source message before broader searches.

The local plugin has its own send approval controls. Keep the first task to reading. Review the exact message and recipients separately if you later want a reply sent.

How do I connect the CLI to Figment?

Codex documents remote MCP registration and OAuth in its MCP guide. Add our server:

codex mcp add figment-messages --url https://figment.so/api/icloud/mcp
codex mcp login figment-messages

Complete the Figment approval in the browser. Choose the intended connection and approve messages:read. Our issuer is https://figment.so/icloud. The MCP flow does not require a personal API token or a manually created developer app.

Then ask Codex to call figment_get_messages_connection. Check sandbox versus live and the readiness state. Sandbox data is synthetic. A paid live connection can remain pending during assigned-Mac preparation; keep the existing setup.

Do not paste Apple credentials or tokens into the Codex conversation. Apple setup belongs on Figment's setup page.

What should my first search do?

Use the available conversation tools rather than a guessed contact:

Check my Figment Messages connection.
List conversations and help me select the chat with the mechanic.
Find the latest confirmed collection time for my car.
Show the source message and timestamp. Do not send anything.

Our tools are figment_get_messages_connection, figment_list_conversations, figment_list_messages, and figment_search_messages. The message-reading tool uses the selected chat's returned chatGuid. All four tools are read-only.

A display name can match several contacts or groups. Confirm participants before extracting a decision. If an estimate or appointment changed, ask for the latest explicit agreement rather than the first keyword match.

How do I check search completeness?

State the date range and timezone. Follow returned pagination to cover the requested period. A recent result page cannot prove that an older month contains no messages.

For local tools, check the history present on the local Mac. Figment live access covers the assigned Mac. Neither route guarantees a complete iCloud archive. A missing result needs a clear account of the dates and pages checked.

A cloud Codex task cannot inherit your local plugin or Mac filesystem. Configure an authorized remote connection in that environment separately if it supports one. Do not describe a local setup as cloud access.

Our iMessage MCP overview explains the remote route. Disconnecting the app in Figment stops its tokens; it does not sign the assigned Mac out of Apple.