Where does clearrun login save my API key?
In ~/.config/clearrun/config.json, or $XDG_CONFIG_HOME/clearrun/config.json if you set XDG_CONFIG_HOME. On Windows it is under your user profile folder. Only your user account can read it.
Last updated
Details
- The folder is created with mode 0700 and the file with mode 0600.
- The key is stored as plain text in that file, so keep the file private.
- The CLI, SDK and MCP server all read it.
See the path
npx @clearrun/cli whoami
The Source: line shows the full path.
Remove it
clearrun logout deletes the key from the file.