authorize

authorize is a command for Claude Code from omarshahine/apple-pim. It costs 17 tokens per session (1,031 once invoked), scanned A, original, MIT.

A command for checking and requesting macOS permissions for calendars, reminders, contacts, and Mail.app automation.

In plain words
What is it for?
Use it to check permission status and request access for one or more Apple personal-information domains.
Why use it?
It explains whether access is granted, denied, restricted, or not yet requested, helping diagnose access errors.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions Claude Code; built for openclaw.

Part of the apple-pim plugin — 16 skills, 7 commands shipped together

Good fit Use it to check permission status and request access for one or more Apple personal-information domains.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/omarshahine/apple-pim/authorize
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/omarshahine/apple-pim

Made for: Claude Code.

Or install apple-pim, the plugin that ships this one along with the rest of its 16 skills, 7 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for authorize

README.md
[![agentmods](https://agentmods.dev/badge/commands/omarshahine/apple-pim/authorize/github.svg)](https://agentmods.dev/commands/omarshahine/apple-pim/authorize)
Your own site
<a href="https://agentmods.dev/commands/omarshahine/apple-pim/authorize"><img src="https://agentmods.dev/badge/commands/omarshahine/apple-pim/authorize/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for authorize

Your own site · 80×15
<a href="https://agentmods.dev/commands/omarshahine/apple-pim/authorize"><img src="https://agentmods.dev/badge/commands/omarshahine/apple-pim/authorize.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,031 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00017 $0.01031
Opus 5.5 $0.00007 $0.00412
Sonnet 5.5 $0.00003 $0.00206
Haiku 4.5 $0.00002 $0.00103

Measured 1mo ago against content hash 54e02aeb0de7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

authorize scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/authorize.md · 105 lines

How it starts

The opening of the file, as written. The whole thing — 105 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Authorize Apple PIM Access

Check and request macOS privacy permissions for the Apple PIM plugin.

Available Operations

Check Authorization Status

Use apple-pim with action status to check current permission status for all domains:

  • Returns authorization state for each domain: calendars, reminders, contacts, mail
  • Does not trigger any system prompts
  • Useful for diagnosing "access denied" errors

Status values:

  • authorized - Full access granted
  • denied - User denied access (must enable in System Settings)
  • restricted - System-level restriction (MDM, parental controls)
  • notDetermined - Never requested (use action authorize to prompt)
  • writeOnly - Limited write-only access (upgrade in System Settings)
  • unavailable - Domain disabled in plugin config or Mail.app not running

Request Authorization

Use apple-pim with action authorize to trigger macOS permission prompts:

  • Optional: domain to request access for a specific domain only
  • If no domain specified, requests access for all enabled domains
  • Only triggers prompts for domains with notDetermined status
  • For denied domains, directs user to System Settings

Examples

Check all permissions:

/apple-pim:authorize status

Request all permissions:

/apple-pim:authorize request

Request specific domain:

/apple-pim:authorize request --domain reminders

Parsing User Intent

  • "Can the plugin access my calendars?" -> apple-pim with action status
  • "I'm getting permission errors" -> apple-pim with action status then guide user
  • "Grant access to reminders" -> apple-pim with action authorize and domain "reminders"
  • "Set up permissions" -> apple-pim with action authorize for all domains

The Apple PIM Helper.app route (agent shells / embedded runtimes)

When the CLIs run under an agent runtime (Claude Code, OpenClaw, launchd jobs), macOS attributes TCC to that runtime — which usually has no grant and cannot even raise a prompt. The plugin handles this via ~/Applications/Apple PIM Helper.app: calls route through the helper, the grant binds to the helper's bundle + signature, and it persists across host apps.

Read the full file on GitHub · 105 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed 54e02aeb0de7
  2. 1mo ago First seen · 105 lines · 17 tokens per session scan A fc6f5b98158f

Subscribe to this mod's changes

authorize is a command published in the GitHub repository omarshahine/apple-pim (65 stars, last pushed today), licensed MIT. It adds 17 tokens to every session and 1,031 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.