User guide
Mahfouz is a cross-platform Markdown PKM (personal knowledge management) app. Your notes are plain Markdown files in a folder that is also a git repository; those files are the source of truth, and everything Mahfouz shows you comes from them.
Mahfouz needs git. If it can’t find a usable git when it starts, it offers to install its own copy, or shows how to install git yourself. See Git & sync.
This guide is the long-form manual. To open it from the app, choose User guide in the account menu (click the account button at the bottom of the left rail; on desktop, also Help → User Guide). On a phone, it’s in the ⋯ menu at the top of Home. Since 0.17.0 Keyboard shortcuts in the account menu (Mod?, or on desktop Help → Keyboard Shortcuts) opens a quick-reference shortcut cheat sheet inside the app.
Your notes never leave your computer unless you send them somewhere: to a Git remote, an AI agent or a published page. See Privacy: where your notes go.
Using Mahfouz in a browser? See Mahfouz on the web.
Basics
- Vaults
Create, open and switch between vaults: the folders your notes live in.
- Notes & organization
Create notes, nest them in a tree, and organize them with folders and bookmarks.
- Links, tags & search
Link notes with wikilinks, see backlinks, tag notes and search the vault.
- Permalinks
Copy a permanent link to a note, paste it into a pull request or a chat, and open it on any device that has the note.
- The command palette
Press Mod+K to jump to a note, run a command or open a setting.
- The vault mind map
See a vault's notes as a radial map, browse by folder or by tag, and add notes from it.
- Databases
Turn a note into a table of its child notes: typed columns, sorting, filters, and saved views, all stored in your files.
- Tasks
Turn a checklist item into a task with a due date and an assignee, mark it in progress, and see every task in a list or on a board.
- Daily notes
Open today's note in one step: a note for each day in a Daily notes database, with a live list of the day's tasks.
- People
Keep the people you work with in a People database, mention them with @, assign them tasks, and import or export them as vCards.
- History & trash
Every change is a commit: browse history, restore notes, and choose what gets committed.
Editing
- The editor
Editing and preview modes, the outline, the table of contents and page preview.
- Writing from the keyboard
Move between the editor and the panels around it, act on what's at the cursor, open its menu, and move sections, all without the mouse.
- The formatting toolbar
Every button on the formatting toolbar and its More menu.
- The slash menu
Type / to insert headings, lists, tables, callouts, links, tasks, comments, emoji, diagrams and fields.
- Markdown
The Markdown syntax Mahfouz understands, from headings and links to tables.
- Images & attachments
Add images, video, audio and other files to notes, and how Mahfouz stores them.
- Spelling check
See misspelled words as you type, turn checking on or off, and keep a vault dictionary of words to accept.
- Fields
Type { to pick a field such as {today}, and define your own.
- Attributes & the right sidebar
Note pills, the right sidebar and per-note attributes.
- Track changes
Suggest edits instead of making them, then accept or reject each one.
- Presenting notes as slides
Present a note as a slide deck and style it with slides templates.
- Publishing notes to the web
Publish a note as a public page anyone with the link can read, keep it up to date, and unpublish it.
- Custom domains
Serve a published note and its child notes as a website on your own subdomain, such as docs.example.com.
- Sharing a note with people
Share one note with chosen GitHub accounts or a secret link, let them read, comment, suggest or edit it live, and stop sharing any time.
Git & GitHub
- Git & sync
How Mahfouz uses git, syncing with a remote, and Git LFS for large media.
- Signing in to GitHub
Connect your GitHub account to create repositories and invite collaborators.
- When sync fails
What each sync notice means, what its buttons do, and how to fix the problem.
- Encrypted vaults
Use a vault encrypted with git-crypt: what's encrypted on GitHub, unlocking it on a new device, and what stays visible.
On the web
- Mahfouz on the web
Use Mahfouz in a browser: supported browsers, opening a folder, and what's desktop-only.
- GitHub vaults on the web
Sign in with GitHub in the browser and open a repository as a vault.
- Commits on the web
How the web app commits your changes, and read-only vaults.
App
- Plugins & registries
Install plugins such as Mermaid, draw.io and Slidev, and add plugin registries.
- Importing from Notion
Bring pages, databases, tasks, comments and files from a Notion workspace into a vault.
- External agents (MCP)
Let Claude Code, Claude Desktop, Codex or claude.ai read and edit your vaults, and choose which edits wait for you.
- Agents on GitHub (online MCP)
Connect an agent to your GitHub repositories so it works with no Mahfouz window or tab open, and how that differs from connecting through the app.
- REST API for integrations
Connect an app such as Hatchward to your repositories through the Mahfouz REST API: OAuth, endpoints, paging and error codes.
- Preview notes in Finder
Select a Markdown file in Finder and press Space to see it rendered, with Mahfouz's Quick Look preview on macOS.
- Settings
Preferences and per-vault settings.
- Your Mahfouz account
See who's signed in, copy your account ID for support, and sign out everywhere.
- Plans & billing
Upgrade to Pro or Max, change or cancel in Stripe, and what pauses when you're over a plan's limits.
- Help improve Mahfouz
The error reports, timings and usage counts Mahfouz sends to find bugs, what it never sends, and how to turn it off.
- Notifications
The notification center, sounds, quiet time and update notices.
- Tabs
Opening, switching and closing tabs.
- Sending feedback
Report a bug or suggest a feature from inside the app.
- Keyboard shortcuts
Every keyboard shortcut, on desktop and on the web, and how to change them.