Skip to content

Feature request: per-automation sandbox/profile overrides (isolate permissions per automation) #16695

Open

Description

@TheAlexDev23

What variant of Codex are you using?

App (MacOS)

What feature would you like to see?

Codex automations currently use default sandbox settings and global rules, which makes it hard to grant narrow permissions to a single automation without affecting normal interactive threads.

I have one recurring automation that needs network + one specific command prefix:
node .agents/skills/openclaw-skills-reddit-search/scripts/reddit-search.ts

I want this permission only for that automation, not globally for all threads.

Today:

  • Automations inherit default sandbox settings
  • Rules/prefix allowlists are global
  • There is no documented per-automation profile binding in automation.toml

This creates a security/usability gap:

  • Over-permissive: grant global allowlist and impact normal threads
  • Over-restrictive: keep strict defaults and break the automation

Any one of these would solve it:

  1. profile = "<name>" support in automation.toml (or UI equivalent)
  2. Per-automation sandbox/network/approval settings in UI + schema
  3. Per-automation command allowlist attached to automation config

Additional information

No response

Activity

  1. added
    enhancement
    on Apr 3, 2026
  2. added
    app
    sandbox
    on Apr 3, 2026
  3. TheAlexDev23 commented on Apr 4, 2026

    @TheAlexDev23
    Author

    To my judgement, this issue doesn't seem to be a duplicate of the ones mentioned.

  4. markymark2001 commented on Apr 21, 2026

    @markymark2001

    I need this too, and I want to also add my 2 cents onto this:

    1. There should be an easier way to configure automation permissions, right now its a big pain.
    2. I want to see automations with no restrictions - full machine access. I run automations for broad agentic tasks which require postgress, terminal, mcps etc., they also hit claude code for design work and its almost impossible to write rules for those.

    ALSO. Important note: heartbeat automations don't solve this. Issue is that even though heartbeats inherit thread permissions, they have previous context in them which is a big downside. It errs the model to be lazy and focus on same issues instead of attacking new ones with fresh context - see screenshot attached. Prompting isnt too helpful - i can bypass the screenshot situation but the model is still steered toward older issues.....

    Image
  5. Fengzdadi commented on Apr 30, 2026

    @Fengzdadi

    I ran into a similar problem around approval granularity and built a small experimental tool that may address part of this issue at the command-approval layer:

    https://github.com/Fengzdadi/codexgo

    CodexGo installs a Codex PermissionRequest hook and applies local allow/ask/deny policy rules before the normal approval prompt. For example, it can allow a specific command prefix, ask for sensitive commands, and deny dangerous patterns. It supports project-level and user-level scopes, so a recurring automation in a specific project can have narrower command policy than the global Codex user config.

    To be clear, this does not fully solve the per-automation sandbox/profile problem described here. CodexGo is not automation-aware, and it does not provide per-automation network/sandbox isolation or an automation.toml profile binding. It only addresses the command-approval / allowlist side of the problem.

    But it may be a useful workaround or reference implementation for the “per-automation command allowlist” part of this feature request.

  6. aliebrahim11 commented on Nov 9, 2026

    @aliebrahim11

    +1 from Windows. Codex desktop 26.1103.4239.0, Windows 11 (26200). An automation set to Full access still runs in the MXC/AppContainer sandbox (Low integrity, AppContainer = True). The thread is saved with profile danger-full-access and approval never, but its sandboxPolicy stays workspaceWrite. So an automation can't use Outlook COM (0x80070005), while a normal Full-access chat can. A per-automation permission profile, or applying Full access to automation threads, would fix it.

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

    appautomationsenhancementsandbox

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions