Skip to content

Codex Fine-Grained Permissions #14399

Open

Description

@thebriancurtis

What variant of Codex are you using?

App

What feature would you like to see?

Right now, we have the choice of "Default permissions" and "Full access". The default is so restrictive that you have to approve every command, while the "Full access" is way to permissive. I'd like to see a more fine-grain approach where commands can be allowed by class and severity level, access can be limited to certain folders and/or git repos, Git commands can be individually blocked for explicit approval, etc.

Additional information

No response

Activity

  1. added
    enhancement
    on Mar 11, 2026
  2. added
    app
    sandbox
    on Mar 11, 2026
  3. github-actions commented on Mar 11, 2026

    @github-actions
    Contributor
  4. thebriancurtis commented on Mar 11, 2026

    @thebriancurtis
    Author

    Reviewed potential duplicates and did not find them to be duplicative.

  5. Azreal42 commented on Mar 19, 2026

    @Azreal42

    Why can't you use the config.toml for such things ? (+ rules, +writable_roots)

  6. thebriancurtis commented on Mar 19, 2026

    @thebriancurtis
    Author
  7. Azreal42 commented on Mar 20, 2026

    @Azreal42

    I get your point but the toml is already accessible through the UI :
    Image
    And if you want to be able to edit the config.toml, the issue shouldn't be "Codex Fine-Grained Permissions", it should be "Add a new screen so that we can edit the config flags in UI".
    And having that kind of UI would be a bad idea, since the toml can have parts quite dynamic, just read the doc and open a text editor !

  8. thebriancurtis commented on Mar 20, 2026

    @thebriancurtis
    Author
  9. added and removed
    sandbox
    on Mar 30, 2026
  10. Fengzdadi commented on Apr 30, 2026

    @Fengzdadi

    I’m interested in working on this area and potentially opening a series of PRs.

    I built a small proof-of-concept tool called CodexGo around the existing PermissionRequest hook. The main idea is a layered permission policy system for Codex actions:

    • global/user policy
    • project policy
    • possibly session-scoped overrides
    • named permission profiles, such as manual/strict/go
    • explain/audit/suggest tooling so users can understand why a command was allowed, prompted, or denied

    The motivation is similar to this issue: the current gap between “default permissions” and “full access” is too large. Users often want a middle ground: allow common low-risk development commands, prompt for sensitive commands like git push, and deny obviously dangerous commands.

    I think this could be implemented natively in smaller steps rather than as one large change:

    1. Add or extend a codex permissions explain / execpolicy check command that shows the resolved decision and which user/project/session rule matched.
    2. Add profile-specific permission rules so codex -p <profile> can select a permission profile, not only general config.
    3. Add session-scoped permission overrides for one-off runs.
    4. Later, add audit/suggest tooling based on repeated approvals.

    I’m happy to start with a small PR around explainability or profile-specific rules if maintainers think this direction fits the existing rules/config model.

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

    FeatureUser Requestappenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions