Where to keep API keys on a Mac

An API key is a password for software. It deserves the same care as your passwords, but most of them end up in a notes app, a chat, or a .env file in a project folder.

Updated October 2026.

Where keys usually end up

Keys tend to land wherever they were first pasted:

None of these are encrypted just for the key, and none of them tell you where a key is used.

What a good place looks like

Whatever you use, look for these:

  1. Encrypted at rest, and locked when you’re away.
  2. Organised by project and environment, so STRIPE_SECRET_KEY for Local and for Production don’t get mixed up.
  3. A way to use a key without copying it into a file, such as a command that starts your app with the variables it needs.
  4. Careful copying. When you do copy a key, clipboard history apps shouldn’t keep it, and the clipboard should clear itself.
  5. A backup you control, so a lost Mac isn’t a lost set of keys.

A team that shares keys across many machines and servers usually wants a hosted secret manager such as Doppler, Infisical or HashiCorp Vault. One person, or a small team, often doesn’t need a server at all: Slinky shares keys with the people you choose as encrypted files, or through a folder your team already syncs. Our comparisons go through the trade-offs.

How Slinky does it

Slinky is a free, open-source Mac app made for exactly these things: API keys and tokens, each project’s .env variables, and two-factor backup codes.

Already have keys in another app? Slinky imports a 1Password export, or a CSV from Apple Passwords, Bitwarden, LastPass or KeePass, picks out the keys and tokens, and leaves your passwords behind.

Slinky keeps keys out of files and out of sight. It isn’t a sandbox: a program you run with a key can still use that key.

Questions

Can I keep API keys in Apple Passwords?

You can paste one into a password’s notes, but Apple Passwords is made for website sign-ins and passkeys. It has no way to group keys by project or environment, and nothing to hand them to a command. It’s the right place for your passwords, including your Slinky Recovery Key.

Is Keychain Access a good place for API keys?

It’s encrypted and built in, and the security command can read items back. But it was never made for keys: no projects, no environments, and reading a value from a script prints it into your terminal and shell history.

Does Slinky send my keys anywhere?

No. Your keys stay in one encrypted file on your Mac. Slinky goes online only to check GitHub for updates (you can turn that off) and, if you turn it on, to load website icons. If you turn on sync, it writes an encrypted copy to a folder you choose, and your own sync service moves it.

More guides

Give your secrets a home.

Free, about 6 MB, and nothing leaves your Mac.

Download for Macv2.0.0 · macOS 15 Sequoia · Apple silicon ·