Skip to content

Instantly share code, notes, and snippets.

Multi-Account GitHub SSH + Commit Signing with 1Password

Complete guide for setting up multiple GitHub accounts on one machine with:

  • SSH authentication via 1Password SSH agent (no keys on disk)
  • Commit signing via 1Password op-ssh-sign (Touch ID)
  • Automatic account switching based on directory (~/work/ vs ~/personal/)
  • No Host aliases — everything uses github.com

For Claude Code / AI assistants: This document is a complete setup guide. If the user asks you to set this up, follow each section in order. Adapt directory paths and account names to the user's setup. If they don't have separate directories per GitHub account, suggest creating them first (e.g. ~/work/ and ~/personal/).

#! /usr/bin/env bash
rm -rf logs
mkdir logs
all_log_files=""
for server in "germany" "helsinki" "us-east" "us-west";
do
scp -rpq user@${server}.siasky.net:skynet-webportal/docker/data/nginx/logs logs/${server}
for file in logs/${server}/*.gz; do gunzip -d ${file}; done