
Run your own AI commands on selected text, with Apple's on-device model.
You don't have to copy your text into a chat window for simple things, and you don't need expensive API keys or subscriptions to do simple things your Mac can already do.
Fix grammar, change the tone or rewrite a sentence right where you type, in any app, without a separate writing assistant.
Local AI is built around commands you define. Write a prompt once, give it a name, and run it on whatever text you have selected. Give your favorite commands their own hotkeys.
Open AI Commands to run, create, edit, pin, import and export commands. A command is a prompt, an icon, a creativity level and an output mode:
To give a command its own hotkey:
The first time a hotkey launches a command, Raycast asks you to confirm. Choose Always Open and it won't ask again.
Import and export use Local AI's own JSON format.
Local AI starts with these commands, which you can edit or delete:
Use these in a command's prompt:
{selection}: the selected text. If nothing is selected, the clipboard is used. Some apps, like code editors, don't share the selected text with Raycast. Turn on Copy selection in apps that don't share it in the extension's preferences to have Local AI copy it and restore your clipboard right after when you run a command from its hotkey.{clipboard}: the current clipboard text.{date} and {time}: the current date and time.{argument name="language" default="English"}: asks you for a value when the command runs. Add options="A, B, C" to offer a fixed list. Up to three arguments per command.Local AI needs:
fm command line tool, with its license accepted: run fm license once in TerminalRun Check Setup to see what is missing.
Ask Local AI answers a quick question straight from the Raycast search bar.
Chat with Local AI keeps saved conversations. You can attach an image to a message.
Your text never leaves your Mac. Local AI makes no network calls and has no account, API key or telemetry.
The on-device model handles about 4,096 tokens per request, and that includes its answer. It is best at rewriting, summarizing and extracting. Don't rely on it for facts, code or math. It has no web access.
Report bugs and share ideas in GitHub issues.
Made by Matloob Altaf. Say hi at matloob.pk.
Run, create and manage your AI commands
Runs an AI command from its Quicklink hotkey without opening Raycast. Create a Quicklink in AI Commands, then assign it a hotkey
Ask the on-device model a quick question
Have a saved conversation with the on-device model
Check that the on-device model is ready to use