# AirPrompter — full documentation # AirPrompter documentation Turn the AI instructions that work into reusable prompts and workflows you can apply to real work every day. AirPrompter is the place where you keep the AI instructions that are worth using again. Instead of reconstructing a good prompt in every chat, you save the instruction once, improve it as you learn, and arrange related instructions into a repeatable workflow. **The practical difference** A **prompt** completes one focused job. A **workflow** puts focused prompts in the order needed to complete a larger job. Your AI tool produces the output; AirPrompter keeps the reusable system. ![AirPrompter chooser offering Single Prompt and Multi-Step Workflow](https://airprompter.com/docs/screenshots/workflows/prompt-or-workflow-choice.webp) Choose one focused prompt or a guided sequence after selecting the result you want to create.[Open full-size image](https://airprompter.com/docs/screenshots/workflows/prompt-or-workflow-choice.webp) ## What AirPrompter changes in your day-to-day work Without a reusable system, the quality of an AI result depends on whether you remember the right context, constraints, and format each time. AirPrompter lets you preserve those decisions. For example, after a client meeting you might repeatedly need to: 1. create one factual record containing decisions, questions, actions, owners, and dates; 2. draft an audience-specific follow-up from the accepted record; and 3. independently audit the draft against the notes and record for unsupported commitments. Those are three distinct responsibilities. The first keeps facts extracted from the same evidence in one coherent record; the second changes the output for a specific audience; the third provides an independent gate. Save them as focused prompts in one **Client meeting follow-up** workflow. The next time a meeting ends, start with new notes but reuse the same process and quality checks. ![Scattered notes becoming four focused workflow steps, a reviewed deliverable, and a repeatable work cycle](https://airprompter.com/docs/illustrations/repeatable-workflow.webp) Turn scattered inputs into focused steps, review the handoffs, and reuse the system for the next task.[Open full-size illustration](https://airprompter.com/docs/illustrations/repeatable-workflow.webp) **Expected result:** recurring work begins with a named, tested system instead of an empty chat box. ## The AirPrompter mental model ### Prompt: one reusable responsibility A prompt contains the instruction for one result: summarize notes, compare options, draft an outline, review a claim, or format accepted content. Values that change each time—such as a client name, audience, or source material—can be represented with `{{snake_case}}` placeholders. Personal prompts are editable. When your process improves, update the prompt you already use. An edit does not create an immutable personal prompt version. ### Workflow: an ordered path to a larger outcome A workflow is an ordered list of prompts. Each step should produce something the next step can use or review. The sequence is useful when the work has a real handoff, approval, or change of responsibility—not merely because a long prompt can be split into smaller paragraphs. ### Library: the operating shelf for your systems Your Library keeps prompts and workflows together. Use clear names, Collections, Tags, search, and filters to find the right system by the job you need to do. ### Execution surface: where the work happens Choose how AirPrompter reaches the AI tool you are using: | Choose | When it fits | What remains under your control | | ------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | | [Browser extension](https://airprompter.com/docs/browser-extension) | You work in supported browser-based AI chats and want the workflow beside the conversation. | You select the prompt, provide values, inspect the result, and continue each step. | | [Connect](https://airprompter.com/docs/connect) | A supported AI host should discover AirPrompter prompts or continue a workflow by name. | You approve the connection and permissions; the host executes each returned instruction with its conversation context. | | [Direct MCP](https://airprompter.com/docs/mcp) | A qualified technical host needs a manual remote MCP connection. | You verify host support, transport, authentication, target, and the tools actually exposed. | | [Customer API](https://airprompter.com/docs/api) | A program needs the key-associated identity or entitlement projection. | You create and protect the key, verify the resolved owner, and stay within the two current REST reads. | | AirPrompter web app | You are creating, editing, organizing, or reviewing the system itself. | You decide what is saved and how it is organized. | Availability differs by browser, host, account access, and rollout. The current **Connectors** page in AirPrompter is the authority for the options available to you. ## Apply AirPrompter to your work ### Meetings and client work Build a workflow that turns source notes into decisions, owners, follow-up copy, and a final risk check. Reuse it for every meeting of the same type while changing only the notes, client, and due-date context. ### Content and communications Separate research, outline, draft, fact review, and formatting. This makes it clear whether a weak result came from missing evidence, a poor structure, or the final writing instruction. ### Analysis and decisions Use one prompt to normalize the evidence, one to compare it against explicit criteria, and one to write a recommendation that shows assumptions and unresolved risks. **A workflow does not guarantee a correct answer** Reuse improves process consistency, not factual certainty. Review source quality and model output before a later step builds on it or the work leaves your organization. ## From one good result to a reusable system Use this lifecycle whenever an AI interaction is worth repeating: 1. **Notice the repeated job.** Pick work you perform more than once and can describe by its desired outcome. 2. **Save the focused instruction.** Keep the context, method, constraints, and output format that made the result useful. 3. **Test with representative input.** Use realistic source material and check the result against explicit criteria. 4. **Split at meaningful handoffs.** Add a workflow step when the next responsibility needs different evidence, expertise, output, or approval. 5. **Use it where you work.** Run beside a supported AI chat or through a supported connected host. 6. **Improve the system.** When output fails, change the responsible prompt or step instead of adding vague language everywhere. **Expected result:** the name in your Library identifies a complete work outcome, and every step has a reason to exist. ## Choose your starting path [**Complete the first workflow**Build and run a two-step meeting follow-up system with copyable instructions and clear checks.](https://airprompter.com/docs/quickstart)[**Create better prompts**Write focused instructions, use variables, test realistic inputs, and maintain a useful Library.](https://airprompter.com/docs/prompts)[**Design reliable workflows**Map a recurring job into steps with explicit inputs, outputs, handoffs, and review gates.](https://airprompter.com/docs/workflows)[**Use AirPrompter in an AI tool**Choose the browser extension for side-by-side control or Connect for a supported agent host.](https://airprompter.com/docs/browser-extension)[**Integrate with AirPrompter**Choose the bounded customer REST API, protect API keys, or configure a qualified remote MCP host.](https://airprompter.com/docs/api)[**Set your preferences**Shape authoring assistance, choose a browser-local Personal or Team default, and download your data or delete your account.](https://airprompter.com/docs/account/preferences) ## How to know AirPrompter is working for you You should be able to answer all four questions for a saved system: - **When do I use it?** The name and description identify the recurring job. - **What changes each run?** The source material and placeholders are obvious. - **What should the result contain?** Every prompt defines its output. - **Where do I intervene?** Review points and failure recovery are explicit. If you cannot answer one of them, improve the prompt or workflow before relying on it for important work. ## If you are unsure where to begin - If you have one instruction that already works, start with [Prompts](https://airprompter.com/docs/prompts). - If the job needs research, drafting, and review, start with [Workflows](https://airprompter.com/docs/workflows). - If you want a complete example you can follow without designing the system first, use the [Quickstart](https://airprompter.com/docs/quickstart). - If the system already exists and you only need to run it in an AI tool, choose the [browser extension](https://airprompter.com/docs/browser-extension) or [Connect](https://airprompter.com/docs/connect). - If you are integrating a program or headless agent, start with the [API surface guide](https://airprompter.com/docs/api) before creating credentials. - If you want AirPrompter’s authoring assistance to reflect how you work, configure [account preferences](https://airprompter.com/docs/account/preferences). - If you are choosing between AirPrompter and another prompt tool, such as TextExpander or God of Prompt, read the dated [comparisons](https://airprompter.com/compare). ## Next step Create a complete, reusable **Meeting follow-up** system in the [first-workflow quickstart](https://airprompter.com/docs/quickstart). --- Canonical: https://airprompter.com/docs # Create your first reusable workflow Build a two-step meeting follow-up system, test its accepted result, and know exactly where to repair a failure. - Outcome A private two-step Meeting follow-up workflow that creates an evidence-grounded record and independently audits it. - Best for A first AirPrompter success you can reuse after recurring meetings. - Before you begin An AirPrompter account and notes you are allowed to process in your chosen AI tool. - You are done when The record passes its audit, the workflow is saved, and you know which producing step to rerun if it fails. ## Before you begin Confirm you can create a workflow and that the notes are approved for the AI tool you will use. The workflow has only two responsibilities: 1. **Collect** creates the complete factual meeting record: decisions, open questions, actions, owners, dates, and evidence. 2. **Audit** independently compares that record with the original notes and returns an acceptance verdict. Decisions and actions stay in one prompt because they use the same notes, extraction method, and record. The audit stays separate because it has different evidence, a different output, and an independent approval role. ## Prepare safe sample input Use approved real notes or this fictional sample: ```text Weekly launch meeting - The team chose the smaller onboarding release for the first launch. - Product lead will confirm final copy by Thursday. - Engineering expects the account migration check to finish Friday. - No owner was assigned to the help-center update. - Open question: does Support need a customer email before launch? - The launch date was discussed but not confirmed. ``` Remove passwords, credentials, payment details, health information, and personal or customer information your organization does not allow in the selected AI tool. ## Build through the five product stages The creation header shows **Output Type → Workflow Structure → Build Steps → Add Details → Approve**. A single-prompt creation uses **Add Prompt** instead of **Build Steps** at Stage 3. Stage ### Output Type Tell AirPrompter what the finished work should be, not what the first step does. 1. Sign in and select **New Workflow**. 2. Under **What do you want to make?**, choose **Text**. 3. Choose **Document**, then select **Continue**. **Expected result:** Document is selected as the final output format. Stage ### Workflow Structure Choose whether one coherent prompt or an ordered system should produce the result. Choose **Multi-Step Workflow** because creation and independent acceptance have different outputs and retry points. ![AirPrompter chooser offering Single Prompt and Multi-Step Workflow](https://airprompter.com/docs/screenshots/workflows/prompt-or-workflow-choice.webp) Choose one focused prompt or a guided sequence after selecting the result you want to create.[Open full-size image](https://airprompter.com/docs/screenshots/workflows/prompt-or-workflow-choice.webp) **Expected result:** Multi-Step Workflow is selected and the builder is ready. Stage ### Build Steps Assign one complete, testable responsibility to each step. Add **Collect**, choose **Write a prompt**, and use this instruction: ```text Role: You are a careful operations assistant. Objective: Turn {{meeting_notes}} into an accurate follow-up record. Use only facts stated in the notes. Separate confirmed decisions from proposals and unresolved questions. Extract every action, owner, due date, and supporting evidence. If an owner or date is missing, write "Not assigned" or "Not set". Never invent one. Output Markdown with exactly: Decisions, Open questions, Next actions, Risk note. Format Next actions as a table with Action, Owner, Due date, and Evidence columns. Keep the risk note to one sentence. ``` Add **Audit** after it, choose **Write a prompt**, and use: ```text Independently audit the meeting record from the prior step against both the original meeting notes and the record. If either is unavailable, return NEEDS INPUT. Check that every source decision, question, and action is represented; every owner and date is supported or explicitly marked unknown; no proposal is called a decision; no commitment is invented; and the risk note names the most consequential gap. Output only: 1. PASS or NEEDS REVISION. 2. A checklist with evidence for each check. 3. A bounded correction ledger naming the source-supported change and responsible step. Do not rewrite the record. ``` Use `{{meeting_notes}}` only for the value supplied each run. Refer to earlier results in prose—never create a `{{previous_output}}` variable. ![AirPrompter workflow builder with an empty sequence and a workflow step chooser](https://airprompter.com/docs/screenshots/workflows/blank-workflow-builder.webp) Build the sequence in order by choosing focused tasks such as Research, Outline, Create, or Format.[Open full-size image](https://airprompter.com/docs/screenshots/workflows/blank-workflow-builder.webp) **Expected result:** The canvas contains Collect followed by Audit, and neither step is empty. Stage ### Add Details Make the saved system easy to recognize and find weeks later. 1. Select **Add details**. 2. Name the workflow **Meeting follow-up**. 3. Describe it as: “Use after a recurring meeting to create an accurate action record and verify it before follow-up.” 4. Choose the categories that match the work and only the AI platforms where you expect to run it. 5. Select **Continue**. ![AirPrompter Add Details stage for a synthetic Meeting follow-up workflow](https://airprompter.com/docs/screenshots/workflows/meeting-follow-up-add-details-focused.webp) Name the complete outcome, explain when to use it, and select only relevant categories and platforms.[Open full-size image](https://airprompter.com/docs/screenshots/workflows/meeting-follow-up-add-details-focused.webp) **Expected result:** The workflow has a job-focused name, usage description, and only relevant categories and platforms. Stage ### Approve Inspect the complete system before it becomes a reusable Library item. Check the output type, ordered map, Library preview, privacy state, categories, and platforms. Review each prompt’s title and description. Use concise prompt titles such as **Meeting Record Builder** and **Meeting Record Audit**, with a separate one-sentence description for each. Then select **Save Workflow**. ![AirPrompter Approve stage showing a synthetic two-step Meeting follow-up workflow ready to save](https://airprompter.com/docs/screenshots/workflows/meeting-follow-up-approve-focused-v2.webp) Review the ordered responsibilities, Library preview, privacy state, details, and final Save Workflow action.[Open full-size image](https://airprompter.com/docs/screenshots/workflows/meeting-follow-up-approve-focused-v2.webp) **Expected result:** The preview says Workflow and Private, Collect precedes Audit, both prompts are reviewed, and Save Workflow is ready. ## Run it and recognize success Open **Meeting follow-up** in the [browser extension](https://airprompter.com/docs/browser-extension) or ask a supported host through [Connect](https://airprompter.com/docs/connect). Supply the notes as `meeting_notes`, run Collect, inspect the record, then run Audit with the original notes and record available. The safe sample’s work product should contain: ```text ## Decisions - Use the smaller onboarding release for the first launch. ## Open questions - Does Support need a customer email before launch? - What is the confirmed launch date? ## Next actions | Action | Owner | Due date | Evidence | | Confirm final copy | Product lead | Thursday | Stated in notes | | Finish account migration check | Engineering | Friday | Stated in notes | | Update the help center | Not assigned | Not set | No owner or date assigned | ## Risk note The help-center update has no owner or due date. ``` The audit should return **PASS** when every fact is represented and unknown values remain explicitly unknown. It may still identify the unassigned help-center work as an operational risk; that does not make the factual record invalid. 1. **Source**Approved meeting notes 2. **Work product**A complete factual meeting record from Collect 3. **Review gate**Audit compares the notes and record 4. **Accepted result**The record plus a PASS verdict 5. **If it fails**Correct or rerun Collect, then rerun Audit ### See the failure path If Collect changes “Product lead” to “Maya,” the auditor should return **NEEDS REVISION** with a correction such as: “Remove invented owner Maya; use Product lead as stated in the notes.” Repair Collect’s output first, then rerun Audit. Do not ask the audit step to silently rewrite the record. For low-risk work where independent acceptance adds no value, put the checklist in one producing prompt. Here the separate gate is justified because unsupported commitments can affect other people. ## Reuse and improve it For the next meeting, reopen **Meeting follow-up**, replace only `meeting_notes`, and run the same sequence. Do not duplicate the workflow. - If facts are missing or invented, improve or rerun **Meeting Record Builder**. - If the record is correct but a defect passes review, improve **Meeting Record Audit**. - If both prompts need the same manual correction every run, improve the shared source input or the earliest producing step. You have reached the North Star when the accepted record is useful in daily work, the audit verdict is understandable, and every failure points to one obvious repair location. **Expected result:** a saved private workflow, an accepted meeting record, a PASS verdict, and one clear repair path for any failed check. ## Troubleshooting ### Add details is disabled Every step needs an assigned prompt with the required content. Open the incomplete step and finish it. ### A placeholder remains visible Provide `meeting_notes` before running and confirm the variable uses matching double braces. ### The audit returns NEEDS INPUT Make both the original notes and generated record available to the audit. Independence requires source comparison, not review of the generated record alone. ### Save reports a limit or access issue Follow the account guidance shown in AirPrompter. Do not make duplicate items to work around the message. ## Completion checklist - **Meeting follow-up** is saved as a private Workflow. - Collect produces the complete factual record without invented facts. - Audit compares the original notes and record and returns PASS. - You know to repair Collect before rerunning Audit after NEEDS REVISION. ## Next step Use the [workflow design guide](https://airprompter.com/docs/workflows) to adapt the same input → work product → review gate pattern to your own recurring job. --- Canonical: https://airprompter.com/docs/quickstart # Build a reusable prompt library Write focused prompts, provide the values that change, test realistic inputs, and keep your Library useful as your work evolves. A reusable prompt preserves the thinking that makes an AI result useful: the job, context, method, boundaries, and output shape. It should work with new source material without forcing you to rewrite the instruction each time. **Use a prompt for one responsibility** If one coherent instruction can complete and evaluate the result, save one prompt. If the work needs separate evidence, expertise, outputs, retries, or approvals, use a [workflow](https://airprompter.com/docs/workflows). ![AirPrompter prompt editor with empty Description and Prompt fields](https://airprompter.com/docs/screenshots/prompts/blank-prompt-editor.webp) Write one focused instruction, then add its details and review it before saving.[Open full-size image](https://airprompter.com/docs/screenshots/prompts/blank-prompt-editor.webp) ## Before you start You need an AirPrompter account, one recurring job you can describe by its outcome, and representative input you are allowed to use with your chosen AI service. Decide what must remain fixed and what should change on each run before you write placeholders. ## What belongs in a reusable prompt A chat message can depend on context that happens to be visible in one conversation. A reusable prompt must make its requirements explicit enough to work again. Use this anatomy: | Part | Question it answers | Example | | ------------- | --------------------------------------------------------- | ------------------------------------------- | | Role | What perspective or responsibility should guide the work? | “You are a careful operations assistant.” | | Objective | What single result must be produced? | “Turn meeting notes into an action record.” | | Context | What background or source material is allowed? | Meeting notes supplied at run time | | Variables | Which values change each run? | `{{meeting_notes}}`, `{{audience}}` | | Method | What steps or decision rules matter? | Separate decisions from proposals | | Quality bar | What must be true before the result is useful? | Do not invent owners or dates | | Output format | What exact shape should be returned? | Three headings and an actions table | You do not need to label every part with those exact words, but the instruction should answer each relevant question. ## Use variables for values that change Write a variable as `{{snake_case}}`. Good variable candidates: - `{{meeting_notes}}` - `{{target_audience}}` - `{{decision_criteria}}` - `{{source_article}}` Keep stable rules in the prompt instead of turning them into variables. If every sentence becomes a blank to fill, the prompt is no longer convenient to run. ### Variable example ```text Write a decision brief for {{decision_maker}} using {{source_material}}. Compare the options against {{decision_criteria}}. ``` On one run, the values might be: | Variable | Value | | ------------------- | -------------------------------------- | | `decision_maker` | Head of Customer Success | | `source_material` | Interview notes and renewal data | | `decision_criteria` | Customer impact, effort, reversibility | **Expected result:** the durable instruction stays the same while the decision maker, evidence, and criteria can change. ## Create a prompt in AirPrompter 1. Sign in and select **New Workflow**. 2. Under **What do you want to make?**, choose the output family closest to the final result: **Text**, **Data & Code**, or **Media & Other**. 3. Choose a specific format, such as **Document**, **Report**, **Code**, **Spreadsheet**, **Image**, or another option shown in the wizard. 4. Select **Continue**. 5. Choose **Single Prompt**. 6. Add a **Description** that says when to use the prompt and what it produces. 7. Add the complete **Prompt** instruction, including any `{{variables}}`. 8. Select **Add details**. 9. Add a job-focused **Prompt name**. 10. Choose relevant **Categories** and **Services & platforms**. 11. Select **Continue**, inspect the Library card preview and prompt details, then select **Save Prompt**. **Expected result:** AirPrompter saves a private Prompt in your Library. Its card has a recognizable name, and the prompt is available for reuse. **Personal prompts are editable, not versioned** Updating a private personal prompt changes that prompt. A timestamp, run, output, hash, or release artifact does not create an immutable personal prompt version. ## Name prompts for the job The name should help you select the correct instruction without opening several items. | Avoid | Prefer | Why | | --------------- | -------------------------------- | ------------------------------------ | | Research prompt | Compare vendors against criteria | Names the decision job | | Email helper | Draft renewal follow-up | Names the communication outcome | | Summarizer | Meeting notes to actions | Names the source and result | | Final version | Review article claims | Still makes sense after future edits | Use the description to add the trigger and boundary. For example: “Use after a customer interview to extract themes and evidence; does not write the final roadmap recommendation.” ## Three prompts you can adapt ### Meeting work: notes to actions Use when a meeting ends and the next job is an accurate operating record. ```text Role: You are a careful operations assistant. Objective: Turn {{meeting_notes}} into a factual meeting record. Method: 1. Separate confirmed decisions, open questions, and next actions. 2. Preserve stated owners and dates exactly. 3. Mark missing owners as "Not assigned" and missing dates as "Not set". 4. Do not infer commitments that are not present in the notes. Output: - Decisions - Open questions - A Next actions table with Action, Owner, Due date, and Evidence ``` Check that every table row can be traced to the notes. ### Content work: evidence-backed outline Use when research is complete and you need a structure before drafting. ```text Role: You are an editorial strategist. Objective: Create an outline for {{target_audience}} about {{topic}} using only {{approved_research}}. Method: 1. State the reader problem and promised outcome. 2. Organize 4–6 sections in a logical learning sequence. 3. Under each section, list the evidence it will use. 4. Mark any required claim that lacks support as "Evidence needed". Quality bar: - No invented statistics or sources. - No section repeats another section's job. - The outline should support a {{target_length}} draft. Output only the working title, reader promise, and numbered outline. ``` Check that every planned claim points to supplied research or says **Evidence needed**. ### Decision work: compare options Use when several options must be evaluated consistently. ```text Role: You are a neutral decision analyst. Objective: Compare {{options}} for {{decision_maker}}. Use these criteria and only these criteria: {{decision_criteria}}. Use this evidence: {{source_material}}. For each option: - summarize the evidence; - identify the strongest advantage; - identify the main risk; - state what remains unknown. Finish with a recommendation only if the evidence supports one. Otherwise state what information is needed before deciding. Output a comparison table followed by Assumptions, Unknowns, and Recommendation. ``` Check that a recommendation is separated from assumptions and missing evidence. ## Test before you depend on it Do not judge a prompt only by how well it reads. Run it with representative input. 1. Choose a normal case from your work. 2. Choose a difficult case with missing, conflicting, or messy information. 3. Run the same saved prompt against both cases. 4. Compare the results with the quality bar in the prompt. 5. Record the first instruction that would have prevented each failure. 6. Edit the prompt and rerun the same input. **Expected result:** the revised prompt fixes a specific failure without weakening a result that was already correct. ### Evaluate the result Use checks that a teammate could apply: - **Correctness:** does the output preserve the supplied facts? - **Completeness:** are all required sections or fields present? - **Boundaries:** did the model avoid unsupported claims or prohibited content? - **Usefulness:** can the intended person take the next action? - **Consistency:** does the prompt behave acceptably across more than one representative input? “Sounds better” is not a sufficient test when the prompt supports operational work. ## Revise the responsible instruction | Failure | Change to make | | --------------------------------------- | ----------------------------------------------------------- | | Result is too broad | Add audience, scope, maximum length, or exact output fields | | Facts are invented | Restrict allowed sources and define how to mark unknowns | | Important fields are missing | List required headings, columns, or keys | | Tone is wrong but facts are right | Add a bounded tone rule without rewriting the method | | The prompt has unrelated jobs | Split at the change of responsibility and create a workflow | | Different runs require constant editing | Replace only the changing values with variables | | Output is long but not actionable | Ask for prioritized decisions, risks, and next actions | Change one responsible part at a time when possible. That makes it easier to tell why the next test improved or regressed. ## Organize your Library around real work Your Library contains Prompts and Workflows. Use the controls available in the current Library to make selection fast: - **Collections:** group systems by a durable job, client-safe workstream, or project—not by every possible subject. - **Tags:** add cross-cutting labels that help search, such as a function, audience, or review type. - **Search:** look for the outcome in the item name. - **Filters:** narrow the Library to the item type or source you need. - **Favorites:** keep high-frequency items close when that control is available on the item. Examples of useful Collections are **Customer research**, **Weekly operations**, and **Content production**. A Collection named **Miscellaneous AI** does not help you choose a system under time pressure. **Expected result:** a colleague who knows the job—but not the prompt wording—can find the right item by name, Collection, Tag, or search. ## Maintain prompts as the work changes ### After each failed run Identify whether the problem came from the input, the instruction, the AI tool, or an earlier workflow step. Edit the prompt only when its durable instruction is responsible. ### Weekly for important systems Review frequently used prompts for repeated corrections, outdated platform choices, unclear names, and requirements that now belong in a separate step. ### Before high-impact use Recheck the prompt with current representative input. Personal prompts are mutable, so confirm the current instruction rather than relying on a remembered earlier state. ## Troubleshooting ### The variable is not replaced Confirm that the placeholder uses matching double braces and the value name is consistent: `{{target_audience}}`, not a mix of `{{audience}}` and `{{target_audience}}`. ### Results change too much between runs Add objective checks, allowed sources, required fields, and a clear unknown-data rule. Some model variation remains; a prompt reduces ambiguity but does not make probabilistic output identical. ### You cannot tell whether the revision helped Rerun the original test input and compare against the same acceptance checks. Do not change the input, prompt, and evaluation standard at the same time. ### The prompt is difficult to reuse Remove background that belongs only to one task. Convert the truly changing values into a small set of clear variables. Keep fixed quality rules in the prompt. ### The prompt keeps growing Look for separate responsibilities. Research, drafting, review, and formatting often need different inputs and success criteria. Move those boundaries into a [workflow](https://airprompter.com/docs/workflows). ## Completion checklist - The name describes the job and outcome. - The description says when to use the prompt. - The instruction has one coherent responsibility. - Changing values use clear `{{snake_case}}` variables. - Unknown-data behavior is explicit. - The output shape is testable. - The prompt passed a normal and difficult representative case. - The item is findable in the Library. ## Next step When two or more focused prompts depend on one another, arrange them into a [repeatable workflow](https://airprompter.com/docs/workflows). --- Canonical: https://airprompter.com/docs/prompts # Design and run workflows Turn a recurring job into distinct responsibilities with explicit handoffs, review gates, and one obvious repair point. - Outcome A named workflow whose steps have distinct responsibilities, output contracts, consumers, and acceptance checks. - Best for Recurring work where evidence, expertise, output form, retry point, or human approval changes. - Before you begin A representative input and a clear final result; existing Library prompts are optional. - You are done when A normal and difficult run both produce an accepted result, and every failure has one earliest repair point. ## Before you begin Choose a recurring job, one representative input, and the exact artifact that should exist when the work is complete. A workflow is valuable because its handoffs are useful—not because it contains many prompts. ## Use the split-or-merge test Keep one prompt when the same input, method, output, and evaluation form one coherent responsibility. Split only when evidence, expertise, output contract, intended consumer, independent evaluation, human approval, or retry point changes. Merge an adjacent step that merely continues, restates, extracts another field from the same source, or cosmetically reformats work its producer could cleanly deliver. | Decision | Example | Why | | ---------- | --------------------------------------------------------------------------- | ----------------------------------------- | | One prompt | Extract decisions, questions, actions, owners, and dates from meeting notes | Same evidence, method, and record | | Split | Create the record, then audit it against the source | Different contract, gate, and retry point | | Merge | Analyze vendors, then evaluate the same vendors against the same criteria | Same comparison responsibility | | Split | Compare vendors, then write an executive decision brief | Different audience and output contract | ## Define the saved system contract Before opening the builder, write the **Trigger**, **Source input**, ordered **Responsibilities**, exact **Output**, **Review gate**, and **Destination**. For every proposed step, name its input, one responsibility, output structure, consumer, and acceptance check. If two adjacent rows have the same five answers, merge them. ## Build through the five stages Stage ### Output Type Choose the final deliverable, not an intermediate step. Select **New Workflow**, choose the output family and closest format, then continue. **Expected result:** The selected output type describes what the complete workflow produces. Stage ### Workflow Structure Choose an ordered workflow only after the split-or-merge test proves useful handoffs exist. Choose **Multi-Step Workflow**. If the job is coherent without an independent handoff or gate, choose **Single Prompt** instead. ![AirPrompter chooser offering Single Prompt and Multi-Step Workflow](https://airprompter.com/docs/screenshots/workflows/prompt-or-workflow-choice.webp) Choose one focused prompt or a guided sequence after selecting the result you want to create.[Open full-size image](https://airprompter.com/docs/screenshots/workflows/prompt-or-workflow-choice.webp) **Expected result:** Multi-Step Workflow is selected for a job with at least two meaningful responsibilities. Stage ### Build Steps Assign a focused prompt to each responsibility in dependency order. 1. Choose the closest task type. 2. Attach a Library prompt or write a new one. 3. Define the exact input and bounded output. 4. Add the next step only when it passes the split test. 5. Reorder when a required input does not yet exist; remove pass-through work. ![AirPrompter workflow builder with an empty sequence and a workflow step chooser](https://airprompter.com/docs/screenshots/workflows/blank-workflow-builder.webp) Build the sequence in order by choosing focused tasks such as Research, Outline, Create, or Format.[Open full-size image](https://airprompter.com/docs/screenshots/workflows/blank-workflow-builder.webp) **Expected result:** Every step has a prompt, distinct output, named consumer, and acceptance check. Stage ### Add Details Make discovery and intended use obvious. Name the full outcome, state when to use it and what it produces, select relevant categories, and include only supported execution platforms. Then continue. ![AirPrompter Add Details stage for a synthetic Meeting follow-up workflow](https://airprompter.com/docs/screenshots/workflows/meeting-follow-up-add-details-focused.webp) Name the complete outcome, explain when to use it, and select only relevant categories and platforms.[Open full-size image](https://airprompter.com/docs/screenshots/workflows/meeting-follow-up-add-details-focused.webp) **Expected result:** Name, description, categories, and platforms describe the complete recurring job. Stage ### Approve Review the entire system before saving it to the Library. Verify the workflow map, prompt titles and descriptions, output type, Library preview, privacy state, categories, and platforms. Confirm every variable changes per run. Do not use `{{previous_output}}`; reference every prior result in prose. Select **Save Workflow** only after the map matches the contract. ![AirPrompter Approve stage showing a synthetic two-step Meeting follow-up workflow ready to save](https://airprompter.com/docs/screenshots/workflows/meeting-follow-up-approve-focused-v2.webp) Review the ordered responsibilities, Library preview, privacy state, details, and final Save Workflow action.[Open full-size image](https://airprompter.com/docs/screenshots/workflows/meeting-follow-up-approve-focused-v2.webp) **Expected result:** The workflow is private, ordered correctly, fully reviewed, and ready to save. ## Write reliable handoffs The producing step defines what the next step receives: ```text Output a research table with Claim, Evidence, Source, Confidence, and Open question. Do not write the recommendation. ``` The consumer names how it uses the accepted result: ```text Using the accepted research table, compare supported options against {{decision_criteria}}. Exclude low-confidence claims from the recommendation. ``` Double braces are for user-supplied values. Earlier-step context is handled by the execution path. ## Use coherent workflow recipes ### Weekly operating review 1. **Collect** updates into an evidence table. 2. **Analyze** movement, blockers, and contradictions into a decision brief. 3. **Audit** the brief against updates for owners, dates, evidence, and unresolved risk. **Why this is a workflow:** normalization, synthesis, and independent checking produce different artifacts and retry points. **Merge it when:** inputs already use the exact required table and no independent review is needed. ### Content production 1. **Research** the question into a source-backed evidence set. 2. **Outline** the reader journey and claim placement. 3. **Draft** only from the accepted outline and research. 4. **Audit** claims, required sections, and audience fit. 5. **Finalize** only accepted corrections into delivery-ready copy. **Why this is a workflow:** evidence, structure, prose, independent review, and controlled revision each have a distinct contract. **Merge it when:** a low-risk short message can be drafted and checked coherently in one prompt. ### Vendor decision 1. **Collect** heterogeneous proposals and requirements into one evidence matrix—skip this when sources are already normalized. 2. **Evaluate** options against supplied `{{decision_criteria}}`, producing a recommendation with assumptions and unknowns. 3. **Audit** criterion coverage and evidence traceability, returning PASS or a correction ledger. 4. **Transform** the accepted analysis into an audience-specific decision brief. **Why this is a workflow:** normalization is conditional, evaluation makes the decision, audit gates unsupported claims, and transformation serves a different audience. **Merge it when:** one short normalized input can be compared and written for one audience without a separate approval gate. 1. **Source**Approved proposals, requirements, criteria, and audience 2. **Work product**Evidence-backed recommendation with unknowns 3. **Review gate**Traceability audit against matrix and criteria 4. **Accepted result**Audience-specific decision brief from accepted analysis 5. **If it fails**Return to the earliest matrix, evaluation, or audit defect ## Run it in the right surface Use the [browser extension](https://airprompter.com/docs/browser-extension) beside a supported AI chat when you want visible, manual control of each step. Supply variables, inspect each output against its acceptance check, and continue only when it is safe context. Use [Connect](https://airprompter.com/docs/connect) when a supported AI host is authorized to find and continue workflows by name. Ask the host to identify required inputs before starting. Host capability and permission vary; the current Connectors page is authoritative. ## Use variables in a run A variable is a value that changes each time the workflow runs, written as `{{snake_case}}` in any step, for example `{{csv_file}}`, `{{campaign_brief}}` or `{{decision_criteria}}`. Keep everything that stays the same as plain instructions. 1. **Name it once, use it anywhere.** The same name means the same value in every step, so `{{audience}}` in step 1 and step 4 receives one answer. 2. **Start the run.** Before step 1, AirPrompter collects a value for every variable any step uses. A connected AI tool asks you in plain words and does not start the run until each one has a value; the browser extension shows a field for each one. In the browser extension, a field you leave blank is filled in as empty text. 3. **Each step gets the values filled in.** The AI tool receives `Summarize sales-week-47.csv`, not `Summarize {{csv_file}}`. 4. **Values stay fixed for the run.** To use a different value, start a new run. Names start with a letter, number or underscore and may use letters, numbers, underscores, dots and dashes, such as `{{brand.voice}}` or `{{customer-name}}`. Spaces around the name are fine: `{{ audience }}` is `{{audience}}`. In a run from a connected AI tool, text such as `{{...}}` or `{{ slot 1 }}` is not a variable and stays as written, so you can show a template’s blanks without being asked for them. The browser extension shows a field for any text in double braces, so use plain names there. Do not use `{{previous_output}}` for an earlier step’s result. Refer to it in prose (“Using the research table above…”): the AI tool already has that result in the conversation. **Expected result:** starting the run asks only for the values that change, and every step reads as a complete instruction with those values in place. ## Add helper scripts and files Some steps need an exact answer that a model should not improvise: parsing a file, a calculation, an API call, or filling a template. Save that part as a helper file with the workflow, and the workflow becomes a skill: instructions plus the scripts and assets they use. - **What you can attach.** Scripts (under `scripts/`) and assets such as templates, style guides or sample data (under `assets/`), up to 200 files per workflow, 1 MB per file and 8 MB in total. Name what a script needs, such as a Python version, so the AI tool can prepare it. - **How a step uses one.** The step names the file’s path, says when to run or read it, and says what it returns. A script should be safe to run twice and exit with an error when it fails. - **Who runs it.** Your AI tool runs the script when a step calls for it, where that tool can run code, under its own approval rules. AirPrompter stores scripts and assets with the workflow and versions them with it; it never runs them. - **Saving and editing.** From a connected AI tool, `save_workflow` saves the steps and their files in one call; `get_workflow_files` reads the stored files and `update_workflow_files` changes them. In the web app, the workflow’s details show its files. - **Storage.** Files count against your library: 10 MB on Free, 1 GB on Pro, and 1 GB per paid seat on Team plans, pooled across the organization. Team plans with File Security scan uploaded files for malware. ### Write steps that use scripts and assets Point the step at the file by its path, and pass run values to the script through variables. Put the variable in double quotes inside a command, so a value with spaces stays one argument: ```text Compute this week's numbers with the script, not by hand. 1. Run: python scripts/summarize_sales.py "{{csv_file}}" 2. If you have no export yet, run it on assets/sample-sales-export.csv to see the expected format. 3. Return the script's tables exactly as printed. Never recompute or round its numbers. ``` An asset that guides the work, such as a style guide or examples, is read rather than run: ```text Read assets/ad-style-guide.md first and follow its palette, light and format rules. ``` Tell later steps to quote the script’s output instead of recalculating it, so every number in the final result traces back to one run of the script. The value you supply is placed into the command as written. Use variables for file names and short values you provide yourself, not for pasted text, and keep your AI tool’s approval for running commands turned on. ### How a run reaches the files 1. When a step uses stored files, the connected AI tool receives a list of them with download links. 2. The tool downloads each file into a folder of its own (`airprompter-files/` plus the workflow’s id): in your private temporary folder when the computer has one, otherwise in the working folder. It checks each file’s fingerprint before using it, and reuses a copy across conversations until the file changes. 3. For your own workflows, asking to run the workflow covers downloading and running its files when the step changes nothing outside the working folder. For a Team Playbook someone else maintains, or a step that acts outside the working folder, a tool that needs your permission asks once. 4. A tool that cannot download files, such as a plain chat, still runs the steps that need no file. A step that needs a file it could not get is reported as not run, never answered with an invented script. **Expected result:** the steps that need exact work call a named script, the AI tool runs it, and the rest of the workflow uses its result. ## Evaluate and repair the earliest defect Run one ordinary and one difficult case. Record whether each input was present, output matched its contract, gate caught a meaningful issue, and consumer could proceed without repairing hidden defects. | Symptom | Earliest repair | | -------------------------------------- | ------------------------------------ | | Research contains unsupported claims | Research source and evidence rules | | Outline misses a required topic | Outline coverage contract | | Draft ignores evidence | Draft input and citation contract | | Audit says “looks good” without checks | Audit criteria and verdict format | | Finalize changes approved meaning | Finalize preservation rules | | Every step needs the same correction | Shared input or first producing step | Stop before weak context compounds. Correct or rerun the responsible producer, then rerun every downstream gate that depends on it. **Expected result:** the accepted final artifact can be traced to approved source material, and any failure identifies one earliest responsible step. ## Troubleshooting ### Add Details is disabled Open every incomplete step and assign a Library prompt or complete its instruction. ### Two steps produce nearly the same answer Fill in Input, Responsibility, Output, Consumer, and Acceptance for both. Merge them when those contracts do not materially differ. ### A later step lacks context Fix both sides: the producer must output required fields, and the consumer must say how it uses the accepted result. ### A step shows `{{name}}` instead of your value Check that the variable is spelled the same in every step and starts with a letter, number or underscore. In a connected AI tool, a name containing a space, such as `{{ slot 1 }}`, is treated as text. A blank or spaces-only value also counts as not filled there, so the tool asks you for it. Start a new run and supply the value when asked. ### A step says it could not get a file Confirm the step names the file’s path exactly as stored (for example `scripts/summarize_sales.py`), and that the AI tool you use can download and run files. Open the workflow’s details to see its stored files. ### A connected host cannot run it Confirm the connection, exact workflow name, host tool list, and permissions on [Connect](https://airprompter.com/docs/connect). Review Personal and Team credential boundaries in [API keys and scopes](https://airprompter.com/docs/api-keys). ## Completion checklist - The name describes the final outcome. - Every step has one responsibility and a named consumer. - Each handoff changes evidence, expertise, output, retry, or approval. - Variables are consistent, named for values that change, and previous results are referenced in prose. - Every script or asset a step needs is stored with the workflow and named by its path. - A normal and difficult run meet explicit acceptance checks. - Every failure points to one earliest repair location. ## Next steps Run the system with the [browser extension](https://airprompter.com/docs/browser-extension) or authorize a supported host through [Connect](https://airprompter.com/docs/connect). --- Canonical: https://airprompter.com/docs/workflows # Use AirPrompter in your browser Find saved workflows beside a supported AI chat, fill reusable variables, choose manual or Run All execution, and stop bad context before it compounds. The AirPrompter browser extension places your saved workflows beside supported browser-based AI chats. It is the best fit when you want to see the prompt sequence, provide run-specific values, and control what is sent into the current chat. **Availability depends on the current browser and page** AirPrompter can publish more than one browser build, but store availability and page integration can change. Use the current options shown on **Connectors**. A successfully installed extension does not mean every website can accept prompts automatically. ## Choose the extension when Use the browser extension when: - the AI tool runs in a supported browser page; - you want AirPrompter visible beside the conversation; - you want to review or manually confirm workflow steps; or - you need a Copy fallback when the page cannot accept prompt injection. Choose [Connect](https://airprompter.com/docs/connect) when a supported AI host should discover AirPrompter workflows through an authenticated connector and continue them as a host tool. ## Before you start You need an AirPrompter account, at least one saved Workflow, a browser option currently shown on **Connectors**, and permission to install extensions in that browser. Keep one harmless test workflow available so you can verify the panel before using private work. ## Install the current browser build 1. Open [AirPrompter Connect](https://airprompter.com/connect). 2. In **Available connectors**, choose **Connect** for **Firefox extension** or **Chrome extension**. 3. Confirm that the destination is the official browser-store listing shown by AirPrompter. 4. Complete the browser’s installation flow. 5. Open the browser’s extension menu and pin AirPrompter if you want it always visible. 6. Open the AirPrompter side panel. ![AirPrompter Connect page listing Firefox, Chrome, ChatGPT, and Claude connection options](https://airprompter.com/docs/screenshots/connect/connector-options.webp) Start from Connect and choose the browser or AI host you want to use with AirPrompter.[Open full-size image](https://airprompter.com/docs/screenshots/connect/connector-options.webp) **Expected result:** the side panel opens and either asks you to sign in or shows the **Workflows** view. ### If installation does not complete - If a connector is not shown, treat it as unavailable for your current rollout; do not use an old or third-party listing. - If the store reports that the extension is already installed, open the browser extension menu and locate AirPrompter there. - If your browser requires an administrator to approve extensions, follow your organization’s browser policy. ## Sign in to the correct AirPrompter account 1. Open the AirPrompter panel on a normal browser page. 2. Sign in using the account that owns the workflows you need. 3. Wait for **Workflows** and the Search control to appear. **Expected result:** the panel can load the private workflows available to that signed-in account. The sign-in itself does not publish or share them. If the panel is empty but the web Library is not, confirm that both surfaces use the same account. If the panel reports an expired session, sign in again rather than repeatedly reloading the AI page. ## Confirm the current AI page is supported Open the AI chat where you plan to work, then open AirPrompter. The extension runs on browser-based AI chats including ChatGPT (chatgpt.com), Claude (claude.ai), Gemini (gemini.google.com), Grok (grok.com), and Perplexity (perplexity.ai), and on other AI sites such as Microsoft Copilot, DeepSeek, Mistral, and Poe. The extension checks the active browser tab. When the page supports sending prompts, the active workflow can show **Send** and may show **Run All**. When it cannot, use **Copy** and paste the prompt yourself. **Copy is a supported fallback** Automatic sending is a page capability, not a requirement for using the workflow. Copy the resolved prompt, paste it into the AI chat, submit it, then explicitly confirm the step when the response is complete. **Expected result:** you know whether this tab supports Send/Run All or requires the manual Copy path before starting the work. ## Find the workflow by its job 1. In the panel’s **Workflows** view, use **Search workflows…**. 2. Enter the outcome-oriented name, such as **Meeting follow-up** or **Vendor decision brief**. 3. Open the matching workflow card. 4. Review its saved prompt sequence before running. If no result appears, clear the search and confirm that the workflow exists in the same account’s web Library. A generic name makes selection harder; rename the workflow in the web app when necessary. ## Fill the values that change When the workflow contains `{{variables}}`, the panel collects the unique values across its steps. 1. Read each variable name before entering a value. 2. Provide the source material or context intended for this run. 3. Check that the value belongs in the selected AI service under your privacy policy. 4. Confirm that no required placeholder remains unresolved in the active prompt. Example: | Variable | Value for this run | | --------------- | --------------------------------------------- | | `meeting_notes` | Approved notes from the weekly launch meeting | **Expected result:** AirPrompter resolves the same value wherever its matching placeholder appears. The saved prompt remains reusable for the next run. If you use a CSV option shown by the runner, verify the current row before starting. A CSV can repeat a workflow across rows; it does not make the underlying source safe or accurate automatically. ## Run one step at a time Use the manual path when you want to inspect each response, when the page cannot support Run All, or when the work is high impact. 1. Open the workflow and start with the active step. 2. Select **Send** if it is available, or select **Copy** and paste the prompt into the AI chat. 3. Submit the prompt in the chat. 4. Wait for the AI response to finish. 5. Compare the response with that prompt’s expected output and source material. 6. If you used Copy or the panel still shows the step as pending, select **Mark as done** only after the response is complete and acceptable. 7. Continue with the next active step. The panel prevents other workflow-step actions while a step is still in progress. Complete or clear the current step before sending another one. **Expected result:** completed steps are visibly distinguished, the next responsibility becomes active, and the workflow ends with **Workflow complete**. ### When to send or copy a step again Use **Send again** or **Copy again** only after correcting the run value, source context, or AI response problem. Repeating the same weak instruction with the same input is not a repair strategy. ## Use Run All when the tab supports it **Run All** is available only when the current tab supports the extension’s workflow-run capability. Before selecting it: - fill every required variable; - read the entire prompt sequence; - confirm that no step has empty prompt content; - remove unrelated context from the AI chat; and - decide whether the work is safe to continue without a manual approval after every step. Then: 1. Select **Run All**. 2. Keep the workflow in the same browser tab while it runs. 3. Watch the step status and AI chat for failures or unexpected context. 4. Select **Cancel** if a result is wrong, the source is inappropriate, or the run should not continue. 5. Review the final output and the intermediate results before using the work. **Expected result:** the supported tab progresses through the saved sequence and the panel shows the current run state. A workflow already running in that browser tab prevents another workflow from starting there. **Run All is not approval for the final output** Automatic continuation removes clicks; it does not remove your responsibility to verify facts, permissions, source quality, and downstream consequences. ## Apply the extension to a workday ### After a recurring meeting Open **Meeting follow-up**, fill `meeting_notes`, and run the extraction step. Confirm owners and dates against the notes before allowing the review step to proceed. ### While drafting an article Open a research-to-draft workflow in a clean AI chat. Use manual execution so you can reject weak research before it becomes outline or draft context. ### During repetitive row-based work When the runner offers CSV input, use a test row first. Confirm variable-to-column mapping and the expected output before processing additional rows. ## Keep private work out of documentation and support captures - Do not share a screenshot of the side panel while private workflow names, prompts, variables, or outputs are visible. - Reproduce a problem with a blank or staged test workflow before capturing it. - Crop account identifiers and unrelated browser content. - Never include passwords, tokens, private keys, or customer data in a support image. These rules also apply when you create your own internal training materials. ## Troubleshooting by symptom ### The extension is installed but not visible Open the browser extension menu, find AirPrompter, and pin or open it. If the side panel was already open, close and reopen it after installation. ### The panel says the session expired Sign in again in the panel. If it cannot contact the extension runtime, reload the extension and the current page, then retry. ### Your workflow does not appear Clear **Search workflows…**, confirm the signed-in account, and verify the item exists as a Workflow in the web Library. A prompt does not appear in the workflow-only list. ### Send is missing The active tab does not currently support prompt injection. Use **Copy**, paste into the chat, submit, review the response, and mark the step done manually. ### Run All is missing or disabled The tab may not support automated execution, another workflow may already be running in that tab, a step may lack prompt content, or required values may be incomplete. Use the manual path until the visible condition is resolved. ### A copied step stays pending Submitting a pasted prompt is not proof that the AI response is correct or complete. Wait for the response, review it, then use **Mark as done**. ### The next step uses wrong context Cancel or stop progression. Correct the earliest bad result, restart the affected work, and ensure the next prompt states how to use the accepted result. ### The page is not supported Use **Copy** in the current chat, switch to a currently supported browser AI chat, or check whether the host is available through [Connect](https://airprompter.com/docs/connect). ## Completion checklist - The extension came from the current AirPrompter connector page. - The panel uses the account that owns the workflow. - You know whether the current tab supports Send/Run All or requires Copy. - Every runtime variable has an approved value. - You review source fidelity before continuing a manual step. - You know how to cancel Run All. - No private prompt or output appears in screenshots. ## Next step If you want a supported AI host to discover and continue workflows through an authenticated connection, use [Connect and MCP](https://airprompter.com/docs/connect). --- Canonical: https://airprompter.com/docs/browser-extension # Connect an AI host to AirPrompter Choose the right connector, authorize it safely, prove workflow discovery works, and understand what the host—not AirPrompter—executes. AirPrompter Connect lets a supported AI host discover and use saved prompts or workflows through an authenticated Model Context Protocol (MCP) connection. MCP is the standard the host uses to request AirPrompter actions; the host still performs the AI generation with the context and capabilities available in its conversation. **The live connector catalog is the authority** Hosts, packages, install links, permissions, and rollout state can change. Use the options currently shown under **Connectors** in AirPrompter. A host named in an old screenshot or article is not proof that the same connection is available now. ![AirPrompter Connect page listing Firefox, Chrome, ChatGPT, and Claude connection options](https://airprompter.com/docs/screenshots/connect/connector-options.webp) Start from Connect and choose the browser or AI host you want to use with AirPrompter.[Open full-size image](https://airprompter.com/docs/screenshots/connect/connector-options.webp) ## Choose Connect or the browser extension | Choose | Best when | Execution behavior | | ------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------- | | [Browser extension](https://airprompter.com/docs/browser-extension) | You work inside a supported browser AI chat and want visible step controls, Send/Copy, and optional Run All. | The extension coordinates the saved sequence beside that browser tab. | | Connect | The AI host supports an AirPrompter connector, plugin, skill, or remote MCP path and should discover a workflow by name. | The host calls AirPrompter tools, receives the saved instruction, and executes it in the host conversation. | The web Library remains the canonical place to inspect and organize the saved system. Use the connected host to discover or run what the connection permits. An eligible OAuth connection may also create or update prompts and workflows when that host exposes the required write action and permission. ## Before you connect You need: - an AirPrompter account containing at least one clearly named prompt or workflow; - access to a host or browser option currently shown on **Connectors**; - permission to add the connector or package in that host; and - approval to let that host use the prompt content and run context involved in your work. Prepare one harmless proof workflow, such as **Meeting follow-up test**, before connecting a host for sensitive work. The proof should contain no customer data, secrets, or private operational details. ## Connect the current host 1. Open [AirPrompter Connect](https://airprompter.com/connect). 2. Review **Available connectors** and select the card for the host or browser you are actually using. 3. Read the description. It identifies whether the action installs an extension, opens a connector authorization flow, or opens a package/skill installation source. 4. Select **Connect**. 5. Complete the destination’s verified install or authorization flow. 6. When AirPrompter sign-in or OAuth authorization appears, sign in directly to AirPrompter and review the requested permissions. 7. Return to the host and confirm that AirPrompter appears among its connected tools or integrations. **Expected result:** the host recognizes AirPrompter without requiring you to paste your AirPrompter password, bearer token, OAuth code, or another secret into a general prompt or configuration field. **Never paste your AirPrompter password into a host** Use the verified install and sign-in flow opened from **Connectors**. If an unrelated page asks for account credentials, stop and return to AirPrompter Connect. ## Understand the current connector cards The catalog can include different connection types: ### Firefox extension or Chrome extension These cards open the official browser-store path. They support browser-side use rather than a general host MCP connection. Follow the [browser extension runbook](https://airprompter.com/docs/browser-extension) after installation. ### ChatGPT connector When available, this card opens ChatGPT’s connector settings and starts an authenticated connection. Complete the AirPrompter authorization shown in that flow, then return to the ChatGPT conversation where you want to use it. ### Claude The current card can point to an AirPrompter plugin or skill package. Follow the instructions for the specific Claude surface you use. Skill guidance and live MCP capability are not the same: the actions available depend on that Claude product, the installed package, and its connection support. ### Gemini The Gemini web app adds AirPrompter as a custom app. In Gemini, open **Settings & help → Connected Apps → Add a custom app**, paste the AirPrompter server URL shown on the Gemini card in Connect, and sign in to AirPrompter when Gemini asks. Gemini keeps the sign-in itself, and the app then also works in Gemini on mobile. Custom apps need a personal Google Account in the US with Keep Activity on. Work and school accounts use Gemini Enterprise, which an administrator configures. ### Grok On grok.com, open **Plugins**, choose **New Connector → Custom**, give it a name, and paste the AirPrompter server URL shown on the Grok card in Connect. Grok opens AirPrompter sign-in in a pop-up and keeps the sign-in itself. In a chat, pick AirPrompter with **@** to use it. ### LM Studio LM Studio runs models on your own computer and connects to AirPrompter as a remote MCP server. Select the button below, or **Connect** on the LM Studio card. [![Add AirPrompter to LM Studio](https://airprompter.com/docs/badges/add-to-lm-studio.svg)](https://lmstudio.ai/install-mcp?name=airprompter\&config=eyJ1cmwiOiJodHRwczovL21jcC5haXJwcm9tcHRlci5jb20vbWNwIn0%3D) 1. Select **Add to LM Studio**. LM Studio opens and asks you to confirm the new server. 2. Turn on **airprompter** under Connected MCP Servers, then sign in to AirPrompter in your browser when LM Studio asks. 3. Ask a model to list your AirPrompter workflows to confirm the connection. The link adds only the server address, `https://mcp.airprompter.com/mcp`. LM Studio keeps the sign-in itself; nothing secret is in the link. ### Other hosts Use a Codex, Cursor, VS Code, automation, inspector, or generic MCP path only when it appears in your current connector experience or current first-party setup instructions. Do not invent a server URL or copy credentials from another host’s configuration. ## Prove the connection before real work Run a read-only discovery check first. In the connected host, ask: ```text Use AirPrompter to list the workflows available to this connection. Do not start one yet. ``` Then ask for one harmless item: ```text Find my AirPrompter workflow named "Meeting follow-up test" and tell me which inputs it requires. Do not start it yet. ``` Check the host’s response: - it identifies AirPrompter as the tool source; - it finds the expected workflow or presents a bounded selection; - it does not expose a workflow from an unrelated account or workspace; - it names required values without inventing them; and - it does not start the workflow before your request. **Expected result:** discovery works with the intended account and scope before any source material is supplied. ### If more than one item matches Do not let the host guess. Ask it to show the matches, then choose the intended workflow by its complete name or identifier shown by the host. ## Run a workflow by name Start with a complete request: ```text Run my AirPrompter workflow named "Meeting follow-up test". Before starting, confirm the matched workflow and ask for every required input. ``` Then: 1. Confirm the intended match. 2. Provide only the requested values that are approved for that host. 3. Let the host request the first workflow instruction from AirPrompter. 4. Review the host’s output before it advances when the host gives you that control. 5. If a result is wrong, stop and correct the source input or responsible prompt. 6. Continue until AirPrompter reports the run is complete or the host reports a missing input, permission, capability, cancellation, or failure. **Expected result:** the host follows the saved AirPrompter order. It does not silently replace the workflow with a generic workflow invented from your request. ### The shortest way to run a skill An AirPrompter skill is a saved workflow, so a few words are enough. You don’t need to name the connector: ```text Run my Monthly Bakery Sales Update skill on ./items-october-2026.csv ``` In Codex with the AirPrompter plugin installed, type `$airprompter` followed by the skill’s name and anything it needs: ```text $airprompter Weekly Meeting Action Items ./notes/team-notes.txt ``` AirPrompter finds the skill by name. If more than one skill matches, it asks which one you mean. If the skill has helper scripts or files, your AI tool downloads them into an `airprompter-files` folder in its working folder and runs them there. ## Know what AirPrompter and the host each do | AirPrompter | Connected host | | -------------------------------------------------------------------- | ----------------------------------------------------------------------------- | | Resolves the saved workflow and ordered prompt steps | Provides the model and conversation environment | | Enforces the connection’s available tools and permissions | Executes returned prompt text | | Maintains workflow-run continuation state when that run path is used | Supplies host-visible files, images, web access, or other native capabilities | | Returns selection, missing-input, capability, and terminal states | Shows results and requests user decisions | This boundary explains why the same workflow can behave differently across hosts. A step that needs web access, an image tool, or a local file can succeed only when the selected host exposes that capability and the necessary source is present. **A connection does not upload every file or conversation** AirPrompter run tools do not automatically read arbitrary host attachments. The host must keep the relevant file or image in its conversation context and apply the returned prompt to it. ## Use connected authoring safely Some eligible OAuth connections can expose actions that create or update prompts and workflows. Before asking the host to save something: 1. State whether you want a Prompt or Workflow. 2. State the intended account or workspace when the host supports more than one scope. 3. Identify values that should remain `{{variables}}` for later runs. 4. Ask the host to summarize the name, description, steps, variables, and destination before saving. 5. Resolve any A/B/C selection instead of accepting a guessed item. 6. Verify the saved result in the AirPrompter Library. Write actions require the appropriate OAuth permission and account access. If the host exposes only read/run tools, reconnect through an eligible authorization flow rather than trying to bypass the boundary. ### API keys follow a narrower credential policy A Personal API key (Pro) can be read-only or carry `prompts.write` for approved Personal run and authoring operations, and works only in your Personal Library. In a Team, keys are organization keys that an organization owner or admin creates and scopes in Administration. Free accounts have no API keys. Do not use a key to bypass a denied Team write or a host connection that is expected to use OAuth. See [API keys and scopes](https://airprompter.com/docs/api-keys). ### Personal prompts remain mutable A connected host can help edit an eligible private personal prompt, but the edit changes that prompt. A run, output, timestamp, or release artifact does not create an immutable personal prompt version. ## Apply Connect to day-to-day work ### Start a known system in the current conversation ```text Find and run my AirPrompter workflow "Weekly operating review" using the updates already attached in this conversation. Ask before advancing if a required input is missing. ``` The host can use its current conversation context, while AirPrompter supplies the saved order and instructions. ### Discover the right system without guessing ```text Search my AirPrompter workflows for customer interview analysis. Show the closest matches and descriptions; do not run one until I choose. ``` This is safer than asking the host to run “my research workflow” when several workflows share similar names. ### Create a reusable system from a repeated task When write actions are available: ```text Help me design a three-step AirPrompter workflow for evidence collection, analysis, and a decision brief. Ask which values change each run, show the planned prompts and handoffs, and wait for my approval before saving. ``` After saving, open AirPrompter and confirm the private Library item, prompt text, variables, and order. ## Give your coding assistant the documentation AI coding assistants such as Cursor and Claude Code work better when they read AirPrompter’s documentation directly instead of guessing from a web page. Every documentation page is also published as plain Markdown, and two files gather it for agents: - `https://airprompter.com/docs/llms.txt` is the short index: what each page covers and where its Markdown lives. Use it when the assistant should look up one topic at a time. - `https://airprompter.com/docs/llms-full.txt` is the whole documentation set in one file. Use it when you want the assistant to have everything in context, for example while you set up an integration. 1. In Cursor, open **Settings → Indexing & Docs → Add Doc** (or type `@Docs` in a chat and choose **Add new doc**) and paste `https://airprompter.com/docs/llms-full.txt`. Cursor indexes the file and you can reference it in any chat with `@` followed by the name you gave it, for example `@AirPrompter`. 2. In Claude Code, paste the same URL into a prompt when you want it read once, or add a line such as `AirPrompter docs: https://airprompter.com/docs/llms-full.txt` to your project’s `CLAUDE.md` so every session starts with it. 3. For any other assistant that accepts a documentation URL, use the full file; if it only accepts short pages, give it the index and let it follow the links. **Expected result:** the assistant answers AirPrompter questions from the current documentation, and when a page changes, the next fetch picks up the change without you editing anything. **The files are generated from the pages you are reading** Both files and every Markdown page are rebuilt with the documentation site, so they are never older than the page in your browser. They contain only public documentation — never your prompts, workflows, or account data. ## Troubleshooting by symptom ### The host cannot find AirPrompter Return to [Connect](https://airprompter.com/connect) and repeat the path for that exact host. Confirm the install or authorization completed in the intended account. Do not paste a token into the chat as a workaround. ### AirPrompter appears, but no workflows are found Confirm the AirPrompter account and scope, verify the workflow is private and present in the web Library, then ask for a list without a search term. Rename overly generic workflows. ### The authorization expired or was revoked Use the reconnect path shown by the current host or AirPrompter connector flow. Complete OAuth again and rerun the read-only discovery proof. ### A write action is missing The host package may be read-only, the OAuth permission may not include the required write scope, the account may not be eligible, or the capability may not be available in that rollout. Use the web app to author, or reconnect only through the verified eligible flow. ### A step says a capability is unavailable Read the named requirement. Move the run to a host that exposes that capability, supply the missing file or value in the current host, or use the returned text manually. Do not claim an image, web search, or file operation occurred when it did not. ### The host selected the wrong workflow Stop the run. Ask for matches, choose the intended workflow explicitly, and start a new run. Do not continue a new task with output from the wrong run. ### The run stops for missing input Provide the named value if it is safe and available. If it is not available, cancel or redesign the workflow; generic filler weakens every later step. ### The run result differs from the browser extension Compare host capabilities, model context, variable values, and source attachments. AirPrompter preserves the saved instruction and order; the execution environment still differs. ## Completion checklist - You used the current AirPrompter connector catalog. - You did not paste a password, token, or OAuth code into a general host field. - Read-only discovery finds the intended account and workflow. - Ambiguous matches require your selection. - You understand which files and capabilities remain host-local. - You know whether the connection can author or only read/run. - You know how to reconnect without bypassing permissions. ## Next step If you want visible step controls beside a browser AI chat, use the [browser extension](https://airprompter.com/docs/browser-extension). For a qualified manual host configuration, use [Direct MCP connections](https://airprompter.com/docs/mcp). If you need to improve the saved sequence itself, return to [Design and run workflows](https://airprompter.com/docs/workflows). --- Canonical: https://airprompter.com/docs/connect # Connect through MCP directly Understand AirPrompter's remote MCP boundary, choose OAuth or an approved headless credential, configure a qualified host, and verify the connection safely. AirPrompter exposes a remote Model Context Protocol (MCP) server so an eligible AI host can discover AirPrompter actions and use saved prompts or workflows. A direct connection is for a host that supports remote Streamable HTTP MCP and AirPrompter’s authentication flow. ![An AI host exchanging workflow steps and results with AirPrompter through a protected connection and continuation loop](https://airprompter.com/docs/illustrations/mcp-secure-bridge.webp) AirPrompter controls the saved sequence; the authenticated host executes each returned instruction and sends the result back before continuing.[Open full-size illustration](https://airprompter.com/docs/illustrations/mcp-secure-bridge.webp) **Direct setup is a qualified path** Use the product-led [Connect](https://airprompter.com/docs/connect) path whenever your host appears there. Generic manual configuration is support-assisted and fallback-only today; a host’s general MCP support does not prove that its AirPrompter OAuth flow, callback, tools, and lifecycle have been certified. ## What the MCP connection does The production MCP server is: ```text https://mcp.airprompter.com/mcp ``` Enter the full address, including `/mcp`, wherever a host asks for the server URL. It is the same address the [Connect](https://airprompter.com/docs/connect) page and the AirPrompter plugins use. The connection uses remote Streamable HTTP. AirPrompter authenticates the caller, exposes the tools allowed for that credential and target, resolves saved prompts or workflows, and maintains continuation state for a workflow run. The host remains responsible for: - the language model and conversation; - executing the prompt text returned by AirPrompter; - host-local files, images, web access, code tools, and other capabilities; - showing selection or missing-input questions; and - returning step output before requesting the next workflow instruction. AirPrompter does not automatically upload every file attached to the host conversation. ## Choose the authentication path | Situation | Credential | Why | | --------------------------------------------------------------------------- | --------------------------------------------------------------- | ------------------------------------------------------------------------------------------------ | | A person is connecting an interactive supported host | OAuth 2.1 with PKCE | The user signs in and reviews `prompts.read` and, when eligible, `prompts.write` | | An approved headless Personal integration cannot complete interactive OAuth | Dedicated Personal API key | Can be read-only or narrowly read/write when the target allows it | | A headless Team integration | Organization API key, created by an organization owner or admin | Its permissions and workspaces are set when it is created; new Team content it saves is reviewed | | OpenClaw or Hermes connection-token flow shown in an authorized preview | Connection token created for that connection | Preview-only until its public install path is released | Never copy an OAuth authorization code, refresh token, API key, or connection token into a general AI prompt. ## Check whether your host is ready Use the current AirPrompter **Connectors** page and its first-party setup instructions. Current documentation posture: - **Codex:** supported through the AirPrompter plugin and MCP connection path. - **ChatGPT:** supported when the AirPrompter connector/install action is available to the account. - **Claude:** availability and setup vary by Claude surface; a skill package does not by itself prove live MCP support. - **Generic MCP host:** qualified for support-assisted manual setup when it supports remote Streamable HTTP, OAuth, and protected-resource metadata. - **Cursor, VS Code/Copilot, and n8n:** do not use as public direct-setup instructions until their customer paths are certified and shown. - **MCP Inspector:** use only for protocol or certification testing, not as a production host. - **OpenClaw and Hermes:** connection-token support is preview/admin-facing until published hub or catalog listings exist. If your host is not shown as supported or qualified, stop at the architecture review rather than placing a live credential into an unverified client. ## Before you configure a direct host Confirm that: 1. the host supports a remote URL, not only a local stdio process; 2. its transport is compatible with Streamable HTTP; 3. it can discover OAuth protected-resource metadata and complete PKCE, or it is an approved headless client; 4. its callback behavior is documented for that exact host surface; 5. the account and target are known; and 6. you have a harmless workflow for discovery and run testing. ## Configure the connection Host field names vary. Map the host’s documented fields to this connection contract: | Host setting | AirPrompter value | | ---------------------- | -------------------------------------------------------------------------------------- | | Server name | A local display name such as `AirPrompter` | | Server URL | `https://mcp.airprompter.com/mcp` | | Transport | Remote Streamable HTTP | | Authentication | OAuth for interactive hosts; approved key/token path only for qualified headless hosts | | Requested OAuth scopes | `prompts.read` and, when the host needs eligible authoring, `prompts.write` | Then: 1. Add the server through the host’s documented MCP settings or first-party AirPrompter install action. 2. Start the connection. 3. Complete AirPrompter sign-in and review the requested scopes in the browser flow. 4. Return to the same host surface. 5. Confirm that AirPrompter tools are listed. 6. Run read-only discovery before supplying private source material. **Expected result:** the host lists AirPrompter as a remote authenticated server and can perform a harmless read without asking you to paste an AirPrompter password or OAuth code. ### Hosts that register as confidential clients Most hosts register with AirPrompter as public OAuth clients, which have no client secret. Some hosts, such as Microsoft 365 Copilot, register as confidential clients instead. AirPrompter supports both kinds, and you don’t need to set anything up for either. The host registers itself through Dynamic Client Registration, using the registration endpoint listed in AirPrompter’s OAuth metadata. For a confidential client: - the host registers with `client_secret_basic` or `client_secret_post` and gets a client secret in the registration response; - the secret is shown only once, and AirPrompter can’t show it again; - the secret doesn’t expire (`client_secret_expires_at` is `0`), and AirPrompter has no rotation endpoint; - the host must send the secret to the token and revocation endpoints, and PKCE is still required; and - refresh tokens work only for the client that received them. Keep the client secret inside the host’s own credential storage. Never paste it into a prompt, a config file you share, or a support message. If you think a client secret has leaked, email with the host name and roughly when it registered. Don’t include the secret. We revoke that client, and the host registers a new one the next time someone connects. ## Prove discovery and continuation First ask: ```text Use AirPrompter to list workflows available to this connection. Do not start one. ``` Then: ```text Find my workflow "Meeting follow-up test". Show the matched workflow and required inputs before starting. ``` Finally, with harmless input: ```text Start "Meeting follow-up test" with the approved sample notes in this conversation. Follow the saved order. Stop if a required input or host capability is missing. ``` Verify that the host resolves ambiguity, executes the returned prompt in the host, supplies the step output to AirPrompter, and asks AirPrompter for the next step until the run reaches a terminal state. **Expected result:** AirPrompter—not an improvised host plan—controls the saved sequence, while the host controls model execution. ## Apply direct MCP to day-to-day work ### Coding-agent workflow Ask a supported coding agent to run a repository review workflow by name. The agent can use its current repository tools; AirPrompter supplies the ordered review, repair, and release-gate instructions. ### Research workflow Use a host with verified web access. If an AirPrompter step requires web research but the host lacks it, the connection should surface the capability gap instead of claiming research occurred. ### Headless Personal process Use a dedicated Personal key only when interactive OAuth is not appropriate and the host path is approved. Give it the narrowest scope, target, and Test/Live content boundary, then follow the [API-key lifecycle](https://airprompter.com/docs/api-keys). ## Manage Collections and Team Playbooks from your agent On a connection to a Team, your agent can organize the Team’s saved work and decide what every member’s agents can use. On a connection to your Personal Library, the two Collection tools organize your own Library: | Ask your agent | Tool | What happens | | ---------------------------------------------------------------------------------- | -------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | “What’s in our Onboarding Collection?” or “Show me the collections in my library.” | `list_collections` | Lists the Collections of a Team workspace, or of your Personal Library, opens one, or finds one by name. In a Team workspace, people who can edit it also see the workflows inside: titles, approval state and version ids, never step text. In your Personal Library you see the titles of your own workflows. | | “Make a Collection for onboarding.” | `create_collection` | Creates the Collection in the Team workspace, or in your Personal Library, or returns the one that already has that name in the same place. If you are signed in with both a Personal Library and a Team and did not say which, your agent asks first. | | “What’s in our Playbooks?” | `list_playbooks` | Lists Playbooks, or one Playbook’s workflows with the approved version each gives members’ agents, any newer approved version, and whether it is ready. | | “Set up a Sales Playbook.” | `create_playbook` | Creates the Playbook, or returns the active one with that name. | | “Move the Support Playbook to the newest approved versions.” | `set_playbook_workflow` | Adds an approved workflow version to a Playbook or moves its entry. Your agent confirms with you first: the change is live for every member’s agents at once. | | “Take the old brief out of the Support Playbook.” | `remove_playbook_workflow` | Removes the workflow from the Playbook after you confirm. The workflow itself is not deleted. | These follow the same permissions as the web app: Viewers can look, Editors and Managers can change, and only approved workflow versions can join a Playbook (approval happens in AirPrompter on the web). A connection to one workspace reaches only that workspace. An organization or workspace API key with **Read & write** access can make these changes too (legacy Team keys act as the person who created them); a read-only key can look but not change. On a Personal Library connection (signed in, or a Personal API key) the two Collection tools work on your own Library, and every answer says which library it is about. Playbooks are a Team feature. Changing a Playbook needs AirPrompter connected to the Team. On a sign-in, changing a Team’s shared Collections, Playbooks, prompts or workflows is done in the Team’s workspace in AirPrompter on the web for now (an organization or workspace API key with **Read & write** access can do it over MCP). `list_playbooks` also answers a signed-in member who names a workspace. ## Use the Community workflows you saved Community workflows you saved to your Personal Library work with your edits applied — your own text for a step, the steps you removed or added, and your order. Over a signed-in connection or a Personal API key, your agent can list, find, read and export them, and run them on a signed-in connection or a Read & write key. Each one stays on the version you saved, even when its author publishes a newer version. Your agent can’t change a saved Community workflow; change it in your Library on AirPrompter. Organization API keys don’t reach your Personal Library, so they never see your saved Community workflows. ## Troubleshooting ### The host reports an unsupported transport The host may support only local stdio MCP. Do not build an undocumented proxy around credentials. Use a supported AirPrompter connector or a host with remote Streamable HTTP support. ### OAuth opens but does not return to the host Confirm that the exact host surface and callback are currently supported. Restart from the current Connect instructions. Do not copy the browser URL, authorization code, or token into the chat. ### The server connects but no tools appear Reconnect, confirm that authentication completed for the intended account, and inspect the current host’s connector support state. A skill instruction file without a live MCP connection cannot expose server tools. ### A write tool is missing or denied The connection may lack `prompts.write`, the host package may not expose authoring, the account may be ineligible, or the target may require Team OAuth. Use the web app or reconnect through an eligible verified OAuth flow. ### A workflow stops for a file or image Keep the attachment in the host conversation and make sure that host exposes the required file/image capability. AirPrompter stores a reference or instruction context for the run; it does not fetch arbitrary host-local bytes. ### A generic host works inconsistently Return to a supported connector for production work. Record the host version, transport, authentication path, sanitized error, and failed lifecycle step for support—never the credential. ## Completion checklist - The exact host path is supported or explicitly qualified. - The server URL is `https://mcp.airprompter.com/mcp` and the transport is remote Streamable HTTP. - Interactive access uses OAuth and reviewed scopes. - Read-only discovery works before private inputs are provided. - The host executes returned prompts and AirPrompter controls continuation. - Missing capabilities and inputs stop safely. - No password, API key, token, or OAuth code appears in prompts, screenshots, or logs. ## Next steps Use the product-led [Connect guide](https://airprompter.com/docs/connect) for a supported host, or review [API keys and scopes](https://airprompter.com/docs/api-keys) for an approved headless connection. --- Canonical: https://airprompter.com/docs/mcp # Choose the AirPrompter API surface Decide between the customer REST API, MCP, Connect, and the browser extension, then make a verified request without assuming unsupported endpoints. AirPrompter has more than one integration surface because reading account metadata, running a saved workflow, and controlling a browser chat are different jobs. Start with the outcome you need, then choose the smallest surface that supports it. **REST reads are available; host actions vary** `GET /v1/me` and `GET /v1/entitlements` are current customer REST API routes. MCP and Connect actions can vary by host, OAuth scopes, account access, and rollout, which is why this mixed decision page is marked **Availability varies**. ![One saved-system source branching into a short two-card API path and a longer prompt-and-workflow connection path](https://airprompter.com/docs/illustrations/api-access-map.webp) Choose the smallest integration surface that supports the job: bounded REST reads or richer MCP prompt and workflow actions.[Open full-size illustration](https://airprompter.com/docs/illustrations/api-access-map.webp) ## Choose the right surface | You need to | Use | Current boundary | | --------------------------------------------------------------- | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------- | | Read the identity associated with a customer API key | REST API | `GET /v1/me` | | Read the key owner’s entitlement projection | REST API | `GET /v1/entitlements` | | Discover prompts or workflows and run an ordered workflow | [MCP](https://airprompter.com/docs/mcp) or [Connect](https://airprompter.com/docs/connect) | Tools exposed to the authenticated connection | | Create or update prompts and workflows from an eligible AI host | OAuth-based MCP connection | Requires the host action, `prompts.write`, and account access | | Run a saved sequence beside a supported browser AI chat | [Browser extension](https://airprompter.com/docs/browser-extension) | Uses the extension’s visible Send, Copy, and Run All controls | | Manage API keys | AirPrompter **Account → Developer** | Authenticated web-app action, not a customer `/v1` endpoint | **The REST API is intentionally small today** The current REST API does not provide prompt or workflow CRUD. Do not invent an endpoint from an internal web-app route or assume that an MCP tool also exists as REST. ## Before you make a REST request You need: - an AirPrompter account with access to [**Account → Developer**](https://airprompter.com/account/developer); - a newly created API key stored in a secure secret manager or environment variable; - the target and content environment appropriate for the job; and - a client that can send an HTTPS request with an authorization header. Read [Create and protect API keys](https://airprompter.com/docs/api-keys) before creating a production credential. ## Make the smallest proof request 1. Create a read-only key for the intended target in **Account → Developer**. 2. Save the complete show-once value in a protected runtime secret. 3. Export that value to the client process without printing it. 4. Call `GET /v1/me` with a Bearer authorization header. 5. Compare the returned identity with the account the job is expected to use. 6. Stop and revoke the key if the identity is unexpected. The production base URL is: ```text https://api.airprompter.com ``` Store the complete secret outside source code: ```sh export AIRPROMPTER_API_KEY="your-key-from-the-show-once-dialog" ``` Then request the key-associated identity: ```sh curl --fail-with-body \ --header "Authorization: Bearer $AIRPROMPTER_API_KEY" \ https://api.airprompter.com/v1/me ``` AirPrompter also accepts the customer credential in `X-Api-Key`, but a Bearer header is the clearest default for a new integration. Never include the real value in a shell-history screenshot, issue, chat message, or documentation example. **Expected result:** the API returns JSON for the identity resolved from that active key. It must not return another account’s identity. The response follows this client-safe shape; the values below are deliberately redacted examples: ```json { "actor": { "userId": "redacted-user-id", "apiKeyId": "redacted-api-key-id" }, "personal": { "accountMode": "individual", "libraryId": "redacted-library-id" }, "workspaces": [ { "access": "assigned", "workspaceId": "redacted-workspace-id", "organizationId": "redacted-organization-id", "displayName": "Example workspace", "roleId": "redacted-role-id", "membershipStatus": "active" }, { "access": "organization", "workspaceId": "redacted-workspace-id", "organizationId": "redacted-organization-id", "displayName": "Another workspace" } ] } ``` `workspaces` lists the workspaces this key can see. A Personal key lists none, an organization key lists that organization’s, and a workspace key lists that one workspace. `access` says how each one is reachable: - `assigned`: you have a role in the workspace. The row carries `roleId` and `membershipStatus` (`active` or `removed`). - `organization`: you have no role there, but your organization lets you read it. The row has no `roleId` or `membershipStatus`. `displayName` is optional. Do not treat a returned workspace row as permission to bypass the operation’s normal authorization checks. ## Read the entitlement projection After identity succeeds, request the current entitlement projection: ```sh curl --fail-with-body \ --header "Authorization: Bearer $AIRPROMPTER_API_KEY" \ https://api.airprompter.com/v1/entitlements ``` **Expected result:** the API returns the entitlement view for the same key owner and target context. Use the top-level fields as follows: | Field | Meaning | | ------------------------------------------------------ | ------------------------------------------------------------------------------- | | `schemaVersion` | Version of the public entitlement response shape | | `actor` | Redacted-safe identifiers for the resolved user and API key | | `tier`, `effectiveTier`, subscription and trial fields | Current plan/subscription projection | | `features` | Named service-availability booleans | | `access` | Backend-produced access projection; do not reconstruct it from tier names | | `accountAccess` | Versioned Personal/Workspace context summaries, source, update time, and counts | **Entitlements are not workspace authorization** An entitlement describes plan or service availability. It does not independently grant access to an organization, workspace, prompt, workflow, or Playbook. ## Use MCP for prompt and workflow work Choose MCP when your program is an AI host that should discover AirPrompter tools, retrieve saved instructions, or continue a workflow. The production MCP endpoint is: ```text https://mcp.airprompter.com/mcp ``` Interactive host connections normally use OAuth so the user can review `prompts.read` and, when supported, `prompts.write`. The host remains the model runtime: AirPrompter supplies saved instructions and run state; the host executes the work with its available conversation, files, web access, and native tools. Use [Connect an AI host](https://airprompter.com/docs/connect) for supported product-led installation. Use [Direct MCP connections](https://airprompter.com/docs/mcp) only when the current host is documented or approved for manual configuration. ## Apply the API to day-to-day work ### Verify a headless job before it starts Have the job call `/v1/me` at startup and compare the returned identity with the expected non-secret account reference in your deployment configuration. Stop the job if the credential resolves to the wrong owner or fails authentication. ### Gate an integration’s optional behavior Read `/v1/entitlements` when your integration needs to display or skip a plan-dependent AirPrompter capability. Keep resource authorization separate; do not infer workspace membership from that response. ### Let an agent run a saved process Do not poll REST for a fictional workflow endpoint. Connect the agent through MCP, ask it to find the workflow by name, resolve ambiguous matches, provide required inputs, and continue the saved sequence. ## Troubleshooting ### The API returns `401 Unauthorized` Confirm that the entire key was copied from the show-once dialog, the key is active and unexpired, the header starts with `Bearer `, and no quote or newline became part of the value. If the secret was lost or exposed, revoke it and create a replacement. ### A REST route returns `404` Check the method and exact path. The currently documented customer routes are only `GET /v1/me` and `GET /v1/entitlements`. An internal `/api-keys` route, MCP tool name, or web-app path is not a public `/v1` route. ### You need prompt or workflow data Use the [MCP decision and setup guide](https://airprompter.com/docs/mcp). Do not guess a REST endpoint or scrape the authenticated web application. ### A Team write is denied Team keys are organization keys: an organization owner or admin creates them in **Manage → Administration → API keys** and chooses what each may do. If a key’s Team write is denied, ask an owner or admin to check its permissions and workspaces, or use a signed-in (OAuth) MCP connection. A Personal key never writes to a Team workspace. ## Completion checklist - You chose REST only for a currently documented REST outcome. - The credential is stored outside source control and logs. - `/v1/me` resolves the intended key owner. - `/v1/entitlements` is treated as a projection, not resource authority. - Prompt and workflow operations use MCP rather than invented REST paths. - Your integration stops safely on an unexpected identity or authentication failure. ## Next steps Create a least-privilege credential with [API keys and scopes](https://airprompter.com/docs/api-keys), or configure an eligible host with [Direct MCP connections](https://airprompter.com/docs/mcp). --- Canonical: https://airprompter.com/docs/api # Create and protect API keys Choose the correct target, content environment, and scope; store the secret once; test least privilege; and rotate or revoke it safely. An AirPrompter API key combines three decisions: **where** it works, **which content maturity** it can read, and **what actions** it can perform. Make those choices for one integration instead of reusing a broad credential everywhere. ## Who can create which key | Account | API keys | | --------------------------- | -------------------------------------------------------------------------------------------------------------- | | Free | None. Upgrade to Pro for Personal keys. | | Pro (including a Pro trial) | Personal keys for your Personal Library, in **Account → Developer**. | | Team | Organization keys only. An organization owner or admin creates them in **Manage → Administration → API keys**. | A Personal key never reaches a Team workspace. An organization key belongs to the organization, not to the person who made it, and reaches every workspace in it (Private ones and ones created later included) unless it is tied to one workspace. If a Pro plan ends, its Personal keys stop working until the plan is active again; they are not deleted. While you hold any, **Account → Developer** still lists them, read-only, so you can revoke them. ![A protected credential moving through narrow scope, approved use, rotation, and revocation stages](https://airprompter.com/docs/illustrations/api-key-lifecycle.webp) Create a credential once, narrow where it works, use it for one integration, then rotate and revoke it deliberately.[Open full-size illustration](https://airprompter.com/docs/illustrations/api-key-lifecycle.webp) **The secret is shown once** AirPrompter persists a hash and safe metadata—not the plaintext secret. Copy the new value directly into its destination secret manager. If you lose it, revoke the key and create another one. ## Understand the three choices ### Target: where the key works A Personal key works only in your Personal Library. The target is not a label: it is the resource boundary carried by the credential. An older key without an explicit target remains Personal; it does not inherit Team access. Over MCP, Community workflows you saved to your Personal Library count as your own Library content, edits included, with Test and Live keys alike. A Read only key can read and export them; running them needs Read & write. A step you added from one of your own prompts follows that prompt’s Test or Live rule. Organization keys never reach them. Team keys are organization keys, set up by an organization owner or admin in **Manage → Administration → API keys**, where they choose which workspaces the key reaches and what it may do. Team keys that people created on the Developer page before organization keys existed keep working until they move over; the person who made one can still see and revoke it in **Account → Developer**, but no new one can be created there. ### Content: test or live | Choice | Content maturity | | ------ | --------------------------------- | | Test | Includes authorized draft content | | Live | Published content only | `ap_test_` and `ap_live_` describe the content maturity selected for the key. They do not identify whether AirPrompter itself is deployed in a development or production AWS environment. ### Access: read or write - `prompts.read` lets a permitted client browse the AirPrompter resources and metadata available to its target. - `prompts.write` includes read and lets the key run and advance workflows and save prompts and workflows. Choose **Read only** unless the integration has a specific, reviewed write job. ## Before you create a key Decide: 1. the one service, script, or agent that will use it; 2. the narrowest target that service needs; 3. whether draft content is allowed; 4. whether the service truly needs to run workflows or change prompts and workflows; 5. where the secret will be stored; and 6. who will rotate or revoke it when the integration changes. Do not create a key merely to work around a failed OAuth connection or a denied Team write. ## Create the key 1. Sign in to AirPrompter. 2. Open [**Account → Developer**](https://airprompter.com/account/developer). It is shown on a Pro plan. 3. Confirm that the page heading is **Developer**. 4. In **API keys**, select **Create API key**. 5. Confirm the target is your **Personal Library**. 6. Choose **Test** for authorized draft content or **Live** for published content only. 7. Choose **Read only** or **Read & write**. 8. Create the key. 9. Copy the complete secret from the show-once dialog directly into the intended secret manager or protected environment setting. 10. Close the dialog only after the destination has saved the value. **Expected result:** the key appears in **Active keys** with a non-secret display prefix, target, environment, scopes, created date, and status. The full secret cannot be reopened. ## Test least privilege For REST, begin with the identity request from [Choose the AirPrompter API surface](https://airprompter.com/docs/api). For an MCP-compatible headless client, begin with a read-only list or find action against harmless staged data. Verify: - the key resolves the intended owner and target; - a Test key can read only authorized draft content; - a Live key does not expose drafts; - a read-only key cannot perform a write operation; and - a Personal key cannot read or save in a Team workspace. **Expected result:** the intended read succeeds and an action outside the selected boundary fails closed. ## Store and operate the key safely - Put the secret in a secret manager or protected runtime environment variable. - Keep it out of repository files, screenshots, browser bookmarks, ticket text, chat messages, analytics, and application logs. - Send it only to the AirPrompter API or the approved AirPrompter MCP connection endpoint. - Use a separate key for each integration and environment so one credential can be revoked without stopping unrelated work. - Review **Last used** and status in the Developer panel during normal access reviews. - Remove the old secret from its runtime after rotation. Showing a display prefix in the AirPrompter UI helps identify a key; it is not sufficient to authenticate a request. ## Rotate a key without losing control 1. Create a replacement with the same narrow target, content environment, and required scopes. 2. Store the new secret in the integration’s protected configuration. 3. Run the harmless identity or discovery proof. 4. Switch the integration to the replacement. 5. Confirm successful use from the new key’s metadata or the integration’s sanitized health check. 6. Revoke the old key. 7. Remove the old value from every runtime and secret store that held it. **Expected result:** the integration works with the replacement and the old key appears inactive and can no longer authenticate. ## Revoke a key 1. Open **Account → Developer**. 2. Find the active key by target, display prefix, environment, and creation date. 3. Select **Revoke** and confirm the intended key. 4. Stop or update the integration that used it. 5. Test that the old value receives an authorization failure. Revoked and expired credentials remain available under **Show inactive keys** for history, but cannot be used. ## Apply keys to day-to-day work ### Read-only account health check Give a monitoring job a dedicated read-only Live Personal key. Let it call `/v1/me` and `/v1/entitlements`; do not reuse the credential in an authoring agent. ### Personal workflow automation If an approved Personal headless workflow needs run/write operations, create a dedicated Personal read/write key, prove the exact actions, and keep it separate from human OAuth connections. ### Team reporting and automation Ask an organization owner or admin for an organization key with only the permissions the job needs, tied to one workspace when the job lives in one. New Team content a key saves still goes through review. ## Troubleshooting ### There is no Developer page, or Create is disabled Personal keys need a Pro plan (a Pro trial counts). On a Free plan there are no API keys. A Team-only account has no Personal Library: ask an organization owner or admin for an organization key. ### A previously working Personal key returns `403` The response says `personal_key_requires_pro`: the key’s owner is not on Pro. The key starts working again when the Pro plan is active; nothing was deleted. ### An organization key or Team key returns `403` with `organization_locked` The organization’s account is not active, so all of its API keys are off: organization keys, and older keys a person made for a Team workspace. Reads stop too. The response is a `403` whose `details.code` is `organization_locked`. Its `details.cause` is `free_account_locked` when a free account ended without payment, or `inactive_team_billing` when the Team plan is not paid. When it happens: - A payment is still pending (the card was declined and the payment is being retried): keys keep working for 7 days from the start of the unpaid period, then stop. A free account’s keys work until the end of its 7-day payment grace. - The plan was canceled, or a paid period ended more than a day ago without renewing: keys stop. - Billing that can’t be read, or a problem on our side, never stops your keys. Where you see it: `GET /v1/me`, `GET /v1/entitlements`, `GET /v1/prompts/{promptId}/resolve` and `POST /v1/runs/report` answer the `403`, and every AirPrompter tool in a connected AI tool answers `organization_locked`. `diagnose_connection` still answers and tells you why. A skill install link an organization key made stops redeeming. Personal (Pro) keys are not affected. To restore: an organization owner or billing administrator pays or restores the plan in Manage › Billing. Keys start working again on their own; nothing is deleted, and you don’t need new keys. While the organization is locked, owners and admins can still see and revoke its keys in Manage › Administration › API keys. ### The secret was not saved Do not try to reconstruct it from the display prefix. Revoke that key and create a replacement. ### A previously working key returns `401` Check whether it was revoked or expired, whether the entire secret is still present in runtime configuration, and whether the header format is correct. Rotate instead of logging the secret for diagnosis. ### The wrong content is visible Stop the integration. Verify the selected target and Test/Live choice, revoke the mis-scoped key, and create a correctly bounded replacement. ## Completion checklist - The key belongs to one named integration. - Its target is the narrowest resource boundary that works. - Test or Live matches the content maturity the job may read. - Read/write is used only for a reviewed job that must run or save. - The complete secret exists only in approved protected storage. - A permitted action succeeds and an out-of-scope action fails. - Rotation and revocation have a named owner. ## Next steps Use the key with the two current [REST API routes](https://airprompter.com/docs/api), or review [Direct MCP connections](https://airprompter.com/docs/mcp) for an approved headless host. --- Canonical: https://airprompter.com/docs/api-keys # Integrate Team Agents with your own systems Understand what an integration is, which public library does what, the three ways to run approved prompts from your own runtime, and how to pick one. A Team Agent is the bridge between prompts your team approved in AirPrompter and the application that actually runs them. Agents run only on your systems. AirPrompter keeps the history, the reviews, and the decision about what an environment _may_ run. Your system pulls a signed release, verifies it, keeps a local copy, calls your own model with your own keys, and reports content-free counters back. Nothing in AirPrompter opens a connection to you, reads your end users’ text, or makes a release live on a host you have locked. **What travels, and what never does** **Out to you:** a signed release (prompt text, the pinned model, inference settings, rollout arms, and a lease). **Back to AirPrompter:** one row per minute per prompt with counts, token totals, a latency histogram, error classes, and declared feedback signals. The row shape has no field for prompt text, model output, or an end-user identifier, so those cannot leave your host by accident. ## What an integration is An integration is a runtime you own that does four things: 1. **Pulls** the release promoted to one environment (`dev`, `staging`, or `prod`) using an Agent key, or receives that release through a store you control. 2. **Verifies** it against a root public key you pinned when you set the runtime up, then keeps it encrypted on disk so a restart, or a network outage, keeps serving the last good release. 3. **Renders** a prompt by its key in code (the tag) with your variables and calls the model your release pinned, with your provider credentials. 4. **Reports** content-free measurements, and, optionally, feedback signals tied to a run reference. AirPrompter never sits on your request path. `render()` is a local, in-memory operation; with the network gone, the last verified release keeps serving, and keeps serving if the lease lapses (health reports `lease_expired`). ## The library map Every public package lives in the open-source `airprompter/airprompter-agent-sdk` repository (BSD-3-Clause). Install what you use; the packages share one version and one protocol version. | You need to | TypeScript (npm) | Python | Notes | | ------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | | Run prompts in a long-lived process with one call | `@airprompter/agent-sdk` (`AirPrompterAgent`) | `airprompter-agent` (`AirPrompterAgent`) | The facade; re-exports everything below. Start here. | | Verify manifests, open a bundle, render a template, with no I/O | `@airprompter/agent-core` | `airprompter-agent-core` | Pure protocol code; the CI test kit lives under its `testing` entry point. | | Pull and verify releases in a job, or hold them in the encrypted store | `@airprompter/agent-sync` (`pullBundle`, `SlotStore`) | `airprompter-agent-sync` (`pull_bundle`) | The fleet puller uses this. | | Render and attribute over a release you already hold | `@airprompter/agent-runtime` (`ReleaseResolver`) | `airprompter-agent-runtime` (`ReleaseResolver`) | No store, no network of its own. | | Put the approved prompt, model and settings into your provider calls | `@airprompter/agent-sdk/frameworks/openai`, `/anthropic`, `/ai-sdk` (`instrument`, `airprompterMiddleware`) | `airprompter_agent.frameworks.openai`, `.anthropic` (`instrument`), `.litellm` (`litellm_params`, `AirPrompterLiteLLMCallback`), `.contract` (`measure_call`) | Adapters since 1.0.0-rc.5; they replace `ap.wrap`. The framework stays your dependency. | | Write the content-free spool yourself, or ship it | `@airprompter/agent-telemetry` (`SpoolWriter`, `SpoolUploader`) | `airprompter-agent-telemetry` | Any process, in any language, can write the spool format. | | Send the counters to your OpenTelemetry collector instead of AirPrompter | `@airprompter/otel-bridge` (`otlpUploadSink`) | `airprompter_agent_telemetry.otel` (`OtlpUploadSink`) | Optional; no Agent key needed on that path. | | Operate hosts from a shell or a service manager | `airprompter` CLI and `airprompterd` | the same binaries | Signed single-file executables; Python users never install Node. | Current published version of the facade: `@airprompter/agent-sdk` **1.0.0-rc.5** on npm and `airprompter-agent` **1.0.0rc5** on PyPI, speaking protocol **4.0.0**; each is one install that carries everything above it in this table. Pin it exactly: an unpinned install takes an older line. See [TypeScript](https://airprompter.com/docs/integrations/typescript) and [Python](https://airprompter.com/docs/integrations/python). ## The three shapes [**Resident SDK**One process holds an Agent key, pulls on a timer, renders locally, and uploads its own counters.](https://airprompter.com/docs/integrations/typescript)[**Fleet with your own database**One puller holds the key and writes sealed release rows; every runtime boots from the newest row with only a distribution key.](https://airprompter.com/docs/integrations/fleet)[**Offline and air-gapped**Carry a signed update file across; apply it with the CLI; carry the telemetry file back.](https://airprompter.com/docs/integrations/cli) ### 1. Resident SDK The default. `AirPrompterAgent.start(...)` reads the local store before any network call, syncs in the background (checking a few hundred bytes at a CDN edge first, so idle instances cost almost nothing), and serves every render from memory. Available in [TypeScript](https://airprompter.com/docs/integrations/typescript) and [Python](https://airprompter.com/docs/integrations/python). A serverless variant (`on_invoke` sync mode) syncs around each invocation and flushes its counters before the handler returns. ### 2. Fleet pattern with your own database When you would rather not put an Agent key on every host, one **puller** job holds it. It pulls, verifies, seals the release to a distribution key you generated, and writes a row per generation into your database (SQLite, Postgres, DynamoDB; the shape is the point, not the engine). Every **runtime** holds only the distribution private key, boots from the newest row, and hands a newer row to `applyBundle()`. Details in [The fleet pattern](https://airprompter.com/docs/integrations/fleet). ### 3. Offline and air-gapped For hosts with no route to AirPrompter, the environment’s Settings offers **Download update file**: the promoted release sealed to your registered distribution key. `airprompter verify` and `airprompter apply` run the same verification chain a runtime runs; `airprompter export-telemetry` packs the counters into one file to carry back. Details in [The CLI and the daemon](https://airprompter.com/docs/integrations/cli). ## How to pick | Situation | Shape | Why | | --------------------------------------------------------------------------------- | ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ | | One service, or a few, each able to reach AirPrompter over outbound HTTPS | Resident SDK | Least moving parts; the SDK owns sync, store, upload, and health. | | Many hosts, or a policy that keeps Agent keys off application hosts | Fleet pattern | One key in one job; runtimes read rows and hold only a distribution key. | | Several processes on one host that should share one uploader and one spool budget | Resident SDK beside `airprompterd` | Each process still syncs its own release; they find `daemon.json`, write into its folder, and only the daemon needs a key to upload. | | Hosts that never reach the internet | Offline | A file in, a file out; the verification chain is identical. | | Prompts already instrumented by your own code, in any language | Write the spool directly | The spool format is a published contract that `airprompterd` uploads. | You can mix shapes per environment: `dev` on a resident SDK against a workstation, `prod` on the fleet pattern with change control. The prompt’s key in code never changes between them. ## Before you integrate You need: - a workspace with **Team Agents** and at least one agent whose board has a prompt promoted to the environment you will run; - the agent’s **organization id** and **agent id** (shown on the agent’s Settings tab); - an **Agent key** for that environment from the agent’s **Settings → Keys**, stored in a secret manager and exposed to the runtime as an environment variable (`AIRPROMPTER_AGENT_KEY`); it is never passed on a command line and never printed; - AirPrompter’s **production root key**, copied into your source. It is not shown in the console: it is published as key id `044af6e83353a2ea3758cc3feb3b1b7031c82bda5d6cd9287ba7730363e11793` in the root document at `https://api.airprompter.com/roots/prod/root.json`, in full in the [TypeScript](https://airprompter.com/docs/integrations/typescript#the-root) and [Python](https://airprompter.com/docs/integrations/python#the-root) quick starts, and as `HOSTED_ROOTS` in the SDK. From SDK 1.0.0-rc.5 an agent pinned to it reads that document by itself and uses its signing keys only if they verify against the pin; and - a provider credential for the model your release pins, handled by your own secret management. An Agent key is read-only for governance: it can fetch its own agent’s release for its own environment and write telemetry under its own prefix. It cannot seal, promote, unlock, or countersign anything. **Keys travel by environment variables only** Every sample in this section reads the Agent key from the process environment. Do not paste a key into source control, a shell history, a container image, a log line, or a support ticket. Rotate in the console with overlap: mint the second key, roll your fleet, revoke the first. ## Make the smallest proof 1. Promote one prompt to `dev` from the agent’s board. 2. Mint a `dev` Agent key and export it as `AIRPROMPTER_AGENT_KEY` in a terminal you will close afterwards. 3. Run the TypeScript or Python quick start against `dev` with a fresh state directory. 4. Render the prompt once and print only its `versionId`, `arm`, and `model`, never its text. 5. Open the agent’s **Fleet** tab and confirm your instance appears with the generation you just served. **Expected result:** the runtime reports the promoted generation, the Fleet tab shows one instance on it, and the prompt renders with the release’s pinned model. From here, the same code serves your real work day-to-day: change the prompt in AirPrompter, promote, and watch the generation move without a deploy. ## Troubleshooting ### `start()` fails with `no_verified_release` The message names the cause. A 404 means no release is promoted to that environment yet; promote one from the board. A 401 is the key; a 403 carries the server’s code (commonly a key bound to another agent or environment). A transport failure carries the base URL it tried. ### The runtime serves, but the Fleet tab shows nothing Heartbeats go out every five minutes by default (`heartbeatSeconds`). Check `ap.status().heartbeat.lastRefusal` for a refused heartbeat; a refusal is logged as `heartbeat_refused` with the server’s message. ### Renders refuse with `disabled` Someone froze the environment, the agent, or a slot from the console. The runtime honours a freeze from any manifest whose signature verifies, even one left staged. Lift the freeze; the next sync clears it. ## Completion checklist - You know which of the three shapes each environment will use. - The Agent key reaches the runtime only through the environment. - The root public key is pinned in your project, not fetched at runtime from an unverified place. - Your runtime appears on the Fleet tab on the promoted generation. - Nothing you print or log is prompt text or model output. ## Next steps Build the resident shape in [TypeScript](https://airprompter.com/docs/integrations/typescript) or [Python](https://airprompter.com/docs/integrations/python), or plan a fleet with [your own release store](https://airprompter.com/docs/integrations/fleet). To understand what leaves your host, read [Telemetry](https://airprompter.com/docs/integrations/telemetry) first. --- Canonical: https://airprompter.com/docs/integrations # Run approved prompts from Node and TypeScript Install the Agent SDK, start a resident runtime pinned to AirPrompter's root, put the approved prompt, model and settings into your OpenAI, Anthropic or AI SDK calls with an adapter, and expose health. `@airprompter/agent-sdk` is the one-install facade for Node 20 or later (ESM and CommonJS, no runtime dependency beyond `node:crypto`). It pulls signed releases, keeps them in an encrypted restart-safe store, renders with trust-aware variables, and writes content-free counters to a local spool that it uploads itself. This page builds the resident shape the way the reference application does. ## Before you start You need: - Node 20 or later; - the agent’s organization id, agent id, and target environment; - an Agent key for that environment in `AIRPROMPTER_AGENT_KEY`; - AirPrompter’s production root key, which you copy into your source from the snippet below (nothing to download; see [The root](#the-root)); and - your provider client (`openai`, `@anthropic-ai/sdk`, or the Vercel AI SDK `ai` with a provider package such as `@ai-sdk/openai`) with its own credential. Names such as `customerId`, `ticketText`, `intake` and `saveTicketNote` in the samples stand for your own code. Install the facade: ```sh npm install --save-exact @airprompter/agent-sdk@1.0.0-rc.5 ``` Pin the version exactly. An unpinned install takes npm’s `latest` tag, an older line with none of the adapters on this page, and a `^` range also matches later candidates, which may still change before 1.0.0. 1.0.0-rc.5 speaks protocol 4.0.0. The provider packages are optional peers: nothing in the SDK imports them. ## Start a resident runtime Read configuration from the environment and keep the key out of every log line. The reference application’s `config.mjs` loads a `.env` file and refuses to start without the key, without ever printing it. ```ts import { AirPrompterAgent } from "@airprompter/agent-sdk"; const ap = await AirPrompterAgent.start({ organizationId: process.env.AIRPROMPTER_ORG_ID!, agentId: process.env.AIRPROMPTER_AGENT_ID!, target: "prod", // this app's environment: dev | staging | prod apiKey: process.env.AIRPROMPTER_AGENT_KEY, // omit to run fully offline from the store stateDir: "/var/lib/acme-support-bot", // the encrypted store and the spool live here // AirPrompter's production root key. The signing keys under it are read from // https://api.airprompter.com/roots/prod/root.json, and used only if they verify against this key. root: { pinned: { kty: "EC", crv: "P-256", x: "hYhEFO-xyNoWyt5x0BgshEmNXPN1_mzDLISlT4nTDzE", y: "OTbj5sdj8qKiIPzCsrdD297_vlNqahPTZWGgoa9cOtE" } }, sync: { mode: "resident", pollSeconds: 30 }, models: ["gpt-5", "claude-sonnet-5"], // what this process can call, as the provider names them heartbeatSeconds: 300, logger: (event) => { if (event.event === "heartbeat") return; // the routine one; keep the rest console.log(JSON.stringify(event)); // events carry ids, reasons, and counts, never prompt text }, }); ``` What `start()` does, in order: reads the store and verifies the active slot before any network call; falls back to the other slot, then to a vendored bundle if you passed one; and only with nothing verified runs one synchronous sync. If that fails too it throws `AgentStartError` with `code: "no_verified_release"` and a message naming the cause. Serving an unverified release is never an option. `models` matters: a release that pins a slot to a model no instance declares is refused when it is sealed, so declare what you can really call. The examples below assume two prompts: `support.triage`, pinned to `gpt-5` and called through OpenAI or the AI SDK, and `support.summary`, pinned to `claude-sonnet-5` and called through Anthropic. A call has to go to the model its prompt’s release pins. ### The root `root.pinned` is the trust anchor: a release is served only if it verifies under that key. The key alone does not name the signing keys under it, so the agent also reads the root document, and for AirPrompter’s own roots it knows where: | AirPrompter deployment | Root key id | Root document | | -------------------------------------------------- | ------------------------------------------------------------------ | -------------------------------------------------- | | Production, the public service | `044af6e83353a2ea3758cc3feb3b1b7031c82bda5d6cd9287ba7730363e11793` | `https://api.airprompter.com/roots/prod/root.json` | | Dev (`root: { pinned, hostedEnvironment: "dev" }`) | `86267aa3dc49005a0c1474d5c9c06bd7e1d0e835da715a864c1eca706545df91` | `https://api.airprompter.dev/roots/dev/root.json` | The document is verified against your pin before any key in it is used, so fetching it changes where the keys come from, never what is trusted. `HOSTED_ROOTS` in `@airprompter/agent-sdk/core` holds the same keys if you want to compare. `hostedEnvironment` names AirPrompter’s deployment, never your app’s `target`: an app whose target is `dev` still talks to production and keeps the default. Any other root, such as the local registry `airprompter dev` prints or your own service, has no default. Give its document’s address: ```ts sync: { mode: "resident", pollSeconds: 30, rootUrl: "https:///roots//root.json" }, ``` A runtime that would sync without one fails at `start()` with `AgentStartError` (`invalid_options`) naming that line. With a vendored bundle or a datastore it starts and logs `root_url_missing`, since only the keys those carry can verify. A runtime that never syncs (no `apiKey`, or `sync.mode: "offline"`) needs no root URL. **Changed in 1.0.0-rc.5** Before rc.5 the agent read the root document only when you set `sync.rootUrl`. An agent started with `root: { pinned }` alone, as this page used to show, never learned the signing keys, refused every release as `unknown_signing_key` and served your own prompt for good. From rc.5 a pin on one of AirPrompter’s roots finds its document by itself (logged `root_url_default`), and any other pin without `rootUrl` fails at start instead of quietly serving your own prompt. On an earlier candidate, add `sync.rootUrl` with the production address above, or upgrade. **Expected result:** `ap.status().generation` is the promoted generation and `ap.status().applyState` is `active`. Print `ap.status()` at start the way the reference app does; it contains ids, timestamps, and counts only. ## Call your model through an adapter An adapter puts the approved prompt, its model and its sealed settings into your provider call, and measures the call into the run. For a direct client it is `instrument()`: 1. Instrument your provider client once at start, bound to the prompt’s key in code (its slot). 2. Handle each request inside `ap.run(...)`, with the variables the prompt declares; pass `subject` when a rollout should be sticky per customer. 3. Call the client as you already do. The approved text goes in the system position, on the release’s model and settings. 4. Store `run.runRef` beside your own record so you can file feedback later. ```ts import OpenAI from "openai"; import { instrument } from "@airprompter/agent-sdk/frameworks/openai"; const openai = instrument(new OpenAI(), ap, { slot: "support.triage" }); // once, at start const { completion, runRef } = await ap.run( { subject: customerId, variables: { team: "Billing", ticket: ticketText } }, // ticket is declared end_user: fenced as … async (run) => { const completion = await openai.chat.completions.create({ model: "gpt-5", // support.triage's release pins gpt-5; another model declines the slot (below) messages: [{ role: "user", content: ticketText }], }); return { completion, runRef: run.runRef }; // one reference for the whole request }, ); await saveTicketNote({ runRef }); ``` `@airprompter/agent-sdk/frameworks/anthropic` has the same `instrument()` for `@anthropic-ai/sdk`. Neither subpath imports the provider package; it stays your dependency. What the adapter does with each call: - **The approved text goes in the system position.** Chat Completions: a leading `system` or `developer` message is replaced, or one is prepended. Responses: `instructions`. Messages: `system`, replaced whole, so your own `system` blocks and their `cache_control` do not go out. Your request object is never mutated. - **The release’s model wins, or the slot declines.** A call that names the release’s model, or none, runs on it. A call that names another model, such as an Azure deployment or a gateway alias, needs `modelFor` in the `instrument()` options; without one the slot declines for the run (`model_unresolved`, logged once, one error row against that version) and the call goes out exactly as you wrote it. Approved text never runs on a model the release did not pin. - **When nothing can be served,** your own prompt and model run, untouched, and nothing is measured: nothing promoted, a staged release waiting for an unlock, a disable, or a slot that is not in the release. - **One request is one run.** Inside `ap.run` every call joins that run and `ap.run` ends it; with no run open, each call is a one-call run. Consume a stream inside `ap.run`, with `create({ stream: true })`: the `.stream()` helpers on a slot-bound client pass through unmeasured (`adapter_stream_helper_unmeasured`). - **Nothing the adapter does fails your call.** ### Place the text yourself To keep building the request yourself, render the prompt and instrument the client without a slot. It then measures only the calls you make inside `ap.attribute(rendered, fn)`: ```ts import Anthropic from "@anthropic-ai/sdk"; import { instrument } from "@airprompter/agent-sdk/frameworks/anthropic"; const anthropic = instrument(new Anthropic(), ap); // no slot: it measures inside ap.attribute only const rendered = ap.prompt("support.summary", { subject: customerId }).render({ ticket: ticketText }); // pinned to claude-sonnet-5 const reply = await ap.attribute(rendered, () => anthropic.messages.create({ model: rendered.model, // the model the release pinned max_tokens: 400, system: rendered.text, messages: [{ role: "user", content: ticketText }], }), ); await saveTicketNote({ runRef: rendered.runRef, versionId: rendered.versionId, arm: rendered.arm }); ``` `render()` never touches the network. It returns `text`, `model`, `versionId`, `arm`, `generation`, `tag`, an optional `inference` block, and `runRef`, a content-free receipt you keep beside your own record. A missing required variable throws; a value for a variable the prompt did not declare throws; a variable declared as end-user input is fenced so the model can see where untrusted text starts and stops. `ap.prompt(tag).variables()` lists what the slot declares. `subject` is optional: during an A/B test it makes arm assignment sticky per customer; the id is hashed on your host and never sent. Inside `ap.attribute`, a call to the release’s model (or naming none) gets that model and the sealed settings and is observed against the render. A call to another model with no `modelFor` goes out unchanged and is not observed, so another model’s numbers never count against the version. A call with neither a slot nor an `ap.attribute` scope passes through unobserved, logged once per method as `adapter_unattributed`. Nothing matches a call to a prompt by its text. Without an adapter, `ap.observe(rendered, () => call())` times one call, reads `usage` off the response (OpenAI, Anthropic, and Bedrock shapes), classifies a failure, and returns the result unchanged. `ap.report({...})` files an observation by hand, and `ap.checks(rendered, output)` runs the slot’s declared output checks on text you already have. **Coming from ap.wrap?** 1.0.0-rc.5 removed `ap.wrap`, `ap.aiSdkMiddleware` and `ap.attributionFor`, with no shim, along with matching a call to a render by its text. A client you passed to `ap.wrap` goes through `instrument(new OpenAI(), ap, { slot })` from `@airprompter/agent-sdk/frameworks/openai` (or `/frameworks/anthropic`); `ap.aiSdkMiddleware` becomes `airprompterMiddleware(ap, { slot })` from `/frameworks/ai-sdk`; `ap.attributionFor` becomes `ap.currentAttribution()` inside `ap.attribute(rendered, fn)`. To keep placing the text yourself, leave out `slot` and call inside `ap.attribute`. The log events moved from `wrap_*` to `adapter_*`. The SDK’s changelog maps every removed name. ## Variables from your system A prompt author adds `{{customer_tier}}` to a version; your app knows a customer’s tier. Instead of changing every call site, register once how the value is found, and every version that uses the variable is filled at render time — a version that does not use it never causes the lookup: ```ts const ap = await AirPrompterAgent.start({ ..., variables: { brand: "Acme", // a literal: always this customer_tier: { // a source: your system, asked at render resolve: async ({ subject }) => crm.tierOf(subject), // undefined = "I have none" (a required variable then fails as reason empty) trust: "operator", // required: whose text this is timeoutMs: 500, // default 2 s; 64 KiB byte bound }, }, }); ap.variables.provide("region", process.env.REGION!); // later is fine ``` Render with `renderAsync()` when a source may be needed; `render()` stays synchronous and throws `VariableSourceRequiredError` naming the variables if a source would have to run. The value a render uses is decided in one order and stops at the first that answers: the call site’s value, then a registered source (consulted only for a declared variable that is required or present in the text), then the default the prompt’s settings declare for an optional variable, then nothing — a required variable is `MissingVariableError`. Trust is the load-bearing rule: a source is text nobody in AirPrompter reviewed, so it names its trust, and the render uses the stricter of the prompt’s declaration and the source’s. An `end_user` source is fenced wherever the prompt declared `operator` (logged once as `variable_source_trust_stricter`); a source can never loosen a declaration. A source that throws, times out, oversizes, answers something other than text, or answers nothing for a required variable fails the render as `VariableSourceError { tag, variable, reason }` (`threw`, `timeout`, `too_large`, `not_text`, `empty`), logged by name and reason only, and counted on the board as `render_missing_variable`. A value is never logged or reported — only a variable’s name. Find an uncoverable version before the first request: `ap.prompt(tag).needs(values)` names what the call site must still pass; `ap.status().variables` lists the sources you registered and, per prompt and rollout arm, the required names nothing fills. A workflow’s `flow.renderStepAsync(stepId, values)` fills a step the same way. On the console, Settings › Prompt settings › Variables is where a prompt’s declarations live: the name, whether it is required, who writes it (your code, or an end user — fenced), who is expected to fill it (your code where the prompt is rendered, or your app’s registered source), and a default for an optional variable your code writes (end-user text never has one). A version whose text uses a name the prompt does not declare cannot be staged from the update drawer; the drawer says which name. A runtime that calls home reports in its heartbeat which variables it can fill (SDK 0.2.13, serving a release sealed at protocol 0.3.4 or later), so the drawer warns when fewer checked-in instances can fill a variable your app is expected to fill than have checked in, before the promotion rather than after. It counts every instance that checked in, including ones that never serve that prompt. ## The release’s inference settings An agent’s update declares how each prompt is called: temperature, top-p, an output cap, stop sequences, reasoning effort, set beside the model when the update is staged. The release seals those with the text (`rendered.inference`, integers on the wire: `temperatureMilli: 200` is 0.2, `topPBps: 9000` is 0.9). A call an adapter places, or makes inside `ap.attribute`, goes out with the release’s values as `temperature`, `top_p`, `max_completion_tokens` / `max_output_tokens` / `max_tokens`, `stop` / `stop_sequences`, and `reasoning_effort` / `reasoning.effort`. The reference application’s `inference-proof.mjs` shows it with a stand-in Anthropic client: the call site writes `max_tokens: 100, temperature: 1`; what goes out carries the release’s temperature, cap, and stop sequence. Three rules govern it, each reported through your `logger`: | Situation | What happens | Event | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------- | | The call site wrote a different value | The release’s value goes out; you are told | `adapter_inference_overridden` names the parameters | | The call names another model than the release’s, with no `modelFor` | Nothing is placed and the call goes out as written; settings sealed for one model are never sent to another | `model_unresolved` | | The call cannot carry a setting (a stop sequence on Responses, a reasoning effort on Messages, top-p beside temperature or either beside `thinking` on Messages) | The setting is reported, not sent | `adapter_inference_unsupported` with `settings: { setting, reason }[]` | Instrumentation that calls a provider itself can use `applyInference(kind, params, inference)` from `@airprompter/agent-sdk/runtime` to get the same parameters. It takes no model: decide the model first, and apply the settings only to a call on the release’s model. ## Use the Vercel AI SDK The AI SDK adapter is middleware for `wrapLanguageModel`. It puts the approved text at the head of `prompt`, the release’s model and settings on the call through `transformParams`, and taps streams for usage and finish reason: ```ts import { generateText, wrapLanguageModel } from "ai"; import { openai } from "@ai-sdk/openai"; import { airprompterMiddleware } from "@airprompter/agent-sdk/frameworks/ai-sdk"; const model = wrapLanguageModel({ model: openai("gpt-5"), middleware: airprompterMiddleware(ap, { slot: "support.triage" }) }); const { text } = await ap.run({ subject: customerId, variables: { team: "Billing", ticket: ticketText } }, () => generateText({ model, prompt: ticketText }), ); ``` Every provider the AI SDK drives is measured the same way. When the release pins a model the wrapped one is not, `modelFor` builds it (the AI SDK model object itself); without it the slot declines (`model_unresolved`). The middleware stamps a version every AI SDK release accepts; pass `version` to pin one: `"v1"` or `"v2"` for AI SDK 4 or 5, `"v3"` or `"v4"` for AI SDK 6 or 7. ## Run a workflow A workflow slot carries ordered steps. The SDK hands you the steps; your program executes them, running tools or other work in between: ```ts import OpenAI from "openai"; import { instrument } from "@airprompter/agent-sdk/frameworks/openai"; const measured = instrument(new OpenAI(), ap); // no slot: each step places its own text const flow = ap.workflow("onboarding.flow", { subject: customerId }); let previous = ""; for (const step of flow.steps) { // { stepId, ordinal, versionId, text, runRef, model, inference? } const reply = await ap.attribute(step, () => measured.chat.completions.create({ model: flow.model, // a workflow pinned to an OpenAI model, such as gpt-5 messages: [{ role: "system", content: step.text }, { role: "user", content: previous || intake }], }), ); previous = reply.choices[0].message.content ?? ""; } ``` Each step has its own run reference and, from protocol 0.3.2, its own inference settings, set per step when the update is staged, for the workflow’s pinned model. ## File feedback later In day-to-day work the signal arrives long after the call: an agent accepts a draft, a customer rates a reply. Feedback rides on the run’s telemetry window as numbers, booleans, and declared enums only; free text is refused by schema. ```ts ap.feedback(runRef, { thumbs: "up" }); ap.feedback(runRef, { accepted: true, rating: 4, timeToAcceptMs: 42_000 }); ``` `feedback()` returns `false` when the run reference does not parse or no signal was accepted; a name outside the catalogue is dropped and logged `feedback_rejected`. Which signal decides “quality” for a prompt, and which are guardrails, is set per prompt in the console. ## Expose health Every runtime answers the same health document. Mount it on any HTTP server, as the reference `healthz.mjs` does: ```ts import { createServer } from "node:http"; const healthz = ap.healthzHandler(); // always 200; read status and reasons createServer((req, res) => (req.url === "/healthz" ? healthz(req, res) : res.writeHead(404).end())).listen(8787); process.on("SIGTERM", async () => { await ap.stop(); process.exit(0); }); ``` `ap.healthz()` returns the document itself: `ok`, `status` (`ok` or `degraded`), `reasons`, `generation`, `applyState`, `leaseExpiresAt`, `lastSyncOutcome`, and the spool depth. `degraded` covers nothing verified yet (your own prompt serves, `no_verified_release`), a lapsed lease that still serves (`lease_expired`), three or more consecutive sync failures, an uploader backing off, a forced downgrade, a stale telemetry daemon with no other uploader, and a spool at 80 percent of its budget. ## Read the log `logger` receives one object per event with an `event` name and content-free fields. The ones worth alerting on: | Event | Meaning | | ------------------------- | ------------------------------------------------------------------------------------------------------------------ | | `awaiting_first_unlock` | A release is staged under unlock-required and nothing is active yet; `prompt()` refuses until an unlock | | `heartbeat_refused` | The server refused a heartbeat; the message and up to eight validation issues are attached | | `pointer_behind` | The edge pointer lagged the server; the runtime went straight to the signed manifest | | `vendored_bundle_refused` | A bundle you passed was older than what the host holds, or failed verification | | `golden_set_failed` | A staged release fell below a golden set’s pass floor and stays staged | | `adapter_unattributed` | An instrumented call had neither a slot nor an `ap.attribute` scope and passed through unobserved; once per method | | `model_unresolved` | A call named another model than the release’s with no `modelFor`; the slot declined and your own prompt ran | | `root_url_default` | A pin on one of AirPrompter’s roots: the agent reads that root’s document from its published address | | `root_url_missing` | A pin on another root with no `rootUrl`; only a vendored bundle’s or datastore’s keys can verify | | `segment_dropped_by_sink` | A telemetry segment was refused by its destination and dropped, counted | ## Apply policy, unlock, rollback Under an environment policy of unlock-required, a new generation is staged, not activated. Three things unlock it, and only your side holds them: an operator (`airprompter unlock`), an update window (`apply.window: "02:00-04:00 Europe/Berlin sat,sun"`), or your change-control hook: ```ts apply: { onStaged: async (staged) => { const ticket = await changeControl.open({ generation: staged.generation, note: staged.unlockRequest?.note }); if (ticket.approved) staged.activate(); // resolve without calling activate() to leave it staged }, }, ``` `await ap.unlock()` activates a staged release from code; `await ap.rollback()` flips to the other slot instantly and is stamped as a forced downgrade. The policy is pinned on the host on first use; a later release may tighten it and never loosen it. ## Serverless Use `sync: { mode: "on_invoke" }` and wrap the handler in `ap.invoke(() => handler())`: the runtime syncs around the invocation and posts the invocation’s counters as one segment **before** it returns, so a frozen function loses nothing. `telemetry: { flush: "background" }` is the opt-out for platforms that keep running after the response. ## Troubleshooting ### `start()` throws `no_verified_release` Read the message: a 404 means nothing is promoted to that environment; a 401 is the key; a 403 names a key bound to another agent or environment; a transport failure carries the base URL. With `apiKey` omitted the runtime is offline and needs a store or a vendored bundle. ### Every release is refused as `unknown_signing_key` The agent never read the signing keys under your pinned root. On SDK 1.0.0-rc.4 or earlier, a pin without `sync.rootUrl` never fetches them: upgrade to 1.0.0-rc.5, or add `rootUrl: "https://api.airprompter.com/roots/prod/root.json"` to `sync`. On rc.5, check that the key you pinned is the one in [The root](#the-root). ### `start()` throws `invalid_options` asking for a root URL You pinned a root that is not one of AirPrompter’s, such as `airprompter dev`’s, or a dev key left on the default `hostedEnvironment`. Add the line the message names, or pin AirPrompter’s dev deployment as `root: { pinned, hostedEnvironment: "dev" }`. ### Calls are logged `adapter_unattributed` The client has no slot and the call was not inside `ap.attribute`. Give `instrument()` a `slot`, or make the call inside `ap.attribute(rendered, ...)`. ### The release’s temperature did not reach the provider Check the event: `model_unresolved` means the call named another model (add `modelFor` if it is the release’s model under another id); `adapter_inference_unsupported` names the setting the call shape cannot carry. ### `healthz` says `no_verified_release` after a restart The store had nothing verified, or a release is staged under unlock-required with nothing active, so your own prompt is serving. `ap.status().applyState` says which; `awaiting_unlock` needs an unlock from your side. ## Completion checklist - `npm install --save-exact @airprompter/agent-sdk@1.0.0-rc.5` and `start()` succeeds with a fresh state directory, with no `unknown_signing_key` in the log. - The Agent key reaches the process only through `AIRPROMPTER_AGENT_KEY`. - Your provider client or model goes through an adapter (`instrument()` or `airprompterMiddleware()`) and the Metrics tab fills a few minutes after upload. - You keep `runRef` beside your own record and file feedback against it. - `/healthz` is mounted and your orchestrator probes it. ## Next steps Keep Agent keys off application hosts with [the fleet pattern](https://airprompter.com/docs/integrations/fleet), understand every row that leaves the host in [Telemetry](https://airprompter.com/docs/integrations/telemetry), or read the same integration in [Python](https://airprompter.com/docs/integrations/python). --- Canonical: https://airprompter.com/docs/integrations/typescript # Run approved prompts from Python Install the Python Agent SDK, start a resident runtime pinned to AirPrompter's root, put the approved prompt, model and settings into your openai or anthropic calls with an adapter, and measure LiteLLM calls. The Python SDK is the same protocol, the same conformance vectors, and the same on-disk store as the TypeScript SDK: a store one wrote is a store the other, or the CLI, opens. Python 3.10 or later; `cryptography` and `httpx` are its runtime dependencies. Everything is synchronous and thread-safe; resident mode runs its sync, heartbeat, and update-window timers on daemon threads. ## Before you start You need: - Python 3.10 or later; - the agent’s organization id, agent id, and target environment; - an Agent key for that environment in `AIRPROMPTER_AGENT_KEY`; - AirPrompter’s production root key, which you copy into your source from the snippet below (nothing to download; see [The root](#the-root)); and - one of the `openai`, `anthropic`, or `litellm` clients with its own credential. Install from PyPI, pinned exactly: ```sh pip install "airprompter-agent[openai]==1.0.0rc5" # extras: [openai] [anthropic] [litellm] [kms] [vault] [keyring] ``` Unpinned, pip skips release candidates and installs an older line with none of the adapters on this page; an exact pin takes the candidate without opening prereleases on every dependency, which `--pre` does. The extras install only the provider client or key provider named; the SDK imports each lazily and none is required. ## Start a resident runtime ```python import json import os from airprompter_agent import AirPrompterAgent ap = AirPrompterAgent.start( organization_id=os.environ["AIRPROMPTER_ORG_ID"], agent_id=os.environ["AIRPROMPTER_AGENT_ID"], target="prod", # this app's environment: dev | staging | prod api_key=os.environ.get("AIRPROMPTER_AGENT_KEY"), # absent: serve the last verified release, never call home state_dir="/var/lib/acme-support-bot", # AirPrompter's production root key. The signing keys under it are read from # https://api.airprompter.com/roots/prod/root.json, and used only if they verify against this key. root={"pinned": {"kty": "EC", "crv": "P-256", "x": "hYhEFO-xyNoWyt5x0BgshEmNXPN1_mzDLISlT4nTDzE", "y": "OTbj5sdj8qKiIPzCsrdD297_vlNqahPTZWGgoa9cOtE"}}, sync={"mode": "resident", "poll_seconds": 30}, models=["gpt-5", "claude-sonnet-5"], # what this process can call; promotion refuses a slot whose model is absent apply={"window": "02:00-04:00 Europe/Berlin"}, # staged releases go live on their own at night logger=lambda event: print(json.dumps(event)), # ids, reasons, counts; never prompt text ) ``` `start()` reads the store before any network call, tries the other slot and then a `vendored_bundle=` if you passed one, and only with nothing verified runs one synchronous sync. If that fails it raises `AgentStartError("no_verified_release")` with the cause in the message, or `"store_newer"` when a newer package wrote the store. `root` takes a pinned key, with `hosted_environment` when it is not the default `prod`, or a full root document. **Expected result:** `ap.status().generation` is the promoted generation and `ap.status().apply_state` is `"active"`. `ap.generation` is the same number. The examples below assume two prompts: `support.triage`, pinned to `gpt-5` and called through `openai` or LiteLLM, and `support.summary`, pinned to `claude-sonnet-5` and called through `anthropic`. A call has to go to the model its prompt’s release pins. Names such as `customer_id`, `ticket_text`, `intake`, `own_model` and `ticket_store` stand for your own code. ### The root `root["pinned"]` is the trust anchor: a release is served only if it verifies under that key. The key alone does not name the signing keys under it, so the agent also reads the root document, and for AirPrompter’s own roots it knows where: | AirPrompter deployment | Root key id | Root document | | --------------------------------------------------------- | ------------------------------------------------------------------ | -------------------------------------------------- | | Production, the public service | `044af6e83353a2ea3758cc3feb3b1b7031c82bda5d6cd9287ba7730363e11793` | `https://api.airprompter.com/roots/prod/root.json` | | Dev (`root={"pinned": ..., "hosted_environment": "dev"}`) | `86267aa3dc49005a0c1474d5c9c06bd7e1d0e835da715a864c1eca706545df91` | `https://api.airprompter.dev/roots/dev/root.json` | The document is verified against your pin before any key in it is used, so fetching it changes where the keys come from, never what is trusted. `HOSTED_ROOTS` in `airprompter_agent.core` holds the same keys if you want to compare. `hosted_environment` names AirPrompter’s deployment, never your app’s `target`. Any other root, such as the local registry `airprompter dev` prints or your own service, has no default. Give its document’s address: ```python sync={"mode": "resident", "poll_seconds": 30, "root_url": "https:///roots//root.json"}, ``` A runtime that would sync without one raises `AgentStartError` (`invalid_options`) at `start()` naming that line. With a vendored bundle or a datastore it starts and logs `root_url_missing`, since only the keys those carry can verify. A runtime that never syncs (no `api_key`, or `"mode": "offline"`) needs no root URL. **Changed in 1.0.0rc5** Before rc5 the agent read the root document only when you set `root_url`. An agent started with a pinned key alone, as this page used to show, never learned the signing keys, refused every release as `unknown_signing_key` and served your own prompt for good. From rc5 a pin on one of AirPrompter’s roots finds its document by itself (logged `root_url_default`), and any other pin without `root_url` fails at start instead of quietly serving your own prompt. On an earlier candidate, add `"root_url"` with the production address above to `sync`, or upgrade. ## Call your model through an adapter An adapter puts the approved prompt, its model and its sealed settings into your provider call, and measures the call into the run. For the `openai` and `anthropic` clients, sync and async alike, it is `instrument()`: 1. Instrument your provider client once at start, bound to the prompt’s key in code (its slot). 2. Handle each request inside `with ap.run(...)`, with the variables the prompt declares; pass `subject=` when a rollout should be sticky per customer. 3. Call the client as you already do. The approved text goes in the system position, on the release’s model and settings. 4. Store `run.run_ref` beside your own record so you can file feedback later. ```python from openai import OpenAI from airprompter_agent.frameworks.openai import instrument openai = instrument(OpenAI(), ap, slot="support.triage") # once, at start with ap.run(subject=customer_id, variables={"team": "Billing", "ticket": ticket_text}) as run: reply = openai.chat.completions.create( model="gpt-5", # support.triage's release pins gpt-5; another model declines the slot (below) messages=[{"role": "user", "content": ticket_text}], ) run_ref = run.run_ref # read it inside the block: it grows per slot used ticket_store.save(run_ref=run_ref) ``` `airprompter_agent.frameworks.anthropic` has the same `instrument()` for `Anthropic` and `AsyncAnthropic`; an async client works inside `async with ap.run(...)`. What the adapter does with each call: - **The approved text goes in the system position.** Chat Completions: a leading `system` or `developer` message is replaced, or one is prepended. Responses: `instructions`. Messages: `system`, replaced whole, so your own `system` blocks and their `cache_control` do not go out. Your arguments are never mutated. - **The release’s model wins, or the slot declines.** A call that names the release’s model, or none, runs on it. A call that names another model, such as an Azure deployment or a gateway alias, needs `model_for=` on `instrument()`; without it the slot declines for the run (`model_unresolved`, logged once, one error row against that version) and the call goes out exactly as you wrote it. - **When nothing can be served,** your own prompt and model run, untouched, and nothing is measured. - **One request is one run.** Inside `ap.run` every call joins that run; with none open, each call is a one-call run. Consume a stream inside the `with` block, with `create(stream=True)`: a `.stream()` helper on a slot-bound client passes through unmeasured (`adapter_stream_helper_unmeasured`). - **Nothing the adapter does fails your call.** ### Place the text yourself To keep building the request yourself, render the prompt and instrument the client without a slot. It then measures only the calls you make inside `with ap.attribute(r):`, a `contextvars` scope that follows `await` and threads started with a copied context: ```python import anthropic from airprompter_agent.frameworks.anthropic import instrument client = instrument(anthropic.Anthropic(), ap) # no slot: it measures inside ap.attribute only r = ap.prompt("support.summary", subject=customer_id).render(ticket=ticket_text) # pinned to claude-sonnet-5 with ap.attribute(r): message = client.messages.create( model=r.model, # the model the release pinned max_tokens=400, system=r.text, messages=[{"role": "user", "content": ticket_text}], ) ticket_store.save(run_ref=r.run_ref, version_id=r.version_id, arm=r.arm) ``` `render()` accepts a mapping or keyword arguments and never touches the network. The `Rendered` it returns carries `text`, `model`, `version_id`, `arm`, `generation`, `run_ref`, `tag`, and an optional `inference` mapping. A variable declared as end-user input is fenced (`…`) so the model sees where untrusted input starts and stops; a missing required variable raises `MissingVariableError`; a value for an undeclared variable raises `UnknownVariableError`. A freeze from the console raises `RenderRefusedError` with `.reason`; the queue worker example parks the message and returns the reason. Inside `ap.attribute`, a call to the release’s model (or naming none) gets that model and the sealed settings and is observed. A call to another model with no `model_for` goes out unchanged and is not observed. A call with neither a slot nor a scope passes through unobserved, logged once per method as `adapter_unattributed`. Nothing matches a call to a prompt by its text. Without an adapter, `ap.observe(r, lambda: call())` times one call and returns its result unchanged, and `await ap.observe_async(r, lambda: client.messages.create(...))` does the same for a coroutine. **Coming from ap.wrap?** 1.0.0rc5 removed `ap.wrap`, `ap.attribution_for` and the `airprompter_agent.integrations` package (`chat_completion`, `messages_create`, their `_async` twins, `litellm_inference` and the old LiteLLM callback), with no shim, along with matching a call to a render by its text. A client you passed to `ap.wrap` goes through `instrument(OpenAI(), ap, slot=...)` from `airprompter_agent.frameworks.openai` (or `.anthropic`); `chat_completion(ap, r, client, ...)` becomes the instrumented client inside `ap.run`, or inside `with ap.attribute(r):` with no slot; `litellm_inference` becomes `litellm_params(placed)`. The log events moved from `wrap_*` to `adapter_*`. The SDK’s changelog maps every removed name. ## Variables from your system A prompt author adds `{{customer_tier}}` to a version; your app knows a customer’s tier. Register once how the value is found, and every version that uses the variable is filled at render time — a version that does not use it never causes the lookup: ```python ap = AirPrompterAgent.start( ..., variables={ "brand": "Acme", # a literal: always this "customer_tier": { # a source: your system, asked at render "resolve": lambda ctx: crm.tier_of(ctx.subject), # None = "I have none"; a plain callable or a coroutine function "trust": "operator", # required: whose text this is "timeout_seconds": 0.5, # default 2 s; 64 KiB byte bound }, }, ) ap.variables.provide("region", os.environ["REGION"]) # later is fine ``` The SDK is synchronous by design, so `render()` runs a plain-callable source on a daemon thread of its own under its timeout, holding none of the agent’s locks; a coroutine-function source needs `await ap.prompt(tag).render_async(...)`, which awaits it and cancels it at the deadline. The value a render uses is decided in one order: the call site’s value, then a registered source (consulted only for a declared variable that is required or present in the text), then the default the prompt’s settings declare for an optional variable, then nothing — a required variable is `MissingVariableError`. A source names its trust, and the render uses the stricter of the prompt’s declaration and the source’s: an `end_user` source is fenced wherever the prompt declared `operator`, and a source can never loosen a declaration. A failure is `VariableSourceError` with `.tag`, `.variable` and `.reason` (`threw`, `timeout`, `too_large`, `not_text`, `empty`), logged by name and reason only, and counted on the board as `render_missing_variable`. A value is never logged or reported — only a variable’s name. `ap.prompt(tag).needs(**values)` names what the call site must still pass; `ap.status().variables` lists your sources and, per prompt and rollout arm, the required names nothing fills. A workflow’s `render_step(step_id, **values)` / `render_step_async` fills a step the same way. The console side — Settings › Prompt settings › Variables, a default for an optional variable your code writes, and a version whose text uses an undeclared name refused from the update drawer — is the same as for TypeScript. ## The release’s inference settings An agent’s update declares how each prompt is called: temperature, top-p, an output cap, stop sequences, and reasoning effort, set beside the model when the update is staged; the release seals those with the text (`r.inference`, integers on the wire: `temperatureMilli` 200 is 0.2, `topPBps` 9000 is 0.9). A call an adapter places, or makes inside `ap.attribute`, goes out with the release’s values under the provider’s own names. A call site that wrote a different value is told (`adapter_inference_overridden` names the parameters), never failed. The settings go only on a call to the release’s model: a call naming another model with no `model_for` is not placed (`model_unresolved`). A setting the call cannot carry is reported, not sent (`adapter_inference_unsupported`): a stop sequence on Responses, a reasoning effort on Messages, top-p beside temperature or either beside `thinking` on Messages. Code that calls a provider itself uses `apply_inference(kind, params, inference)`, exported from `airprompter_agent`. It takes no model: decide the model first, and apply the settings only to a call on the release’s model. ## Measure LiteLLM **The LiteLLM callback cannot measure a call made inside `ap.run`.** LiteLLM logs a call after it returns, on a thread pool or a logging worker, usually after the run has ended, and an ended run takes no more records. Inside a run, measure the call where you make it: ```python import litellm from airprompter_agent.frameworks.contract import measure_call from airprompter_agent.frameworks.litellm import litellm_params history = [{"role": "user", "content": ticket_text}] with ap.run(subject=customer_id, variables={"team": "Billing", "ticket": ticket_text}) as run: placed = run.place("support.triage") if placed.kind == "approved": messages = [{"role": "system", "content": placed.instructions}, *history] reply = measure_call(run, "support.triage", lambda: litellm.completion(messages=messages, **litellm_params(placed)), model=placed.model) else: reply = litellm.completion(model=own_model, messages=history) # nothing to serve: your own prompt and model ``` `litellm_params(placed)` is the release’s model and sealed settings as `litellm.completion` keyword arguments, and `{}` for a passthrough. `measure_call` comes from the adapter contract, which is outside the 1.0 promise. It settles when the call returns, so it would miss a stream’s usage: for `stream=True`, register the callback below, pass `metadata=litellm_metadata((run, "support.triage"))` instead, and consume the stream inside the run: a record that reaches the run while it is still open is counted, and one that arrives after it ended is dropped (`adapter_late_record`). The callback is for calls made outside any run, and for a stream inside one as above. Each call outside a run is a one-call row. The callback only observes, so apply the release’s settings yourself: ```python import litellm from airprompter_agent import apply_inference from airprompter_agent.frameworks.litellm import AirPrompterLiteLLMCallback, litellm_metadata litellm.callbacks = [AirPrompterLiteLLMCallback(ap)] r = ap.prompt("support.triage", subject=customer_id).render(team="Billing", ticket=ticket_text) reply = litellm.completion( model=r.model, messages=[{"role": "system", "content": r.text}, {"role": "user", "content": ticket_text}], metadata=litellm_metadata(r), # content-free: the slot's tag and a signed run reference **apply_inference("chat", {}, r.inference or {}).params, # the release's settings, OpenAI chat names ) ``` The callback reads only `metadata["airprompter"]`. The signed run reference is the authority: one that does not verify, or names no entry for that tag, files nothing, and a call sent under another model is not counted. Unsigned metadata and matching by the messages’ text are gone. A call sent under another id for the release’s model (a deployment, a Bedrock id, a Router model group) names it: `litellm_metadata(r, model=sent_id)`. Use `measure_call` or the metadata for a call, never both. ## Run a workflow ```python from openai import OpenAI from airprompter_agent.frameworks.openai import instrument flow = ap.workflow("onboarding.flow", subject=customer_id) previous = "" measured = instrument(OpenAI(), ap) # no slot: each step places its own text for step in flow.steps: # WorkflowStep: step_id, ordinal, version_id, text, run_ref, model, inference with ap.attribute(step): reply = measured.chat.completions.create( model=flow.model, # a workflow pinned to an OpenAI model, such as gpt-5 messages=[{"role": "system", "content": step.text}, {"role": "user", "content": previous or intake}], ) previous = reply.choices[0].message.content or "" ``` Your program executes the steps and whatever work sits between them; the SDK supplies each step’s text, run reference, and inference settings, set per step when the update is staged, for the workflow’s pinned model. ## File feedback later In day-to-day work the signal arrives long after the call, when a person touches the ticket, so the worker keeps `run_ref` and files against it then: ```python ap.feedback(r.run_ref, thumbs="up") ap.feedback(r.run_ref, accepted=True, rating=4, timeToAcceptMs=42_000) ``` Signals are numbers, booleans, and declared enums from the catalogue; free text is refused by schema, a name outside the catalogue is dropped and logged, and `feedback()` returns `False` when nothing was accepted. Any process on the host can file against a run reference minted by another, because the key behind it is the store’s. ## Expose health ```python code, headers, body = ap.healthz_response() # 200, {"content-type": ...}, JSON doc = ap.healthz() # ok, status (ok | degraded), reasons, generation, apply_state, ... ``` Return the tuple from any framework’s route. It always answers `200`, because nothing AirPrompter does stops an agent serving; read `status` and `reasons`. `degraded` covers nothing verified yet (your own prompt serves, `no_verified_release`), a lapsed lease (the runtime keeps serving what it verified, `lease_expired`), three or more consecutive sync failures, an uploader backing off, a forced downgrade, a stale telemetry daemon with no other uploader, and a spool near its budget. ## Serverless `sync={"mode": "on_invoke"}` and `ap.invoke(handler)` sync around each invocation; the invocation’s counters are flushed as one segment before `invoke()` returns (`TelemetryOptions(flush="background")` is the opt-out). `ap.flush_telemetry()` does the same by hand. ## Stop cleanly ```python import signal signal.signal(signal.SIGTERM, lambda *_: ap.stop()) ``` `stop()` closes the current telemetry window and stops the timers. A restart serves from the store before any network call. ## Troubleshooting ### `AgentStartError: no_verified_release` Read the message. A 404 means nothing is promoted to that environment; a 401 is the key; a 403 names a key bound to another agent or environment. With `api_key` absent the runtime is offline and needs a store or a `vendored_bundle=`. ### `AgentStartError: store_newer` A newer SDK or CLI wrote `store.json`. The message names the package that wrote it; upgrade this process or roll that writer back. ### Every release is refused as `unknown_signing_key` The agent never read the signing keys under your pinned root. On 1.0.0rc4 or earlier, a pin without `root_url` never fetches them: upgrade to 1.0.0rc5, or add `"root_url": "https://api.airprompter.com/roots/prod/root.json"` to `sync`. On rc5, check that the key you pinned is the one in [The root](#the-root). ### `AgentStartError: invalid_options` asking for a root URL You pinned a root that is not one of AirPrompter’s, such as `airprompter dev`’s, or a dev key left on the default `hosted_environment`. Add the line the message names, or pin AirPrompter’s dev deployment as `root={"pinned": ..., "hosted_environment": "dev"}`. ### A LiteLLM call is not counted Inside `ap.run`, the callback’s record usually arrives after the run ended and is dropped (`adapter_late_record`): measure the call with `measure_call` at the call site. Outside a run, set `litellm.callbacks` before the call and pass `metadata=litellm_metadata(r)`; there is no match on the messages’ text. ### The release’s settings did not reach LiteLLM The callback cannot change a call it only observes. Inside a run, pass `**litellm_params(placed)` to `litellm.completion`; outside one, `**apply_inference("chat", {}, r.inference or {}).params`. ## Completion checklist - The runtime starts against `dev` with a fresh `state_dir` and reports the promoted generation. - The Agent key reaches the process only through the environment. - The runtime starts with no `unknown_signing_key` in the log. - Your `openai` or `anthropic` client goes through `instrument()`, LiteLLM calls in a run go through `measure_call`, and the Metrics tab fills a few minutes after upload. - `run_ref` is stored beside your own record and feedback is filed against it. - Your framework serves `ap.healthz_response()` on a probe route. ## Next steps Keep Agent keys off application hosts with [the fleet pattern](https://airprompter.com/docs/integrations/fleet), read what every row that leaves the host contains in [Telemetry](https://airprompter.com/docs/integrations/telemetry), or compare with the [TypeScript](https://airprompter.com/docs/integrations/typescript) integration for a mixed estate. --- Canonical: https://airprompter.com/docs/integrations/python # Distribute releases through your own database Run one puller that holds the Agent key and writes sealed release rows, boot every runtime from the newest row with only a distribution key, and understand the pointer-first pull, restart, and rollback behaviour. In the fleet pattern your store carries the release and your runtimes apply it. One **puller** job holds the Agent key: it pulls the release promoted to an environment, verifies the whole chain, seals the result to a distribution key you generated, and writes one row per generation into your database. Every **runtime** holds only the distribution private key: it boots from the newest row, serves from memory, and hands a newer row to `applyBundle()`. No application host ever holds an Agent key or opens a connection to AirPrompter. **What a compromised store can and cannot do** Rows are `.apbundle` ciphertext sealed to the fleet’s distribution key. A tampered row fails the manifest signature or a payload hash and is refused before a byte is staged; a relabelled row fails its binding to agent and environment; an older row is refused below the generation the runtime holds. What a compromised store _can_ do is withhold newer releases; the runtimes keep serving what they hold, and the Fleet tab’s generation spread shows it. ## Before you build a fleet You need: - an Agent key for the environment, available only to the puller job as `AIRPROMPTER_AGENT_KEY`; - a distribution key pair: `airprompter keygen --purpose distribution` writes the private half `0600` and refuses to write it inside a git checkout; register the **public** half on the environment’s Settings; - the environment’s root document URL (`--root-url` in the CLI, `fetchRoot` here): a pinned key alone names the root, not the signing keys under it, so a puller without it refuses every manifest with `unknown_signing_key`; - a table your puller can insert into and your runtimes can read; and - a way for a runtime to learn that a row changed: a poll, a Postgres `LISTEN`, a message on your bus. The SDK does not choose this for you. ## Set the fleet up 1. Generate the distribution key pair on a workstation and register the public half on the environment. 2. Create the release table in your database. 3. Deploy the puller with the Agent key and the distribution **public** key; confirm a row appears for the promoted generation. 4. Deploy each runtime with the distribution **private** key and no Agent key; confirm it boots from the newest row. 5. Promote a new version from the board and watch every runtime log `activated` (or `staged` under unlock-required). ## The release table The reference application keeps the table in SQLite; the shape is the point, not the engine. The same columns work in Postgres or as a DynamoDB item keyed on agent, environment, and generation. ```sql CREATE TABLE IF NOT EXISTS agent_releases ( agent_id TEXT NOT NULL, target TEXT NOT NULL, generation INTEGER NOT NULL, release_digest TEXT NOT NULL, bundle TEXT NOT NULL, -- the sealed .apbundle as JSON text; ciphertext pulled_at TEXT NOT NULL, PRIMARY KEY (agent_id, target, generation) ); ``` What is in a row: the agent, the environment, the generation, the release digest, and the bundle: the signed manifest, every payload the manifest references, and the root document, sealed to the distribution public key. Nothing in the row is readable without the private half, so treat the column as private as the key. `pulled_at` is the puller’s own clock; the bundle carries the release’s own `createdAt` and `notAfter`. ## The puller ```ts import { SyncClient, nextPullDelayMs, pullBundle, trustedRootFromPinnedKey } from "@airprompter/agent-sdk"; const scope = { organizationId: env.AIRPROMPTER_ORG_ID, agentId: env.AIRPROMPTER_AGENT_ID, target: "prod" as const }; const client = new SyncClient({ baseUrl: "https://api.airprompter.com", agentId: scope.agentId, target: scope.target, apiKey: env.AIRPROMPTER_AGENT_KEY }); let trustedRoot = trustedRootFromPinnedKey({ purpose: "platform", environment: "prod", pinnedRoot: PINNED_ROOT_JWK }); const fetchRoot = async () => { const r = await fetch(env.AIRPROMPTER_ROOT_URL); return r.status === 200 ? r.json() : null; }; const distributionPublicKey = readDistributionPublicKey(); // 32 raw bytes; the puller never reads the private file let edge = null; // the puller's memory between pulls: pointer URL, two ETags, when the origin last answered let unchangedStreak = 0; async function pass({ skipPointer = false } = {}) { const held = table.newest()?.generation ?? 0; // the floor: an older answer is reported, never stored const result = await pullBundle({ client, scope, trustedRoot, fetchRoot, minimumGeneration: held, now: () => new Date().toISOString(), distributionPublicKey, edge, skipPointer }); if (result.status === "unchanged") { edge = result.edge; unchangedStreak += 1; return nextPullDelayMs({ outcome: result.status, unchangedStreak, intervalMs: 10_000, capMs: 300_000 }); } unchangedStreak = 0; if (result.status !== "ok") { log(`pull: ${result.status}${result.reason ? ` (${result.reason})` : ""}`); // nothing_promoted | refused | unavailable return 10_000; } trustedRoot = result.trustedRoot; // a rotated root is accepted only through the chain table.insert({ generation: result.generation, releaseDigest: result.releaseDigest, bundle: JSON.stringify(result.bundle), pulledAt: result.createdAt }); edge = result.edge; // commit the edge state WITH the row, never before it return 10_000; } process.on("SIGUSR1", () => void pass({ skipPointer: true })); // "check now": an operator, or a nudge from a channel you own ``` `pullBundle` returns one of five statuses: `ok` with the bundle, `unchanged` with `via: "pointer" | "origin"`, `nothing_promoted`, `refused` with a reason (including `generation_rollback` when the server answered below `minimumGeneration`), and `unavailable` (`unauthorized`, `forbidden`, `network`, or an HTTP status). The reference puller also refuses to overwrite a stored row whose digest differs for the same generation, since that never happens on an honest server, and logs it loudly. In Python the same call is `pull_bundle(client=, scope=, trusted_root=, fetch_root=, minimum_generation=, now=, distribution_public_key=, edge=, skip_pointer=)` with `next_pull_delay_ms(...)` beside it. ### The pointer-first pull After every promotion or rollback, AirPrompter writes a few hundred bytes per environment behind a CDN. The first pull reaches the API once and learns that pointer’s URL; from then on the puller hands the last result’s `edge` back and an idle interval is one CDN request answered `304`, with no API call at all. | Pull | What happens | Cost | | ---------------------------- | ------------------------------------------------------------------------------------------------ | --------------------------------------- | | First | The API, once; learns the pointer URL and the manifest ETag | 1 API request | | Idle | Pointer with ETag: `304`, or a generation the table holds, returned as `unchanged` via `pointer` | 1 CDN 304 | | Moved | The pointer names a higher generation; the API is read conditionally; a new bundle | 1 CDN read, 1 API request, the payloads | | Nudged (`skipPointer: true`) | The API, conditionally: `unchanged` via `origin` or a new bundle | 1 API request | `nextPullDelayMs` doubles the interval while nothing changes, capped at five minutes by default, and snaps back to the base interval on any change, refusal, or outage. Three rules keep the unsigned pointer honest: a stuck pointer has a bound (`maxPointerAgeMs`, one hour by default: past it the puller reads the API once, conditionally, so a pinned or unwritten pointer can hide a promotion for at most that long); nothing advances past an answer the API did not confirm (the pointer’s ETag is kept only when the pull ends in `unchanged` or `ok`); and a CDN outage or a malformed pointer falls through to the API. Persist `edge` **with** the row it came back beside, in the same transaction, never before it: a saved manifest ETag for a row that was never written makes the next read a `304` and the row is never written. ## The runtime ```ts import { AirPrompterAgent } from "@airprompter/agent-sdk"; const { distributionKey } = readDistributionPrivateKey(); // { privateKey, publicRaw }; this file is 0600 and only here const newest = table.newest(); const ap = await AirPrompterAgent.start({ organizationId: env.AIRPROMPTER_ORG_ID, agentId: env.AIRPROMPTER_AGENT_ID, target: "prod", stateDir: "/var/lib/acme-support-bot", // this host's own encrypted store root: { pinned: PINNED_ROOT_JWK, hostedEnvironment: "prod" }, distributionKey, // opens every sealed bundle this host is handed ...(newest ? { vendoredBundle: { bundle: JSON.parse(newest.bundle) } } : {}), // no apiKey: this process never calls home }); ap.onChange((change) => log(`generation ${change.generation} is live`)); let attempted = ap.generation; let applying = false; setInterval(async () => { // or LISTEN/NOTIFY, or your bus: all end in applyBundle if (applying) return; const row = table.newest(); if (!row || row.generation <= attempted) return; applying = true; try { const outcome = await ap.applyBundle(row.bundle); // never throws on a bad bundle attempted = row.generation; // a refused or held-back row is not retried; only a newer one is tried log(`applyBundle(${row.generation}) → ${outcome.outcome}${outcome.reason ? ` (${outcome.reason})` : ""}`); } finally { applying = false; } }, 3_000); ``` `applyBundle()` runs the same chain a network sync runs before a byte is staged and returns one of: | Outcome | Meaning | | ----------- | ----------------------------------------------------------------------------------------------------------------- | | `activated` | Verified, staged, and live; `generation` is the new one | | `staged` | Verified and staged; the environment’s policy is unlock-required, so it waits for your unlock, window, or hook | | `unchanged` | The row is the generation this host already holds | | `held_back` | The row is newer than what runs but below a generation this host rolled back from; `heldBackBelow` names it | | `refused` | `reason` says why: a signature or hash failure, `generation_rollback`, `expired`, `model_unavailable`, `no_store` | In Python: `distribution_key=` and `vendored_bundle=` at start, then `ap.apply_bundle(row)` returning the same outcome as a dict. **Expected result:** stop the puller, start a second runtime on another port, and both serve the same generation from the table; promote from the board, and within one pull interval plus one watch interval every runtime logs `activated`. Under unlock-required they log `staged` and wait. Variables your app fills from its own systems (`start({ variables })`, described on the TypeScript and Python pages) are registered in the runtime process and do not care where the release came from: a runtime that applies releases from your table fills them exactly as one that syncs from AirPrompter. The puller never renders and needs none. Fleet runtimes send no heartbeat, so the console cannot count them in the update drawer’s “X of Y checked-in instances can fill it” line — check `ap.status().variables` and `ap.prompt(tag).needs(...)` when a runtime boots instead. ## Restart and rollback These are the day-to-day events a fleet meets: a host reboots, a bad release goes out, someone rolls back on the board. - **Restart.** A runtime serves the applied generation from its own store before it looks at the table or the network. With the table unreachable it keeps serving; with the table empty and no store, `start()` refuses, as it should. - **A newer row at boot** is an update like any other: verified, staged, and the apply policy decides. The held generation changes nothing. An older row at boot is refused and logged `vendored_bundle_refused` with the reason `generation_rollback`. - **Rolling back** is `await ap.rollback()` on the runtime, or `airprompter rollback` on the host: it flips to the other slot instantly and is stamped as a forced downgrade. Handing an older row to `applyBundle()` is not a rollback; it is refused. After a local rollback, the generation you left is held back until AirPrompter moves past it, so a puller that keeps writing the same row does not re-apply it. - **A rollback in the console** is a new, higher generation with the previous content. It lands on every runtime the same way a promotion does. ## Rotate the distribution key At least every 90 days (the bundle’s default lease): generate a new pair, register the new public key on the environment, let the puller write a fresh row sealed to it, and retire the old private key once every runtime has applied that row. Nothing already sealed is re-sealed by the console. ## Learn about changes faster: the nudge (proposed) The pointer-first pull is shipped. A **nudge** is proposed: on every promotion, rollback, dial move, or disable, AirPrompter would publish one content-free message (`agentId`, `target`, `generation`, `issuedAt`) to a channel you own, such as an Amazon SQS queue in your account, and your puller would run one pull with `skipPointer: true`. Nothing else changes: the pull verifies as always, the pointer poll keeps running, and a lost nudge costs one poll interval of latency. The reference puller already wires the same “check now” to `SIGUSR1`. The design note, its channel options, and its open decisions are in the SDK repository at `docs/change-notification.md`; the channel is not shipped yet and the note says so. ## Troubleshooting ### Every pull is `refused` with `unknown_signing_key` The puller has a pinned key but no root document. Pass `fetchRoot` (the environment’s root document URL) or a full root document as `trustedRoot`. ### The runtime logs `held_back` This host rolled back below that row’s generation. Promote a newer generation in the console; the next row applies. ### The runtime logs `refused` with `model_unavailable` The release marks a slot’s model as required and this process did not declare it in `models`. The host keeps serving what it has; declare the model or promote a release that pins one you can call. ### A promotion reaches runtimes only after several minutes The puller’s interval stretched while nothing changed. Send `SIGUSR1` (or your own nudge) to check now, lower `capMs`, or wait for the base interval to snap back on the next change. ## Completion checklist - Only the puller job holds `AIRPROMPTER_AGENT_KEY`; runtimes hold only the distribution private key. - The public half of the distribution key is registered on the environment. - `edge` is persisted in the same transaction as the row. - A restarted runtime serves before it touches the table. - An older row is refused with `generation_rollback` and your logs show it. ## Next steps Runtimes in a fleet still write the content-free spool; read how it leaves an estate with no egress in [Telemetry](https://airprompter.com/docs/integrations/telemetry). For hosts you operate by hand, the same pull, verify, and apply steps exist as [CLI commands](https://airprompter.com/docs/integrations/cli). --- Canonical: https://airprompter.com/docs/integrations/fleet # Understand and route telemetry Know exactly what a spool row contains and what it never can, choose between the in-process uploader, the host daemon, and your OpenTelemetry collector, keep the disk budget honest, and run inside a VPC with no egress. The runtime never sends a prompt, an answer, or an end-user identifier anywhere. What leaves a host is one row per minute per dimension set: counts, token totals, a 16-bucket latency histogram, error classes, output-check counts, and declared feedback outcomes. The rows are written to a local **spool** first and shipped later, so nothing about telemetry is ever on your request path. The spool is a published contract: any process, in any language, can write it and be picked up. ## What a window row is The spool lives at `/airprompter///spool/telemetry/` (directory `0700`, files `0600`) as append-only newline-delimited JSON segments named `seg---.ndjson`. A segment rotates at the minute or at 1 MiB. One `window` row summarises one minute for one combination of prompt, version, arm, model, status, and error class: ```json {"type":"window","v":1, "minute":"2026-09-11T14:03:00Z", "instanceId":"i-7f3a…","instanceClass":"resident", "tag":"support.triage","versionId":"pv_…","arm":"candidate", "model":"claude-haiku-4-5","status":"ok","errorClass":null, "usageSource":"reported", "count":412, "latencyMs":{"buckets":[0,0,3,41,188,150,27,3,0,0,0,0,0,0,0,0],"sum":617384}, "tokens":{"input":493200,"cachedInput":329600,"output":103000}, "checks":{"passed":405,"failed":7}, "outcomes":{"accepted":{"n":388,"sum":362},"rating":{"n":41,"sum":171}}, "sdk":"agent-sdk-ts/0.2.9"} ``` Two other row types exist: `refusal` (a render refused, with the reason and generation) and `dropped` (segments evicted by the disk budget, with counts and bytes). Every row is validated against the protocol’s schema on the writer and again at ingest. **What is never in the spool** Prompt text, model output, end-user identifiers, stack traces, and application error messages. The row schema has no field for them, unknown fields are dropped and unknown rows quarantined at ingest, feedback is numbers, booleans, and declared enums only, and the `runRef` you correlate your own traces on never enters a window. This is “content-free by schema”, which is a stronger and narrower statement than “anonymised”. ## Before you decide how to ship it You need to know three things about each host: - whether it can open outbound HTTPS to AirPrompter, or only through a proxy, or not at all; - whether several runtime processes share the host (each is its own instance and its own writer into one spool); and - whether your platform team already runs an OpenTelemetry collector that should receive these counters instead. ## Choose the uploader Day-to-day, the choice is per host and rarely changes; pick it once when the host is provisioned. | Host | Uploader | Key on the host | | -------------------------------------- | --------------------------------------------------------------------------------------------------------------- | ----------------------------------- | | One resident process with an Agent key | The runtime’s own in-process uploader (the default) | The Agent key it already has | | Several processes on one host | `airprompterd` uploads every writer’s segments; runtimes find its `daemon.json` and write into its folder | Only the daemon holds the key | | A serverless function | The invocation’s rows are posted as one segment before the handler returns | The Agent key | | A host with an OpenTelemetry collector | The OTel bridge exports windows to the collector, never to AirPrompter | None needed for telemetry | | A host with no route out | `airprompter export-telemetry` packs the spool into a file; `import-telemetry` uploads it from a connected host | The key lives on the connected host | ### The in-process uploader A resident host with no daemon runs the same uploader the daemon runs, in-process, on a timer with a random phase, under the runtime’s own short-lived grant. A failed pass backs off with full jitter and the next retries; acknowledged segments are deleted. `ap.status().upload` reports the sink, the last upload, the backoff, and `sentSegments`; `await ap.uploadNow()` runs one pass by hand, which the reference application does at the end of each run: ```ts ap.spool.closeWindows(Date.now()); // close the current minute so it can ship console.log(await ap.uploadNow()); // { uploaded, quarantined, dropped, held } or null when a daemon owns the spool ``` `telemetry: { upload: false }` (`TelemetryOptions(upload=False)` in Python) leaves the spool for a daemon or an operator’s export; the budget still holds and losses are still counted. The grant a host holds is deliberately small: a presigned upload of at most 15 minutes and 1 MiB per object, bound to one prefix for this organization, agent, environment, and instance, accepting newline-delimited JSON only. It cannot read, list, or delete, and a row whose instance does not match the prefix is quarantined at ingest. ### The host daemon `airprompterd` is telemetry only: it syncs no release and serves nothing. It uploads every closed segment in the folder its `daemon.json` names, from every writer on the host, checked line by line first (a segment that fails the check is quarantined whole, never sent). Passes run every `--upload-interval-seconds` (300 by default); `--no-upload` leaves the spool on disk. See [The CLI and the daemon](https://airprompter.com/docs/integrations/cli). ## Send the counters to OpenTelemetry instead Window fields follow the OpenTelemetry GenAI semantic conventions where one exists, so exporting is a renaming, not a redesign: `model` becomes `gen_ai.request.model`, the latency buckets become the `gen_ai.client.operation.duration` histogram, tokens become the `airprompter.tokens` sum by `gen_ai.token.type`, and the prompt, version, and arm become `airprompter.prompt.tag`, `.version`, and `.arm`. Every sum is delta temporality. ```ts import { AirPrompterAgent } from "@airprompter/agent-sdk"; import { otlpUploadSink } from "@airprompter/otel-bridge"; const ap = await AirPrompterAgent.start({ ...startOptions, telemetry: { uploadSink: otlpUploadSink({ endpoint: "http://localhost:4318/v1/metrics", headers: { authorization: process.env.OTEL_TOKEN! }, resource: { "service.name": "support-bot" }, }), }, }); ``` ```python from airprompter_agent import AirPrompterAgent, TelemetryOptions from airprompter_agent_telemetry.otel import OtlpUploadSink ap = AirPrompterAgent.start( **start_options, telemetry=TelemetryOptions(upload_sink=OtlpUploadSink(endpoint="http://localhost:4318/v1/metrics", resource={"service.name": "support-bot"})), ) ``` ```sh # The daemon, for every writer on the host; no Agent key is needed on this path: airprompter daemon --org org_… --agent agt_… --environment prod \ --upload-sink otlp --otlp-endpoint http://localhost:4318/v1/metrics \ --otlp-header 'authorization=$OTEL_TOKEN' --otlp-resource service.name=support-bot ``` The daemon reads `--otlp-header 'name=$VAR'` from its environment, never from the command line, so a collector token does not appear in a process list. The built-in exporter is OTLP/HTTP with JSON encoding; pass `exporter` for protobuf or gRPC. A collector that answers 4xx or 5xx has decided: the segment is dropped and counted (`segment_dropped_by_sink`). A collector that never answered has not: the segment is kept under backoff and the budget. ## The disk budget is an invariant What the spool can hold on a host is bounded, and the bound is published: ```text tree ≤ budget + (writers × 1 MiB open) + quarantine cap + exported cap ``` The budget (100 MiB by default; `telemetry.spoolBudgetBytes`, `--spool-budget-bytes` on the daemon) is closed, unsent segments, the only thing that grows with traffic when the registry is away. Each live writer holds at most one open segment of at most 1 MiB. `quarantine/` and `exported/` are capped at 10 MiB each, oldest first. Past the budget the oldest unsent segments are dropped and the loss is written as a `dropped` row and reported on the heartbeat, never silently. A full disk or an I/O error never reaches your request: the writer counts what it could not keep and says so in one `dropped` row the moment a write works again. Run the proof on your own machine, with no registry behind it: ```sh airprompter telemetry verify --budget 104857600 --sink-absent ``` It fills an in-memory filesystem past the budget with two writers, a crashed writer, a live writer, and an overfilled quarantine, prints the tree before and after, the eviction, the `dropped` row, and the bound, and exits `0` when the invariant holds. ## Run inside a VPC with no egress Every connection is opened by your side, outbound. Where that is not possible from an application host, move the connection somewhere it is: 1. **Releases in through an egress host.** Run the fleet pattern’s puller on a host that can reach AirPrompter, and let application hosts read rows from your database. Application hosts then need no route out for releases at all. See [the fleet pattern](https://airprompter.com/docs/integrations/fleet). 2. **Counters out through your collector.** Point the OTel bridge at a collector inside the VPC; the counters never leave for AirPrompter, and no grant is requested. 3. **Counters out by file.** On a host that never calls home, `airprompter export-telemetry` packs closed segments into one file and moves them to `exported/`; carry it to a connected host and `airprompter import-telemetry` uploads each segment under its own name, so importing the same file twice counts nothing twice. 4. **Counters out through a proxy.** Both SDKs take an injectable HTTP layer. In TypeScript pass `fetch` at start (also accepted by `SyncClient` and `otlpUploadSink`); in Python pass `transport=` (an `httpx.BaseTransport`, for example `httpx.HTTPTransport(proxy="http://proxy.internal:3128")`) to `AirPrompterAgent.start`, `SyncClient`, or `OtlpUploadSink`. ```ts const ap = await AirPrompterAgent.start({ ...startOptions, fetch: (input, init) => fetch(input, { ...init, dispatcher: proxyAgent }), // undici's ProxyAgent, or any fetch-shaped function }); ``` **Expected result:** an application host with no route to AirPrompter still serves renders, still writes the spool, and its counters still reach the Metrics tab within a few minutes of the connected side’s next pass, whether by collector, file, or proxy. ## Write the spool without our SDK Teams that instrument the provider SDKs themselves write window rows straight into the spool directory; the daemon, or a runtime on the host, uploads them. The repository’s `examples/spool-writer/` has a dependency-free TypeScript and Python writer that pass the same conformance vectors, and `airprompter telemetry validate ` checks a segment line by line before it is ever quarantined, naming the line and the field, never a value. ## Troubleshooting ### The Metrics tab stays empty Counters arrive a few minutes after upload. Check `ap.status().upload.lastUploadAt` and `backoffUntil`; a refused grant is the throttle and is logged. On a daemon host, `airprompter status` shows the uploader. ### `dropped` rows appear in the spool The host was away from the registry longer than the budget allows at its traffic. Raise `spoolBudgetBytes`, shorten the outage, or route through a collector. ### Segments land in `quarantine/` A writer produced a row the contract refuses. Run `airprompter telemetry validate` on the segment; the reason names the line and field. ### The uploader is `held` The grant issuer asked for a pause with a retry-after; the uploader honours it exactly and resumes. ## Completion checklist - You can say which uploader each host uses and where its key is. - No row you inspected carries prompt text, output, or an end-user identifier. - The budget and the `dropped` row are visible in your monitoring. - Hosts without egress have a route for counters: collector, file, or proxy. - Third-party writers validate their segments before deployment. ## Next steps Operate the daemon and the offline path with [the CLI](https://airprompter.com/docs/integrations/cli), or go back to the resident integration in [TypeScript](https://airprompter.com/docs/integrations/typescript) or [Python](https://airprompter.com/docs/integrations/python). --- Canonical: https://airprompter.com/docs/integrations/telemetry # Operate hosts with the CLI and the daemon Pull, verify, apply, and inspect releases from a shell, run one sync loop per host with airprompterd under systemd, launchd, Docker, or Kubernetes, and carry releases and telemetry across an air gap. `airprompter` is one binary for the people who run hosts and pipelines rather than write agents. It shares the TypeScript SDK’s modules, so what `verify` refuses, a runtime refuses too. `airprompterd` is its daemon mode, `airprompter daemon`: the host’s telemetry daemon. It ships the telemetry every SDK process on the host writes, to AirPrompter or to your OpenTelemetry collector. It syncs no release, holds no store and serves nothing; every process loads its own release. **The daemon is an optimization, never a requirement** An SDK process finds the daemon through the `daemon.json` file it publishes in the store directory, writes its spool segments into the daemon’s folder with a manifest each, and leaves the upload to it. Without a daemon, a process holding an Agent key uploads its own spool. The daemon helps when processes hold no key (a runtime loaded from your datastore) or when several processes on one host should share one uploader and one budget. ## Before you install - The CLI ships as signed single-file executables for macOS, Linux, and Windows from the repository’s releases (`airprompter-linux-x64`, `airprompter-darwin-arm64`, and so on); each carries a provenance file naming the platform signature applied. If the release you need is not listed yet, `cli/` builds the same binary from source with `npm ci && npm run bundle`. - The Agent key is read from `AIRPROMPTER_AGENT_KEY` (or the variable named by `--api-key-env`), never from arguments. Private keys come from files the CLI wrote with mode `0600`. - Nothing the CLI prints is prompt text, at any verbosity. Releases are described as generations, digests, ids, models, variable names, and counts. ## The commands | Command | What it does | | ----------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `pull` | Fetch and verify the current release; write an encrypted `.apbundle` and a `.meta.json` sidecar; `--check` compares a vendored one and exits `3` when it is stale | | `verify` | Run the verification chain on a bundle or a state directory and print the reasons | | `apply` | Stage a bundle into the host’s store and activate it per the environment’s policy | | `status` | Active and staged generation, lease, storage protection, spool depth, last upload, and the telemetry daemon as its `daemon.json` says (`--require-daemon` makes it a liveness probe) | | `doctor` | Every reason this host is not serving the release it should, with the remedy | | `diff` | What a bundle would change against the active release, or against another bundle (`--against`) | | `unlock` | Make the staged release live on this host (`--generation N` to name it) | | `policy show` / `policy set` | Show or set the apply policy this host holds; a release may tighten it, only this loosens it | | `keygen` | Generate a distribution or countersign key pair; refuses to write a private key inside a git checkout unless `--allow-worktree` | | `daemon` | `airprompterd` | | `export-telemetry` / `import-telemetry` | Carry the spool across an air gap as one file, idempotently | | `telemetry verify` / `telemetry validate` | Prove the disk budget invariant on this machine; check a third-party writer’s segments line by line | | `dev` | Serve a directory of prompt files as a local registry while you edit; the conformance target | | `login` / `import` | Sign in as a workspace member and turn a directory, export, or query result into reviewable prompt versions | Exit codes scripts can rely on: `0` ok, `1` refused (the reason on stderr), `2` usage, `3` stale (`pull --check` only), `4` partial (`import` only). `--json` prints one JSON document on stdout, always the last line; on a refusal it carries `ok: false`, the error, the exit code, and the step that refused. ## Vendor a bundle in CI ```sh # once, on a workstation outside any repository: the environment's distribution key pair airprompter keygen --purpose distribution --out ~/.config/airprompter/prod # register ~/.config/airprompter/prod.pub.json on the environment (Agent → Settings) # in the build: the current release, sealed to that key AIRPROMPTER_AGENT_KEY="$CI_SECRET" airprompter pull \ --org org_… --agent agt_… --environment prod \ --root ./airprompter-root.jwk.json --root-url https:///roots/prod/root.json \ --distribution-key ./prod.pub.json \ --out airprompter.bundle.apbundle # in a scheduled job: fail when the vendored bundle falls behind AIRPROMPTER_AGENT_KEY="$CI_SECRET" airprompter pull --check --max-behind 2 \ --org org_… --agent agt_… --environment prod --out airprompter.bundle.apbundle ``` `--root` takes the environment’s pinned root public key or a full signed root document; a pinned key alone cannot name the signing keys, so `pull` also needs `--root-url`. `airprompter diff new.apbundle --against old.apbundle` compares two bundles with no store, slot by slot, and warns when a bundle goes backwards in generation, because every host refuses one. The repository also ships a GitHub Action, `action/verify`, that runs `verify` on every bundle a pull request commits. ## Apply on a host 1. Copy the bundle to the host; keep the distribution private key where the runtime reads it and nowhere else. 2. `airprompter verify --org … --agent … --environment prod --root ./root.jwk.json --distribution-key ./prod.key.json` and read the reasons. 3. `airprompter diff --org … --agent … --environment prod --distribution-key ./prod.key.json` to see what would change. 4. `airprompter apply --org … --agent … --environment prod --root ./root.jwk.json --distribution-key ./prod.key.json`. 5. `airprompter status --agent … --environment prod`. `apply` runs the identical chain a runtime runs (root, manifest signature, payload hashes, generation counter), stages into the inactive slot, and activates under `auto`; under unlock-required it stages and says so, and `airprompter unlock` makes it live. A generation below the stored one is refused unless `--force`, and then it is a forced downgrade stamped on evidence. Rolling a host back is `ap.rollback()` in the SDK or `airprompter rollback`. Pass `--state-dir` to match what the runtime was started with; the default is the OS state directory. **Expected result:** `status` shows the applied generation active, and an SDK process on the host started against the same state directory serves it before touching the network. ## Diagnose a host with `doctor` `doctor` is the day-to-day first step when a host is not serving what the board says it should. ```sh AIRPROMPTER_AGENT_KEY=… airprompter doctor --org org_… --agent agt_… --environment prod --root ./root.jwk.json --json ``` Nine read-only checks (`source`, `edge_pointer`, `root`, `store`, `active_release`, `lease`, `key_protection`, `policy_pin`, `spool`, `daemon`), each `ok`, `warn`, `fail`, or `skip`, printed with what to do next. It never creates a store, writes a file, or sends a heartbeat; with no key the source check is skipped, not failed. Exit `0` when no check fails. ## Run the daemon ```sh AIRPROMPTER_AGENT_KEY=… airprompter daemon \ --org org_… --agent agt_… --environment prod --json ``` The daemon publishes `/daemon.json`, refreshed every minute, naming the spool folder it scans (`--spool-dir`, by default `/spool/telemetry`, where SDKs write). It has no socket. It reads each segment’s manifest, leaves another agent’s or environment’s segments alone, quarantines a segment that does not match its manifest, and obtains a grant per writer. Logs are one JSON object per line on stderr and never carry prompt text. `airprompter status --agent agt_… --environment prod --require-daemon --json` exits non-zero when `daemon.json` is missing or stale, which is the liveness probe the deploy manifests use. `unlock`, `rollback` and `policy` act on the host’s store directly, not through the daemon. The flags of the old release-serving daemon (`--root`, `--hosted-environment`, `--root-url`, `--edge-pointer-url`, `--poll-seconds`, `--socket`, `--apply-policy`) are refused by name. With an Agent key the daemon uploads every closed segment in its folder, from every writer on the host, checked line by line first. Passes run every `--upload-interval-seconds` (300); `--spool-budget-bytes` sets the host budget (100 MiB); `--no-upload` leaves the spool on disk; `--upload-sink otlp` with `--otlp-endpoint`, `--otlp-header 'name=$VAR'`, and `--otlp-resource key=value` sends the windows to your OpenTelemetry collector instead, with no Agent key needed on that path. The daemon stops on `SIGINT` or `SIGTERM` and deletes its discovery file; SDK processes then upload their own spool if they hold a key, or keep it on disk. ## Deploy manifests The repository’s `deploy/` directory holds a validated manifest per host type. Every one does the same things: the Agent key comes from `AIRPROMPTER_AGENT_KEY` in the service’s environment (a `0600` env file, a Secret, the service account’s environment), never from arguments; the state directory is per-service and `0700`; application processes whose telemetry the daemon ships run as the same user with the same state directory, so they find its `daemon.json`. | Host | Manifest | What to fill in | | --------------- | ------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------- | | Linux, systemd | `deploy/systemd/airprompterd.service` + `airprompterd.env.example` | Install the binary to `/usr/local/bin`, the env file `0600` to `/etc/airprompter/airprompterd.env`, then `systemctl enable --now airprompterd` | | macOS, launchd | `deploy/launchd/com.airprompter.airprompterd.plist` | `launchctl bootstrap gui/$(id -u) …`; on shared hosts wrap the command in a script that reads the key from the keychain rather than the plist | | Windows service | `deploy/windows/airprompterd.xml` (WinSW wrapper) | The key in the service’s environment; state under `C:\ProgramData\AirPrompter\state` | | Docker sidecar | `deploy/docker/Dockerfile`, `docker-compose.yml` | The daemon and the app share a state volume, a uid and the same `XDG_STATE_HOME`; the app’s SDK finds `daemon.json` there | | Kubernetes | `deploy/kubernetes/daemonset.yaml` | One daemon per node; the key from a Secret; the store on a `hostPath` the application pods mount read-write, running as the same `runAsUser` | The systemd unit is hardened (`ProtectSystem=strict`, `ReadWritePaths=/var/lib/airprompter`, `NoNewPrivileges`, address families limited to Unix and IP sockets). The Kubernetes DaemonSet runs non-root with a read-only root filesystem and all capabilities dropped, and probes with `airprompter status --agent agt_… --environment prod --require-daemon --json`. ## A host that never calls home An environment whose hosts have no route to AirPrompter is served by a file. Once an environment has a registered distribution key and something promoted, its row in Settings › Environments offers **Download update file**: the promoted release, its payloads, and the environment’s root document, sealed to that key, good for 90 days by default. The console, `verify`, and `apply` all warn inside the last 30 days. ```sh # on the host: airprompter verify agt_…-prod-g12.apbundle --org … --agent … --environment prod \ --root ./root.jwk.json --distribution-key ./prod.key.json airprompter apply agt_…-prod-g12.apbundle --org … --agent … --environment prod --root ./root.jwk.json --distribution-key ./prod.key.json # telemetry back: pack what the runtimes on this host spooled airprompter export-telemetry --org … --agent … --environment prod --out 2026-09-17.aptelemetry # carry the file to a host that can reach AirPrompter, then: AIRPROMPTER_AGENT_KEY=… airprompter import-telemetry --org … --agent … --environment prod --in 2026-09-17.aptelemetry ``` `export-telemetry` packs every closed segment with at least one valid row and moves the packed ones to `exported/`, so the next export packs only what is new (`--keep` leaves them). `import-telemetry` heartbeats once per instance the file names and posts each segment under its own name, so importing the same file twice counts nothing twice. A file for another agent or environment is a usage error before any network. Re-key the distribution key at least every 90 days: `keygen` a new pair, register the new public key, download a fresh update file, and retire the old private key once the hosts have applied it. ## Troubleshooting ### `verify` refuses with `unknown_signing_key` You passed a pinned key with no root document. Add `--root-url`, or pass a full root document to `--root`; for an offline host the update file carries the root document itself. ### `apply` says the bundle is stale or backwards A generation below what the host holds is refused; a rollback is `ap.rollback()` or `airprompter rollback`, never an older bundle. If you really mean to go back, `--force` stamps a forced downgrade. ### `status` reports `file_key` under storage protection The store key is a file beside the store. That is fine for a first run and is shown as a finding on the Fleet tab; production hosts use an OS keystore, KMS, or Vault through the SDK’s key provider. ### The daemon is running but processes upload their own spool They are not the same user, or not the same state directory, so they do not find `daemon.json`; `airprompter status --agent … --environment … --require-daemon` says which. ## Completion checklist - The binary you installed is the signed release for your platform, or a build you produced yourself. - `AIRPROMPTER_AGENT_KEY` is in a `0600` env file, a Secret, or the service environment, and never on a command line. - `doctor` exits `0` on every host. - Application processes write into the daemon’s folder, or you have decided they should not. - Air-gapped hosts have a schedule for update files and telemetry files, and for re-keying. ## Next steps Pair the daemon with the resident [TypeScript](https://airprompter.com/docs/integrations/typescript) or [Python](https://airprompter.com/docs/integrations/python) integration, or replace hand-applied bundles with [the fleet pattern](https://airprompter.com/docs/integrations/fleet) when the estate grows. --- Canonical: https://airprompter.com/docs/integrations/cli # Set your account preferences Update your profile and authoring style, choose the default Personal or Team surface for this browser, and download your data or delete your account from Site settings. AirPrompter account settings cover five different responsibilities: **Profile**, **Plan & billing**, **Personalization**, **Developer**, and **Site settings**. Use each section for its intended job so a browser preference is not mistaken for an access or billing change. ![An abstract user setting explicit style and quality preferences that guide three consistent work outputs](https://airprompter.com/docs/illustrations/preference-consistency.webp) Make reusable authoring preferences explicit, then keep each job's critical requirements in its own prompt or workflow.[Open full-size illustration](https://airprompter.com/docs/illustrations/preference-consistency.webp) ## Before you change account settings Sign in to the account you intend to update and confirm whether you are working in a Personal or Team context. Use staged information for demonstrations and support captures. Never place a password, API key, customer identity, or private prompt text in a profile or preference field. ## Choose the correct account section | Section | Use it for | It does not do | | ------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------- | ----------------------------------------------- | | [Profile](https://airprompter.com/account) | Profile image and title | Change plan access or authoring instructions | | [Plan & billing](https://airprompter.com/account/billing) | Subscription, billing, creation usage, invoices | Configure API keys or default workspace context | | [Personalization](https://airprompter.com/account/personalization) | Authoring Style signals used when creating or improving prompts | Rewrite every existing prompt automatically | | [Developer](https://airprompter.com/account/developer) | API-key creation, status, rotation, and revocation | Grant Team write access outside OAuth | | [Site settings](https://airprompter.com/account/site-settings) | Browser-local default surface; **Your data**: download a copy of your data or delete your account | Change membership, entitlement, or billing | ## Update your profile 1. Sign in to AirPrompter. 2. Open **Account**. 3. Choose **Profile**. 4. Review the current image and title. 5. Update only the fields you want other product surfaces to use. 6. Save and verify the refreshed value. **Expected result:** the account page and product header reflect the accepted profile update. No prompt or workflow content changes. Do not use a real customer identity when preparing screenshots, documentation, demos, or support reproductions. Use a staged account or crop the profile region. ## Teach AirPrompter your authoring style **Authoring Style** stores explicit preferences that AirPrompter and eligible connected agents can use when helping create or improve prompts. It is not a hidden personality score and it does not turn model output into a saved prompt without the normal save action. Your Authoring Style is private to you: it belongs to your account, and it is not shared with or combined across a team. You can write it here, or ask an eligible connected AI tool, such as ChatGPT through the AirPrompter connector, to save a preference for you; either way it is stored in the same place, and AirPrompter reads it when it helps you create or improve a prompt, from the web app or whichever eligible connected AI tool you are working in. It shapes the prompts AirPrompter helps write; it is not a record of your chats. The current eleven preference categories are: - tone; - structure; - vocabulary; - formatting; - domain context; - workflow preference; - first move; - research method; - emphasis; - omissions; - quality bar. The interface presents these as user-readable rows. Write the preference in your own words and keep it specific enough to act on. ### Add or change a preference 1. Open [**Account → Personalization**](https://airprompter.com/account/personalization). 2. In **Authoring Style**, choose the category that owns the behavior. 3. Write one concrete preference, such as “Start with the decision and keep background to two short paragraphs.” 4. Save the change. 5. Ask AirPrompter or an eligible connected agent to design a harmless prompt. 6. Check whether the proposed instruction reflects the preference. **Expected result:** future authoring assistance can use the saved signal while the final prompt still requires the normal review and save decision. **Preferences guide authoring; they do not guarantee output** A model and host still interpret the saved instruction. Test representative inputs and keep acceptance criteria inside the prompt or workflow itself. ### Write preferences that agents can apply | Too vague | Actionable | | ---------------------- | -------------------------------------------------------------------------------------------- | | “Make it better” | “State the recommendation first, then list at most three supporting reasons.” | | “Use my tone” | “Use calm, direct language; avoid hype and rhetorical questions.” | | “Research carefully” | “Separate verified facts, inferences, and unknowns; attach a source to every factual claim.” | | “Keep workflows clean” | “Split at research, drafting, approval, or audit boundaries; merge pass-through steps.” | Put a rule in Authoring Style when it should influence many new prompts. Put it in one prompt when it applies only to that recurring job. ## Choose the default Personal or Team surface Eligible accounts can choose which surface AirPrompter opens by default in the current browser. 1. Open [**Account → Site settings**](https://airprompter.com/account/site-settings). 2. Find the default surface control. 3. Choose **Personal** or **Team**. 4. Navigate to another product page and confirm the intended surface opens. **Expected result:** this browser remembers the preferred starting surface when both contexts are available. **This preference does not change access** The default surface is a browser-local navigation preference. It does not add or remove Team membership, change roles, alter billing, or grant access to a workspace or resource. If the control is not shown, the account or current context is not eligible for both Personal and Team surfaces. ## Download your data or delete your account **Your data** is in [**Account → Site settings**](https://airprompter.com/account/site-settings), for every account. ### Download a copy of your data 1. Open **Account → Site settings** and find **Your data**. 2. On **Download a copy**, select **Export**. 3. Wait while it shows **Preparing…**. We email you when the file is ready. 4. Select **Download** on the same line, or open the link in the email while signed in. **Expected result:** a file with your prompts, workflows, skills, collections, run history, and profile. Passwords, API key secrets, and sign-in and connection tokens are left out. The download link works for 72 hours; then the file is deleted. ### Delete your account 1. Open **Account → Site settings** and find **Your data**. 2. Select **Delete account**. 3. Read what is deleted and what stays, type `DELETE`, and confirm. **Expected result:** you are signed out and the deletion finishes in the background. Download a copy of your data first if you want one; deletion cannot be undone. ## Manage developer access separately Open **Account → Developer** when a program, API client, or approved headless agent needs a credential. Create one key per integration, use the narrowest target and scope, and store the secret once. The complete runbook is [Create and protect API keys](https://airprompter.com/docs/api-keys). Do not paste a key into an Authoring Style preference, profile field, prompt, workflow, or support screenshot. ## Apply preferences to day-to-day work ### Consistent executive writing Save concise tone, recommendation-first structure, and evidence-separation preferences. Then keep each executive workflow’s audience, length, and required sections in the workflow prompts themselves. ### Research-heavy work Use the research-method and quality-bar categories to require source traceability during prompt authoring. Keep the actual allowed sources, date range, and citation format in each job-specific prompt. ### Personal and Team switching Choose the surface you open most often on your work computer. Continue using the visible workspace/account controls to verify the active context before creating or changing shared resources. ## Troubleshooting ### A preference does not affect an existing prompt Authoring Style guides creation and improvement assistance; it does not rewrite saved prompts automatically. Open the existing prompt, request an improvement, review the proposed change, and save only if it preserves the job. ### An agent ignores a preference Confirm that the connected action has access to the authoring style, make the preference concrete, and put critical acceptance rules directly in the prompt. Host and model behavior can still vary. ### The default Team surface is unavailable Confirm that the account is eligible for both contexts in the current product state. The preference cannot create Team membership or workspace access. ## Completion checklist - Your profile contains only the identity details you intend to show. - Authoring Style rules are concrete, reusable, and placed in the correct category. - Job-specific constraints remain inside the responsible prompt or workflow. - The default Personal/Team choice is understood as browser-local navigation. - You know where **Your data** is if you need a copy of your data or want to delete your account. - Developer credentials are managed only in **Account → Developer**. ## Next steps Apply your style to [a reusable prompt](https://airprompter.com/docs/prompts), design [a workflow with explicit quality gates](https://airprompter.com/docs/workflows), or create a protected [API key](https://airprompter.com/docs/api-keys). --- Canonical: https://airprompter.com/docs/account/preferences # Get a Team plan with a plan sheet How a Team plan is built from seats and the options you choose, how a plan sheet from sales prices it for your organization, and how you accept and pay for it. A Team plan gives your organization shared workspaces, Playbooks your team runs from the AI tools it already uses, and the controls you choose around them. It is built from **seats** and the **options** your team needs, and sales prices it for your organization on a **plan sheet**. AirPrompter does not publish list prices for Team plans. ## Before you start - Know roughly how many people will use AirPrompter day-to-day: every person on the plan has a seat. - Know who will accept the plan and pay for it. Sales sends the plan sheet to that person’s work email address, and that address signs in afterwards. - Have a list of the recurring work you want the team to run with AirPrompter, so sales can suggest the options that fit it. ## How a Team plan is built 1. **Seats.** Every person on the plan has a seat, and every seat comes with Playbooks. 2. **Options.** Add only what your team needs: governance policies for release checks, more workspaces, records, support, and monthly AI credits, file scans and file storage. The Team plan page at airprompter.ai/pricing lists every option, and marks the ones that cannot be bought yet **Coming soon**. 3. **Your plan sheet.** Sales prepares a plan sheet for your organization with the price of every line. You open it from the link sales sends you, with the password sales gives you, choose within it, accept it and pay. **Expected result:** your organization has the seats and options on the plan sheet you accepted, at the prices on that sheet. ## Talk to sales Open the Team plan page at airprompter.ai/pricing and choose **Talk to sales**, or use **Request a demo** on airprompter.ai. Tell us your team size and where your team uses AI today. Sales replies by email and prepares your plan sheet. ## Accept your plan sheet 1. Open the link in the email from sales. On **Enter your password**, type the password sales gave you. 2. Check the seats and options. Where the sheet lets you, switch an option on or off and watch the total change. 3. On **Accept this plan**, read the Master Subscription Agreement, confirm you have authority to buy for your organization, and choose **Continue to payment**. 4. Pay on Stripe’s secure payment page. 5. When you see **Payment received**, check your inbox. A new account gets a sign-in email with a temporary password; sign in with it, then choose your own password. **Expected result:** the plan sheet shows as paid, and your organization’s Team workspace is ready for you to invite your team. ## If something goes wrong - **The plan sheet link has expired.** A plan sheet lasts up to a week. Reply to the email from sales and ask for a new link. - **The password is refused.** After several wrong tries the sheet locks for a short while. Wait, then try again, or ask sales for the password again. - **Payment was not completed.** Your choices are saved. Open the sheet again and accept it again. - **The form on airprompter.ai fails to send.** Try again in a minute. If it still fails, email . - **An option you want says Coming soon.** It cannot be bought yet. Tell sales you want it, and they will tell you when it can be added. ## Completion checklist - You know which options your team needs for its recurring work. - Sales has your team size and contact details. - You accepted and paid for your plan sheet, and you can sign in to your organization. ## Next step Invite your team, then publish your first approved workflow to a Playbook so everyone runs the same version. See [Workflows](https://airprompter.com/docs/workflows). --- Canonical: https://airprompter.com/docs/account/team-plans # Get help from AirPrompter support Contact AirPrompter support by email for account, billing, connection, privacy, and security questions, and include the details that let us answer on the first reply. AirPrompter support answers questions about your account, billing, saved prompts and workflows, and the AI tools you connect to AirPrompter, including Microsoft 365 Copilot Cowork, ChatGPT, Claude, and Cursor. When a workflow you use in your day-to-day work stops behaving the way it did, support is the place to report it. ## Contact support | What you need | Where to go | | ----------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------ | | Help with your account, a plan, a connection, or a saved workflow | Email **** | | A security issue or vulnerability | Email **** with the subject line “Security Report” | | A copy of your data, or deleting your account | [Site settings › Your data](https://airprompter.com/account/site-settings), or email **** | | A legal or contract question | Email **** | | A Team plan or a purchase for your organization | Email **** | ## Before you contact support Collect the details that let support answer on the first reply: - The email address of the AirPrompter account you sign in with. - Whether you were working in your Personal library or a Team workspace, and the Team name. - The AI tool you were using, such as Copilot Cowork, ChatGPT, Claude, or Cursor. - The name of the prompt or workflow, what you asked for, and what happened instead. - The time it happened and your time zone. Never send a password, an API key, or an access token. Support never asks for them. ## Send a support request 1. Write to **** from the email address on your AirPrompter account when you can. 2. Put the problem in the subject line, for example “Workflow run stops at step 2 in Copilot Cowork”. 3. Paste the details from the list above into the message. 4. Attach a screenshot if one shows the problem. Crop out customer data and private prompt text. 5. Send the message and keep the reply thread for any follow-up. **Expected result:** support replies on the same email thread. If we need more detail, we ask in that thread. ## If something goes wrong - **AirPrompter tools are missing in your AI tool, or it asks you to sign in again.** Ask the AI tool to “diagnose my AirPrompter connection”. The answer names the account the connection uses and what to fix. Include that answer in your support request if the problem stays. - **You signed in with the wrong account.** Disconnect AirPrompter in your AI tool, connect it again, and sign in with the account that holds your work. - **A payment or plan change did not finish.** Do not pay again. Email support with the date of the change and the plan you chose. - **You don’t get a reply.** Check your spam folder for a message from , then reply to your own message to bump the thread. ## Completion checklist - [ ] The message names your AirPrompter account email and the AI tool you used. - [ ] It says what you expected and what happened instead. - [ ] It contains no password, API key, or token. - [ ] You can find support’s reply in the same email thread. ## Next steps - [Set your account preferences](https://airprompter.com/docs/account/preferences) to check your profile, plan, and data settings. - [Connect an AI host to AirPrompter](https://airprompter.com/docs/connect) if you need to set up a connection again. --- Canonical: https://airprompter.com/docs/account/support # Compare AirPrompter with other prompt tools Dated, sourced comparisons of AirPrompter, a library of skills and multi-step workflows, with TextExpander and God of Prompt, and a guide to choosing an AI prompt library for ChatGPT, Claude, Gemini and Grok, with where each tool fits best. AirPrompter keeps the skills and multi-step workflows that work for you, made of prompts plus helper scripts for exact work, in one library and runs them inside ChatGPT, Claude, Gemini, Grok and other AI tools, with no new app to switch to and the same steps in the same order every time; on Team plans, each workflow is reviewed and signed off before the team runs it. It is close to a software factory for your own know-how. Other tools are built around different jobs: ready-made prompts written for everyone, a text expander for everything you type, or expert prompts you buy once. These pages set the facts side by side so you can pick the one that fits. ## Start here - [Best AI prompt library: how to choose in 2026](https://airprompter.com/compare/best-ai-prompt-library) How to choose an AI prompt library in 2026: seven questions to ask, and a dated side-by-side of AirPrompter, TextExpander and God of Prompt, including where each one fits best. Last reviewed 2026-11-18 ## AirPrompter compared - [AirPrompter vs TextExpander](https://airprompter.com/compare/airprompter-vs-textexpander) AirPrompter keeps your skills and multi-step workflows, with helper scripts for exact work, and runs them from ChatGPT, Claude, Gemini, Grok and other AI tools. TextExpander inserts saved snippets, prompts included, anywhere you type on Mac, Windows, Chrome, iPhone and iPad. Last reviewed 2026-11-18 - [AirPrompter vs God of Prompt](https://airprompter.com/compare/airprompter-vs-god-of-prompt) AirPrompter keeps your own skills and multi-step workflows, with helper scripts for exact work, in one library and runs them from ChatGPT, Claude, Gemini, Grok and other AI tools. God of Prompt offers ready-made expert prompts, a one-time $150 bundle and the NjectAI context extension. Last reviewed 2026-11-18 Buying for a team? [AirPrompter's team comparisons](https://airprompter.ai/compare/) cover the sharing built into ChatGPT, Claude, Gemini and Grok, TextExpander, TeamAI and[PromptFluent](https://airprompter.ai/compare/airprompter-vs-promptfluent/). ## How these pages are written - Facts about other products come only from their own websites, read on the date shown, and every page lists those sources. - Facts about AirPrompter come from the [AirPrompter documentation](https://airprompter.com/docs) and the [pricing page](https://airprompter.com/pricing). - If a product's pages do not mention a feature, the tables say "Not listed on its pages", not "No". - Every page has a section on where the other tool is stronger and when to choose it. - AirPrompter publishes these pages. Nothing here is a rating or a review score. [Try AirPrompter free](https://airprompter.com/?auth=signup): the Free plan keeps up to 50 prompts and 5 workflows. Most recent review: November 18, 2026 --- Canonical: https://airprompter.com/compare # Best AI prompt library: how to choose in 2026 How to choose an AI prompt library in 2026: seven questions to ask, and a dated side-by-side of AirPrompter, TextExpander and God of Prompt, including where each one fits best. The right AI prompt library depends on where your prompts come from and where you use them. If you want your own skills and multi-step workflows, built from prompts you write and, where a step needs exact work, helper scripts your AI tool runs, in one library that runs inside ChatGPT, Claude, Gemini, Grok and other AI tools with no new app to switch to and the same steps in the same order every time, choose AirPrompter \[6]\[7]\[8]. It carries your own fingerprint: prompts and workflows written from how you actually work, shaped, on Pro, by your Authoring Style notes \[11]\[17]. Its library is not stored in one AI vendor's format, so it does not move when a vendor changes its own feature, as OpenAI is doing by retiring custom GPTs on 11 December 2026 \[13]; on Team plans, each workflow is also reviewed and signed off before the team runs it \[10]. If your work doesn't need your own processes and way of doing things written into each prompt, ready-made prompts written for everyone can be enough, and God of Prompt's free web library and one-time bundle are a place to start \[3]\[4]; if you want one snippet library for everything you type, AI included, TextExpander covers every app on your computer and phone \[1]. ## Seven questions to ask before you choose 1. **Where do you use your prompts?** One AI chat, several AI chats, or every app including email and your phone, and whether you want to keep working inside your AI tool. The answer rules tools in or out quickly. 2. **Is the job one prompt or several steps?** Work such as research, then draft, then check is easier to repeat when the steps are saved in order. 3. **Who else uses them?** Sharing, sign-off and version history matter once a team relies on the same prompts, and so does whether each prompt follows your company's written rules. 4. **Will your prompts outlast a vendor's change?** Custom GPTs retire on 11 December 2026, and Gems on personal Google accounts are moving to skills from November 2026 \[13]\[14]. Prompts kept in a library outside one vendor's format are not part of those moves. 5. **Do parts of the prompt change each time?** Variables or fill-ins let you keep one prompt and swap in the client, topic or source text. 6. **Where will your prompts come from?** If ready-made prompts written for everyone are enough, a large catalog matters most. If your work should carry your own fingerprint, your processes and way of doing things, you need a good place to save and improve the prompts you write. 7. **How do you want to pay?** Free plans, monthly subscriptions and one-time bundles all exist in this category. ## Side by side | | AirPrompter | TextExpander | God of Prompt | | ------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | | Best for | Your own skills and multi-step workflows, with helper scripts for exact work, written from how you work and run inside the AI tools you already use | One snippet library for everything you type | Ready-made, expert-written prompts to copy, bought once | | Where you use it | Inside your AI tool: the browser extension beside ChatGPT, Claude, Gemini, Grok and Perplexity, or MCP hosts including ChatGPT, Gemini, Grok and Codex; no new app to switch to \[7]\[8]\[16] | Wherever you type, in any app on Mac, Windows, Chrome, iPhone and iPad \[1] | Copy into any model, or use NjectAI inside ChatGPT, Claude, Gemini, Google AI Mode, Perplexity and Grok \[5] | | Multi-step workflows | Yes \[6] | Not listed on its pages | Not listed as a library feature on its pages | | Notes on how you write | On Pro: Authoring Style notes, read when AirPrompter helps you write or improve a prompt; private to you \[17] | Not listed on its pages | NjectAI saves the way you write as a profile \[5] | | Team sharing | Yes, on Team plans, with each workflow reviewed and signed off before the team runs it \[10] | Yes, shared Snippet Groups \[2] | Not listed on its pages | | Team checks against standards and company policy | On Team plans with Assurance: checked against published frameworks such as AISPA from the Stanford Digital Economy Lab (the Built-in Policies line) and, with the Company Policies line, your company's own written rules \[9]\[15]\[18] | Not listed on its pages; Snippet Requests on Business and up \[1] | Not listed on its pages | | Activity history and analytics | On Pro: Activity, a filterable history of your workflow runs, and Analytics for your prompts and workflows, with CSV export \[9] | Personal and Organization Statistics, with export on Pro and Business; Snippet activity history on paid plans \[1] | Not listed on its pages | | Variables | Yes \[11] | Yes, fill-ins \[2] | Placeholders written into the prompts \[12] | | Version history | Team Playbooks only; personal prompts are not versioned \[10]\[11] | Paid plans, from 24 hours to unlimited \[1] | Not listed on its pages | | Ready-made prompts | A public Community; no catalog size published \[9] | Mostly your own; Starter Snippet packs are offered \[1] | 7,900+ engineered prompts \[3] | | Free option | Free plan, 50 prompts and 5 workflows \[9] | Free plan, unlimited Snippets with 5 active \[1] | Free library to browse \[3] | | Paid from | $14.99 a month \[9] | $60 per user a year, billed annually \[1] | $20 once for the AI Starter Pack, $150 once for the bundle; NjectAI $9 a month \[4]\[5] | ## Which one suits whom - **AirPrompter** suits people who want their own skills and repeatable workflows, built from prompts that work and from how they actually work, with helper scripts your AI tool runs where a step needs exact work, used inside ChatGPT, Claude, Gemini, Grok and other tools without leaving them, and teams that want a workflow reviewed and signed off before the team runs it, with every workflow run recorded with where it ran from \[6]\[7]\[8]\[10]\[15]. - **On Pro:** Activity keeps a filterable history of your workflow runs, and Analytics shows how your prompts and workflows are used and perform, with CSV export \[9]. - **As your team grows:** if you run the same processes with AI again and again, a Team plan puts the approved skills and workflows into Playbooks that every member runs from their own AI tool, so everyone runs the same approved version \[10]. - **For your team's agents:** on a Team plan with Team Agents (the Agents plan, which is coming soon), agents get your team's approved instructions, checked against your standards and Company Policy, every change is versioned and rolled out the same way to every agent, and AirPrompter gets back counts, never text \[15]\[19]. - **For teams on the Assurance tier:** each new version is first checked against frameworks such as AISPA (the Built-in Policies line) and, with the Company Policies line, your company's own written rules, with the exact line that needs a fix \[9]\[15]\[18]. - **For your own agents:** a custom agent that is an MCP client can use the library through the MCP server today, with support-assisted setup; the Agent SDK comes with Team Agents on the Agents plan, which is coming soon \[15]\[16]\[19]. - **TextExpander** suits people and teams who want the same shortcuts everywhere they type, on desktop and mobile, with shared snippet groups and version history on paid plans \[1]\[2]. - **God of Prompt** suits people for whom ready-made, expert-written prompts and guides are enough to learn from, and who prefer to pay once \[3]\[4]. Its Custom Prompt Generator also creates custom prompts, and with NjectAI they draw on your saved business, audience and voice \[3]\[5]. Each leads somewhere different. AirPrompter is the only one of the three whose pages describe saving prompts as multi-step workflows; God of Prompt has the biggest ready-made catalog and is the only one-time purchase; TextExpander works in the most places and has the most complete version history. ## Quick answers **Can I use my saved prompts without leaving ChatGPT or Claude?** Yes, with any of the three. AirPrompter's browser extension runs a saved prompt or workflow beside both, and in ChatGPT the AirPrompter connector lets you ask for a saved workflow by name; in Claude, it depends on the Claude surface \[7]\[8]\[16]. TextExpander inserts a snippet as you type, and NjectAI works inside both \[1]\[5]. **How do I use the same prompts in ChatGPT, Claude and Gemini?** Any of the three can help: TextExpander inserts them as you type, NjectAI runs as a browser extension, and AirPrompter works through its extension or an MCP connection \[1]\[5]\[7]\[8]. AirPrompter also runs multi-step workflows in those tools, and MCP hosts can run a saved workflow by name \[6]\[8]. **Can the AI remember how I like my prompts written?** On AirPrompter Pro, save notes on tone, structure, vocabulary, formatting, domain context and workflow in Authoring Style, or ask a connected AI tool to save one; AirPrompter reads them when it helps you write or improve a prompt, and they are private to you. They shape the prompts AirPrompter helps write; they are not a record of your chats \[17]. God of Prompt's NjectAI saves the way you write as a profile and adds it to prompts \[5]. **Is there a prompt library that works in Gemini and Grok as well as ChatGPT?** Yes. AirPrompter's browser extension works in Gemini and Grok as well as ChatGPT, Claude and Perplexity \[7], and God of Prompt's NjectAI also runs in Gemini and Grok; its pages describe it as adding your saved context to prompts and improving drafts \[5]. **What happens to my custom GPTs after 11 December 2026?** OpenAI retires custom GPTs on that date (11 February 2027 for FedRAMP workspaces and approved deferrals). A migrated GPT's instructions become a skill inside a plugin, which starts private, and custom actions do not transfer \[13]. A prompt or workflow saved in AirPrompter is not a custom GPT, so it is not part of that migration \[8]. **How do I make sure my team runs the approved version of a prompt?** On an AirPrompter Team plan, changes go into review and a reviewer approves them before they go live; the approved workflow is published to a Playbook, and everyone who runs it from there runs the same version \[10]\[15]. **What is the best free AI prompt library?** For saving your own prompts, AirPrompter Free keeps up to 50 prompts and 5 workflows, and TextExpander Free keeps 5 Snippets active at a time \[1]\[9]. For ready-made prompts, God of Prompt's Prompt Library is free to browse \[3]. **What is the difference between a prompt library and a prompt manager?** A library is a collection to browse; a manager is where you save, organize and reuse your own. God of Prompt leads with the collection, TextExpander and AirPrompter lead with your own prompts. **Which tools are not covered here?** Developer prompt-management platforms such as PromptLayer and Langfuse, which manage prompts inside software products, are a different category. Many smaller browser extensions also exist; we compared the three that came up most often for individuals in November 2026. PromptFluent, a business prompt library with team approvals, is compared on AirPrompter's team site: [AirPrompter vs PromptFluent](https://airprompter.ai/compare/airprompter-vs-promptfluent/). ## How we compared We searched the questions people ask, such as "best AI prompt library", "save and reuse ChatGPT prompts" and "prompt manager for ChatGPT and Claude", and picked the products that came up most often for individual users. We read each product's own website, OpenAI's and Google's help pages and the AISPA paper from the Stanford Digital Economy Lab on 18 November 2026, and took AirPrompter's facts from its documentation, pricing page and team site. Where a product's pages do not mention a feature, the table says "Not listed on its pages" rather than "No". Prices are in US dollars before tax. AirPrompter publishes this guide; it is a comparison of facts, not a rating. For detail, see the one-to-one pages: [AirPrompter vs TextExpander](https://airprompter.com/compare/airprompter-vs-textexpander) and [AirPrompter vs God of Prompt](https://airprompter.com/compare/airprompter-vs-god-of-prompt). ## Try it with your own prompts [Try AirPrompter free](https://airprompter.com/?auth=signup): the Free plan keeps up to 50 prompts and 5 workflows \[9]. ## Sources 1. \[1] [TextExpander: Plans and pricing](https://textexpander.com/pricing) textexpander.comAccessed 2026-11-18 2. \[2] [TextExpander blog: How to build an AI prompt library your team will keep using](https://textexpander.com/blog/ai-prompt-library-guide) textexpander.comAccessed 2026-11-18 3. \[3] [God of Prompt: home page](https://www.godofprompt.ai/) godofprompt.aiAccessed 2026-11-18 4. \[4] [God of Prompt: Products and pricing](https://www.godofprompt.ai/pricing) godofprompt.aiAccessed 2026-11-18 5. \[5] [God of Prompt: NjectAI](https://www.godofprompt.ai/nject) godofprompt.aiAccessed 2026-11-18 6. \[6] [AirPrompter docs: Design and run workflows](https://airprompter.com/docs/workflows) airprompter.comAccessed 2026-11-18 7. \[7] [AirPrompter docs: Use AirPrompter in your browser](https://airprompter.com/docs/browser-extension) airprompter.comAccessed 2026-11-18 8. \[8] [AirPrompter docs: Connect an AI host to AirPrompter](https://airprompter.com/docs/connect) airprompter.comAccessed 2026-11-18 9. \[9] [AirPrompter: Pricing](https://airprompter.com/pricing) airprompter.comAccessed 2026-11-18 10. \[10] [AirPrompter docs: Get a Team plan with a plan sheet](https://airprompter.com/docs/account/team-plans) airprompter.comAccessed 2026-11-18 11. \[11] [AirPrompter docs: Build a reusable prompt library](https://airprompter.com/docs/prompts) airprompter.comAccessed 2026-11-18 12. \[12] [God of Prompt: Prompt Library](https://www.godofprompt.ai/prompt-library) godofprompt.aiAccessed 2026-11-18 13. \[13] [OpenAI Help Center: Custom GPT retirement and migration FAQ](https://help.openai.com/en/articles/20001519-custom-gpt-retirement-and-migration-faq) help.openai.comAccessed 2026-11-18 14. \[14] [Gemini Apps Help: Use Gems in Gemini Apps](https://support.google.com/gemini/answer/15146780) support.google.comAccessed 2026-11-18 15. \[15] [AirPrompter for teams](https://airprompter.ai/) airprompter.aiAccessed 2026-11-18 16. \[16] [AirPrompter docs: Connect through MCP directly](https://airprompter.com/docs/mcp) airprompter.comAccessed 2026-11-18 17. \[17] [AirPrompter docs: Set your account preferences](https://airprompter.com/docs/account/preferences) airprompter.comAccessed 2026-11-18 18. \[18] [Stanford Digital Economy Lab: AISPA: User-Centric System Prompt Auditing for Large Language Model Applications (working paper, 6 August 2026)](https://digitaleconomy.stanford.edu/publication/aispa-user-centric-system-prompt-auditing-for-large-language-model-applications/) digitaleconomy.stanford.eduAccessed 2026-11-18 19. \[19] [AirPrompter docs: Integrate Team Agents with your own systems](https://airprompter.com/docs/integrations) airprompter.comAccessed 2026-11-18 Last reviewed 2026-11-18 --- Canonical: https://airprompter.com/compare/best-ai-prompt-library # AirPrompter vs TextExpander AirPrompter keeps your skills and multi-step workflows, with helper scripts for exact work, and runs them from ChatGPT, Claude, Gemini, Grok and other AI tools. TextExpander inserts saved snippets, prompts included, anywhere you type on Mac, Windows, Chrome, iPhone and iPad. Choose AirPrompter if your AI work runs in several steps or across several AI tools and you want to stay inside them: it keeps your skills and multi-step workflows, made of your prompts plus any helper scripts for exact work, which your AI tool runs, in one library, and runs them in ChatGPT, Claude, Gemini, Grok and other AI tools through a browser extension or an MCP connection, with no new app to switch to and the same steps in the same order every time \[5]\[6]\[7]. On a Team plan, each workflow is reviewed and signed off before the team runs it, and every workflow run is recorded with where it ran from \[9]\[10]. If all you need is one snippet library for everything you type, AI included, TextExpander is built for that: it inserts saved snippets, including prompts with fill-in fields, anywhere you type on Mac, Windows, Chrome, iPhone and iPad \[1]\[2]. ## Best for - **AirPrompter:** people who run the same AI job again and again, as a skill or a workflow of several steps, and want it to run the same way inside ChatGPT, Claude, Gemini or Grok. - **TextExpander:** people and teams who want one library of reusable text, from email replies to AI prompts, that works in every app and on their phone. ## At a glance | | AirPrompter | TextExpander | | ------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | What it is | Skills and multi-step workflows you build from how you work, made of prompts plus helper scripts for exact work, which your AI tool runs; one library you run from your AI tools \[4]\[5] | A snippet tool that inserts saved text as you type, by abbreviation or search \[1] | | Where you use it | Inside your AI tool: the Chrome or Firefox extension beside ChatGPT, Claude, Gemini, Grok and Perplexity, or the MCP connector in hosts including ChatGPT, Gemini, Grok, Codex and LM Studio; no new app to switch to \[6]\[7]\[12] | Wherever you type, on Mac, Windows, Chrome, iPhone and iPad: a shortcut typed in ChatGPT, Claude, Gemini, Copilot or any other app inserts the prompt at your cursor \[1]\[2]\[11] | | Multi-step workflows | Yes: ordered steps, run one at a time or with Run All \[5]\[6] | Not listed on its pages | | AI assistants over MCP | Remote MCP server: an AI host finds a saved workflow by name and runs it step by step \[7] | MCP access for AI agents, listed on every plan \[1]; its AI page calls the MCP server early access and says Claude, ChatGPT or Copilot can search, create and update Snippets \[3] | | Notes on how you write | On Pro: Authoring Style, your notes on tone, structure, vocabulary, formatting, domain context and workflow, read when AirPrompter helps you write or improve a prompt; private to you \[13] | Not listed on its pages; a fill-in can ask for details such as tone each time a snippet is used \[11] | | Sharing | Publish to the Community; Team plans add shared workspaces and Playbooks, with each workflow reviewed and signed off before the team runs it \[8]\[9] | Shared Snippet Groups with expand, edit and manage permissions \[2] | | Team checks against standards and company policy | On Team plans with Assurance: each new version is checked against published frameworks such as AISPA from the Stanford Digital Economy Lab (the Built-in Policies line) and, with the Company Policies line, your company's own written rules before the team runs it \[8]\[10]\[14] | Not listed on its pages; on Business and Enterprise, Snippet Requests let anyone suggest a prompt edit, which is reviewed before it reaches the team \[11] | | Activity history and analytics | On Pro: Activity lists every workflow run, filterable by workflow, with its status, duration and tokens; Analytics shows how your prompts and workflows are used and perform, with CSV export \[8] | Personal Statistics on every plan; Organization Statistics (time saved, Snippets expanded, most-used Snippets), with export on Pro and Business; Snippet activity history with revert on paid plans: 24 hours on Pro, 7 days on Business, unlimited on Enterprise \[1] | | Variables | Yes: {{snake\_case}} placeholders you fill each run \[4] | Yes: fill-ins that ask for details before inserting \[2] | | Version history | Personal prompts are edited in place, not versioned; a Team Playbook gives everyone the same reviewed version \[4]\[9] | Revert to a previous version: 24 hours on Pro, 7 days on Business, unlimited on Enterprise \[1] | | Outside AI chats | Built for AI tools; not a general text expander | Yes: email, documents, support tools and any other text field \[1] | | Free plan | Free: up to 50 prompts and 5 workflows \[8] | Free: unlimited Snippets stored, 5 active at a time \[1] | | Paid plans start at | Pro: $14.99 a month or $144 a year \[8] | Pro: $60 per user a year, billed annually; Business: $120 per user a year \[1] | ## Where AirPrompter is stronger - **Stay in your AI tool, and let it run the work.** Ask ChatGPT, Gemini, Grok or Codex for a saved workflow by name over MCP, or run it from the browser extension beside the chat; the steps run there, with no new app to switch to \[6]\[7]\[12]. TextExpander also works where you type, by inserting a snippet at your cursor \[11]. - **Skills with helper scripts for exact work.** A skill can carry scripts and files for the parts that must come out exactly right, such as parsing a file, a calculation, an API call or filling a template. Your AI tool runs them where it can run code, under its own approval rules; AirPrompter stores them with the skill and never runs them \[5]. - **Workflows, not only snippets.** A workflow puts focused prompts in order and the browser extension runs them step by step or with Run All \[5]\[6]. A support reply, for example, can summarize the ticket, draft the answer, then rewrite it in your team's tone, in that order every time. The TextExpander pages we read describe single snippets, not multi-step AI runs, and TextExpander lists MCP access for AI agents on every plan, through which an AI assistant can search, create and update Snippets \[1]\[3]. - **Activity history and analytics for workflow runs.** On Pro, Activity lists every workflow run, filterable by workflow, with its status, duration and tokens, and Analytics shows how your prompts and workflows are used and how they perform, with CSV export \[8]. TextExpander's statistics count Snippet use, such as time saved and Snippets expanded, with export on Pro and Business \[1]. - **Notes on how you write, on Pro.** Keep Authoring Style notes on tone, structure, vocabulary, formatting, domain context and workflow, or ask a connected AI tool to save one; AirPrompter reads them when it helps you write or improve a prompt, in whichever connected AI tool you use, and they are private to you \[13]. - **More prompts ready to use on a free plan.** AirPrompter Free keeps up to 50 prompts and 5 workflows ready to use; TextExpander Free stores unlimited Snippets, with 5 active at a time \[1]\[8]. - **Team workflows people sign off on, checked against your rules.** On a Team plan, a workflow is reviewed and signed off before the team runs it from a Playbook, so everyone runs the same version, and every workflow run is recorded with where it ran from \[9]\[10]. With the Assurance tier, each new version is first checked against frameworks such as AISPA (the Built-in Policies line) and, with the Company Policies line, your company's own written rules, with the exact line that needs a fix \[8]\[10]\[14]. On Business and Enterprise, TextExpander's Snippet Requests also review suggested edits before they reach the team \[11]. - **Your own agents too.** A custom agent that is an MCP client can use your AirPrompter library through the MCP server today; direct setup is support-assisted. The Agent SDK, for prompts inside your own applications, comes with Team Agents on the Agents plan, which is coming soon \[10]\[12]\[15]. ## Where TextExpander is stronger - **It works everywhere you type.** Snippets expand on Mac, Windows, Chrome, iPhone and iPad, in any app, not only in AI chats \[1]. - **Version history on paid plans.** Pro, Business and Enterprise keep Snippet activity history and let you revert to a previous version \[1]. - **Team controls for snippets.** Business and Enterprise add Snippet Requests, guest sharing and single sign-on \[1]. - **A lower yearly price per person.** TextExpander Pro is $60 per user a year, billed annually; AirPrompter Pro is $144 a year \[1]\[8]. ## Choose AirPrompter if… - you want to stay inside ChatGPT, Claude, Gemini or Grok and have the AI tool run your saved work there; - your AI work has several steps you repeat, and each step should stay the same; - you want an AI assistant to find and run your workflow by name; - you want more than five prompts ready to use at once on a free plan; - you run the same processes with AI again and again, and your team may grow into sharing them: on a Team plan, the approved skills and workflows go into Playbooks that every member runs from their own AI tool, so everyone runs the same approved version \[9]; - you want AI agents that work the way your team does: on a Team plan with Team Agents (the Agents plan, which is coming soon), your agents get your team's approved instructions, checked against your standards and Company Policy, every change is versioned and rolled out the same way to every agent, and AirPrompter gets back counts, never text \[10]\[15]. ## Choose TextExpander if… - you want the same shortcuts in email, documents and support tools as well as in AI chats; - you work on a phone or tablet as well as a computer; - your prompts are single pieces of text you paste and fill in; - your company already uses TextExpander for shared snippets. ## Using both They can sit side by side: TextExpander for everyday text and short prompt snippets, AirPrompter for the AI jobs that take several steps. ## Quick answers **Can I use my saved prompts without leaving ChatGPT or Claude?** Yes, with either. AirPrompter's browser extension runs a saved prompt or workflow beside ChatGPT and Claude, and in ChatGPT the AirPrompter connector lets you ask for a saved workflow by name; in Claude, what you can do depends on the Claude surface \[6]\[7]\[12]. TextExpander inserts a saved snippet at your cursor as you type in either \[11]. **Can TextExpander run a multi-step AI workflow?** The TextExpander pages we read describe inserting one snippet at a time, with fill-ins for the parts that change; they do not describe running a sequence of prompts \[1]\[2]. **Can the AI remember how I like my prompts written?** On AirPrompter Pro, save notes on tone, structure, vocabulary, formatting, domain context and workflow in Authoring Style, or ask a connected AI tool to save one; AirPrompter reads them when it helps you write or improve a prompt, and they are private to you. They shape the prompts AirPrompter helps write; they are not a record of your chats \[13]. The TextExpander pages we read do not list a similar feature; a fill-in can ask for details such as tone each time \[11]. **How do I make sure my team runs the approved version of a prompt?** On an AirPrompter Team plan, changes go into review and a reviewer approves them before they go live; the approved workflow is published to a Playbook, and everyone who runs it from there runs the same version \[9]\[10]. On TextExpander Business and Enterprise, Snippet Requests let anyone suggest a prompt edit, which is reviewed before it reaches the team \[11]. **Does AirPrompter work outside AI chats?** Its browser extension is built for AI chats and its MCP connection for AI hosts \[6]\[7]. For email, documents and other apps, a text expander such as TextExpander is the better fit \[1]. ## How we compared We read TextExpander's own website and the AISPA paper from the Stanford Digital Economy Lab on 18 November 2026 and took AirPrompter's facts from its documentation, pricing page and team site. TextExpander's pricing page shows Pro as $6 a month on the plan card and $5 a month in its FAQ, both billed annually at $60 a year, so we quote the annual totals. Prices are in US dollars before tax. Where TextExpander's pages do not mention a feature, the table says "Not listed on its pages" rather than "No". AirPrompter publishes this page; it is a comparison of facts, not a rating. ## Try it with your own prompts [Try AirPrompter free](https://airprompter.com/?auth=signup): the Free plan keeps up to 50 prompts and 5 workflows \[8]. ## Sources 1. \[1] [TextExpander: Plans and pricing](https://textexpander.com/pricing) textexpander.comAccessed 2026-11-18 2. \[2] [TextExpander blog: How to build an AI prompt library your team will keep using](https://textexpander.com/blog/ai-prompt-library-guide) textexpander.comAccessed 2026-11-18 3. \[3] [TextExpander: AI solutions](https://textexpander.com/ai-solutions) textexpander.comAccessed 2026-11-18 4. \[4] [AirPrompter docs: Build a reusable prompt library](https://airprompter.com/docs/prompts) airprompter.comAccessed 2026-11-18 5. \[5] [AirPrompter docs: Design and run workflows](https://airprompter.com/docs/workflows) airprompter.comAccessed 2026-11-18 6. \[6] [AirPrompter docs: Use AirPrompter in your browser](https://airprompter.com/docs/browser-extension) airprompter.comAccessed 2026-11-18 7. \[7] [AirPrompter docs: Connect an AI host to AirPrompter](https://airprompter.com/docs/connect) airprompter.comAccessed 2026-11-18 8. \[8] [AirPrompter: Pricing](https://airprompter.com/pricing) airprompter.comAccessed 2026-11-18 9. \[9] [AirPrompter docs: Get a Team plan with a plan sheet](https://airprompter.com/docs/account/team-plans) airprompter.comAccessed 2026-11-18 10. \[10] [AirPrompter for teams](https://airprompter.ai/) airprompter.aiAccessed 2026-11-18 11. \[11] [TextExpander: AI Prompt Manager for ChatGPT, Claude & Gemini](https://textexpander.com/ai-prompts) textexpander.comAccessed 2026-11-18 12. \[12] [AirPrompter docs: Connect through MCP directly](https://airprompter.com/docs/mcp) airprompter.comAccessed 2026-11-18 13. \[13] [AirPrompter docs: Set your account preferences](https://airprompter.com/docs/account/preferences) airprompter.comAccessed 2026-11-18 14. \[14] [Stanford Digital Economy Lab: AISPA: User-Centric System Prompt Auditing for Large Language Model Applications (working paper, 6 August 2026)](https://digitaleconomy.stanford.edu/publication/aispa-user-centric-system-prompt-auditing-for-large-language-model-applications/) digitaleconomy.stanford.eduAccessed 2026-11-18 15. \[15] [AirPrompter docs: Integrate Team Agents with your own systems](https://airprompter.com/docs/integrations) airprompter.comAccessed 2026-11-18 Last reviewed 2026-11-18 --- Canonical: https://airprompter.com/compare/airprompter-vs-textexpander # AirPrompter vs God of Prompt AirPrompter keeps your own skills and multi-step workflows, with helper scripts for exact work, in one library and runs them from ChatGPT, Claude, Gemini, Grok and other AI tools. God of Prompt offers ready-made expert prompts, a one-time $150 bundle and the NjectAI context extension. Choose AirPrompter if you want your own skills and multi-step workflows, built from the prompts that work for you and, where a step needs exact work, helper scripts your AI tool runs, inside ChatGPT, Claude, Gemini, Grok and other AI tools, with no new app to switch to: one library that runs the same steps in the same order every time and is kept in one place rather than in one AI vendor's format \[5]\[6]\[7]\[8]. It carries your own fingerprint: prompts and workflows written from how you actually work, shaped, on Pro, by your Authoring Style notes \[5]\[15]. If your work doesn't need your own processes and way of doing things written into each prompt, ready-made prompts written for everyone can be enough: God of Prompt offers a free library of engineered prompts, a $150 one-time Complete AI Bundle, and the NjectAI Chrome extension, which adds your saved context, including the way you write, to prompts in ChatGPT, Claude, Gemini, Perplexity and Grok \[1]\[2]\[3]\[4]. ## Best for - **AirPrompter:** people who want their own skills and repeatable workflows, built from the prompts that work for them, inside the AI tools they already use, and teams that want each workflow signed off before everyone runs it. - **God of Prompt:** people who are new to a task or a model, for whom a large set of ready-made prompts and guides, written for everyone, is enough, bought once or browsed for free. ## At a glance | | AirPrompter | God of Prompt | | ------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | What it is | Skills and multi-step workflows you build from how you work, made of prompts plus helper scripts for exact work, which your AI tool runs; one library you run from your AI tools \[5]\[6] | Ready-made prompts, guides, Custom GPTs and automations; 7,900+ engineered prompts by its own count \[1] | | Where you use it | Inside your AI tool: the Chrome or Firefox extension beside ChatGPT, Claude, Gemini, Grok and Perplexity, or the MCP connector in hosts including ChatGPT, Gemini, Grok, Codex and LM Studio; no new app to switch to \[7]\[8]\[14] | Copy a library prompt into ChatGPT, Claude, Gemini, Midjourney and more, or use NjectAI, a Chrome extension, inside ChatGPT, Claude, Gemini, Google AI Mode, Perplexity and Grok \[2]\[4] | | Multi-step workflows | Yes: ordered steps, run one at a time or with Run All \[6]\[7] | Not listed as a library feature on its pages | | Notes on how you write | On Pro: Authoring Style, your notes on tone, structure, vocabulary, formatting, domain context and workflow, read when AirPrompter helps you write or improve a prompt; private to you \[15] | NjectAI saves your business, your audience and the way you write as a profile and adds it to the prompts you send \[4] | | Team sharing and sign-off | Publish to the Community; on Team plans, a workflow is reviewed and signed off before the team runs it from a Playbook, so everyone runs the same version \[9]\[10] | Not listed on its pages | | Team checks against standards and company policy | On Team plans with Assurance: each new version is checked against published frameworks such as AISPA from the Stanford Digital Economy Lab (the Built-in Policies line) and, with the Company Policies line, your company's own written rules before the team runs it \[9]\[13]\[16] | Not listed on its pages | | Activity history and analytics | On Pro: Activity lists every workflow run, filterable by workflow, with its status, duration and tokens; Analytics shows how your prompts and workflows are used and perform, with CSV export \[9] | Not listed on its pages | | Variables | Yes: {{snake\_case}} placeholders you fill each run \[5] | Library prompts include {{placeholder}} inputs; NjectAI fills in your saved context \[2]\[4] | | Built around | Skills and multi-step workflows built from how you work, with helper scripts for exact work such as parsing, calculations and API calls; saved, versioned and run from your AI tools \[5]\[6] | Expert-written prompts you browse and copy \[2] | | Free option | Free: up to 50 prompts and 5 workflows \[9] | Prompt Library is free to browse; NjectAI has no free plan \[2]\[4] | | Paid options | Pro: $14.99 a month or $144 a year \[9] | AI Starter Pack: $20, one payment. Complete AI Bundle: $150, one payment, lifetime access. NjectAI Pro: $9 a month or $84 a year \[3]\[4] | ## Where AirPrompter is stronger - **Work where you already work.** Run a saved prompt or workflow from the browser extension beside ChatGPT, Claude, Gemini, Grok or Perplexity, or ask an MCP host such as ChatGPT, Gemini, Grok or Codex to run a saved workflow by name. There is no new app to switch to \[7]\[8]\[14]. - **Skills with helper scripts for exact work.** A skill can carry scripts and files for the parts that must come out exactly right, such as parsing a file, a calculation, an API call or filling a template. Your AI tool runs them where it can run code, under its own approval rules; AirPrompter stores them with the skill and never runs them \[6]. - **Workflows that run the same way every time.** A workflow puts focused prompts in order and runs them in that order on every run \[6]\[7]. A weekly client update, for example, can pull out the decisions from your notes, draft the email, then rewrite it in the client's tone. The God of Prompt pages we read do not describe a multi-step workflow feature in the library. - **Activity history and analytics.** On Pro, Activity lists every workflow run, filterable by workflow, with its status, duration and tokens, and Analytics shows how your prompts and workflows are used and how they perform, with CSV export \[9]. - **Your own fingerprint.** Save the prompts that work, written from how you actually work, with the values that change each run as variables, and keep improving them; Pro has no limit on prompts or workflows \[5]\[9]. - **Your prompts stay put when a vendor changes its format.** OpenAI is retiring custom GPTs on 11 December 2026 and moving them to plugins, and Google is moving Gems on personal accounts to skills from November 2026 \[11]\[12]. Prompts and workflows saved in AirPrompter are stored in neither format. - **Team workflows people sign off on, checked against your rules.** On a Team plan, a workflow is reviewed and signed off before the team runs it from a Playbook, so everyone runs the same version, and every workflow run is recorded with where it ran from \[10]\[13]. With the Assurance tier, each new version is first checked against frameworks such as AISPA (the Built-in Policies line) and, with the Company Policies line, your company's own written rules, with the exact line that needs a fix \[9]\[13]\[16]. - **Your own agents too.** A custom agent that is an MCP client can use your AirPrompter library through the MCP server today; direct setup is support-assisted. The Agent SDK, for prompts inside your own applications, comes with Team Agents on the Agents plan, which is coming soon \[13]\[14]\[17]. ## Where God of Prompt is stronger - **Ready-made prompts.** God of Prompt counts more than 7,900 engineered prompts, sorted by category, model and role, and its Prompt Library is free to browse \[1]\[2]. - **A one-time price.** The Complete AI Bundle is a single $150 payment with lifetime access \[3]. - **Guides and learning material.** The bundle includes step-by-step guides for the major models, Custom GPTs, automation templates and cheat sheets \[3]. - **Context that follows you.** NjectAI saves profiles of your business, audience and voice and adds them to prompts in ChatGPT, Claude, Gemini, Google AI Mode, Perplexity and Grok \[4]. - **Prompts written for you, too.** Its Custom Prompt Generator creates custom prompts, and with NjectAI the generator writes prompts that already know your business, audience and voice \[1]\[4]. ## Choose AirPrompter if… - you want to keep working inside ChatGPT, Claude, Gemini or Grok and run your own prompts there; - you already have prompts that work and keep rewriting them from memory; - your job takes several steps you repeat; - you want your prompts kept in one place, not in one AI vendor's format; - your team needs one reviewed version of a workflow, checked against its own rules; - you run the same processes with AI again and again, and your team may grow into sharing them: on a Team plan, the approved skills and workflows go into Playbooks that every member runs from their own AI tool, so everyone runs the same approved version \[10]; - you want AI agents that work the way your team does: on a Team plan with Team Agents (the Agents plan, which is coming soon), your agents get your team's approved instructions, checked against your standards and Company Policy, every change is versioned and rolled out the same way to every agent, and AirPrompter gets back counts, never text \[13]\[17]. ## Choose God of Prompt if… - ready-made prompts written for everyone are enough for your work, and you would rather start from those; - you prefer to pay once rather than subscribe; - you also want guides and Custom GPTs for learning the major models. ## Using both They fit together: start from a God of Prompt prompt, adapt it to your work, and save the version that works as an AirPrompter prompt or as one step of a workflow. ## Quick answers **Can I use my saved prompts without leaving ChatGPT or Claude?** Yes. AirPrompter's browser extension runs a saved prompt or workflow beside ChatGPT and Claude, and in ChatGPT the AirPrompter connector lets you ask for a saved workflow by name; in Claude, what you can do depends on the Claude surface \[7]\[8]\[14]. NjectAI also works inside both, adding your saved profile to the prompts you send \[4]. **Can the AI remember how I like my prompts written?** On AirPrompter Pro, save notes on tone, structure, vocabulary, formatting, domain context and workflow in Authoring Style, or ask a connected AI tool to save one; AirPrompter reads them when it helps you write or improve a prompt, and they are private to you. They shape the prompts AirPrompter helps write; they are not a record of your chats \[15]. NjectAI saves a profile of your business, your audience and the way you write and adds it to prompts \[4]. **What happens to my custom GPTs after 11 December 2026?** OpenAI retires custom GPTs on that date (11 February 2027 for FedRAMP workspaces and approved deferrals). A migrated GPT's instructions become a skill inside a plugin, which starts private, and custom actions do not transfer \[11]. A prompt or workflow saved in AirPrompter is not a custom GPT, so it is not part of that migration \[5]\[8]. **How do I make sure my team runs the approved version of a prompt?** On an AirPrompter Team plan, changes go into review and a reviewer approves them before they go live; the approved workflow is published to a Playbook, and everyone who runs it from there runs the same version \[10]\[13]. **Is God of Prompt free?** Its Prompt Library is free to browse. The Complete AI Bundle is a one-time $150 payment, and NjectAI Pro is $9 a month with no free plan \[2]\[3]\[4]. **What does NjectAI do?** It saves profiles of your business, audience and voice, adds them to prompts in ChatGPT, Claude, Gemini, Google AI Mode, Perplexity and Grok, and can rewrite a rough prompt into a complete one \[4]. ## How we compared We read God of Prompt's own website, OpenAI's and Google's help pages and the AISPA paper from the Stanford Digital Economy Lab on 18 November 2026, and took AirPrompter's facts from its documentation, pricing page and team site. God of Prompt's NjectAI page listed an introductory offer that ends on 30 November 2026; we quote the standard prices. We could not confirm on God of Prompt's pages whether you can save and organize your own prompts there, so the table leaves that out. Prices are in US dollars before tax. AirPrompter publishes this page; it is a comparison of facts, not a rating. ## Try it with your own prompts [Try AirPrompter free](https://airprompter.com/?auth=signup): the Free plan keeps up to 50 prompts and 5 workflows \[9]. ## Sources 1. \[1] [God of Prompt: home page](https://www.godofprompt.ai/) godofprompt.aiAccessed 2026-11-18 2. \[2] [God of Prompt: Prompt Library](https://www.godofprompt.ai/prompt-library) godofprompt.aiAccessed 2026-11-18 3. \[3] [God of Prompt: Products and pricing](https://www.godofprompt.ai/pricing) godofprompt.aiAccessed 2026-11-18 4. \[4] [God of Prompt: NjectAI](https://www.godofprompt.ai/nject) godofprompt.aiAccessed 2026-11-18 5. \[5] [AirPrompter docs: Build a reusable prompt library](https://airprompter.com/docs/prompts) airprompter.comAccessed 2026-11-18 6. \[6] [AirPrompter docs: Design and run workflows](https://airprompter.com/docs/workflows) airprompter.comAccessed 2026-11-18 7. \[7] [AirPrompter docs: Use AirPrompter in your browser](https://airprompter.com/docs/browser-extension) airprompter.comAccessed 2026-11-18 8. \[8] [AirPrompter docs: Connect an AI host to AirPrompter](https://airprompter.com/docs/connect) airprompter.comAccessed 2026-11-18 9. \[9] [AirPrompter: Pricing](https://airprompter.com/pricing) airprompter.comAccessed 2026-11-18 10. \[10] [AirPrompter docs: Get a Team plan with a plan sheet](https://airprompter.com/docs/account/team-plans) airprompter.comAccessed 2026-11-18 11. \[11] [OpenAI Help Center: Custom GPT retirement and migration FAQ](https://help.openai.com/en/articles/20001519-custom-gpt-retirement-and-migration-faq) help.openai.comAccessed 2026-11-18 12. \[12] [Gemini Apps Help: Use Gems in Gemini Apps](https://support.google.com/gemini/answer/15146780) support.google.comAccessed 2026-11-18 13. \[13] [AirPrompter for teams](https://airprompter.ai/) airprompter.aiAccessed 2026-11-18 14. \[14] [AirPrompter docs: Connect through MCP directly](https://airprompter.com/docs/mcp) airprompter.comAccessed 2026-11-18 15. \[15] [AirPrompter docs: Set your account preferences](https://airprompter.com/docs/account/preferences) airprompter.comAccessed 2026-11-18 16. \[16] [Stanford Digital Economy Lab: AISPA: User-Centric System Prompt Auditing for Large Language Model Applications (working paper, 6 August 2026)](https://digitaleconomy.stanford.edu/publication/aispa-user-centric-system-prompt-auditing-for-large-language-model-applications/) digitaleconomy.stanford.eduAccessed 2026-11-18 17. \[17] [AirPrompter docs: Integrate Team Agents with your own systems](https://airprompter.com/docs/integrations) airprompter.comAccessed 2026-11-18 Last reviewed 2026-11-18 --- Canonical: https://airprompter.com/compare/airprompter-vs-god-of-prompt