Skip to content

Support global/centralized instructions/AGENTS.md + configuration #3853

Open

Description

@mrud

What feature would you like to see?

Looking into considering codex for company wide rollout but we are missing the ability to provide a centralized AGENTS.md/INSTRUCTIONS.md file.

Ideally we would have the ability to provide one in a central place, outside of the users home directory which takes precedence.

We use this for providing guard rails and sharing company specific details.

Note: the same for configuration files, ideally basically any user configurable options would have a global configuration as well which could be managed by a mdm solution

Are you interested in implementing this feature?

Yes

Additional information

No response

Activity

  1. InsightfulFuture commented on Oct 1, 2025

    @InsightfulFuture

    +1. We should be able to have a ~/.codex/AGENTS.md. This would help especially on windows as I could steer the agent to not use powershell commands that don't have proper auto-approval

  2. ithinkihaveacat commented on Jan 11, 2026

    @ithinkihaveacat

    Codex doesn't even support per-user settings for this, right? i.e. the equivalent of:

  3. etraut-openai commented on Jan 11, 2026

    @etraut-openai
    Contributor

    Codex does support ~/.codex/AGENTS.md. See this documentation for details.

  4. ithinkihaveacat commented on Jan 11, 2026

    @ithinkihaveacat

    Codex does support ~/.codex/AGENTS.md. See this documentation for details.

    I … don't know how I missed that. Thanks for the correction.

  5. jcrben commented on Mar 14, 2026

    @jcrben

    should be closed

  6. ilhaan commented on May 23, 2026

    @ilhaan

    I don't think this should be closed.

    The ~/.codex/AGENTS.md solution shared above would only apply to a specific user. The request here is for a global file like /etc/codex/AGENTS.md similar to Claude Code's /etc/claude-code/CLAUDE.md that would apply to Codex when launched by any user on a machine.

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

    enhancementNew feature or requestskillsIssues related to skills

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions