Folio 0.4.8: Folio AI on any OpenAI-compatible model, with a hardened agent mode
· Sergii Kravtsov · Folio
Folio (foliowiki) 0.4.8 lets Folio AI, the assistant in the side panel, run on the models you already use. It now works with Cursor, Claude, MiniMax and any OpenAI-compatible endpoint: OpenRouter, Ollama, vLLM, LM Studio, the OpenAI API and others. Models that bring no safety harness of their own run in a hardened mode, and Agent mode asks before it deletes. The release also writes table cells as you type and adds a Korean interface.
Any OpenAI-compatible endpoint
Connect any server that answers POST /chat/completions: give Folio a base URL, an optional key and a list of models. The settings can load the list from the server, and Ollama needs no key. A connection can be personal, belong to one space, or belong to the whole instance, and an operator can set a fallback in the environment. This answers the request in discussion 40.
- Instance administrators may use any http or https address, including a model on your own machine or network. Space administrators and personal connections may use only public https addresses. Redirects are refused.
- Cloud metadata addresses are refused for everyone, when the connection is saved and again before every request.
- A run that goes through a space's connection can see only that space, because the space administrator chose the address and not everyone trusts it.
- The panel shows "model · via host" next to a reply, so you can see where a question went.
The pages the assistant reads are sent to the address you set. Folio does not resell or mark up AI: whoever owns the key pays. MiniMax is now on by default as well, and an operator can switch it off.
A hardened mode for models without their own safety harness
Claude and Cursor come with protections of their own. A model behind an OpenAI-compatible endpoint, or MiniMax, may not. For those, Folio adds a layer around the agent loop. It lowers the risk of prompt injection; it does not remove it, so give such a model only what you would give an untrusted reader.

- Data, not instructions. Every tool result reaches the model wrapped as marked data, and the prompt says that pages, comments and tables are not commands.
- Injection flagging. Text that looks like an injected instruction gets a warning line, and administrators see counters. Nothing is blocked or silently dropped.
- A loop guard. The same call repeated three times in a row, the same error three times, or two calls taking turns get a hint first; if it happens again, the run loses its tools.
- Secret masking. The run's key, server secrets and token-shaped strings in tool results are replaced before the model sees them.
- Fewer turns. Agent mode gets 25 turns instead of 40.
Approval before deleting
In hardened mode, Agent mode stops before a delete tool runs, for example deleting table rows, columns or views. The panel shows the tool and its arguments, and Allow or Deny decides. No answer within 10 minutes, a stopped run or a finished run counts as a refusal, and the model is told that you declined. Several deletes in one turn are asked one by one.
Table cells write as you type
The Markdown table is now updated on every keystroke, and only the characters that changed are written. Two people editing different cells of one table no longer disturb each other, and a collaborator's edit does not close the cell you are typing in. Cells also take pictures, an emoji grid from the slash menu, status badges, an image panel, and link cards. A fuzzer that fires thousands of random clicks and keystrokes at the editor found a long list of small bugs this release fixes; the changelog has them.
Also in 0.4.8
- A Korean interface, contributed by adsd2004 in pull request 43, including the offline reader and PDF export. See also discussion 41.
- Folio is in the official Dokploy template catalog.
- Microsoft Teams: link previews show a page thumbnail and tables, and a Folio tab with single sign-on can be added to a team or chat.
- A clear button on the side-by-side compare pill.
Upgrading
Back up first, then pull the new image and restart. Migrations 066 and 067 run at startup and are one-way. New optional variables set a fallback connection: OPENAI_COMPAT_BASE_URL, OPENAI_COMPAT_MODELS and OPENAI_COMPAT_API_KEY. FOLIO_MINIMAX_ENABLED now defaults to on: if a MINIMAX_API_KEY is still in your environment, it becomes active, so remove it or set FOLIO_MINIMAX_ENABLED=0. The details are in the feature guide and the limitations; for a first install, start with our install page. The public demo is shared and resets daily, with the assistant switched off, and the code is on GitHub under the MIT license.
Frequently asked questions
Which models can Folio AI use?
Cursor, Claude (an Anthropic API key), MiniMax, and any OpenAI-compatible endpoint such as OpenRouter, Ollama, vLLM, LM Studio or the OpenAI API.
Can Folio AI run on a model on my own machine?
Yes. An instance administrator can connect an OpenAI-compatible server on a local or private address, such as Ollama. Space administrators and personal connections can use only public https addresses.
Does Folio AI ask before it deletes something?
With models that have no safety harness of their own (MiniMax and OpenAI-compatible models), Agent mode asks for approval before a delete tool runs. No answer within 10 minutes counts as a refusal.
Where do my pages go when I use an OpenAI-compatible endpoint?
The messages, the page text the assistant reads and the tool results are sent to the address you set. Choose an endpoint you trust with that content. If a published space has its own connection, visitors' questions and the public pages the assistant reads go to that address too.
See it in a running Folio
Open the live demo and click through a real Folio instance, or install it and move one space over. Folio is open source and stores everything in Git.
Related
More from the blog
- Folio 0.4.4: notifications, review of agent edits, page owners and team skills
- Folio 0.4.3: a calmer interface, redesigned after your feedback
- MCP security for a wiki: OAuth, tokens and page permissions
- LLM wiki for a team: Markdown in Git, readable by agents over MCP
- Obsidian Bases outside Obsidian: open and edit .base files in a browser
- Obsidian MCP and Obsidian AI: ways to give an AI agent your vault
- Notion vs Obsidian for a team: what each one gives you, and when neither fits
- Mermaid vs PlantUML: which to use for docs in Git
- Groups and single sign-on in an open-source wiki: free, in one MIT edition
- Side-by-side comparison of wiki pages and versions: see what changed
- Publish a Cursor canvas to your team wiki: dashboards that outlive the chat
- Publish a Claude artifact to your team wiki: interactive pages that live in Git
- Make any page a template: custom templates for your Folio space
- Confluence MCP, Notion MCP and a wiki that is its own MCP server
- Export Confluence to Markdown and keep it in Git
- Mermaid diagrams in a team wiki: keep them as code
- See how your team's knowledge connects: graph, Canvas and Bases in Folio 0.4
- Open an Obsidian vault as a team wiki, without changing a file
- Publish a wiki space as a public website, and let visitors ask it questions
- Docs-as-code without the IDE: edit your repository's docs in a browser
- New hires ask the wiki, and the wiki learns what it lacks
- Folio boards: built on Excalidraw, made for teams