nowfound

AI · March 6, 2022

Load SSH Keys into Agent from Apple Keychain

A simple snippet to add to your .bashrc/.zshrc that loads your SSH keys into ssh-agent from the Apple Keychain.

Load SSH Keys into Agent from Apple Keychain launched on March 6, 2022 with 15 votes, #1,079 of 3,153 launches that month and more than 75% of that year's launches. The site was still online in September 2026, 4 years on.

In plain words

This is a code snippet designed for macOS users who need to load SSH keys into ssh-agent from Apple Keychain. Users add the snippet to their .bashrc or .zshrc configuration files to automate SSH key management. It simplifies the process of accessing stored SSH keys without manual entry each time, making it useful for developers and system administrators who frequently use SSH connections on Mac systems.

written from the facts on this page · September 2026

From the sources

A simple bash snippet to add to your .bashrc or .zshrc in order to easily load password protected SSH Keys from the Apple Keychain, and never worry about them again ! - setup_ssh_agent_with_apple_keychain.sh

Search Gists Search Gists Sign in Sign up You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert {{ message }} Instantly share code, notes, andfrom gist.github.com

Does a similar job

all alternatives →
  • SeKey: An SSH Agent for OS X, Using Secure Enclave and TouchID, in Rust2017 · github.com · ▲169

    Use Touch ID / Secure Enclave for SSH Authentication! - sekey/sekey

  • KS
    Keypub.sh – OAuth for the terminal using SSH keys2024 · keypub.sh · ▲222

    Hi HN! I built KeyPub.sh to solve the problem of user verification for CLI applications. It's essentially OAuth for the terminal, but using SSH keys that developers and users already have. - No installation needed - works with existing SSH setup - Privacy-focused: users control what email info is shared - Simple email verification process - Free public service - Perfect for CLI app developers who don't want to build user verification Try it with: `$ ssh keypub.sh about` Source code: https://github.com/skariel/keypub

  • Pass Quick AccessJun 2026 · bsramin.github.io · ▲80

    Native quick access and SSH agent for Proton Pass for macOS

  • keychains.devFeb 2026 · keychains.dev · ▲177

    Hi HN — I’m a heavy OpenClaw user and, like many others, I’ve been thinking about how to give these new “unleashed” agents secure access to my accounts. Agents need API access to be useful. But API keys are long-lived secrets. And agents are not secure environments. So I built something for myself that quickly turned into a product: keychains.dev. The idea is simple: agents never see raw credentials. With Keychains.dev: • Agents make API calls via a drop-in replacement for curl or JavaScript’s fetch() • They use template variable names instead of embedding credentials • The request is…

  • Use encrypted passwords in shell scripts signed with your SSH key2018 · github.com · ▲117

    Lightweight solution for using encrypted passwords in shell scripts - plyint/encpass.sh

  • LatchkeyMar 2026 · github.com · ▲122

    Hi HN, At Imbue, we’ve been following the rapid developments in the agent landscape and noticed that the way agents interact with third-party services on users’ behalf often leaves a lot to be desired. Integrations are ad hoc, complicated, context-heavy, and either unfriendly to non-technical users or tied to a lock-in of some sort. We‘re experimenting with a command-line tool, Latchkey, that could be used by local agents targeted at non-technical users while avoiding remote intermediaries. As far as we know, this is the only existing approach at the intersection of these two goals. Core…

More ai this month

the category →
  • Video model that turns script into viral social media videos

    AI · 17d ago · spira.ai

  • The browser where Claude Code and Codex work beside you

    AI · 17d ago · rill.love

  • Kolibri is Aleph Alpha

    AI · 18d ago · tej.as

  • Paintings by AI models: programs run through a simulation of oil paint.

    AI · 20d ago · stillwet.art

  • Onepin▲384

    AI voiceover with every name, price and date said right

    AI · 30d ago · onepin.ai

  • A real-time world model you can explore and change

    AI · 29d ago · world.pixverse.video

Source: Show HN post ↗

Launched alongside, March 2022

the whole month →
  • IM

    Hi HN! I made many small web games in the past with Unity or Phaser. But this time I wanted to make something completely on my own. So I coded a basic game framework in plain JavaScript, and used it to make Almost Pong. This was a really fun project that taught me a lot about JavaScript, and I plan to make more minimalist games with this framework. Interesting fact: Almost Pong doesn't load any assets, all sprites and sounds are generated with code. Happy to answer questions, and please let me know if you have any feedback on the game. Thanks!

    Dev tools · 2022 · lessmilk.com

  • IM

    Life & fun · 2022 · networksfromscratch.com

  • HA

    Paste the following into the console of any HN page - for annotated avatars on all HN comments. (self contained code) for(u of document.querySelectorAll('.hnuser'))for(u.prepend(c=document.createElement('canvas')),x=c.getContext('2d'),c.width=18,c.height=14,s=u.innerText,r=1,i=28+s.length;i--;i>>29>X*X/3+Y/2&&x.fillRect(6+2*X,2*Y,2,2)&x.fillRect(6-2*X,2*Y,2,2):r+=s.charCodeAt(i-28,x.fillStyle='#'+(r>>8&0xFFFFFF).toString(16)))r^=r>>17,r^=r>2

    Dev tools · 2022

  • Tome Beta▲697

    The storytelling tool for work

    Work · 2022 · tome.app

  • Kairn▲694

    Regain control over your days

    Dev tools · 2022

  • How well do you know your area? Test your knowledge by locating streets on a map.

    Work · 2022 · backofyourhand.com