AI providers and fallback

Choose which AI providers Personal360 uses and in what order, add your own providers and keys, track spend against budgets, and see provider health, pinned models, the free models in use, and the AI doctor that repairs providers on its own.

Updated 30 Nov 2026

Overview

Every AI feature in Personal360 — the assistant, document scanning, summaries and lab extraction — goes through one ordered list of providers called the chain. Number 1 is the default. If it errors, runs out of credit or is rate-limited, the request falls through to the next one. This keeps AI features working even when one provider is having a bad day.

Before you start

  • You must be a master admin.
  • A provider can only be used once it has an API key: either typed on the page under Manage providers (stored encrypted), or added to the server configuration by whoever deploys Personal360. Providers without a key show as Unconfigured with No API key set.

Steps

  1. In the sidebar, under Workspace, click AI Dashboard. (The old /ai-providers address brings you here too.)
  2. Open the Providers tab.
  3. Check the summary cards: Total AI calls, Est. spent (all models) and Budget topped up.
  4. In the table, each row shows Priority, Provider, Role, Calls, Tokens (in/out), Spent (est.), Topped up ($), Remaining (est.) and Auto-reload.
  5. Change the order with the ▲ and ▼ arrows. The top row becomes Default; the rest are Fallback #1, Fallback #2 and so on.
  6. Remove a provider from the chain with the bin icon. It moves to Disabled.
  7. Add a disabled provider back with + add.
  8. Type the amount you've loaded with a provider into Topped up ($) to see Remaining (est.). Toggle Auto-reload to note providers that refill automatically.
  9. Click Save. You'll see Saved. when it's stored.
Tip:Switch between List and Cards at the top-right for a table or a compact card view. The ↗ icon opens each provider's own console.

Badges

BadgeMeaning
FREEA free-tier provider (no per-token cost estimated)
VISIONCan read images and PDFs, so it's used for document scanning
TEXTText-only; not used for scanning

How fallback really works

The chain order is the starting point. Personal360 also remembers which providers recently hit rate limits or failed, and tries those later until they recover. For scanning images and PDFs, free vision providers are always tried before paid ones, so a busy free provider doesn't quietly run up a bill.

  • No fixed model per provider. The model set in the server configuration is only a hint. Each provider's live model list (read with your key) decides which models exist, and a model it doesn't list is never called. If a model is retired, not available or rate-limited, the same provider's next live model is tried in the same request (up to 3 per request) before moving to the next provider. If the model list can't be read, the configured models are used as before.
  • A model that is not available is not a provider outage. When a provider answers that the model you asked for is gone (HTTP 410) or not available (for example SambaNova's model_not_available, or "The requested model … is not available on SambaNova Cloud"), only that model rests: for 24 hours when it is gone or not offered, for 1 hour when it is "currently not available". The same request moves straight on to the provider's next model, and the provider itself is never marked down for it.
  • Cool-down. A provider whose key is rejected, or whose account needs payment or credits, is skipped for 6 hours instead of being tried on every request. Payment is about the account, so the request moves to the next provider at once; Personal360 never "fixes" it by switching to a paid model. A missing or retired model, a bad request, a rate limit and a timeout never start a cool-down. When every model of a provider fails with a server error in one request, that provider rests for 5 minutes. If every provider is cooling down, they are all tried anyway. Run doctor now still sends a real test message to a provider that is cooling down. If it answers, the cool-down ends straight away on every server, and the audit log records AI_PROVIDER_REST_CLEARED. If it still fails, the cool-down stays and the provider's own error is shown.

Manage providers

The Manage providers section on the Providers tab is for master admins. It lists every provider, built in or added, with where its key comes from.

Add a provider

  1. Click + Add provider.
  2. Enter a Name and choose the Protocol: OpenAI-compatible (most vendors), Anthropic or Google Gemini.
  3. Enter the Base URL, for example https://api.vendor.com/v1. It's required for OpenAI-compatible providers; Anthropic and Gemini use their public endpoint when you leave it empty.
  4. Optionally enter the Models path (normally /models) and the Models you want, best first. Leave the models empty for a free provider and the doctor picks from the provider's live list.
  5. Leave Free provider ticked for a provider that never bills you. For a paid one, untick it, list at least one model and enter its prices (USD per 1M tokens): Personal360 never widens a paid provider beyond the models you listed.
  6. Paste the API key (optional now, you can set it later) and click Add provider.

The provider joins the end of the chain, switched on. Reorder it with the arrows and click Save. Timeouts, output tokens, temperature, extra headers and rate limits are set in its connection settings (see below), like any provider. The URL must use https and a public host name: private, internal and cloud-metadata addresses are refused when you save and on every call. Every add is written to the audit log (AI_PROVIDER_ADD), without the key.

Edit or remove an added provider

  • Click Edit to change its name, endpoint, models path, models, free or paid, or prices. The protocol can't change; add a new provider instead. Changes apply from the next AI call (AI_PROVIDER_UPDATE).
  • Click Remove. First you see what removing it leaves behind, for example "Requests fall through to Groq, Gemini". If it's the last free provider in use, or the last one in the chain, the warning says so before you confirm. Its stored key, switch and connection settings are deleted, and its open doctor issues close (AI_PROVIDER_REMOVE).
  • Built-in providers can't be removed. Switch them off instead.

Set or clear a key

  1. Click Set key (or Replace key) on the provider's row, paste the key and click Save.
  2. The key is stored encrypted (AES-256-GCM) and is never shown again: the row shows only Typed on this page ••••1234.
  3. A key typed here wins over the key in the server configuration, for built-in providers too. Click Clear key to go back to the server key (shown as Environment (GEMINI_API_KEY), for example).

Every key change is written to the audit log (AI_PROVIDER_KEY) with where the key comes from, never the key or any of its characters. If the page says keys can't be stored, the server has no encryption key configured yet; providers keep using their server keys.

Provider health and the AI doctor

The Provider health & AI doctor panel on the Providers tab watches each provider and repairs what it can on its own. It uses no AI to decide anything.

Read the health table

  1. Open AI Dashboard and the Providers tab. The panel sits under the summary cards.
  2. The health badge reads Healthy, Degraded, Failing, No live model (its recent models were gone or not available; the doctor repairs this, the provider isn't down), Cooling down (until a time) or Unknown (no calls in the last 7 days). Hover over it for the last error, the last success and the success rate over 24 hours and 7 days.
  3. Next to the model in use, a badge shows where it came from: Auto (chosen and verified by the doctor), Pinned (chosen by a master admin) or Configured (the server setting).
  4. Under the model, a line says why it was chosen, for example "doctor: first live preferred id", "doctor: newest live chat model — preferred ids gone" or "pinned by owner". A ⚠ line "allowlist had no live models; using auto selection" means a pin or allowed list you saved has no live model right now, so the doctor picks one itself. What you saved is kept.
  5. Below that you'll see the last repair (✓ verified or ✗ failed) and an Open issue link when the doctor needs you.
  6. A second line shows the last call (time, model, ok or the kind of error), every candidate model with its state (in use, answered, live, not in live list, 410 gone / not offered, currently not available, rate until a time), and any preferred model that was dropped and why.
  7. The Endpoint column shows the host and protocol in use. Click Edit to change the connection settings (see below).

Run the doctor

The doctor runs on its own; you don't need to start it. It runs:

  • Straight after a failure — the first permanent error on the model a provider is using (model retired or not found, no longer free, payment required, no access, key rejected) starts a check of that provider in the background. Your request doesn't wait for it; it moves on to the next model or provider. Each provider is checked this way at most once every 30 minutes. Rate limits, overloads, server errors and timeouts never start a check.
  • On a burst of failures — 5 failed calls to one provider within 10 minutes, of any kind (rate limits, overloads, server errors and timeouts included), start a check of that provider straight away. Each provider is checked this way at most once every 15 minutes. A rate limit is not re-tested before it resets, and the 30-minute gap between tests still applies, so free quotas aren't used up.
  • Every 2 hours, plus once every night as a fallback.
  • After every deploy — a few minutes after a new version starts, always. A server that starts for more traffic (same version) skips it when the doctor ran in the last 30 minutes.
  • When you click Run doctor now.

Every run ends one of three ways for each provider: healthy (nothing to do), repaired (written to the audit log), or one open issue for what only you can fix. Issues close themselves when the provider answers again.

For each failing provider:

  • Model retired, not found, not available, no access or no longer free — it reads the live model list, keeps only the free chat models (newest first) and checks them with tiny test requests, up to five per run. A model that answers "not found" or "gone" is skipped for 24 hours ("currently not available" for 1 hour) and the next one is tried. The first that answers is saved and written to the audit log, for example "Groq: model-a → model-c, verified (passed over model-b)". If none answers yet, the doctor writes every model it tried and its exact error to the audit log and tries again on its next run. No issue is opened, because there's nothing for you to do.
  • Payment required — the doctor re-tests the model in use. If it answers, the account was topped up: the cool-down ends at once and the issue closes. If it answers that only that model is gone or not available (the key and the account were accepted), the doctor moves the provider to a live model straight away. If it still asks for payment, the payment issue stays open.
  • Server errors or timeouts that last — the doctor re-tests after the rest; after three runs in a row that still fail, it opens a "degraded" issue.
  • Key rejected or missing, account suspended, or payment required — only you can fix these. The doctor opens one issue with the provider, the exact error, what it tried and how to fix it (for example, replace the key in Secret Manager). A later run adds to the same open issue instead of opening another.
  • Unreachable, even for 24 hours — written to the audit log and retried. Calls fall through to the next provider meanwhile, so no issue is opened.
  • Issues close themselves. As soon as the provider answers again (a normal call, or the doctor's test), the doctor marks every open issue it raised about that provider handled, older ones included, with the note "Resolved automatically: provider answered on model at time", and writes an audit entry. Requests people sent about a provider are never closed this way. A repaired model never opens an issue in the first place.
  • A repair sticks: errors from before the doctor last verified a model, or on a model that's no longer in use, don't count against the provider. Healthy providers show OK in the run results.
  • On the 2-hourly and nightly runs, a healthy free provider moves to a newer free release of the same model family (for example a newer flash-lite) after one successful test. A pinned model is never changed.
  • Each provider is tested at most once per run and not again within 30 minutes, so free quotas aren't used up.

When a provider asks for payment during normal use, Personal360 skips that provider for 6 hours and the request moves to the next provider straight away. Run doctor now or Test ends the rest as soon as the account answers again.

Switch a provider off or on

  1. Find the provider's row in Provider health & AI doctor.
  2. Click the switch next to its name. Confirm when asked.
  3. The row shows OFF. Click the switch again to turn it back on.

A provider that's off is used by no AI feature (chat, scanning, summaries, lab reading), and the doctor stops checking it. Its open doctor issues close with the note "Closed automatically: provider was switched off by a master admin". If it's the last free provider still on, you're asked to confirm a second time, because AI calls would then go to paid providers only, or fail. Every switch is written to the audit log.

Advanced: pin / restrict models (optional)

You don't need these. Left empty (the recommended setting), the doctor picks a working free model from the live list on its own.

  1. Click the Auto, Pinned or Configured badge on the provider's row.
  2. To pin a model, choose it from the list (or Other — type a model id…) and click Pin model. A pinned model is tried first while it's in the live list and not resting.
  3. To restrict the provider to some models, type them under Allowed models, first choice first and click Save order.
  4. To go back to automatic choice, pick Automatic (recommended) and click Use automatic, or click Reset to default under the list.

If the pin or the allowed list has no live model, Personal360 ignores it, picks a model automatically, and the row shows "your allowed list has no live models; using auto selection". Your saved pin or list isn't changed, so you can decide what to do. Paid models are never used. Every change is written to the audit log.

Change a provider's connection settings

  1. In the Endpoint column, click Edit on the provider's row.
  2. Change what you need: base URL, protocol (OpenAI-compatible, Anthropic or Gemini), models path, timeout, default maximum output tokens, temperature, extra headers, rate limits (requests per minute, tokens per minute, requests per day) or the free flag.
  3. Click Save. The change applies to the next call within 30 seconds; no new version is needed. Each field shows edited, server or default. Reset to default removes your value so the server setting or built-in default applies again.

Base URLs must use https and a public host name. Private, internal and cloud-metadata addresses are refused when you save, when you test and on every call. Extra headers can't carry keys, tokens, passwords or cookies. The API key itself is never shown or edited here: set it under Manage providers, or keep it in Secret Manager. A provider marked free always sends a $0 price limit to OpenRouter, and switching it to paid needs an explicit confirmation. Every change is written to the audit log with the values before and after.

Free-tier providers: SambaNova, Cerebras and OpenRouter

These three providers are set up to cost nothing. Their rows in the health table have a Free models line underneath. Click it to see what the doctor found.

What the doctor checks on every run

  1. It reads the provider's live model list with your key.
  2. It decides, model by model, whether the model is free for your key, and records why:
    • OpenRouter — free only when the list prices it at $0 (or it's the free router openrouter/free, or a :free model) and it writes text.
    • SambaNova and Cerebras — the prices in their lists are for paid accounts, so they don't count. A model is free only once it answered a tiny test request (or a real one) on your key without a payment error.
  3. It ranks the free models: your preferred order first, then newer models first. A newer release of a preferred model (for example a newer DeepSeek) is tried just ahead of it.
  4. It tests the top model and, if it answers, uses it. A model that's proven free is trusted for 12 hours before it's tested again, so the small free quotas aren't used up.
  5. It drops models that start asking for payment or disappear from the list, and moves to the next free one. It never picks a paid model, and it never changes a pinned model. If a pinned model isn't free, the panel says so.

The live model list decides. The built-in order is SambaNova DeepSeek-V3.2, DeepSeek-V3.1, gpt-oss-120b, then Meta-Llama-3.3-70B-Instruct, but only the ones your key's live list still offers are used. After them come the other DeepSeek, gpt-oss and Llama models the list has, newest first, then any other live chat model, newest first (embedding, speech and safety models are never used). A preferred model that is missing from the list, or that answered "not available", is skipped. The Free models row shows it as skipped, with the reason, under the preference order. For the others: Cerebras qwen-3.8-27b, then gpt-oss-120b; OpenRouter the free router first, then the free models it lists.

Read the Free models panel

VerdictMeaning
FreeProven free on your key (test, real request or a $0 price on OpenRouter)
UnverifiedListed, not tested yet
Not freeAsked for payment, or priced above $0
UnavailableThe provider said the model isn't there
RetiredNot in the provider's live list any more
Quota usedHit a rate limit; tried again later
BlockedStopped by the paid guard (see below)

Hover over the evidence to see the exact answer and when it was checked. The panel also shows the chosen model, the last check, and what's left of the quota:

  • SambaNova — requests left today, from the last response.
  • OpenRouter — the key's credit limit, credit used and free requests left today. A warning appears if the key can spend money.
  • Cerebras — Cerebras publishes no usage figures to apps. Check its own console under Limits or Usage. Its free trial credits expire after 30 days; after that its calls fail and the next provider takes over.

The paid guard (OpenRouter)

Personal360 only sends free models to OpenRouter, and every request tells OpenRouter not to run it on anything priced. If a response still reports a cost, or comes from a paid model, the model is blocked: no more requests go to it, and an issue is opened. The issue stays open until you unblock the model in the Free models panel. Only unblock it once you've checked OpenRouter's activity page and you're sure it's free.

When OpenRouter withdraws a free model

OpenRouter sometimes answers "This model is unavailable for free. The paid version is available now - use this slug instead: …". Personal360 never switches to the paid model it suggests. That free model is rested for a day, and the request moves to the next free model, normally the free router openrouter/free. The doctor does the same on its next run.

When a free provider runs out

A rate limit, a used-up daily quota, a timeout or a missing model moves the request to the provider's next free model, then to the next provider in the chain. A "payment required" or "insufficient credits" answer moves it to the next provider at once. Your request doesn't wait for the doctor.

Deal with an open issue

  1. Click Open issue, or scroll to Open issues the doctor could not fix at the bottom of the panel.
  2. Open Details and how to fix and follow the steps.
  3. Once it's fixed, the issue closes itself the next time the provider answers. To confirm straight away, click Run doctor now. You can still click Mark handled yourself. If the same problem comes back later, a new issue is opened.

Example

The team prefers free providers first. They put a free text provider at #1, two more free providers as fallbacks, and a paid provider last as a safety net. After a week, AI Insights shows almost every call served free, and the paid provider handled only a few calls during an outage.

FAQs

Does a budget stop a provider when it runs out?

No. Topped up ($) and Remaining (est.) are tracking aids based on estimated cost. Set spending limits in the provider's own console as well.

Why is the estimated cost different from my provider's bill?

Estimates use a fixed price table and token counts. Provider bills can include taxes, rounding or price changes. Treat estimates as a guide.

What happens if every provider fails?

The assistant falls back to listing matching records without a written answer, and other AI features show an error so you can retry.

Troubleshooting

SambaNova, Cerebras or OpenRouter shows Unconfigured

Its key isn't on the server yet. Whoever deploys Personal360 adds SAMBANOVA_API_KEY, CEREBRAS_API_KEY or OPENROUTER_API_KEY as a Secret Manager secret of the same name. The next deploy attaches it to the Personal360 service. Then click Run doctor now. To keep them free: no payment method on the SambaNova account, no purchased Cerebras credits, and a $0 credit limit on the OpenRouter key.

The Free models line says "not analysed yet"

The doctor analyses these providers on its next run, within 2 hours. Click Run doctor now to do it straight away. The automatic checks test each provider at most once every 30 minutes; Run doctor now tests it every time you click.

A provider shows Unconfigured

It has no API key. Click Set key under Manage providers, or ask whoever deploys Personal360 to add it to the server, then reload the page.

"Endpoint refused" when adding a provider

The base URL must use https on the standard port with a public host name, and the name must resolve to public addresses. Check for a typo, an internal host name or an IP address, and use the vendor's documented API address.

Test one provider

Click Test next to a provider's name. It tries the provider's models in order, starting with the model in use and then the ones from its live list, up to 5, until one answers. The result line shows the model that answered and any models it passed over, or every model's own error when none answered. A model that answers becomes the provider's automatic model (a pin, when you set one, is tried first and stays saved), and every rest on the provider ends. A rejected key or a payment answer stops the test at once, because every model would answer the same. Models that answered "gone" or "not available" rest as described above.

The row says "your allowed list has no live models; using auto selection"

A pin or allowed list you saved names models the provider's live list doesn't offer right now (or they're resting after "not available"). Personal360 uses an automatic choice meanwhile. Click the model badge and pick a live model, or choose Automatic (recommended) to clear the warning.

A provider stays Failing after Run doctor now

Run doctor now tests a failing provider every time you click, even while it is cooling down, and shows the provider's own error when it still fails. If the issue says the key was rejected or payment is required, fix that in the provider's console first (the ↗ icon), then click Run doctor now again. The automatic checks run within 2 hours.

The hover says "text not recorded"

The error text of a passing failure (a rate limit, a timeout) is kept only until the server restarts. Permanent failures and outages are always kept.

"Save failed"

Your session may have expired, or your account is no longer a master admin. Sign in again and retry.

Was this helpful?