Install Leaf
It takes about a minute. You need a Mac with Apple silicon and macOS 27 or later.
1. Move Leaf to Applications
- Open
Leaf.dmgfrom your Downloads folder. - Drag Leaf onto the Applications folder in the window that opens.
- Eject the disk image in the Finder sidebar. You can delete
Leaf.dmgafterwards.
2. Open it the first time
Leaf isn't notarized by Apple yet, so macOS stops it the first time it opens. You allow it once, and after that it opens like any other app.
- Open Leaf from Applications. macOS shows “Leaf” Not Opened and says Apple could not verify it is free of malware. Click Done. Don’t press Return: the highlighted button is Move to Trash.
- Open System Settings and choose Privacy & Security.
- Scroll down to Security. Next to “Leaf” was blocked to protect your Mac, click Open Anyway.
- Confirm with Touch ID or your password. If macOS asks once more, click Open Anyway.
If you use the Terminal, this does the same in one step. It removes the quarantine flag macOS puts on downloaded apps.
xattr -dr com.apple.quarantine /Applications/Leaf.app
3. Choose where your notes live
The first time Leaf opens, it asks where to keep your notes.
- iCloud Drive, recommended. Leaf makes a Leaf folder in iCloud Drive, and Apple syncs it to your other Macs and to the Files app on iPhone and iPad.
- On This Mac, a Leaf folder in Documents. The notes stay on this Mac only.
- Choose a Folder, a folder you already have, such as an Obsidian vault or a folder of Markdown files. Leaf works on the files in place.
Each note is a Markdown file in that folder. To add another folder later, choose File, Open Folder. Each folder shows in the sidebar.
4. Add the leaf command
To open notes from the Terminal, choose Leaf › Install Command Line Tool…. It puts leaf in /usr/local/bin, which every shell already searches, and macOS asks for your password once to write there.
Then try it:
# open a note, made if missing
leaf notes/today.md
# open it in a window of its own
leaf -n plan.md
# add a folder to the sidebar
leaf ~/notes
leaf --help
Updating
Leaf doesn't update itself yet. When a new version is out, download it from this page and drag it to Applications, replacing the old one. Your notes and settings stay as they are. macOS may ask you to allow the new copy once, as in step 2. Leaf, About Leaf shows the version you have.
Uninstalling
- Quit Leaf and drag it from Applications to the Trash.
- If you added the
leafcommand, remove it withsudo rm /usr/local/bin/leaf. - To remove Leaf's settings and caches too, run the lines below.
rm -rf ~/Library/Application\ Support/com.irshath.Leaf
rm -rf ~/Library/Caches/com.irshath.Leaf
defaults delete com.irshath.Leaf
The first folder holds the earlier versions of your notes, to-dos you added in To-dos without a note, and any text Leaf could not save to its note, such as when a disk was full. Copy out anything you want to keep first. Your notes in your own folders are not touched.