Incorrect .tmp folder location on macOS?

Community Member
edited September 27 in CLI

1Password is creating a directory structure on my Mac as:


I would prefer that it not create this ~ directory. I have a .tmp directory directly in $HOME with 700 file permissions.

Is there a way to change the location where the temporary directory is stored?

NPM has done this on my computer too, so I'm not sure if there is some other misconfig affecting things?


1Password Version: 80904044
Extension Version: Not Provided
OS Version: macOS 12.6
Browser:_ Not Provided


  • mfisher911mfisher911
    Community Member

    This looks like it may have been related to an old version of the op CLI tool (I had 2.1.0; 2.7.1 is current). I refreshed it and things seem better.

    Thank you!

  • mfisher911mfisher911
    Community Member

    Whoops, spoke too soon. It's back this morning. :(

  • andi.t_1Pandi.t_1P

    Team Member
    edited September 30

    Hi @mfisher911 , thanks for reaching out! Depending on which process causes this temp file to be created there, you could try to specify the XDG_RUNTIME_DIR env variable with your desired location path, OR change the default location specified by your system, which can be achieved by specifying a different value for the TMPDIR env var.

    Let me know if any of these solutions help! Best,

  • mfisher911mfisher911
    Community Member

    Hi, Andi, thanks for the response (long ago)!

    I just tested and things look promising. FWIW (in case others are searching), I'm using the modern Mac default shell (zsh), so I added these lines to my .zshenv file:

    export TMPDIR=$HOME/.tmp
    export XDG_RUNTIME_DIR=$HOME/.tmp
  • Jack.P_1PJack.P_1P

    Team Member

    Hi @mfisher911:

    On behalf of Andi, you're very welcome. 🙂


Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file