CarPlay with AI agents
Use the CarPlay framework so your existing iOS app can present audio, video, messaging, VoIP, navigation or other supported features in a vehicle or HomeView. Request the matching CarPlay entitlement from Apple, add a CPTemplateApplicationScene, and present system templates through CPInterfaceController. Don't invent custom views for the car display. Look up Apple's CarPlay docs first.
Last updated:
Apple facts are from "CarPlay", "Preparing your iOS app for CarPlay development", "Building your app’s initial CarPlay interface", "CPTemplateApplicationScene", "CPTemplateApplicationSceneDelegate", "CPInterfaceController", "CPTemplate" and "CPMapTemplate" on developer.apple.com. Tool facts are from each README. Stars as of 21 Nov 2026.
What Apple documents
The CarPlay framework lets you deliver your iOS app’s audio, video, messaging, VoIP calling, navigation, or other features in CarPlay environments. Apple’s overview says you use it to add an in-vehicle or HomeView experience to your existing iOS app. You assemble the interface from templates, which specify the data to display and a presentation style; when you present a template, CarPlay renders it for a vehicle, taking into account the vehicle’s screen size and environmental settings. It is documented for iOS 12, iPadOS 12 and Mac Catalyst 14. The CarPlay experience starts when someone connects their iOS device to HomeView or a CarPlay-enabled vehicle.
A CarPlay app is part of your existing iOS app, not a standalone app. Preparing your iOS app for CarPlay development says Apple requires apps to have entitlements for the features they support, and that if an app doesn’t have a supported CarPlay entitlement, the system doesn’t show the app in a CarPlay environment. You request the entitlement that matches your app type at developer.apple.com/contact/carplay. After Apple adds it to your developer account, you add the CarPlay capability to your App ID and generate a provisioning profile. Adding CarPlay support requires you to specify that provisioning profile manually, instead of letting Xcode manage signing automatically. CarPlay doesn’t support games or apps that might distract someone while driving.
Build the interface from scenes and templates. Building your app’s initial CarPlay interface says that when someone opens your app in a CarPlay environment, the system launches your iOS app and instantiates its main CarPlay scene. You define a delegate that adopts
CPTemplateApplicationSceneDelegate. You don’t create aCPTemplateApplicationScenedirectly; you specify the scene class and delegate in your scene manifest underCPTemplateApplicationSceneSessionRoleApplication.At the start of a session, CarPlay delivers a
CPInterfaceControllertotemplateApplicationScene(_:didConnect:)(or, for a navigation app,templateApplicationScene(_:didConnect:to:), which also receives aCPWindowfor map content). You don’t create the interface controller yourself. CallsetRootTemplate(_:animated:completion:)to install the root template,pushTemplate(_:animated:completion:)to go one level deeper, andpopTemplate(animated:completion:)to return. You can pop any template except the root template.CPTemplateis an abstract base class. Apple says you don’t use it directly or create your own subclasses; you must use one of the prebuilt templates, such asCPListTemplateorCPGridTemplate. For a navigation app,CPMapTemplateis a navigation overlay that your app draws on the map; CarPlay doesn’t support direct user interactions in that base view. How you draw the map itself stays in MapKit with AI agents.
Rules for AGENTS.md
Code
- Use the CarPlay framework to add an in-vehicle or HomeView experience to the existing iOS app. Request the matching CarPlay entitlement from Apple, add the capability to the App ID, and sign with a manual provisioning profile. Without a supported entitlement, the system does not show the app in CarPlay.
- Declare a CPTemplateApplicationScene in the scene manifest and adopt CPTemplateApplicationSceneDelegate. Present only prebuilt CPTemplate subclasses through the CPInterfaceController the scene provides. Set a root template, then push and pop. Do not invent custom UIKit views for the vehicle display.
- For a navigation app, use templateApplicationScene(_:didConnect:to:) and CPMapTemplate as an overlay; leave MapKit map drawing to the MapKit rules.
- Look up Apple's CarPlay docs first.Step 1: ground the agent in Apple's CarPlay docs
Install Apple Docs MCP or Sosumi and ask it to open “CarPlay”, “Preparing your iOS app for CarPlay development”, “Building your app’s initial CarPlay interface”, CPTemplateApplicationScene and CPInterfaceController. Confirm the work is an in-vehicle or HomeView experience built from system templates, not a custom car UI and not a MapKit tutorial.
Step 2: request the entitlement and fix signing
Have the agent follow Apple’s request path at developer.apple.com/contact/carplay, then add the CarPlay capability to the App ID and use a manual provisioning profile. Do not let it assume automatic signing is enough, or skip the entitlement and expect the app to appear in CarPlay.
Step 3: add the scene and present templates
Declare CPTemplateApplicationScene in the scene manifest, implement CPTemplateApplicationSceneDelegate, and store the CPInterfaceController from templateApplicationScene(_:didConnect:) (or the navigation variant that also receives a CPWindow). Install a prebuilt template with setRootTemplate(_:animated:completion:). Do not subclass CPTemplate or build the car UI from ordinary views.
Step 4: review the SwiftUI around the iPhone-side experience
Run swiftui-pro on the iPhone screens that start or accompany the CarPlay session. Do not replace CarPlay templates with custom SwiftUI on the vehicle display.
Tools compared (4)
| Tool | Best for | Agents (README) | Install (README) | License | Stars | Last push |
|---|---|---|---|---|---|---|
| Apple Docs MCP (kimsungwhee) | Look up CarPlay scenes, templates, the interface controller and entitlement steps | Claude Code, Cursor, VS Code, Windsurf | claude mcp add apple-docs -- npx -y @kimsungwhee/apple-docs-mcp@latest | MIT | 1387 | 17 Mar 2026 ⚠ |
| sosumi.ai (NSHipster) | Pull CarPlay docs as Markdown | any MCP host | npx -y mcp-remote https://sosumi.ai/mcp | MIT | 492 | 13 Nov 2026 |
| ApKI (Gucky) | Route the agent to official Apple developer resources | Codex, Claude Code | npx skills add https://github.com/Gucky/ApKI --skill apki | MIT | 2 | 3 Nov 2026 |
| swiftui-pro (twostraws) | Modern SwiftUI around the iPhone screens that accompany a CarPlay session | Claude Code, Cursor, Codex, Gemini | npx skills add https://github.com/twostraws/SwiftUI-Agent-Skill --skill swiftui-pro | MIT | 6599 | 26 Oct 2026 |
⚠ = no push in the last 4 weeks.
Which one to pick
Official API lookup → Apple Docs MCP or Sosumi.
A short route into Apple's current developer resources → ApKI.
SwiftUI around the iPhone-side experience → swiftui-pro.
A prompt that keeps the agent honest
Code
Add CarPlay support to this existing iOS app. Request the matching CarPlay entitlement from Apple (developer.apple.com/contact/carplay), add the CarPlay capability to the App ID, and sign with a manual provisioning profile. Declare a CPTemplateApplicationScene in the scene manifest, implement CPTemplateApplicationSceneDelegate, and present only prebuilt templates through the CPInterfaceController delivered to templateApplicationScene(_:didConnect:). Install the root template with setRootTemplate(_:animated:completion:), then push and pop. Do not invent custom views for the vehicle display or skip the entitlement. Leave MapKit map drawing to our existing map flow. Look up “CarPlay”, “Preparing your iOS app for CarPlay development”, “Building your app’s initial CarPlay interface”, CPTemplateApplicationScene and CPInterfaceController in Apple's docs first.FAQ
- Do I need a CarPlay entitlement?
- Yes. Apple’s preparing article says Apple requires apps to have entitlements for the features they support, and that if an app doesn’t have a supported CarPlay entitlement, the system doesn’t show the app in a CarPlay environment. Request the entitlement that matches your app type at developer.apple.com/contact/carplay, then add the CarPlay capability to your App ID and generate a provisioning profile. Adding CarPlay support requires you to specify that profile manually, instead of letting Xcode manage signing automatically.
- How do I start the CarPlay interface?
- When someone opens your app in a CarPlay environment, the system launches your iOS app and instantiates its main CarPlay scene. You don’t create a `CPTemplateApplicationScene` directly; you specify the scene class and a `CPTemplateApplicationSceneDelegate` in the scene manifest. CarPlay delivers a `CPInterfaceController` to `templateApplicationScene(_:didConnect:)`. A navigation app gets `templateApplicationScene(_:didConnect:to:)` instead, which also receives a `CPWindow` for map content.
- How do templates work?
- You assemble the interface from system-provided templates, not from ordinary views. `CPTemplate` is an abstract base class; you don’t use it directly or create your own subclasses. Use a prebuilt template such as `CPListTemplate` or `CPGridTemplate`. Install the root template with `setRootTemplate(_:animated:completion:)`, push with `pushTemplate(_:animated:completion:)`, and pop with `popTemplate(animated:completion:)`. You can pop any template except the root template.
- Can I draw a custom map or custom views on the car screen?
- For a navigation app, `CPMapTemplate` is an overlay on top of the base view where your app draws its map. Apple says CarPlay doesn’t support direct user interactions in that base view; people interact through templates. Don’t invent custom UIKit or SwiftUI views for the vehicle display. How you draw the map itself is a MapKit concern, not a CarPlay template API.
- Which tools should the agent use first?
- Apple Docs MCP or Sosumi, so the agent opens “CarPlay”, the entitlement article, the initial-interface article, `CPTemplateApplicationScene` and `CPInterfaceController` instead of inventing a custom car UI or skipping the entitlement. Add swiftui-pro for the SwiftUI around the iPhone screens that accompany the session.