v13.5+ Insomnia encrypts sensitive fields in the local database that it keeps on your machine. Encryption applies to every project, including Scratch Pad and local projects, and doesn’t require any action from you.
Insomnia encrypts the following fields:
- Authentication credentials on requests, folders, and collections, such as passwords, tokens, client secrets, private keys, and API key values. This also applies to gRPC, WebSocket, Socket.IO, and MCP requests.
- Cookie values in the cookie jar.
- Client certificate files, keys, and passphrases.
- OAuth 2.0 access, identity, and refresh tokens.
- Cloud provider credentials used for external vaults.
- Git credentials and tokens.
- The stored copies of requests in the response history.
Other data, such as environment variables, headers, request bodies, and URLs, is stored on disk without encryption. Data that Insomnia sends to Cloud Sync is protected by end-to-end encryption separately.
Local encryption doesn’t change Cloud Sync, Git Sync, or exported files. Insomnia decrypts values before it syncs or exports them, so teammates on any version of Insomnia can still collaborate with you.
Insomnia generates a random 256-bit key on first launch and stores it protected by your operating system’s credential store: Keychain on macOS, DPAPI on Windows, or Secret Service on Linux. Insomnia never writes the key to disk without encryption.
You don’t need the key to use the Insomnia app. You need it only to run Inso CLI against Insomnia’s local database files.
To get the key:
- In Insomnia, open Preferences.
- Click the General tab.
- In the Security section, find Local Encryption Key.
- Click Copy Key to copy the key as a single line of text, or click Export Key to save it to a file.
- In the confirmation dialog, click I understand, continue.
- If you clicked Export Key, choose a location and click Save. The default filename is
insomnia-encryption-key.json.
On macOS and Linux, the exported file can only be read and written by its owner (mode 600). On Windows, the file gets the permissions of the folder you save it in.
Both forms of the key work with Inso CLI. The key also records the name of the machine it was exported on.
- Never share the key. Anyone with the key can decrypt the tokens and other values stored in your local database. Don’t commit it to a repository or paste it into shared logs.
- Never use the key on another machine. Using the wrong key can make values unreadable for the Insomnia app on that machine.