This is the documentation of the old Python version (AIcove 0.3)

AIcove 1.0 is a new, native program in C and the Python version is no longer supported. For 1.0 read the current docs; coming from 0.3, the move guide. The old code stays in the python-final branch.

Documentation

The same guide AIcove shows on its Documentation tab.

Start here

AIcove is one window for the things you run on this machine: local AI models and the personas you chat with, your other tools, and your passwords.

To chat: the Chat tab. Pick a persona, write, press Enter. If its model isn't loaded, AIcove loads it first. See the topic Chat. When you are done: Stop everything (top right). Or let AIcove do it: on the Settings tab, Unload after (Models) stops a model that sat unused that many minutes, and Pictures idle (Programs) does the same for the image server. Both load again by themselves when needed. A big model and the image server together can fill the memory of a whole machine, so these are worth setting there.

The tabs: Chat, Agents (who works for you: news, research, your machines), Personas (who you talk and write with, and on which models), Launchers (a model file and how it runs), Writing, then the rest.

Only one model is loaded at a time. Starting another one stops the one that was running.

The pane at the bottom of the window shows what the buttons did. If something doesn't work, the reason is usually written there.

Chat

The Chat tab is AIcove's own chat, no browser involved. On the left your personas and the chats of the one you picked; on the right the chat.

Every chat is a file in the persona's folder, ~/AIcove/personas/<persona>/chats/. Delete removes a chat for good. Rename… changes a chat's title; new chats are named after their first message.

Long chats. A model only takes in so much text (the launcher's context size). When a chat fills 70% of it, the older messages are summarised by the model itself, which takes a moment ("The chat is getting long — summarising…"), and from then on the persona gets that summary instead of them; the newest part stays word for word. The bar right of the menus, Context 5.2k of 32.8k (16%), shows how full it is (prompt, facts, knowledge and the chat; it turns orange from 70%). It shows while the persona's model is loaded. The chat on screen stays complete:

What a persona remembers. Nothing carries over from one chat to the next by itself, except the persona's facts: short sentences in four sections, About you, Story so far, World and Style and rules. They go into every chat with that persona.

Keep them short: every fact costs room in every chat.

Controls above the input set how this chat answers, over the persona's own settings. as set means the persona's (or its launcher's) settings. Each chat keeps its own; a new chat starts with as set.

Knowledge is material a persona works from: notes, lore, books. Put the files into its knowledge/ folder (Knowledge… at the top of the chat opens it; the button shows how many files there are). Text, Markdown, PDF, EPUB, Word and LibreOffice files work; PDF, EPUB and Word are turned into text once and kept in knowledge/.text/. It works without file access.

Web above the input (off/on, per chat) lets the persona search the web and read pages: ▸ Searched the web for … and ▸ Read … show in the chat. It needs a model that can use tools; on one that can't, the menu is greyed out. Searching goes to DuckDuckGo, or to your own SearXNG if the web_search setting (Settings tab) is its address, e.g. http://127.0.0.1:8888. If that address is a tool of yours (Tools tab) that isn't running, the first search starts it. After many searches in a short time DuckDuckGo stops answering for a while; Wikipedia's search stands in until then. Pages on this computer or your home network can never be read, also not through a redirect, so a model can't reach llama-server or your router this way.

Voices. A persona with a voice (Personas tab, Voice) gets 🔊 listen under its answers: the answer is read aloud, without code and Markdown marks, and ■ stop ends it. The voice comes from a voice server (a tool on the Tools tab, started when needed, or an address; see the README for what it has to answer); its voices are the ones on offer (Get the voices on the Personas tab asks it). Making the audio can take a while, depending on the server and the machine; once made, it is kept (as MP3, if ffmpeg is there) in the persona's chats/audio/ and plays at once. Audio no message needs any more (the chat or message deleted, the answer edited, another voice) is deleted by itself. The voice setting names the tool, or the address of a voice server running elsewhere.

Pictures above the input (off/on, per chat) lets the persona make pictures: ask for one, or it decides a picture says more. ▸ Made a picture: … shows what it asked for (click to see the whole description), the picture comes under it; click the picture to see it full size. The image server (Tools tab, Pictures: stable-diffusion.cpp's sd-server) starts when needed, and a picture takes a while. Pictures are kept in the persona's chats/pictures/; deleting the chat or the message deletes them. The pictures setting names the tool, or the address of an image server running elsewhere (anything with the OpenAI image API). Needs a model that can use tools.

Its own face. A persona can look the same in every picture it is in. Train a LoRA on the Z-Image model with pictures of its face, put the .safetensors file in the LoRA folder (~/AIcove/loras/, Settings tab), and on the Personas tab pick it under LoRA with the word it was trained on (the trigger word). When the persona is in the picture itself, it describes itself as its instructions say and the picture is made with its LoRA; pictures without it stay as they were. The image tool must be named pictures and have --lora-model-dir "$AICOVE_LORAS" on its start line. The LoRA folder is inside the AIcove folder, so it moves and syncs with it.

Shapes. The persona picks one: wide (1344×768, 16:9, the default: title pictures for a site), square (1024×1024), portrait (832×1216), landscape (1216×832) or wide-hd (1920×1088, Full HD, only when asked). Z-Image was trained at about one megapixel; bigger pictures stretch bodies, double heads or paws and lose arms, so the normal shapes stay near that size and Full HD is the exception.

Seeds. Under every picture is its seed. Same seed + same description + same shape = the same picture; the persona can remake a picture with small changes by giving its seed back. A seed is only good for its own description and shape: another shape with the same seed is another picture.

Face fix (small faces). In full-body and wide pictures a face is only about 100 pixels, too few for eyes and skin, so faces come out mushy. If the Pictures tool's server is started with a face detector, every picture with a LoRA gets a second pass: each face smaller than 8% of the picture is cut out, painted again at 512×512 with the same description and LoRA (strength 0.4) and blended back. Close-ups are left alone. To switch it on:

  1. Download face_yolov8n.pt (the usual ADetailer face detector, e.g. from the Hugging Face repo Bingsu/adetailer).
  2. Convert it once with stable-diffusion.cpp's script (needs Python with ultralytics, torch, safetensors; a throwaway venv is fine): python scripts/convert_yolov8_to_safetensors.py face_yolov8n.pt face_yolov8n.safetensors The file must keep the name face_yolov8n.safetensors.
  3. Add --ad-model /path/to/face_yolov8n.safetensors to the Pictures tool's start line.

Without the detector, pictures are made as before. A face fix pass adds roughly 15 seconds.

Other people in a picture. A LoRA trained on one person pulls every face towards that person: a mayor, a dinner guest or a famous politician come out as the persona's twin, and two people shaking hands can merge. Clear prompts help a little (give each person their own clothes and their own sentence: "Across the table sits a woman. She has short black hair and a red dress."), a LoRA strength of about 0.8 a little more. What works: make the picture without the LoRA first (the image model gets the scene, the people and their hands right), then paint only the persona's part of the picture again with the LoRA (an img2img pass with a soft mask over that side, strength about 0.6). The others stay who they are. AIcove does not do this by itself yet.

Agents

Personas are for talking and writing; agents are for jobs. An agent has a name, a picture and a job; it works on its own and comes back with reports, and you can talk with it about them in the Chat tab (agents are listed there below the personas). What it finds you then write with a persona: Work on it… (a chat) or Write it with… (the Writing tab). The first one is a story hunter: it searches the web for news on your themes and brings leads: a headline, a line or two on what it is and why it is interesting, and the link, many of them, for you to scan and pick from. Set its sites limit to 2 or more and it writes each story up instead, as a small article from that many different sites, with the facts to check.

Reports shows what the agents brought, newest first; new ones in bold. Filter by status, theme and agent. A report has a title, a teaser, the article, its sources (only pages the agent really read in that run) and a list of facts to check, each with the number of its source.

Agents is where you set one up:

Talking with an agent: pick it in the Chat tab under Agents. It knows its job and its newest reports (and what you put in its knowledge/ folder), answers in its voice, and with Web on it can check a report or dig deeper. A full run is still started here, with Run now or Research….

Research… (next to Run now) gives the agent one topic to dig into instead: "cooking the perfect steak", "the history of the bicycle", a name, a question. Old sources are welcome there (archives, research, books, news of any year, fringe sites marked as fringe). It reads page after page and notes each source on a card (what the page says, what kind of source it is), then writes a dossier as its report: what is solid, what is disputed or only claimed and by whom, open questions, 3 to 5 proposed articles with angle, hook and sources, and all the source cards. On a dossier, Write articles… has a persona of your choice write articles from it (headline, teaser, text) in its own voice, facts only from the dossier's sources, with wishes like "in German, about 800 words"; they come under Reports too. Research runs are long: give it more searches, pages and minutes than a news hunt.

A lead may come straight from a search result (the report shows what the result said, or that the agent read the page); its address must be one the search gave or a page it read. A written-up story stands on pages the agent read in that run, from as many different sites as sites says. Neither may be a front page (a front page only helps find articles) or older than 3 days when the page or its address says when it came out. A search for an old year ("October 2024": models like the year they were trained in) is sent back. The agent is told today's and yesterday's date. For finding stories a plain voice works best: a character invents angles and critics; let a persona work on the story afterwards (the theme's persona, Work on it…, Write it with…).

An agent may search the web and read pages, and save its reports in its own folder. Nothing else: no files of yours, no commands. Runs go on when the window is closed; Stop ends one. The last run's log is under the form. Small models are weak at long chains of searching and reading; give them a short, clear task and a few themes.

Agents of another machine (one you have launchers of) show under its name. They run there, on its own schedule; editing, Run now and the reports work from here over ssh. Their reports are fetched when the window opens and on Update from other machines.

Where they are: ~/AIcove/agents/<id>/: agent.txt (the settings, by hand works too), voice.txt, picture.png, chats/ and knowledge/ like a persona's, stories/ (one Markdown file per report), seen.txt (links already reported), runs/ (a log per run).

Writing

For long texts: a novel, a fic. A project is a list of chapters, each one a Markdown file whose first # line is its title. The top row has the project, the Project menu (New project…, Import…, Export…, Rename…, Delete project…, Open folder, Keep versions), Story memory… and Copy for AO3.

Models only work when you ask: Send, a template, Review, Remember or a build of the story memory. Each such job reads the chapter as it is in the editor at that moment, does its work, and stops. While you write, nothing runs.

Talking about the text (the panel on the right): pick a persona (it is remembered per project) and press Load if its model isn't running. Make one of your own for this on the Personas tab, with the prompt that suits how you work: an editor, a writing partner, a critic. It reads the open chapter as it stands. Each chapter has its own talk: go to another chapter and you get that one's; New talk deletes the chapter's talk and starts afresh. What should last beyond a talk goes into Style or Plans. A talk can grow as long as you like: the model gets its latest messages, as many as fit next to the chapter and the story memory (at most 12). On a chapter with text and no talk yet, the box holds your first prompt, ready for Enter: it is ~/AIcove/writing/first-prompt.txt, change it there (empty: nothing).

Review (the second tab of the right panel): notes on the text, never changes.

Story memory… (the bible): a model can't read a whole novel at every question, so it reads each chapter once and keeps notes, and those go along with everything you ask instead.

The changes: nothing a model writes is in your chapter until you accept it. Put the cursor in a change or right-click it: ✓ Accept, ✗ Decline, ✎ Edit… (change it, then take it); the cursor then goes on to the next change. The bar above the text has the same, ◀ ▶ to go from one to the next, and Accept all / Decline all (they ask first only while you haven't decided any change by hand yet; after that they take the rest); it also says what the change at the cursor is ("“upon” → “on”", "space → ¶"). A change of only spaces or line breaks, which can't be seen, marks its whole line. Changes wait across restarts and chapter switches; the chapter list shows how many each chapter has. You can type around them as usual.

Where it is: ~/AIcove/writing/<project>/: project.txt (title, the chapters in order, draft or done, the persona), chapters/c001.md …, bible/ (the story memory: chapters/ notes, cast.md, threads.md, style.md, plans.md), suggestions/ (the changes waiting), talk/ (the talks). The templates are in ~/AIcove/writing/templates/, the slop list is ~/AIcove/writing/slop.txt. Files can be edited by hand too; a chapter file put there joins at the end.

Personas

A persona is a name, a picture, a prompt and a few settings, tied to the launchers it runs on.

Launchers

A launcher is one model file together with its settings. The list on the left shows them; ▶ marks the one that is loaded, ⇣ one that is still downloading.

The form

Buttons

Useful options: Context size is how much of the chat the model remembers (bigger needs more memory). Parallel chats set to 1 gives the whole context to one chat. Compress context (K) and (V) roughly halve the context's memory for a small loss in quality. Max answer length stops an answer that would otherwise run on.

Thinking budget caps how much a thinking model thinks before it answers (in tokens; it counts against the answer's length too). When the budget is used up is a sentence the model is told at that moment, so it moves on to answering cleanly. Both apply to every persona on that launcher; they take effect when the model is started again.

Models on another machine

A second computer with AIcove (say one with a faster graphics card) can run the model while the chat stays here: personas, chats, files, pictures and voice remain on this machine, only the chat text goes back and forth. You need an ssh key that logs in to that machine without a password, and a name for it in ~/.ssh/config (a Host line). From another machine… asks for that name and adds all its launchers, as machine-name. On this tab they are listed under a heading with the machine's name, below this machine's own; elsewhere they carry 🖥 and the machine's name, and the status says on that machine. They follow that machine: AIcove asks it when the window opens, when one of its launchers is started, and on Update from other machines. Then a new launcher there appears here, one deleted there goes here too, and a changed name or model shows. One you delete here stays away until you add the machine again. Start starts the model over there with that machine's own settings and opens an ssh tunnel, so to the chat it looks like a model here. Stop llama-server stops it there and closes the tunnel. The settings of such a launcher are changed on the machine it belongs to. Its model stays private there: nothing is opened to the network.

By hand, a launcher file with two lines does the same: host: <name from ~/.ssh/config> and launcher: <its launcher there>.

Letting a model use your files

A persona can be allowed to read files of this machine and to write text files. It can never run commands: when something has to be run or changed in the system, it explains and gives you the command, and you run it.

Switching it on

  1. Settings tab, File access for the AIs: the folders it may read, the folders it may also write in, and whether it may read system files (/etc, /var/log, /proc and the like, so it can look at the machine and explain).
  2. Personas tab, Files: per persona No access, May read, or May read, and write after asking you each time. Save; it counts from the next message.

Without both, a persona has no access.

Each persona's own folder

Every persona has a folder in your AIcove folder, ~/AIcove/personas/<persona>/. Two parts of it are for the persona itself, when it has file access:

Its own folder… next to Files on the Personas tab opens it. Other personas and the plain model can't read it, and the persona itself can't touch the rest of its folder (its persona file, its chats). Writing there needs May read, and write and your Confirm each time, like every write. It reads plain text (txt, md, csv, code); not PDF or office files. A persona doesn't look into its folder by itself in every chat: say "check your notes", or put a line into its prompt such as "At the start of a chat, look into your own folder."

It knows this guide

A persona with file access can also read this guide and your notes file (the My notes topic), topic by topic, without any folder being allowed for that. So you can ask it how something on this machine works or what to do, and it looks it up first. Keep the notes file free of passwords.

What happens when it writes

A window opens: which file, how many lines change, and the change itself. Nothing is written until you press Write it; Don't (the default) tells the persona no. The old version of a changed file is kept in ~/.cache/aicove/access-backups/.

What it can never do, whatever the settings say

Everything it reads, searches or writes is listed in ~/.cache/aicove/access.log (which file, when, which persona; never the contents).

Good to know

Tools

The Tools tab holds everything else you start and stop on this machine: one row per tool with its state, Start, Stop, Open (in the browser), buttons of its own, and Edit…. The top bar shows which tools are running.

Add tool… asks for:

A tool that asks for a password (su, sudo) must have the terminal box ticked, or it has nowhere to ask.

Keyboard

The Keyboard buttons in the top bar switch the keyboard layout. The active one is marked, also when the layout was switched outside AIcove (the mark follows within a few seconds).

Setting them up: Settings tab, group Keyboard.

A machine with no lines there has no keyboard buttons. The lines belong to one machine, because layouts and commands differ.

Passwords

A small password manager. Each entry is one file, encrypted with GnuPG. You have one master password; GnuPG asks for it in its own window and remembers it for a while. AIcove never sees it. Nobody can reset it: without it the entries can't be read.

Using it

Types

Every entry has a type, the folder it is kept in: web, mail, social, shopping, finance, gov, games, media, app, wifi, pc, server, db, vpn, crypto or other. The list is grouped by type; click a type's heading to fold it away. The menu above the list shows one type only. The type menu in front of the name moves an entry to another type when you save. Older entries that aren't in a type folder are listed under "(no type)".

Bringing in a browser's passwords

  1. Export them from the browser. Chromium and Chrome: Settings → Passwords → Export; Firefox: Passwords → ⋯ → Export. Bitwarden and most other password managers can export the same way.
  2. More → Import CSV and pick the file.
  3. The logins are listed without their passwords, each with a type from its site. Untick what you don't want, change types (select several rows and give them one type at once), rename if you like. A login that is already in the store comes unticked.
  4. Import the ticked ones. GnuPG may ask for the master password once.
  5. Say yes to shredding the file: it holds every password in plain text.

A second machine

  1. First machine: More → Set sync address (a git address you can push to), then Sync now.
  2. First machine: More → Export key. Carry that file over yourself.
  3. Second machine: Get my store from another machine…, then More → Import key. Delete the key file on both.

After that Sync now on either machine exchanges the changes. If the same entry was changed on both before syncing, nothing is merged until you pick a side in the More menu.

The server only ever holds encrypted entries. The key is not put there.

Settings

Everything that differs from one machine to the next: the llama-server program, your AIcove folder, the model folder, how much memory the graphics card has, how much of a model goes on it by default, the ports, the terminal program for tools, the keyboard buttons, what the AIs may read and write, the password store and the notes file.

On a machine where AIcove runs for the first time, it opens on this tab with what it found.

Keyboard buttons: the buttons in the top bar that switch the keyboard layout. See the topic Keyboard.

Which llama-server: AIcove doesn't bring llama.cpp; install it as llama.cpp's own install guide describes, or take a ready build from its Releases page on GitHub. Pick the build for your graphics card: CUDA for NVIDIA, ROCm for AMD, SYCL for Intel, Vulkan for any of them (Vulkan is a standard that the normal drivers of all three speak; the vendor's own build is usually a bit faster), CPU without one. What fits: a model file needs about its own size in memory, plus 1–3 GB for the conversation; the Launchers tab shows the estimate for each launcher.

Model reachable from: "this machine only" is the safe choice. "Everyone on the network" lets other devices talk to the loaded model directly, without a password. Takes effect when the model is next started.

From a terminal

The window does all of this; these are the same actions as commands.

Command Does
aicove open the window
aicove start NAME load a launcher's model, or a persona on its model
aicove stop stop the model
aicove stop all stop the model and the tools marked for it
aicove status what is running
aicove list launchers and personas
aicove info this machine's launchers as JSON (what another machine asks for)
aicove chat PERSONA that persona's chats
aicove agent the agents and how they last ran
aicove agent run ID run one now (aicove agent help for the rest)
aicove chat PERSONA "message" a new chat (loads the persona's model when needed)
aicove chat PERSONA last "message" go on with its latest chat (or give a chat's id)
aicove tools the tools and whether they run
aicove tools start NAME / stop NAME one tool
aicove passwords names of the password entries (never the passwords)
aicove passwords sync sync the password store
aicove check the same as Check on the Settings tab

Where things are

Everything is a plain text file and can be edited by hand.

What Where
Settings of this machine ~/.config/aicove/config.toml
Launchers ~/.config/aicove/launchers/
Your AIcove folder: personas (each a folder with persona.txt, picture, knowledge, notes), agents and their reports, writing projects, documents, work ~/AIcove/
Tools ~/.config/aicove/tools/
Passwords ~/.password-store/
Logs, downloads in progress, old versions of saved launchers and tools ~/.cache/aicove/
What the AIs did with files; old versions of files they changed ~/.cache/aicove/access.log, ~/.cache/aicove/access-backups/
The program the folder you cloned; git pull there updates it

To take everything that is yours to another machine, copy ~/AIcove/. Launchers and tools belong to one machine, because the model files and programs differ. A persona names the launchers it runs on (models: in its file); on a machine without them, pick another.

Documents and work. ~/AIcove/documents/ is for material every persona with file access may read; ~/AIcove/work/ is where they may write (each change after your OK). Both are ordinary entries of the file access settings and can be changed there.

When something doesn't work

↑