English
AI assistant
Chat with a provider you configure and use tools to search or edit your diary.
Providers and on-device models
1. Connect an online service
Any service that speaks one of the following protocols is supported, including the official API and various self-hosted gateways:
- OpenAI Chat Completions
- OpenAI Responses
- Anthropic Messages
Create a provider under Settings → AI assistant → Model Providers and fill in the base URL, API key, and model. Presets are available for common providers.
2. On-device models
Semantic search uses a local embedding model. Download and select it under Settings → Services → Semantic search, then search by meaning — see Semantic search.
After downloading, embedding and search run offline. Automatic mood suggestions were removed in 2.9.0; choose a mood yourself when writing.
Chat always goes through a provider
Chat and diary tool calls are handled by your configured provider — on-device models don't take part in chat. To keep third-party cloud services out of the loop entirely, self-host an inference service like Ollama or LM Studio; see AI models.
What it can do
The assistant can call a set of controlled tools to work with your diary:
- Search entries by keyword or meaning, read linked entries and backlinks, list tags, and review writing and mood statistics;
- Create, update, and delete entries and categories — including setting an entry's date and time, or appending and prepending text without losing existing content;
- Remember preferences and lasting notes you tell it.
Tool permissions
The default Ask before changes mode confirms writes and deletions. Auto edit confirms only destructive actions such as overwriting entry text; Full access runs tools without asking. Choose the mode in AI assistant settings or for an individual conversation.
Hide the assistant
If you prefer a distraction-free diary without AI features, you can turn off the assistant under Settings → AI assistant. Its entry points will stay hidden until you turn it back on there.
Local MCP server (Android)
On Android, Moodiary also includes an optional local MCP server so external MCP clients can read, search, and edit your diary using the same shared tool set — see MCP server.
Privacy
- Chat sends messages, attachments, and diary content retrieved by tools to your configured provider;
- Semantic search computes embeddings and searches on-device;
- A disclaimer is shown on first use, and the assistant stays disabled until you accept it.