Skip to content

Adhere to the macOS File System Programming Guide on macOS #143

Closed

Description

@offsetcyan

The user's home directory is not the place to dump program data, and for future cross-platform compatibility handling this would be inappropriate. Currently Codex stores user data in ~/.codex, however Apple has a specification for where to place files of various types (link). In Codex's case, ~/Library/Application Support/Codex would be suitable. (more info)

Activity

  1. added
    enhancement
    on Apr 16, 2025
  2. codex-maintainers commented on Aug 7, 2025

    @codex-maintainers

    Thank you for the feedback! We're primarily focused on the native/Rust implementation of Codex CLI and would love to see if this is still an issue on the latest version. If it is, please let us know, and we'll be happy to take a look.

  3. 0xdevalias commented on Aug 16, 2025

    @0xdevalias

    If it is, please let us know, and we'll be happy to take a look.

    @codex-maintainers As far as I am aware, this is still an issue in the new rust version as well.

  4. 0xdevalias commented on Aug 16, 2025

    @0xdevalias

    Though personally, I would prefer to have this:

    And then just a symlink into the appropriate apple location as suggested in:

    On a mac ~/.config is probably better for a terminal app than going to the "correct" ~/Library/Application Support/aider/config.yaml. Tools like git, github copilot, gh cli, shells, neovim and many others use it or at least will make a symlink from there to Library.

    Originally posted by @offsetcyan in Aider-AI/aider#216 (comment)

  5. ponychicken commented on Sep 28, 2025

    @ponychicken

    In the referenced apple doc "app" refers to packaged macos Apps (living in /Applications). They distinguish in the docs between Apps and CLI tools, and here the universal way that also CLI tools that Apple packages by default uses is indeed also the ~/.config dir. So for CLI tools Application Support is not the correct location. For more info: https://becca.ooo/blog/macos-dotfiles/

  6. offsetcyan commented on Sep 28, 2025

    @offsetcyan
    Author

    There was a good discussion about that article (which I disagree with the conclusions of wholly and totally) on Lobste.rs: https://lobste.rs/s/iv17mx/macos_dotfiles_should_not_go_library

  7. afternoon commented on Jul 13, 2026

    @afternoon

    +1 to $HOME/.config. This is consistent with many CLIs apps on Mac, e.g. git, helix, nvim, fish, ...

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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions