Skip to content
rishirsvPublic

About

Read Apple Photos, Notes, Reminders, and Contacts as compact JSON on macOS. Includes native Claude Code and Codex plugins.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Apple CLI

Search the Photos, Notes, Reminders, and Contacts already on your Mac. Find the note you remember by a single phrase, pull up a short list of favorite photos, or see which subtasks are still open on a project. You can use Apple CLI from Terminal, Claude Code, or Codex.

What you can do

  • Notes. Remember a line from a note but forget where you put it? Search titles and readable text across all your accounts and folders. Read the matching passage, open the full text, or narrow the search to one folder. The results tell you if any notes couldn’t be read. Attachments are outside the search.
  • Photos. Find photos and videos from a particular weekend, browse an album, or count your favorites. Check a photo’s date, dimensions, caption, keywords, filename, or location when available. Save a thumbnail to see which shot you want. You can allow a preview to download from iCloud when it’s missing locally.
  • Reminders. Find a task across lists, see its tags and section, and read its subtasks in order with their completion status. Browse lists, tags, and sections on their own, or include completed reminders when looking back at a project.
  • Contacts. Look someone up by name, see where they work, and get the email address or phone number you need. Work, home, and custom labels stay attached, so you can tell two numbers apart.

Try it with fictional data

Here’s what’s left on a fictional café launch. The demo looks up the reminder, reads its section and tags, then checks its subtasks.

Reminders demo output. The café launch is in Review and tagged launch. Proof is open and Ship is complete.

The same demo finds “The renewal date is May 6.” inside a note titled Log, counts 5 favorite videos, and looks up sam@example.test for Sam Reed. The questions are captions for scripted lookups. The answers come from the CLI’s query code.

On a Mac with the build tools below, run ./scripts/demo from the checkout. It uses sample records in a temporary directory and can run before installation or permission setup. Demo source

Install on your Mac

Building from source requires the macOS 27 SDK and Swift. The package targets macOS 14 and later and has been tested on macOS 27.2.1.

git clone https://github.com/rishirsv/apple-cli.git
cd apple-cli
./scripts/install

The installer puts Apple CLI in your user Applications folder and the command in ~/.local/bin. To try it on your own library, search for a phrase you remember.

~/.local/bin/apple-cli notes find "renewal date"

Apple CLI reads the accounts synced to your Mac. macOS asks for access to the apps you use. Manage these grants under System Settings → Privacy & Security. Notes uses Automation → Notes. For Reminders, enable both Reminders and Full Disk Access for ~/Applications/AppleCLI.app. The latter lets Apple CLI read the local store that holds tags, sections, and subtask order.

Using Claude Code or Codex

Both plugins use the same installed app. Once connected, try asking “Which of my favorite videos did I take last weekend?” Plugin setup and command guide

Credits and license

The Reminders integration adapts the read capabilities of Federico Viticci’s RemCTL. Apple CLI is available under the MIT license. RemCTL source · Third-party notice · License

About

Read Apple Photos, Notes, Reminders, and Contacts as compact JSON on macOS. Includes native Claude Code and Codex plugins.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages