Where Does HTTPie Store Config?
HTTPie config directory on Linux with config.json and session files.
Last updated
HTTPie keeps default options in config.json under its XDG config directory, with named sessions beside it holding cookies and auth per host. Sessions make repeat API calls one-liners without re-authenticating.
Session files contain tokens, so they deserve the same care as passwords. Copy the folder and every saved session moves machines together.
Where HTTPie stores this, by platform
~/.config/httpie/config.json
Default options file with sessions stored in the sessions subfolder per host. Restrict permissions since sessions hold auth tokens. Copy the httpie folder to migrate config plus sessions.
Frequently asked questions
Where are HTTPie sessions?
In the sessions subfolder of the directory above, one JSON file per named session and host. Invoke them with --session=name.
How do I set HTTPie defaults?
Edit config.json above for default options like style and timeout. Command-line flags override the file per call.
Notice an outdated path? Let us know.