Skip to content

MDM for Features #985

Open
Open

Description

@olbo

What are you trying to do?

We’d like to deploy Hex on managed Macs for voice dictation, while controlling which additional features are available to us

For example, we may want to allow dictation but disable:

  • Meetings, including call detection, recording and transcription
  • Screen recording and capture
  • external AI integrations

These capabilities can have different privacy and compliance requirements. We’d like to manage them centrally without blocking permissions that core dictation needs or maintaining a separate build of Hex

What would help?

Building on the existing DisableUpdates support, it would be useful to have documented macOS managed preferences that control individual features

Ideally, these controls would:

  • Enforce the organisation’s policy, rather than just set defaults that users can override
  • Apply to every entry point, including the UI, shortcuts, CLI and background activity
  • Prevent the underlying activity (not just hide its controls)
  • Show a clear “Disabled by your organisation” explanation where appropriate
  • Leave dictation and other permitted features working normally

A feature allowlist would also be useful ... we could explicitly approve the capabilities we want, without having to discover and disable each new feature as it is introduced

Activity

  1. thdxr commented on Nov 2, 2026

    @thdxr
    Member

    the only managed key today is DisableUpdates in the anomaly.hex defaults domain. meetings already stay idle in release builds until someone turns them on, annotate can be switched off with capture.enabled (then no capture engine is built), and opencode is only reached when a feature that uses it runs. hex settings set can script all of these, but the user can still change them back, so a real policy needs a key the app reads and enforces everywhere.

    • a policy has to block every way into a feature: the window, shortcuts, hex commands, the local api, mcp and background workers, or it can be bypassed

    • annotate is on by default and asks for screen recording on first capture, so a policy has to stop the capture engine from being built, not just hide the pane

    • an allowlist that blocks features added later conflicts with labs, where each feature is its own toggle with no master switch, all off by default

    • would per-feature keys that force a setting off and lock it, plus one key that turns labs off, cover what you need, or do you need the full allowlist?

    • does external ai mean only opencode, or also apple intelligence meeting notes and custom transforms that use fetch?

    — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

  2. added
    needs-design
    on Nov 2, 2026
  3. olbo commented on Nov 2, 2026

    @olbo
    Author

    would per-feature keys that force a setting off and lock it, plus one key that turns labs off, cover what you need, or do you need the full allowlist?

    Per-feature controls that force a setting off and lock it, plus a way to disable Labs, would cover our immediate needs. The main goal is to make Hex available for dictation without also making meeting recording, screen capture or external AI integrations available

    ... a full allowlist would still be useful longer term, so a new feature enabled by default doesn’t automatically become available across our managed Macs. But I wouldn’t want that to hold up the simpler controls you’ve suggested 🙏

    external ai

    By external AI, I mean OpenCode/provider-backed processing and custom transformations using fetch that can send dictated text or other context off the device - I think Apple Intelligence is probably a separate control (and unlikely we need it as a control) as it's guaranteed to happen all locally on device

  4. thdxr commented on Nov 2, 2026

    @thdxr
    Member

    with the scope narrowed to force-off-and-lock keys for meetings, annotate, opencode processing and fetch transforms, plus one key that turns labs off, this is doable without the allowlist. today only DisableUpdates is read from the anomaly.hex domain (updater/macos.rs), and it uses boolForKey, which also picks up a value the user wrote themselves, so a real lock should check that the key is forced (managed) and treat everything else as a normal default.

    • this touches the window, hex settings/control, the local api, shortcuts and several workers at once, so it's not a small safe change and it can't sit behind a labs toggle the way new features normally do.
    • windows already has a policy key for updates and linux has none, so keeping to the parity rules means either adding windows registry policy keys too or listing macos-only managed prefs in platform::DIFFERENCES with a reason.
    • hex mcp and hex meetings read existing meeting files without needing meetings on, so we'd need to decide whether a meetings lock also blocks reading meetings recorded before the lock.

    is disabling transforms that use fetch enough for you, or should a lock turn off transforms completely, since node:child_process can also send text off the device?

    — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

  5. olbo commented on Nov 2, 2026

    @olbo
    Author

    windows already has a policy key for updates and linux has none

    macOS-only managed preferences are fine from our side, provided that limitation is documented. We don’t need Windows support for our deployment 🙏

    hex mcp and hex meetings read existing meeting files without needing meetings on, so we'd need to decide whether a meetings lock also blocks reading meetings recorded before the lock.

    Ideally we should prevent new recording and processing; deleting or restricting access to historical files feels like a separate thing

    is disabling transforms that use fetch enough for you, or should a lock turn off transforms completely, since node:child_process can also send text off the device?

    Custom transforms could be useful to us, particularly with local models, so ideally we’d keep that option

    Our main concern is information being sent to unapproved providers, rather than information ever leaving the device (e.g. we may have ZDR agreements with Anthropic)

    Longer term, being able to manage which providers or endpoints Hex can send data to would be closer to what we need. That would let us retain local processing and approved integrations without opening up every external service

    I appreciate that arbitrary scripts and child_process make this harder to enforce (but that's on us to enforce I think). If disabling custom transforms entirely is the simpler, reliable first step, that’s still useful...

  6. thdxr commented on Nov 2, 2026

    @thdxr
    Member

    with macos-only managed prefs ok and meetings scoped to blocking new recording and processing, the plan is clear: forced keys for meetings, annotate, opencode processing (mode rewrites, meeting notes, annotate sends), custom transforms, and one for labs. for a first step the transforms lock would turn transforms off entirely, since node:child_process can send text out as well as fetch, and a provider/endpoint allowlist comes later. hex meetings and hex mcp keep reading meetings recorded before the lock, and only DisableUpdates exists in the anomaly.hex domain today.

    • one lock has to be enforced in the window, hex settings/control, the local api, shortcuts and the workers, so it's bigger than a small safe change and policy can't go behind a labs toggle
    • today DisableUpdates is read through NSUserDefaults, which also picks up a value the user set, so a real lock has to check the key is forced by the profile
    • macos-only managed keys need an entry in platform::DIFFERENCES saying why, or the parity tests fail

    if transforms stayed on but fetch could only reach localhost (no child_process), would that cover your local-model setup, or is turning transforms off entirely fine for now?

    — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

  7. olbo commented on Nov 2, 2026

    @olbo
    Author

    Yes, that sounds like a good fit! we already run an authenticated AI proxy locally, which forwards requests through our internal gateway. (that’s where we manage access to approved providers)

    Loopback-only fetch with child_process disabled would let us keep those transforms without giving them arbitrary external network access. Please include HTTP requests to 127.0.0.1, not just the literal localhost hostname, as that’s what our proxy uses 🙏

  8. thdxr commented on Nov 2, 2026

    @thdxr
    Member

    this is in #994 and goes out with the next dev build. all keys are booleans in the anomaly.hex domain, macos only, and only count when a configuration profile forces them (a defaults write value locks nothing):

    • DisableMeetings: no detection, recording, transcription or notes. hex meetings and hex mcp still read meetings recorded before
    • DisableAnnotate
    • DisableOpenCodeProcessing: mode rewrites, meeting notes and sending captures to opencode
    • DisableTransforms: no transforms at all
    • RestrictTransformsToLoopback: transforms stay on, but fetch can only reach this mac. every host name and redirect has to resolve to loopback only (127.0.0.0/8, ::1), checked on the addresses hex actually connects to, and the system proxy is skipped. exec/execFile are refused. this should cover your authenticated proxy on loopback
    • DisableLabs

    a locked feature reads as off everywhere and shows as managed in the window, hex settings set, hex labs on and the local api refuse it, and your users' own settings aren't rewritten, so removing the profile brings them back. hex reads the profile at launch, so a change applies after a relaunch.

    docs with a sample .mobileconfig: https://anoma.ly/hex/docs/admin (live once the site deploys). we haven't tested it with a real profile on a managed mac yet, so tell us if anything doesn't lock.

    — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-design

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions