Set up AI in Merrimo on Mac

Merrimo can draw pictures and help with your writing through an AI service you connect: OpenRouter, your own API key from Anthropic, OpenAI or Google, or a model server you run yourself, such as LM Studio or Ollama. AI is entirely optional. Connect a service when you first open Merrimo, or any time in Settings > Providers.

Show me how: Configure AI providers and rendering ↗

Add a provider

Choose Merrimo > Settings (⌘,), click Providers, then click + next to Your Providers (or Add Provider… when you have none). The sheet opens on Choose an AI service. Pick one of three and click Continue:

Only OpenRouter makes pictures; an API key or a model server gives you writing help. When you ask for a picture or a suggestion, that part of your story is sent to the service you choose.

Choose an AI service in the Add Provider sheet showing OpenRouter, Use your own API key, and Use a model server.
Choose OpenRouter, your own API key, or a local model server when adding a provider.

On each later step, Back returns to the step before and Cancel closes the sheet without adding anything. Click Add Provider on the last step to add it to Your Providers. Your first provider becomes the Active one and turns on Use AI; to use a later one everywhere, click Make Active on its row.

Connect OpenRouter

  1. Click Sign in with OpenRouter…. Your browser opens: sign in to OpenRouter, or create an account there, and approve Merrimo.
  2. Merrimo picks up the connection by itself and says Connected to OpenRouter. To stop waiting for the browser, click Cancel.
  3. Click Add Provider.

If you already have an OpenRouter API key, click Use an OpenRouter API key instead and paste it. Merrimo checks the key as soon as you stop typing.

Use your own API key

  1. Under Provider, choose Anthropic, OpenAI or Google.
  2. Paste your key in API key. If you don't have one yet, click the Get a key at… link to open the provider's key page.
  3. Merrimo checks the key as soon as you stop typing, by reading the provider's list of models with it. Key works, with the number of models, means it's ready; That key didn't work means the provider refused it.
  4. Model shows the model Merrimo picked from that list. To choose another, click it: Choose a model opens with the provider's own list. Search or filter it, select a model and click Use This Model, or click Back to keep the one you had.
  5. Click Add Provider.
The Use your own API key step showing Anthropic selected, a verified API key, and the recommended Claude Sonnet model.
Paste an API key to verify it and select a default model from the provider's catalog.

Prices and context sizes in the list come from OpenRouter's public catalog, so a model OpenRouter doesn't list shows no price. Your key is kept in iCloud Keychain and sent only to the provider you picked. See Your providers and keys on your other devices.

Use a model server

A model server runs models you choose on your own Mac or network. Merrimo doesn't pick the model; your server offers the ones it has.

Then choose the Model from the server's list (click it to open Choose a model) and click Add Provider.

The Use a model server step showing LM Studio running on localhost:1234 with 4 models.
Connect to a model server running on your Mac or local network.

Requests go only to the server you pick, so a server on this Mac keeps your story on this Mac. The first time Merrimo connects to a server on your local network, macOS asks whether Merrimo may find and connect to devices on your local network: click Allow. If you didn't, turn on Merrimo in System Settings > Privacy & Security > Local Network.

Change a provider's model or key

In Settings > Providers, each row says how the provider connects and which model it uses, such as “API key · claude-sonnet-5-5”. Click a provider to open its page. The top row says who runs it, such as “Your own API key · billed by Anthropic per use”, with Make Active if it isn't the Active provider.

Choosing a default model for an Anthropic provider with prices and context sizes shown.
Browse and filter a provider's models with capability badges, pricing, and context length.

Your providers and keys on your other devices

When you're signed in, your providers follow your Merrimo account: a provider you add on one Mac shows up in Settings > Providers on your other Macs, with the same model, and making one Active, changing its model or removing it changes it everywhere. A provider added on another device says where it came from, such as “From your MacBook Air”.

If you set up the same provider on several devices (OpenRouter with the same model, the same API key provider and model, or the same model server and model), Settings > Providers lists it once. A model server counts as the same when it's at the same address: localhost on two different Macs is two servers, but a Mac's localhost server and the same server added on another device by that Mac's network name are one. Removing it removes every copy.

Merrimo keeps each provider's API key in iCloud Keychain. With iCloud Keychain turned on (System Settings > your name > iCloud > Passwords & Keychain), your other Macs and your iPhone signed in to the same Apple Account get the key too, and replacing or removing it on one changes it on all of them. Merrimo's own servers never see your keys.

Keys you saved with an earlier version of Merrimo move to iCloud Keychain the next time Merrimo opens. A copy of Merrimo that can't use iCloud Keychain keeps its keys in this Mac's keychain instead: the provider's page then says Saved in this Mac's Keychain only.

If a provider arrives without its key (iCloud Keychain is off on this device, or the provider was set up by a copy of Merrimo that keeps keys on its own Mac), its row says Key not on this Mac with No key. Click it, then Add Key…, and paste the key.

If that provider is your Active one, Merrimo writes on this Mac with another provider whose key is here, preferring one of the same kind, and Settings > Providers marks it In use here until you add the key. A provider you add on a device where the Active one has no key becomes Active on that device only; your other devices keep theirs.

Model servers on your other devices

A model server set to localhost on a Mac means that Mac. When it follows your account to another device, Merrimo reaches it there by the Mac's network name (such as studio.local) or, with Tailscale's MagicDNS, its Tailscale name, whichever answers.

Choose the model a project uses

Each project can use its own model, and give a job its own. In the project's sidebar, under Project, click Settings.

Project Settings showing the Model card, Chat and Reading the Story jobs, and monthly usage.
Choose a project-specific model, override individual AI jobs, and track project usage.
The project Model browser listing all configured providers and their models.
Pick from any model across all your configured providers, or keep App default.

The choice is saved with the project for you, so it follows you to your other Macs; people you share the project with keep their own. Each Mac uses whichever of its providers offers the model, the provider you picked it from first, then OpenRouter. If none does, that Mac uses its own app default, and the page says the model isn't set up on this Mac, with Add Provider….

While a project's chat uses a model of its own, the Agent window says so above the conversation, such as “This story uses its own model: Claude Opus 4.8”. Changing Settings > Providers doesn't change it. Click the note to open the project's Settings page, then click Use App Settings.

If nothing answers at a model server's address, the chat says which address it tried, such as “Nothing is answering at localhost:1235. Is the model server running on that port?” Start the server on that port, or choose a model that works on the project's Settings page.

Project Settings showing a warning when the project's model cannot use tools.
Merrimo warns you when a selected model lacks tool-calling support for Chat.

With no provider added yet, the page offers Add Provider…, which opens the same sheet as Settings.

Set up AI when you first open Merrimo

After you sign in, or choose to use Merrimo without an account, Merrimo asks Do you want AI?. Click No AI — just write to skip it; you can add a provider later in Settings.

Click Set up AI, then, on Choose what to add, tick what you want:

First run Choose what to add screen showing picture and writing options.
Choose local Everyday Pictures, OpenRouter, or your own API key and model server during first-run setup.

Click Continue. If you ticked only OpenRouter rows, Connect OpenRouter comes next. If you ticked My own API key or model server, Choose an AI service comes next, with the same three choices and steps as in Settings, and OpenRouter still on offer. Use an online account instead also opens Choose an AI service. If you ticked nothing to connect, the button says Start Writing or Download & Start Writing instead. If Choose what to add doesn't appear, Set up AI goes straight to Choose an AI service.

First run Choose an AI service screen alongside the onboarding illustration.
Connect OpenRouter, an API key, or a local model server during onboarding.

On the last step, click Start Writing; Back returns to the screen before. If you connect an API key or a model server, pictures online aren't set up: add OpenRouter later in Settings > Providers.

Everyday Pictures downloads while you connect.

See also