There are three ways to ask an AI something without leaving the iPhone app you are in: Apple's Writing Tools, a shortcut run from the share sheet, or a third-party keyboard with an assistant inside it. Writing Tools can rewrite or compose text in place, but only on Apple Intelligence devices and with Apple's models or ChatGPT. A keyboard can hold a conversation beside any field and drop the answer at the cursor, once you turn on Allow Full Access, the switch that lets a keyboard extension reach the network at all.
What can an iPhone keyboard extension see?
Less than people assume. Apple's guide to creating a custom keyboard explains that keyboards "run in an isolated process that doesn't have direct access to the text input view." Through a proxy object, a keyboard can get the selected text, insert or delete text, move the insertion point, and read surrounding text near the cursor. It sees the one field you are typing in and nothing else in the app.
It also cannot select text on its own. The App Extension Programming Guide states that text selection "is under the control of the app that is using the keyboard." That proxy is still enough for an assistant: read what you selected or wrote around the cursor, send it as context, and insert the reply where the cursor is.
Where does a custom keyboard stop working?
In three places, and no keyboard can change them.
- Secure fields. Per Apple's guide, "when a user taps in a secure text input object, the system temporarily replaces your custom keyboard with the system keyboard." Password boxes always get Apple's keyboard.
- Phone pad fields. The same swap happens in phone pad fields, such as phone numbers in Contacts.
- Apps that opt out. An app can reject custom keyboards by returning
falsefromapplication(_:shouldAllowExtensionPointIdentifier:); in that app, every field gets the system keyboard.
A fourth rule shapes how AI keyboards are built. Apple's App Review Guideline 4.4.1 requires keyboard extensions to "remain functional without full network access and without requiring full access," and forbids them from launching other apps besides Settings. A compliant AI keyboard is a working keyboard first; only the online features may depend on Full Access.
What does Allow Full Access actually grant?
By default the keyboard sandbox "disallows access to the network and prevents writing to the containing app's shared group containers," according to Apple's page on configuring open access. Without Full Access, "users know that keystrokes go only to the app that's currently using the keyboard," and "the system ensures that keystrokes can't be sent back to your server or anywhere else."
With Full Access, the same page lists a shared container with the keyboard's own app, iCloud sync, and the ability to "send keystrokes and other input events for server-side processing." Apple's advice to developers is blunt: "Enabling open access shouldn't be done lightly. Keyboards handle some of the most sensitive user data," and they should not store keystroke data "beyond the time needed to provide text back to the user."
The switch is all or nothing. iOS cannot tell a keyboard that sends only the question you asked from one that streams every keystroke to a cloud predictor; the developer's code decides. That difference is not academic. In a 2024 report, the University of Toronto's Citizen Lab analysed cloud-based pinyin keyboards from nine vendors and found that apps from eight of them could be exploited "to completely reveal the contents of users' keystrokes in transit," affecting up to one billion users. Most vendors fixed the issues after disclosure, and the researchers recommend keyboards that work entirely on device for users who are concerned.
Which built-in options do the same job?
Two Apple features cover part of the ground without a third-party keyboard.
Writing Tools. Apple's Writing Tools guide says they "are available in most places you write, including third-party apps and websites": rewrite in a friendly, professional or concise tone, proofread, summarize, describe a change, or compose with ChatGPT. They need Apple Intelligence, which on iOS 27 means an iPhone 15 Pro, iPhone 15 Pro Max or an iPhone 16 model or later, set to a supported language such as English or Chinese (Simplified). Apple's availability page adds that Apple Intelligence features "will not currently work for supported devices purchased in China mainland."
A shortcut in the share sheet. The Shortcuts app's Use Model action sends text to the on-device model, to Private Cloud Compute, or to ChatGPT. Turn on Show in Share Sheet and the shortcut runs "from any app that has a Share button," taking the text you shared as input.
Both act on text you select or share. Writing Tools uses Apple's models or ChatGPT, the Use Model action offers the same family of choices, and neither keeps a conversation open beside the field you are typing in.
How do the routes compare?
| Route | Works in | Where the answer goes | Which model | What it needs |
|---|---|---|---|---|
| Writing Tools | Most text fields, including third-party apps | Into the field: a rewritten selection or composed text | Apple Intelligence; ChatGPT for Compose | iPhone 15 Pro or iPhone 16 and later, supported language and region |
| Share sheet shortcut | Any app with a Share button | Wherever the shortcut sends its output | On-device, Private Cloud Compute or ChatGPT | An Apple Intelligence device and a shortcut you build |
| Chat app | Anywhere | You copy it back by hand | Whatever the app offers | Nothing but the round trip |
| AI keyboard | Any field that accepts third-party keyboards | Inserted at the cursor | The developer's choice; some let you bring your own | Allow Full Access; never in secure fields |
When is a keyboard the right surface?
When you need an answer rather than an edit, and the answer belongs in the field you are already typing in. A reply that depends on a fact you have to look up, a translation of the message you are answering, a sentence you want rephrased in place: the keyboard has the cursor and the surrounding text, so nothing has to be copied in either direction. It also covers iPhones without Apple Intelligence, including devices bought in mainland China, because the keyboard brings its own model. If it lets you choose the backend, that can be a model Apple does not offer, including one you run yourself.
It is the wrong surface for research that needs a full screen, for comparing several answers, for any field iOS keeps for its own keyboard, and for text you would not want to leave the phone under any terms.
What Loopal does, and where it stops
Loopal is a Chinese keyboard with an assistant inside it, still in development and not yet on the App Store. It ships full Pinyin, a 9-key grid and handwriting, plus an English keyboard, and its documentation states that Pinyin candidates and handwriting recognition run on the device with no network access.
- Hold the space bar to ask. A progress line runs along the key; keep holding and a conversation opens inside the keyboard, slide off and nothing happens.
- The context is explicit. The selected text is sent as the first line of a new conversation, or, with nothing selected, the text around the cursor in that field, capped at 4,096 characters. What Loopal sends when you hold the space bar has the full rules.
- The answer stays yours. It streams in, and you choose Insert into input or Copy. Nothing is sent to anyone else for you.
- The backend is yours to pick. Platform credits after signing in, your own Anthropic, OpenAI, Doubao or Gemini key, or an Ollama server on your network, the last two without an account. The model has to support tool calling; choosing a Loopal backend covers where each request goes.
Platform credits come with a free allowance, and more use is available through a Loopal Pro subscription or credit top-ups; your own key adds no Loopal charge. The limits are firm: the assistant needs Full Access; the keyboard cannot sign in, change the backend or take a purchase, so those detours go through the main app; and every long press starts a fresh conversation.
Before you grant any keyboard Full Access
- Type with Full Access off first. Guideline 4.4.1 requires the keyboard to work without it, so ordinary typing should be complete before you flip anything.
- Find out what leaves the phone when you ask. A selection, the field's text, or every keystroke for cloud prediction are very different answers.
- Find out where it goes, and whether you choose. A vendor relay, your own API key and a server on your own network each send your text to a different party.
- Read the retention promise. Apple tells keyboard developers not to keep keystroke data longer than the feature needs; the privacy policy should say what the developer does.
- Know the off switch. Settings > General > Keyboard > Keyboards, tap the keyboard, and turn off Allow Full Access.
The decision rule: if the field is a password or a phone number, no keyboard can help. If the answer is a few sentences you will put in the same field, a keyboard is the shortest path. If you are researching, a chat app with a full screen is still the better tool.