Yes, it is stored locally. Kind of stinks because part of my workflow is to wipe all my local data between (and often during) browser sessions. I wish the appearance settings were tied to my account and persisted across sessions like they do for the kagi search engine itself. Not sure why they opted to do this local storage carveout for Assistant appearance.
I use Firefox and did cobble together this tampermonkey script so that my theme is always set to dark when I visit Assistant, even if I clear my local storage:
// ==UserScript==
// @name Kagi Assistant: restore dark theme
// @description set Kagi Assistant theme to dark
// @namespace my-kagi-assistant-settings
// @version 1.0
// @match https://assistant.kagi.com/*
// @run-at document-start
// @grant none
// ==/UserScript==
localStorage.setItem("ui:theme", "dark");
It's hacky, but it works, and it allows me to blow away all my local storage whenever I want without losing my dark theme in Kagi Assistant. Or, more accurately, it sets my theme to dark whenever I visit Kagi Assistant.