CallKit with AI agents
Use CallKit so your VoIP app shows the system calling UI and coordinates with other calling apps and the system, including Do Not Disturb. Create one CXProvider with a CXProviderConfiguration, report incoming calls with reportNewIncomingCall(with:update:completion:), and start outgoing calls by requesting a CXStartCallAction through CXCallController. Look up Apple's CallKit docs first.
Last updated:
Apple facts are from "CallKit", "Making and receiving VoIP calls", "CXProvider", "CXProviderConfiguration", "CXProviderDelegate", "CXCallController", "CXCallUpdate", "CXHandle", "CXStartCallAction" and "reportNewIncomingCall(with:update:completion:)" on developer.apple.com. Tool facts are from each README. Stars as of 20 Nov 2026.
What Apple documents
CallKit displays the system-calling UI for your app’s VoIP services and coordinates your calling services with other apps and the system. Apple’s overview says you use CallKit to integrate your calling services with other call-related apps in the system: CallKit provides the calling interface, and you handle the back-end communication with your VoIP service. For incoming and outgoing calls, CallKit displays the same interfaces as the Phone app. CallKit also responds appropriately to system-level behaviors, such as Do Not Disturb. It is documented for iOS 10, iPadOS 10, Mac Catalyst 13, macOS 13, visionOS 1 and watchOS 9. Follow CallKit.
Create one
CXProviderand keep it for global use. Apple says a VoIP app should create only one instance ofCXProviderand store it for use globally. Initialize it with aCXProviderConfiguration, which controls the native call UI for incoming and outgoing calls, including a localized name for the provider, the ringtone to play for incoming calls, and the icon to display during calls. A configuration can also set the maximum number of call groups and the number of calls in a single group, determine whether to use emails and phone numbers as handles, and specify whether to support video. Set aCXProviderDelegateto respond to events such as the call starting, the call being put on hold, or the provider’s audio session being activated.Report an incoming call with
reportNewIncomingCall(with:update:completion:). When an incoming call is received, you construct aCXCallUpdatespecifying alocalizedCallerNameand pass that to this method. Apple’s CallKit overview says that when a PushKit notification indicates an incoming call, you generate an appropriate action and CallKit presents the system interface for answering the call. How that VoIP notification is registered and delivered stays in Push notifications with AI agents.Start an outgoing call through a
CXCallController. Apple’s Making and receiving VoIP calls article says you request aCXStartCallActionwith a UUID that uniquely identifies the call and aCXHandlethat specifies the recipient, add the action to aCXTransaction, and callrequest(_:completion:). After you request the transaction, wait for the system to call your provider delegate’sprovider(_:perform:)method before you actually start the call. ACXHandleis a way to reach a call recipient, such as a phone number or email address (phoneNumber,emailAddress, orgeneric).In iOS and iPadOS 18.2 and later, a person may select an app — other than the Phone app or FaceTime — to place calls by default. To support that setting, Apple points to Preparing your app to be the default calling app for a CallKit or LiveCommunicationKit app. In addition to handling calls, you can use a Call Directory app extension to provide caller ID information and a list of blocked numbers; see Identifying and blocking calls. Those topics are out of scope for the steps below.
Rules for AGENTS.md
Code
- Use CallKit so the VoIP app shows the system calling UI and coordinates with other calling apps and the system, including Do Not Disturb. Create only one CXProvider, initialized with a CXProviderConfiguration, and store it for global use.
- Report incoming calls with CXProvider.reportNewIncomingCall(with:update:completion:) and a CXCallUpdate (include localizedCallerName). Do not invent a custom full-screen incoming-call UI. PushKit registration stays in the push-notification rules, not here.
- Start outgoing calls by requesting a CXStartCallAction (UUID plus CXHandle) through CXCallController.request(_:completion:). Wait for the provider delegate’s provider(_:perform:) before starting call audio.
- Look up Apple's CallKit docs first.Step 1: ground the agent in Apple's CallKit docs
Install Apple Docs MCP or Sosumi and ask it to open “CallKit”, “Making and receiving VoIP calls”, CXProvider, CXCallController and reportNewIncomingCall(with:update:completion:). Confirm the work is the system calling UI for a VoIP app, not a custom in-app call screen and not PushKit setup.
Step 2: create one provider
Have the agent create a single CXProvider with a CXProviderConfiguration (localized name, ringtone, icon, video support as needed) and set a CXProviderDelegate. Do not let it allocate a new provider for every call.
Step 3: report incoming calls and request outgoing calls
For an incoming call, build a CXCallUpdate and call reportNewIncomingCall(with:update:completion:). For an outgoing call, build a CXStartCallAction with a UUID and a CXHandle, wrap it in a CXTransaction, and send it with CXCallController.request(_:completion:). Wait for provider(_:perform:) before starting the call. Leave VoIP-push registration to the existing push-notification flow.
Step 4: review the SwiftUI around the in-app calling UI
Run swiftui-pro on any screens that start a call or show in-app call controls. Do not replace the system incoming-call or in-call UI that CallKit displays.
Tools compared (4)
| Tool | Best for | Agents (README) | Install (README) | License | Stars | Last push |
|---|---|---|---|---|---|---|
| Apple Docs MCP (kimsungwhee) | Look up CallKit APIs, the provider, call controller and incoming-call reporting | Claude Code, Cursor, VS Code, Windsurf | claude mcp add apple-docs -- npx -y @kimsungwhee/apple-docs-mcp@latest | MIT | 1388 | 17 Mar 2026 ⚠ |
| sosumi.ai (NSHipster) | Pull CallKit 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 screens that start or control a call | Claude Code, Cursor, Codex, Gemini | npx skills add https://github.com/twostraws/SwiftUI-Agent-Skill --skill swiftui-pro | MIT | 6595 | 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 in-app calling UI → swiftui-pro.
A prompt that keeps the agent honest
Code
Add CallKit to this VoIP iOS app so incoming and outgoing calls use the system calling UI and coordinate with other calling apps and the system, including Do Not Disturb. Create only one CXProvider, initialize it with a CXProviderConfiguration, and store it for global use. Report incoming calls with reportNewIncomingCall(with:update:completion:) and a CXCallUpdate that includes localizedCallerName. Start outgoing calls by requesting a CXStartCallAction (a UUID plus a CXHandle) through CXCallController.request(_:completion:), then wait for the provider delegate’s provider(_:perform:) before starting the call. Do not invent a custom full-screen incoming-call UI. Leave PushKit VoIP-notification registration to our existing push flow. Look up “CallKit”, “Making and receiving VoIP calls”, CXProvider, CXCallController and reportNewIncomingCall(with:update:completion:) in Apple's docs first.FAQ
- What does CallKit do?
- CallKit displays the system-calling UI for your app’s VoIP services and coordinates your calling services with other apps and the system. Apple’s overview says CallKit provides the calling interface, and you handle the back-end communication with your VoIP service. For incoming and outgoing calls, CallKit displays the same interfaces as the Phone app, and it responds appropriately to system-level behaviors, such as Do Not Disturb.
- How do I report an incoming call?
- Call `reportNewIncomingCall(with:update:completion:)` on your `CXProvider`. When an incoming call is received, you construct a `CXCallUpdate` specifying a `localizedCallerName` and pass that to the method. Apple’s CallKit overview says that when a PushKit notification indicates an incoming call, you generate an appropriate action and CallKit presents the system interface for answering the call. PushKit registration is covered in the push-notifications guide, not here.
- How do I start an outgoing call?
- Request a `CXStartCallAction` that consists of a UUID to uniquely identify the call and a `CXHandle` to specify the recipient. Add the action to a `CXTransaction` and send it with `CXCallController.request(_:completion:)`. After you request the transaction, wait for the system to call your provider delegate’s `provider(_:perform:)` method before you actually start the call. A `CXHandle` identifies the other caller as a phone number, an email address, or a generic value such as a username or URL.
- How many CXProvider instances should I create?
- One. Apple says a VoIP app should create only one instance of `CXProvider` and store it for use globally. Initialize that provider with a `CXProviderConfiguration` that controls the native call UI, including a localized name, ringtone, and icon, and set a `CXProviderDelegate` to respond to call and audio-session events.
- Which tools should the agent use first?
- Apple Docs MCP or Sosumi, so the agent opens “CallKit”, “Making and receiving VoIP calls”, `CXProvider`, `CXCallController` and `reportNewIncomingCall(with:update:completion:)` instead of inventing a custom incoming-call UI or setting up PushKit here. Add swiftui-pro for the SwiftUI around the screens that start or control a call.