How to add an AI model to Billcalm

Billcalm sends each bill to an AI model you pick and gets back the amount, the due date and the payment details. You connect that model once, in Settings under "AI that reads your bills": sign in to OpenRouter in your browser, paste an API key you already have, or run a model on your own Mac. Then Billcalm reads a made-up sample bill with it so you can see the result before your own bills go anywhere.

Checked against the Billcalm app on 19 October 2026. Model names change often; OpenRouter's model list shows what exists today.

The same steps as a 3½-minute video with narration: the OpenRouter sign-in, pasting a key, a model on your Mac and the sample bill. Watch it on YouTube.

Choose a provider

Open Settings. The first time, the AI section shows three steps: Choose, Connect and Try a bill. On the left are six ways to connect. When you click one, the panel on the right shows the model Billcalm starts you with and a Privacy line that says where your bills go.

  • OpenRouter: one account that can use many models, from Anthropic, Google, OpenAI, Meta, Mistral and others. You sign in through the browser and copy nothing. Bills go to OpenRouter and to the model's maker, under their terms.
  • Google Gemini: a free key with no card. Google may use data sent on the free tier to improve its products.
  • OpenAI and Anthropic: an API key from their developer pages. A ChatGPT or Claude subscription does not give you one.
  • On this Mac: a model that Ollama runs on your Mac. Your bills stay on it.
  • LM Studio: whatever vision model you have loaded in LM Studio, also on your Mac.

You can change the model after connecting, and you can add a second connection later and switch between them.

Billcalm's AI settings on first run: the steps Choose, Connect and Try a bill, six providers on the left, and OpenRouter selected on the right with its model, its privacy line and a Connect with OpenRouter button.View full size

The first step, with OpenRouter selected. Demo data.

Connect OpenRouter with the browser sign-in

This route needs no key to copy.

  1. Select OpenRouter and click Connect with OpenRouter.
  2. Your browser opens openrouter.ai. Sign in, or create an account, and approve the request from Billcalm.
  3. The browser hands the approval back to Billcalm on your Mac, and Billcalm turns it into an OpenRouter API key. The key goes straight into the macOS keychain. Billcalm waits up to five minutes for you; after that, click the button again.
  4. Billcalm tests the key with the starting model, saves the connection and moves on to Try a bill.

If your OpenRouter account has no credit yet, Billcalm keeps the key and says so. "Open billing" takes you to OpenRouter's credits page; once you have added credit there, click Try again.

Paste an API key you already have

Each provider's panel ends with a field labelled "Already have a key? Paste it".

  1. To get a key, select the provider and click Get a key. Billcalm opens that provider's key page: aistudio.google.com for Gemini, platform.openai.com for OpenAI, console.anthropic.com for Anthropic. Create a key there and copy it.
  2. Paste the key into the field. Billcalm recognises the provider from how the key starts (sk-or- for OpenRouter, AIza for Gemini, sk-ant- for Anthropic, sk- for OpenAI), selects it, and tests the key at once.
  3. When the test passes, Billcalm saves the connection and puts the key in your keychain. When it fails, nothing is saved and the panel says why, for example that the key was refused.

If you type the key instead of pasting it, select the provider yourself and click Use key. For your own OpenAI-compatible server or a proxy, click "Own server or proxy? Set it up by hand" under the field.

Run a model on your Mac: Ollama or LM Studio

A local model reads your bills on your Mac, so they are never sent to an AI service. For scanned bills a cloud model is the better fit.

  1. Select On this Mac. If Ollama is not installed or not running, click Get Ollama, install it from ollama.com and open it once. The panel checks every few seconds and updates by itself.
  2. With Ollama running, Billcalm offers its recommended model, Qwen 3.5 9B, a 7.6 GB download for Macs with at least 16 GB of memory. On a Mac with less, it offers the smaller Qwen 2.5 VL 3B (3.2 GB) instead. Click Download and watch the progress bar. If Ollama already has models that can read images, they are in a menu above the download, ready to use.
  3. When the download is done, click Use Qwen 3.5 9B. Billcalm tests the model and saves the connection. There is no key.

LM Studio works the same way without the download step. Load a vision model in LM Studio and start its local server; Billcalm looks for it on this Mac at port 1234. Select LM Studio and click Use next to the loaded model. If no model is loaded, the panel tells you to load one first.

On this Mac selected in Billcalm: Ollama found, the recommended model Qwen 3.5 9B with a Download button showing 7.6 GB, and the line Bills never leave your Mac.View full size

On this Mac, with Ollama running and no model downloaded yet. Demo data.

Try a bill: check the model on a sample

After connecting, Billcalm reads a sample bill that ships with the app: a made-up electricity bill, so nothing of yours is sent. You see who it is from, the amount, the due date, the IBAN to pay to and the reference, plus the payment code marked "SAMPLE · NOT PAYABLE".

When every field is found, a label says "Everything found". When some are missing, Billcalm lists them; a stronger model usually finds them. Click "Looks right, start syncing" to make this connection the one that reads your bills and start syncing your mailbox, or "Try another model" to pick a different one.

Step 3, Try a bill: OpenRouter connected with the key in the keychain, and the sample bill read by Claude Haiku 5.5 with who, amount, due date, IBAN and reference filled in, Everything found, and a barcode marked Sample, not payable.View full size

The sample bill read by the starting OpenRouter model. Demo data.

Change the model, Test and Edit

Once you have accepted the sample, the AI section shows the connection that reads your bills, with a Working or Not tested label and four buttons.

  • Model opens the list of models. Recommended comes first: one for everyday bills and a stronger one for scanned or messy bills. Below it are the other models checked with Billcalm, and "Another model…" lets you type any model id. Billcalm tests a new model with your stored key before saving it; if the test fails, your current model stays. If it passes, Billcalm reads the sample bill with the new model so you can compare.
  • Try a bill reads the sample bill again with the current model.
  • Edit opens the connection's settings: the name, the model and the API key. Under Technical are the provider, the address and how the PDF is sent. Test sends one small request and shows how long the model took to answer. Run it before Save; when it passes, the connection stays Working after you save.
  • Remove asks "Remove it and its key?" and then deletes both the connection and its key from the keychain.

A connection marked Not tested has its own Test button. "Add another connection" opens the same Choose and Connect steps; the current connection keeps reading bills until you click "Use instead" on the new one.

The connection card OpenRouter reads your bills, marked Working, with the model menu open: Recommended (Claude Haiku 5.5, Claude Sonnet 5.5), the models also checked with Billcalm, and Another model.View full size

The model menu on a working connection. Demo data.

Why Billcalm asks for the key again when the address changes

A stored key belongs to the provider and the address it was saved for. If you change the Address under Technical, for example to put a proxy in front of OpenRouter, or switch the Provider, the API key field goes blank and says "Paste the key again for the new address; the stored one will be removed." When you save, Billcalm deletes the old key from the keychain, and Test will not send it to the new address in the meantime.

This keeps a key from reaching a server it was never meant for, such as a mistyped address or someone else's proxy. Changes that keep the same address do not count: upper or lower case in the host, or a slash at the end. Renaming the connection or switching to another model keeps the key too.

Billcalm also sends a key only over https, or over plain http to a server on this Mac. Saving a key with an http address on another computer fails with the message "An API key is only sent over https, or over http to this Mac."

Edit on the OpenRouter connection with Technical open and the address changed to a proxy: the API key field is empty and says Paste the key again for the new address; the stored one will be removed.View full size

Edit with a new address. Demo data.

Common problems

  • The key was refused. The key is wrong, was deleted, or belongs to another provider. Make a new one on the provider's key page and paste it.
  • The provider doesn't know the model. The model id has a typo or the model was retired. Pick one from the Model list.
  • The account has no credits. Add credit on the provider's billing page and connect again. After an OpenRouter sign-in, Try again is enough, because the key is already saved.
  • Nothing happens after the browser sign-in. Billcalm stops waiting after five minutes. Click Connect with OpenRouter again, and approve in the browser window that opens.
  • The On this Mac panel shows "Not installed", or LM Studio shows "Not running". Open Ollama or LM Studio; the panel notices within a few seconds.
  • Some fields on the sample bill are missing. Try the stronger recommended model, or a cloud model if you use a small local one.