Assistant
The assistant does in your profiles what you wrote in plain words: it opens pages, reads them, clicks and fills in. A model does the work with your own API key: Claude at Anthropic, or a model at any service with an OpenAI-compatible API (OpenAI, OpenRouter, Ollama or LM Studio on this computer). You pay the service directly and Mirage adds nothing on top.
What to know first
- Your requests and what the assistant reads on pages (text, screenshots) go from your computer to the service whose key you saved. Mirage’s server takes no part and does not see them.
- Every request costs money on your account at the service. The number of tokens it took is shown under the answer.
- The assistant works only in profiles that have an agent policy. A profile without one is closed to it, as to any other agent.
- Before the steps the policy names (paying, typing a password, sending messages and others) the assistant waits for your approval.
- The model can be wrong. Check the result where a mistake costs money or an account.
Save the key
One key is saved at a time: saving a key of another service replaces the previous one.
Claude at Anthropic
- Create an API key in the Claude Console and add credit.
- In Mirage open Agents and the Assistant tab.
- In Service keep Anthropic (Claude), paste the key into Anthropic API key and press Save the key.
A service with an OpenAI-compatible API
- In Service pick OpenAI-compatible service.
- In Address of the API enter the address with the version, for example
https://api.openai.com/v1,https://openrouter.ai/api/v1or, for Ollama on this computer,http://localhost:11434/v1. Plainhttpis accepted only for this computer: page text and screenshots go to that address. - In Model enter the model’s name as the service lists it.
- Paste the key into API key and press Save the key. A server on this computer that needs no key takes any word.
Some services do not report the tokens a request took; the window then shows 0. The model must support tool calls (function calling). A model that takes no pictures works without the screenshots. Small local models often do not, or use the tools poorly: Claude does this work best.
Either way
To check the key, Mirage asks the service for its list of models: this is free. A key the service refuses is not kept. Only the last four characters of a saved key are shown.
The key is stored on this computer, encrypted. It goes only to the service. It is not synced, and Mirage’s server does not see it.
Choose the model
At an OpenAI-compatible service, type another name in Model and press Use this model. At Anthropic, pick one of three in Model:
| Model | When to pick it |
|---|---|
| Claude Opus 5.5 | The default. Best at long tasks of several steps |
| Claude Sonnet 5.5 | Faster and about half the price |
| Claude Haiku 5.5 | The cheapest, for simple actions on one page |
Limit what one request spends
Limit per request sets how many tokens one request may use, input and output together: 300,000 by default. The request stops when it has used them and says so; whatever it did up to then stays done. Page pictures cost the most, so a long task on many pages needs a higher limit. The window shows the tokens a request took under its steps.
Give the assistant a profile
Open the Policies tab and assign the profile an agent policy: it sets the sites the assistant may visit and the steps it must ask you about. See AI agents.
Ask
- On the Assistant tab, write what you need in What to do and name the profile. For example: “open the profile Shop 1 and check that the cart is empty”.
- Press Send.
The steps appear under the request: what the assistant said and what it did. The assistant’s text appears as the model writes it. A step marked Refused was not done: the policy forbids it or you rejected the approval. Stop interrupts the request; the profile stays open.
One request runs at a time. Everything the assistant does is in the Journal tab under the name “Mirage assistant”.
Continue a conversation
Requests follow one another as one conversation: a next request can say “now close it” or “do the same in Shop 2”. With each request the model is sent the earlier ones: your words, its answers and which tools it called with which values. What the pages showed is not sent again. The last 10 requests are kept; when they are long, only the latest fit, within a tenth of Limit per request. A request the model declined is not sent again.
New conversation forgets the earlier requests. The conversation is also forgotten when you remove the key, choose another service or restart Mirage. Earlier requests are sent with every new one, so a long conversation costs more tokens.
If it does not work
| What you see | What to do |
|---|---|
| The service does not accept this key | Copy the key again, whole. Check that it was not revoked |
| The account at the service is out of credit or over its rate limit | Add credit or wait a minute |
| The service does not answer, or answers with an error | Check the address (with /v1 at the end for most services) and the model name. A local server must be running |
| Turn on the Local API | Open Automation and turn on Local API: the assistant drives the browser through it |
| A step is marked “Refused” with a text about the policy | Assign the profile a policy, or allow the site and the action in it |
| The request took too many steps | Split the task and ask for the first part |
| The request used the token limit set for one request | Raise Limit per request or ask for a smaller part of the task |
| The model declined this request | Rephrase the request. The model does not do what it considers harmful |