LocalAI 5.0.0 converts old agents with every trigger and connector switched off. Turn the conversion report into findings and a one-step-at-a-time enable plan.
What changed in LocalAI 5.0.0
LocalAI 5.0.0 was released on 18 November 2026. Among a desktop app, Projects, a Files page and a Python sandbox, the release moves chats to the server, and with that move the old chat page, the old agents, agent jobs and the old skills are replaced. The project's migration document, "Chats: moving from the old chat, agents and skills", describes what happens to existing installations: at start the server reads what the old features left on disk and in the database, creates matching saved agents, triggers, connectors and skills, and leaves the old data unchanged.
The sentence that matters most for anyone who relied on automation is near the top: every converted trigger, connector and binding is switched off. An agent that ran by itself on a schedule becomes a trigger on a saved agent, switched off. A scheduled task with a cron text becomes a trigger, switched off. An MCP server attached to an agent becomes an MCP connector of the agent's owner, switched off. A Telegram connector becomes a connector binding, switched off, with the old admins as its allowlist. In the document's words, nothing converted acts by itself.
That is a safe default. It also means that after the upgrade, everything that used to happen on its own has stopped, and the only record of what was converted, renamed or dropped is a conversion report. This guide turns that report into a review and an enable plan, one switch at a time.
What the conversion keeps, renames and drops
The migration document is specific, and each point becomes a check:
- Time zones. A scheduled task ran in the server's time zone, and its trigger keeps that zone. When the server's zone has no name, such as plain local time, the trigger runs in UTC and the report says so. A nightly digest that ran at 23:30 shop time may now run at 23:30 UTC.
- Renames. A name that is already taken becomes
Name (2), for agents, triggers and MCP connectors, and the report saysrenamed to Name (2). Anything that referred to the old name must be updated. - Dropped settings. Every dropped field is named in the report without its value. The main ones are actions, the prepare script of MCP servers, planning and memory switches, the webhooks of old tasks, skills from a git repository and connectors other than Telegram.
- Dropped items. An item that cannot convert for good is marked dropped with the reason and is not met again: a task with no cron text, a cron text with month or day names, a Telegram connector with no token, more than 50 triggers. A local MCP command of an agent is converted only when its owner is an administrator; otherwise it is dropped.
- Failed items. One that failed for a reason that may pass, such as a full disk or collections being off, is tried again at the next start.
- Telegram allowlists. The old admins become the allowlist; an entry that is not a valid name or ID is left out, and the report counts them.
- MCP connector addresses. A connector keeps its token, sealed on the server. An address on a private network cannot be switched on unless an administrator allows it.
The report itself comes from GET /api/chats/conversion and lists each item with kind (agent, trigger, skill, chat, connector), name, status (converted, skipped, failed, dropped) and a reason. It never contains a token or prompt text. An administrator also gets totals for all users.
A review for the book store installation
Hansini looks after the LocalAI server that Belgavi's Book Store uses for internal tools. Before the upgrade it ran a stock checker every hour, a nightly returns digest, a weekly supplier summary, a gift-card expiry reminder and a Telegram bot for shop staff. After the upgrade, the conversion report lists 11 items.
The companion example reads a report in that documented shape, plus Hansini's own inventory of what the old installation did, and produces two outputs: findings that need a decision, and an enable plan. The fixture's reason texts are written in the spirit of the document; a real report's wording may differ.
The review found nine things to decide:
| Item | Finding |
|---|---|
| stock-checker agent | converted without actions and planning |
| nightly-returns-digest trigger | time zone fell back to UTC |
| weekly-supplier-summary trigger | dropped: cron text with month or day names |
| MCP server 2 connector | dropped: local MCP command of a non-administrator owner |
| help-desk-bot Telegram connector | 2 allowlist entries left out |
| Returns helper agent | renamed to Returns helper (2) |
| catalogue-tagger agent | failed: collections off, retried at next start |
| a converted chat | 3 attachments not kept |
| gift-card-expiry-reminder | not in the conversion report at all |
The last row is the one the report alone cannot show. The reminder was in the old system, but nothing in the report mentions it, so it is neither converted nor dropped from the report's point of view. Only an inventory written before the upgrade catches it. This is the most important step of the whole review: write down what the old installation did, in business terms, before upgrading.
The enable plan
Four items are converted and switched off by design: two connectors and two triggers. The plan switches on one at a time, connectors before the triggers that use them, each with a check that must pass before the next step:
- MCP server 1 connector: list its tools from a test chat and confirm the address and token belong to this deployment.
- help-desk-bot: waits, because its allowlist changed. Decide who should be allowed, confirm every entry is a current admin, then send one test message from an allowed account.
- nightly-returns-digest: waits, because its zone fell back to UTC. Fix the schedule, run it once by hand against a scratch project and read the chat it produced.
- stock-checker periodic trigger: confirm schedule and zone, run once by hand, read the result.
The core of the planner is short:
ORDER = {"connector": 0, "trigger": 1}
def enable_plan(report, blocked):
candidates = [i for i in report if i["kind"] in ORDER and i["status"] == "converted"]
plan = []
for item in sorted(candidates, key=lambda i: (ORDER[i["kind"]], i["name"])):
key = (item["kind"], item["name"])
plan.append({"step": len(plan) + 1,
"switch_on": f"{item['kind']} {item['name']}",
"wait_for": "resolve the findings first" if key in blocked else None})
return planTwo of the four steps wait on findings. Nothing in the plan touches dropped or failed items: those need re-creation or a fix first, and switching on a partial replacement is how a reminder ends up firing at the wrong hour for the wrong customers.
Things to do before switching anything on
- Read every converted prompt. Scheduled tasks had
{{.name}}parts filled from their parameters during conversion. Check the filled text says what you expect. - Check what each saved agent can reach. The document says an agent is converted with the connectors it names and gets the grant on the collection named like it. Compare that with what the old agent used, especially where actions were dropped.
- Treat webhooks as gone. Old task webhooks were dropped. Anything downstream that waited for them will not hear from the new trigger. To keep parameters and a webhook, the document says to recreate the task through the agent jobs API.
- Upload browser-only chats. Conversations kept only in a browser were never on the server. They can be uploaded with
POST /api/chats/import/browser; repeated uploads skip chats already present.
Failure modes
- Enabling every trigger at once from the Connections page. The first wrong one is then hard to identify.
- A connector token that Telegram refuses, which the report lists as dropped. The bot will not answer, and nothing else will tell you.
- Agents that wait for collections. If collections are off, the agent fails and is retried at every start; switch collections on, then restart.
- An agent that an earlier start already converted. The document says it keeps what it had, so its MCP connectors must be made again by hand on the MCP servers tab of Connections.
Verification
python example.py in the companion prints the findings and the plan, and its tests assert each finding, the order of the plan and the two blocked steps. On a real server, save the conversion report as JSON immediately after the first start of 5.0.0, keep it with the inventory you wrote before the upgrade, and adapt the companion's loader to the exact layout your server returns. Then work the plan step by step, recording each check.