Using Claude Agent in Xcode

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Unlock our entire catalogue of books and courses, with a Kodeco Personal Plan.

Unlock now

Apple introduced AI assistance features in Xcode 26.3. You could interact directly with an AI model in a conversation and ask it to write code or fix a compiler error, but it couldn’t implement complex features.

Starting with Xcode 26.5, agentic coding features became available through Claude Agent and Codex. Gemini support followed in Xcode 26.6. These features let an AI model explore your project, modify it iteratively, and implement features on your behalf directly within the IDE.

Xcode 27 introduced major improvements to AI integration, including the conversation interface and the control AI models have over your project and the IDE.

In this lesson, you’ll set up Claude Agent in Xcode 27.

Before you start, you’ll need a paid subscription or an API key for one of these three AI services:

  • Claude Agent from Anthropic.
  • Codex from OpenAI.
  • Gemini from Google.

Note: At the time of writing, Xcode 27 is in beta 4.

Enabling Apple Intelligence

Before opening Xcode, ensure Apple Intelligence is enabled on your Mac.

System Settings
Kfvtiy Hevxudzl

Setting Up the Claude Agent Plugin in Xcode

Next, open Xcode’s settings and select Intelligence in the sidebar.

Xcode Settings
Ktoza Reprophl

Install Claude
Ohljubv Dnooza

Claude downloading...
Wlaiyu qipnyaayatg...

Claude agent sign-in
Bsoiwi ikowm lisd-un

Connect Xcode to Claude
Lowgawn Cfifo bi Vboena

Intelligence Settings
Eqpeskenejbo Givhomqw

Starting Your First AI Conversation

To start your first conversation with your AI agent, open a project.

Start a conversation
Njazp e ruqyovruyeij

Select chat agent
Zofopx ckoq udojy

Your first conversation
Goif dahry bizputvakeuj

Setting Up an Agent Proxy Server

Some companies provide employees with a proxy service. Instead of connecting directly to the provider’s API, the AI agent connects through a custom server that can enforce security measures, quotas, authentication, and model restrictions.

See forum comments
Download course materials from Github
Previous: Introduction Next: Introduction to Cursor