apps/opik-documentation/documentation/fern/docs-v2/cost_intelligence/install/macos-app.mdx
The macOS app is the rollout path for full coverage: it captures every Claude Code user on the machine, whether they work in the CLI or the desktop app. Developers keep working exactly as before — no base-URL change, no environment variables, nothing to install in the agent. The app sees the traffic anyway.
Everything happens on the developer's machine. The app runs as a menu-bar app with a network extension, and macOS hands that extension the coding agent's traffic. The extension acts as a local MITM (man-in-the-middle): it terminates TLS on the device to read each call, then forwards it re-encrypted — with full certificate validation — to Anthropic or your LLM gateway, unchanged:
<Frame> </Frame>The data landing in Opik is the same as the plugin produces. What differs is how the traffic gets seen:
| Plugin (proxy) | macOS app (extension) | |
|---|---|---|
| How traffic arrives | Agent is pointed at a local port | The OS diverts the flows |
| Captures | Claude Code CLI | CLI and the Claude Code desktop app |
| Configuration touches | The agent's settings | The app only — the agent is untouched |
| Delivered via | MDM or Claude managed settings | MDM |
| TLS | Not intercepted | Terminated locally |
| Platforms | macOS, Linux, Windows | macOS only |
Three steps, delivered with the MDM you already run (Jamf, Kandji, Intune, JumpCloud):
<Steps>Deploy Opik CIPX.app to /Applications as a package payload, together with an MDM configuration profile. The profile does two jobs: it pre-approves the system extension so activation is silent (the developer never sees an approval prompt), and it forces the app's settings so users can't turn capture off. The app bundle embeds the extension and the capture engine, so there is nothing else to install.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadDisplayName</key>
<string>Opik Cost Intelligence</string>
<key>PayloadIdentifier</key>
<string>com.comet.opik-cipx-app.managed</string>
<key>PayloadType</key>
<string>Configuration</string>
<key>PayloadUUID</key>
<string>8A7B0C64-1D2E-4F35-9B86-3C5A7D9E0F12</string>
<key>PayloadVersion</key>
<integer>1</integer>
<key>PayloadContent</key>
<array>
<!-- Job 1: pre-approve the system extension (silent activation) -->
<dict>
<key>PayloadType</key>
<string>com.apple.system-extension-policy</string>
<key>PayloadIdentifier</key>
<string>com.comet.opik-cipx-app.managed.sysext</string>
<key>PayloadUUID</key>
<string>2F4E6A18-9C3B-4D07-8E51-B6A0D2C48F93</string>
<key>PayloadVersion</key>
<integer>1</integer>
<key>AllowedSystemExtensions</key>
<dict>
<!-- Comet's Apple developer team ID -->
<key>XXXXXXXXXX</key>
<array>
<string>com.comet.opik-cipx-app.extension</string>
</array>
</dict>
</dict>
<!-- Job 2: force the app's settings -->
<dict>
<key>PayloadType</key>
<string>com.comet.opik-cipx-app</string>
<key>PayloadIdentifier</key>
<string>com.comet.opik-cipx-app.managed.settings</string>
<key>PayloadUUID</key>
<string>5D1C8B72-0A94-4E6F-B3D8-7E29C4A61F05</string>
<key>PayloadVersion</key>
<integer>1</integer>
<key>Cipx.isEnabled</key>
<true/>
<key>Settings.startAtLogin</key>
<true/>
<key>Settings.allowExtensionUninstall</key>
<false/>
<key>Settings.enableViewer</key>
<false/>
<key>Settings.enableAdmin</key>
<false/>
<key>Settings.enabledHarnesses</key>
<array>
<string>com.anthropic.claude-code</string>
</array>
</dict>
</array>
</dict>
</plist>
The team ID and the extension bundle identifier must match the shipped app. Email [email protected] for a filled-in, ready-to-push profile.
</Accordion>Every payload key, profile validation, and the per-MDM upload paths are in Advanced below.
Ship a file per user at ~/.opik-cipx/config.toml:
[opik]
base_url = "https://www.comet.com/opik/api"
api_key = "<workspace-scoped service-account key>"
workspace = "your-org-cc-workspace"
project = "claude-code"
[capture]
capture_content = false
It lands in a user home, so an MDM script running as root must resolve the console user and chown the file to them, with the file at mode 0600 and the directory 0700.
Trigger a first launch — a package postinstall script that opens the app in the console user's context works best. From there the app handles everything itself: it activates the extension, starts capture, and registers a login item so capture survives reboots. With the profile in place, none of this prompts the user.
Then check a target device:
systemextensionsctl list | grep opik-cipx # extension activated
ls -l ~/.opik-cipx/config.toml # the step that silently fails
Finally, confirm traces are arriving in your Opik workspace. That last check is the one that matters: the app is deliberately fail-open, so a device missing its credentials file looks completely healthy and captures nothing.
</Steps>The profile carries two payloads that do different jobs.
Pre-approving the system extension. A com.apple.system-extension-policy payload allow-lists the capture extension so it activates silently: the developer never sees the System Settings → General → Login Items & Extensions → Network Extensions approval gate. This is honored only when the profile is pushed by an MDM the device is enrolled in — a locally installed profile is ignored for this payload type, so a test machine with a hand-installed profile will still show the manual approval prompt. That's expected, and it isn't a broken profile.
Forcing the app's settings. A managed-preferences payload writes into the app's preference domain com.comet.opik-cipx-app. Forced values take precedence over anything the user sets, and the corresponding controls are disabled in the app's Settings window with a "Managed by your organization" note.
| Key | Type | Recommended | Why |
|---|---|---|---|
Cipx.isEnabled | Boolean | true | Master capture switch; also drives automatic activation |
Settings.enableViewer | Boolean | false | Local debug dashboard; no place in a fleet |
Settings.enableAdmin | Boolean | false | Local control endpoint |
Settings.startAtLogin | Boolean | true | Capture survives logout and reboot |
Settings.allowExtensionUninstall | Boolean | false | Hides the uninstall action from users |
Settings.enabledHarnesses | Array | ["com.anthropic.claude-code"] | Which clients to capture, by code-signing ID |
Validate the profile before pushing, because a malformed payload is silently ignored by some MDMs:
plutil -lint opik-cipx-app.mobileconfig # must print "OK"
Where it goes in each MDM:
| MDM | Path |
|---|---|
| Jamf Pro | Configuration Profile → Application & Custom Settings → External Applications; domain com.comet.opik-cipx-app. The system-extension allow-list is a separate System Extensions payload. |
| Kandji | Library → Custom Profile → upload the .mobileconfig |
| Intune | Devices → macOS → Configuration profile → Preference file; domain com.comet.opik-cipx-app |
| JumpCloud | Custom macOS MDM Profile (Policy) → paste the .mobileconfig |
The Opik destination is not a preference key, so no configuration profile can carry it. The capture engine is launched by a login-item app, and GUI apps don't inherit shell environment, so nothing you export in a shell profile or push as an MDM environment variable reaches it. The per-user file at ~/.opik-cipx/config.toml is the only path that works.
The file contains the ingest API key, so use a workspace-scoped service-account key and rotate it by re-deploying the file.
</Accordion> <Accordion title="Activation and first launch">On first launch the app activates the system extension, starts the capture engine, enables the proxy configuration, and registers a login item so capture returns after every reboot. The engine also applies your org's cost policies to the machine automatically.
Activation is fail-safe: any error in the chain turns capture back off rather than leaving a half-configured proxy.
Ways to trigger the first launch, in order of preference:
The four numbered steps in the diagram, in full:
To categorize traffic rather than just count bytes, the extension terminates TLS locally, which means the client must trust the interception certificate.
The certificate authority is minted per device, with a private key that is hardware-backed and non-extractable. This is deliberate: there is no shared fleet-wide interception key, so compromising one device does not compromise the fleet. The consequence is that there is no single certificate to embed in a centrally authored MDM certificate payload; trust is established on the device that generated it.
For Claude Code this is handled for you: the app points Claude Code at the device's own certificate. The certificate authority also carries constraints limiting it to the specific model-provider hostnames, so even a fully trusted authority cannot vouch for any other domain. That is worth raising early in a security review, because it's the property that makes local termination defensible.
</Accordion> <Accordion title="Uninstall"># Remove the profile via your MDM, or:
sudo profiles remove -identifier com.comet.opik-cipx-app.managed
# Tear down cleanly, then remove the app
open -a "/Applications/Opik CIPX.app" --args disable
sudo rm -rf "/Applications/Opik CIPX.app"
# Local state, including the per-device certificate
rm -rf ~/.opik-cipx "~/Library/Application Support/opik-cipx"
Removing the app without disabling first leaves an orphaned system-extension registration, so prefer the disable step.