Account & settings

Everything you create in Marginalia belongs to your account: books, lorebooks, tags, inference providers, protocols and settings. Other users don't see them (except books you publish), and you don't see theirs.

Your account

The buttons at the bottom of the workspace:

Button  
Language The language of the user interface, see Language.
sun / moon button Next to the language: switches between the dark and the light theme, see Theme.
Change Password Changes your password, user name and full name, see below.
Logout Logs you out on this device.
Admin Only for administrators, see Administration.

Changing the password

Change Password opens a dialog with your Username, Full Name, Current Password, Password and Repeat password:

  • enter your current password for every change (leave it empty if your account has no password);

  • to change the password, enter the new one in both password fields;

  • leave both password fields empty to change only the name and keep the password;

  • tick Log out everywhere else (other browsers and all saved logins) to log your account out on every other device without changing the password, see below;

  • the user name must not be used by another account.

Click OK to save. With a wrong current password nothing is saved.

Changing the password ends all saved logins (Save login), on every device including this one: they have to log in again with the new password. Your other sessions that are open right now (a browser on another device still showing the workspace) are ended too; only the one you are working in goes on. If a device was lost or your password leaked, changing the password logs that device out.

Log out everywhere else does the same without a new password: every saved login of your account is forgotten and every other open session is ended. Use it when you left yourself logged in somewhere, for example on a computer that is not yours. It needs your current password like every other change in this dialog. The session you are in stays, but its saved login is forgotten as well, so this browser asks for the password the next time too.

Language

The Language selector above the buttons switches the user interface to another language. The choice is saved in your account: the page reloads with the new language, and so does every other page you have open (on another device too), and it is used again the next time you log in. The login screen itself is always in the default language.

The list contains only the languages that are installed. English, Japanese, French, Spanish, German, Korean and Italian come with Marginalia; an administrator can add more by loading an extension, for example Chinese localization. Texts a language doesn't translate are shown in English. The bundled extensions bring their own texts in Japanese, Chinese, French, Spanish, German, Korean and Italian (the Chinese ones show when the Chinese localization is loaded). Dates are written the way that language does. Your books and their texts are not translated, only the interface.

The Language selector
The Language selector
The workspace in Japanese
The workspace in Japanese

Theme

The button next to the Language selector switches the user interface between the dark theme (the default) and the light one. The choice is saved in your account and used again the next time you log in, on any device; a page that is already open in another tab changes when it is reloaded. Charts and the relationship map take the colors of the theme when they are opened.

The workspace in the light theme
The workspace in the light theme

Logging in

Save login on the login screen keeps you logged in on this device for 30 days (it needs HTTPS on a server, see Server (Docker)). Logout ends it.

An account can have an empty password; you then log in with the user name only. If an administrator cleared your forgotten password, log in this way and set a new password with Change Password right away. That is handy for the desktop app on your own computer, but never do it on a server others can reach.

Settings

The Settings tab holds your defaults for all your books.

The Settings tab
The Settings tab

At the top are three buttons:

  • Import Backup as New Book - creates a book from a backup file, see Book backups;

  • Discard Changes - throws away the unsaved changes and loads the saved settings again;

  • Save - saves the settings.

General Settings

Field  
Default Model The inference provider new books start with.
Default Protocol The protocol new books start with.
Default model for annotating, Default protocol for annotating The model that annotates a part when you do not choose another one for the run. Empty is the model of the book.
Backup Strategy Automatic book backups for books without their own strategy: No Backups, After N Messages or After N Minutes, with the number next to it.
Versions kept per part How many earlier versions of the text of a part the history keeps for all your books, unless a folder, a book or the administrator limits it more. Empty sets no limit here; 0 keeps no history.
Parts loaded at once in the story How many parts of a book the story and the viewer keep loaded. The story starts with the last parts, the viewer where you stopped reading (or the first parts); the parts before and after are loaded as you scroll and the ones far from you are dropped again. Empty loads all the parts at once.
Daily goal: words written, Daily goal: minutes of editing The goal of a day for the calendar of the writing statistics: the words you write yourself and the minutes you edit, over all your books. Empty is no goal.
Record writing statistics, Keep statistics for (months) Whether your writing statistics are counted, and how many months of them are kept (empty or 0: all). An administrator can turn the recording off for everybody and set a shorter time.

Default Model and Default Protocol are used only when a book is created; changing them doesn't change existing books. The Lore Generator extension has no book and generates with them. The backup strategy applies to all books without a Per manuscript override, from their next generated part.

Templates

The defaults for the book prompts:

Field  
Prompt language The language of the built-in prompts: English (the default), Japanese, French, Spanish, German, Italian, Korean, or Chinese when the Chinese localization is loaded. See Prompt language below.
Master Template The frame of the prompt, see Master template.
Point of View (POV), Tense The narrative voice and tense.
Style Style and tone guidelines.
Default User Prompt The request for each part, see User prompt.
Default Summary Prompt The request for a summary.
Default Meta Summary Prompt The request for a meta summary, which merges summaries.
Redraft System Prompt, Redraft Prompt The system message and the last message of a redraft of a part, see Redraft prompt.
Annotate System Prompt, Annotate Prompt The system message and the last message of the request for a model to annotate a part, see Annotate prompt.
Annotate Instructions What the model looks for when it annotates, for the books and folders that set nothing, see Annotate prompt.
Impersonate Prompt The request for a model to draft the instructions of the next turn in your place, see Impersonate prompt.
Compaction prompt of agents Only for users who may use agents. What your agents are asked when you /compact them, if their own compaction prompt is empty; empty here is the one your administrator set, else the built-in one.
Instructions of agents (agents.md) Only for users who may use agents. Your instructions for the agents that have none of their own, added to their prompt in every run. Empty is none.
Message to a URL when an agent needs you, Format of the message, Also when the application is open, Send a test message Only for users with the permission Notifications (and not only those who use agents), in the General tab, and only if your administrator allows it. Where to send a short message when an agent asks something, waits for you, finishes or fails and you have the application closed: see When you are not there.
System prompt of agents Only for users who may use agents. What your agents are told to be when their own system prompt is empty; empty here is the one your administrator set, else the built-in one. Plain text, not a template.
The Templates tab
The Templates tab

Further down, for a user who may use agents, are the prompts of the agents:

The prompts of the agents in the Templates tab
The prompts of the agents in the Templates tab

Each field shows the built-in default in grey while it is empty, and has the hints popover with Insert Default Template and the available variables and macros.

Prompt language

Prompt language chooses the language of the built-in prompts: what an empty field stands for (the grey text changes as soon as you pick another language), and so what the model is sent for generation, summaries, redraft, annotations and impersonate. The prompts of the plugins that have their own (Arc Outline, Beta Readers, Book Description Generator, Lore Generator, Manga Generator, SillyTavern Converter, Knowledge Tracker, Audiobook) and of the agents follow it too. It is independent of the language of the interface: you can use the application in English and send Japanese prompts. A model follows the instructions best in the language of the story, so pick the one your books are written in. Only the built-in prompts change: a prompt you wrote yourself, here or in a book or folder, stays as it is. An agent reads its prompts and notices in its own language (Language in the agent's settings), not in this one.

These defaults apply to every book whose own field is empty, immediately - not only to new books. A book that sets its own value on its Prompts tab keeps it. So:

  • set what all your books share here;
  • set what is special to one book on its Prompts tab;
  • clear a book's field to bring it back to the default from Settings.

Styles

The text styles of your books: how the text of the parts looks in the story and in the reader. The tab lists the Normal and Book styles, which the application brings and which can not be changed (they are marked built in), and your own. Select a style to edit it on the right; the buttons under the list:

  • Duplicate - makes a style of your own from the selected one (also from a built in one: this is how you start), named ... (copy), which you can then rename and change;

  • Delete - deletes a style of yours; a built in style can not be deleted;

  • Set as default - makes the style the one the books use unless they choose another in the story's settings menu. The default style is marked default in the list.

  • Export and Import - save the selected style as a .style.json file, and add the styles of such a file to your own (not stored until you save the settings). See Share a style.

The styling guide goes through every option and has an example style to download.

The Styles tab, with the horror style of the styling guide selected
The Styles tab, with the horror style of the styling guide selected

For a style of your own the form on the right has a Name, the box For exports (not offered for books) and two tabs. A style is either for books or for exports: a style for exports is offered in the export dialog (the application brings four, the looks of the HTML, EPUB, PDF and Word exports) and can not be the default style of the books, and a style for books is not offered in the export dialog. The list marks them (export).

  • Options - in groups: Text (font, size, line height, letter and word spacing, color, alignment, hyphenation, the space between paragraphs, the first line indent of paragraphs and a drop cap after headings), Page (the width of the text column, centered, and the background color, which fills the whole area behind the text), Emphasis, links and code (the colors of italic and bold text and of links, the font of code), Quotes, Headings (font, size of the first level, color, alignment, small capitals) and the symbol and color of the Scene break (---). A box is any CSS value (1.1rem, #336699, var(--lumo-body-text-color)); an empty box keeps the look of the application. The font boxes offer common font stacks, and take your own.

  • Custom CSS - CSS of your own, added after the options and applied inside the style, so a rule you write is only for the text with this style: .chat-message-markdown p { text-indent: 1.5em !important; } indents paragraphs, plain declarations (font-size: 1.2rem;) apply to the whole text. Below it, Generated CSS shows the stylesheet the options make (read only). The braces { } must match, or the style is not saved.

The Custom CSS tab of a style
The Custom CSS tab of a style

Under the form the Preview shows a sample text in the style, and follows every change as you type.

Like the other tabs, the Styles tab is saved with the Save of the settings, and Discard Changes throws its changes away too: duplicating, editing, deleting and setting the default only change the working copy, and Unsaved changes (and the lock) appears as soon as you do any of them. A style with no name, or custom CSS whose braces do not match, is refused when you save.

Exports

What each file format is exported with: the tab has a section for every format that has something to set (Plain text, Markdown, HTML, Word, PDF, EPUB, Markdown with front matter, Obsidian vault; click its name to open it).

  • Print style (HTML, Word, PDF and EPUB, the formats with fonts and colors) - the style the export dialog preselects for the format. It starts as the look the application brings for the format (HTML page, PDF book...); the list holds the styles for exports, the built in ones and yours. Choose another to export that format in it every time, until you change the choice in the dialog for one export.

  • Front matter (Markdown with front matter and the Obsidian vault) - the YAML block that starts the file, with , , and. Empty is the default block.

  • Title page (every format but the ones for other tools; the Obsidian vault has it in the note of the book) - the template of the title page, a Handlebars template that writes Markdown, with and (the info icon in the field lists them). Empty is the default one: the title as a heading and the author in italics under it. Fill default in the info popover starts you from the default.

  • Authorship statement (every format but the SillyTavern chat) - the text that the check box Include authorship statement of the export adds at the end: , , , , , , and (the models separated by commas, empty when there is none). Empty is the default text.

These are your versions: a book or a folder can have its own, see Title page template. The tab is saved with the Save of the settings and Discard Changes throws its changes away, like the others. A template that is not valid is refused when you save. A style you make in the Styles tab can be chosen here after you save.

The Exports tab, with the HTML section opened
The Exports tab, with the HTML section opened

Tags

A table of all your tags (the ones you give to books, lorebooks and lorebook entries) with the number of objects each tag is related to. Click a column header to sort by it. Unlike the other tabs, it acts at once: it is not part of the unsaved changes and has nothing to save.

The Tags tab
The Tags tab
Button  
Rename (pencil) Asks for the new name of the tag; every object keeps the tag under the new name.
Delete (trash can) Asks for confirmation, then deletes the tag and removes it from all objects that have it.

If the new name is the name of another tag (names are compared ignoring case), renaming would make the two tags the same, so you are asked whether to merge them. Merge moves everything tagged with the renamed tag to the existing tag and deletes the renamed one; an object that has both ends up with the existing tag once. Cancel and nothing changes, the tag keeps its old name.

Asking whether to merge two tags
Asking whether to merge two tags

Keyboard shortcuts

The keys of the story editor shortcuts (they work in the story editor on a computer, the phone layout has none). The table lists every action, also the ones extensions bring, with its key, and the keys of the buttons of the Organise window of the book list. Every item of the story's settings menu, of the menu of a part and of the right click menu of its text is an action here (most have no key until you give them one), and the menus show the key next to the item.

Button  
Record Press the new key combination (modifiers first or together, e.g. Ctrl+Shift+K); a click anywhere else cancels.
Reset to default Gives the action its default key back.
Clear The action has no key.

A red note names a key two actions share, a key the browser keeps for itself (Ctrl+N, Ctrl+T, Ctrl+W and the like, the page never gets them) and Alt with a letter (types a character on some keyboards, e.g. macOS). A key without Ctrl, Alt or Meta works only when no text field has the focus. The keys are saved with Save like the other settings and apply at once in the open stories.

Settings, Keyboard shortcuts
Settings, Keyboard shortcuts

Notifications

A desktop notification of the browser when a model is done, so you can leave the tab while it works. The tab has a check box Use desktop notifications, the buttons below and a list of what notifies:

  • Story generation, Annotate with AI, Annotate with AI (automatic), Redraft, Redraft (automatic), Draft Instructions, Summary, Resummarize all summaries and Help assistant, and what extensions add, named after the extension (Reviewer: generate a review, Lore Generator: generate lore, Image Generator: generate the image, Arc Outline: generate chapters...). The Manga Generator entries marked (automatic) are its continuous mode.

  • The entries marked (automatic) are the runs the book starts by itself, the automatic annotation after a generation and the redraft that follows it. They are chosen apart from the dialog you open yourself: with Annotate with AI checked and Annotate with AI (automatic) not, the automatic annotation is silent; with only the automatic entry checked, only the automatic annotation notifies.

  • A run that ends with an error notifies too (… failed), one you stop yourself does not.

The check box turns notifications on for your account and enables two buttons. Register this browser asks the browser for the permission (from that click); the line under the buttons tells what this browser says: allowed, blocked (allow it in the site settings of the browser), or not asked yet. The permission belongs to the browser, not to your account: every browser or device you want notifications in has to be registered once, the check box and the list are the same everywhere. Send a test notification shows one at once, also while the page is in front.

The Filter field narrows the list by name, Check shown and Uncheck shown act on the entries it shows and leave the others as they are. A notification is shown only while you are not looking at the page (another tab, or the window is not in front); clicking it brings the page back.

Notifications need an https:// address or localhost: on a plain http:// address of a server in your network the browser does not offer them, and the tab says so. A tab the browser has put to sleep (usually on a phone) can't show them either. The tab is saved with the Save of the settings, like the others.

Phrase watch list

Your phrase watch list, which every book uses (folders and books add theirs), and the annotation templates its entries and the entries of the folders and books pick from: what the note of a phrase that was found says, its type and whether it is given to the model. Saved with the Save of the settings, like the other tabs.

The phrase watch list in the settings
The phrase watch list in the settings

API keys

Keys for programs and scripts that use Marginalia over its HTTP API (/api/v1): a program sends the key in the header Authorization: Bearer <key> and does what you could do, in your books. Only for administrators and users with the permission API access; without it the tab says so.

The API keys tab
The API keys tab
A new key, shown once
A new key, shown once

New API key asks for a Name (what uses the key, so you know which one to revoke), the Access and when it Expires (after a number of days, or never when empty). The access is any combination of:

Access  
Read Your books and the commands that only read.
Write Every command, also those that change or delete; includes Read.
Update the installation Only for administrators: the update of the installation (its status, its log, starting it).
Manage the extensions Only for administrators: installing, updating, stopping and removing extensions.

Every key can read the version of Marginalia. Give a key only what its program needs: a script that installs plugins needs only Manage the extensions, and such a key can't touch your books. The update and the extensions stop working for a key when its owner stops being an administrator; its other access stays.

The key is shown once, right after it is made: copy it then, Marginalia keeps only a fingerprint of it and can't show it again. The list shows your keys with the start of each, when it was made, when it expires and when it was last used; the trash button revokes a key, and the programs that use it lose access at once. A key also stops working when it expires and when an administrator takes the permission away. The keys are saved when you make or revoke them, not by the Save of the settings.

The API page: open /api/v1/ of your Marginalia in a browser (for example https://marginalia.example.org/api/v1/) to see every call, its arguments and its answers. Paste a key into API key at the top: the page then also lists every command that key may run, each with its arguments, and Try it out → Execute sends the call with that key and shows the answer. The calls are real: a command changes your book, an update restarts the server. The page keeps the key only while the tab is open, never on the disk.

For developers, the calls are described in the developer manual.

Extension Settings

Settings of the installed extensions, one section per extension (for example Reviewer Settings and SideQuery Settings). They are saved with the same Save button. The tab is empty when no extension with settings is installed.

The Extension Settings tab with the Lore Generator settings
The Extension Settings tab with the Lore Generator settings