AI Commands: Rewrite Any Text in Any App, Instantly
Select text in a desktop app — an email, a document, a Slack message or your code — press a shortcut, and Lightning Assist rewrites, translates or summarises it, then pastes the answer back into the same app. No browser tab, no copying into a chat window.
Short answer
AI Commands let you select text in a desktop app, press a shortcut and get it rewritten, translated or summarised; you check the answer and paste it back, or let a saved command paste it on its own. They run on AI Credits on every plan, including Free, and work on Windows, macOS and Linux.
AI Commands live in the same desktop app as your snippets and push-to-talk dictation, and work the same way on Windows, macOS and Linux: select text, press a shortcut, check the answer and paste it back.
Part of the AI writing assistant — the cross-platform productivity app for Windows, macOS, and Linux.
What Are AI Commands?
There are two ways to run AI on selected text. AI Enhance is one shortcut — Alt+Shift+K by default (Option+Shift+K on a Mac, Ctrl+Alt+K on Linux) — that opens the AI Command window, where you type an instruction or pick a quick action: Improve writing, Fix grammar & spelling, Translate, Make shorter or Summarize. Saved AI Commands are your own instructions, each with a name and its own shortcut, created on the AI Commands page of the app.
The AI Command window shows the text you selected, the instruction and, once it has run, the AI's answer. Submit pastes the answer back into the app you came from, replacing your text if it is still selected; Copy & Close puts it on the clipboard instead. In Gmail, Google Docs and Word, bold, italics and fonts are kept; in code editors and plain-text apps you get plain text.
What You Can Do With AI Commands
- Improve writing: make a drafted paragraph clearer and more natural, with the same meaning and about the same length.
- Make shorter: condense a long email, a wordy comment, or a verbose paragraph to its essential point.
- Translate: translate the selected text into one of over 40 languages, or type another one, keeping the formatting and tone.
- Fix grammar and spelling: correct grammar, spelling and punctuation only; your wording, meaning and language stay the same.
- Custom commands: save your own instruction — summarise as bullet points, extract action items, switch to a formal tone — with a name and its own shortcut: Ctrl+Shift plus a key you choose (Cmd+Shift on a Mac). Each command either opens the window for review or runs immediately and pastes the result.
- Works system-wide: email clients, code editors, documents, chat apps and text fields in the browser: AI Commands work wherever you can select text and copy it with Ctrl+C (Cmd+C on a Mac).
How AI Commands Work
- Select the text in the app you are working in.
- Press the AI Enhance shortcut, or the shortcut of one of your saved AI Commands.
- Lightning Assist copies the selection and opens the AI Command window. With AI Enhance you type an instruction or pick a quick action; a saved command brings its own.
- Press Execute AI Command (Ctrl+Enter, or Cmd+Enter on a Mac). The text and the instruction go to the AI model you chose: Standard or Best quality.
- Check the answer and press Submit to paste it back. A saved command set to run immediately does all of this on its own: it runs as soon as you press its shortcut and pastes the answer.
AI Commands in Action
Selected text: the thing we need to do is make sure that all the required fields are filled in before the form gets submitted to the backend server
After Make shorter: Validate all required fields before submitting the form to the backend.
Selected text: Hi I wanted to follow up on the email I sent last week about the project status
After Improve writing: Hi, I'm following up on the email I sent last week about the project status.
Selected text: The API returns a 429 when you hit the rate limit. You should back off and retry.
After Translate to French: L'API renvoie une erreur 429 lorsque vous atteignez la limite de requêtes. Vous devez alors patienter, puis réessayer.
AI Credits
AI Commands run on AI Credits, on every plan, including Free. You buy more as packs when you need them, and a paid Pro plan adds 1000 AI Credits and 1000 Speech Credits every month, on top of anything you buy. Credits are used only when a command runs, they don't expire, and they are never bought automatically. In a company account, you choose whether a command is billed to your own credits or to the company's.
- No recurring AI charge: buy a credit pack when you need it; unused credits carry over.
- Starter credits included: new accounts get 200 AI Credits to try AI Commands before buying anything; with an email sign-up, 150 of them arrive when you confirm your address.
- Cost follows the text: the cost depends on how long the text is and on the model. Standard costs about 25 times less than Best quality: rewriting a 100-word email takes about 2 credits on Standard and about 40 on Best quality, the default for new commands. Every run costs at least 1 credit, the window shows how many it used, and the AI Usage screen keeps the history.
Updated for 2026: Related guides
Try AI Commands free for 14 days
The 14-day trial includes every feature — text expansion, AI Commands and push-to-talk dictation — and new accounts get 200 AI Credits and 200 Speech credits once their email is confirmed. No credit card. Windows, macOS and Linux.
Download Lightning AssistFrequently Asked Questions
What desktop apps do AI Commands work in?
In desktop apps where you can select text and copy it with Ctrl+C (Cmd+C on a Mac): email clients, code editors such as VS Code, JetBrains IDEs and Cursor, Word, Google Docs in the browser, Slack and Teams. Lightning Assist works at the operating-system level, not as a browser extension. Linux terminals are the exception: there, Ctrl+C stops the running program instead of copying.
Do I need an OpenAI account or API key?
No. AI Commands run on Lightning Assist AI Credits and use OpenAI models through our account. New accounts get 200 AI Credits, Pro adds 1000 a month, and more can be bought in the app. There is no AI provider account or API key to manage.
How is this different from pasting into ChatGPT?
With ChatGPT you select text, copy it, switch to a browser tab, paste, prompt, copy the response, switch back, and paste again. With AI Commands you stay in the same app: select the text, press the shortcut, check the answer and press Submit. A saved command set to run immediately needs only the selection and the shortcut.
Can I define custom AI instructions?
Yes. On the AI Commands page of the app, create a command with a name, your own instruction — for example, 'summarise as three bullet points' or 'convert to formal business English' — and its own shortcut. For each command you choose the model, Standard or Best quality, and whether it opens the window for review or runs immediately and pastes the result. You can save up to 50 commands.
How is AI Commands different from the AI Features page?
The AI Features page covers all Lightning Assist AI capabilities, including AI Speech (push-to-talk voice) and AI Credits. The AI Commands page focuses specifically on the inline text rewriting feature — select text, hotkey, AI rewrites in place.
Is an AI Command the same as a prompt saved as a snippet?
No. A snippet only types text: if you save a prompt as a snippet, Lightning Assist types it into ChatGPT, Claude or any other chat box, and that service runs it. That uses no AI Credits. An AI Command runs the AI itself: Lightning Assist sends your selected text and the instruction to the model and pastes the answer back, using AI Credits.
Related Pages and Snippets
Explore related guides, templates, and comparisons for your workflow.
Project Managers
Keep teams aligned with repeatable updates, plans, and status messages.
Learn more: Project ManagersBusiness Consultants
Deliver polished client communication and proposal workflows faster.
Learn more: Business ConsultantsExecutives
Communicate decisions quickly with reusable leadership templates.
Learn more: ExecutivesGit Commit Messages
Reusable conventional-commit and PR-ready message templates that expand in your terminal and editor.
Learn more: Git Commit MessagesSOAP Notes
Reusable SOAP note templates — Subjective, Objective, Assessment, Plan — that keep clinical documentation fast and consistent.
Learn more: SOAP NotesDot Phrases
Reusable medical dot phrases for common findings, instructions, and orders that expand from a short trigger in the apps you type in.
Learn more: Dot PhrasesInterview Invites
Reusable interview invitation email templates — phone screen, on-site, and final round — that schedule candidates fast and consistently.
Learn more: Interview Invitesvs TextExpander
Compare AI-first workflows, voice features, and cross-platform behavior.
Learn more: vs TextExpandervs PhraseExpress
Review setup speed, AI workflow depth, and team collaboration trade-offs.
Learn more: vs PhraseExpress