Yd Claude Auth Sync logo

Yd Claude Auth Sync

Community
LeeYudok
yd-claude-auth-sync

한 PC 에서 claude login 으로 다시 인증한 Claude Code 로그인을, 사용자가 등록해 둔 다른 PC·서버에도 똑같이 맞춘다. 키체인·~/.claude/.credentials.json 의 claudeAiOauth 만 ssh 표준입력으로 넘기고 토큰은 출력하지 않는다. "클로드 인증 서버들에 공유", "claude 로그인 다른 PC 에도 맞춰", "인증값 똑같이" 요청에 쓴다. 저장소 동기화는 yd-git-sync 가 맡는다.

Overview

PublisherLeeYudok
Repositoryagents-scaffold
Skill nameyd-claude-auth-sync
Stars
38
Forks
8
Bundled files
3
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by LeeYudok on GitHub. Read the source before you install it.

Installation

Install the Yd Claude Auth Sync AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/LeeYudok/agents-scaffold/tree/main/plugins/yd-skills-personal/skills/yd-claude-auth-sync
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/LeeYudok/agents-scaffold.git /tmp/agents-scaffold
mkdir -p .claude/skills
cp -r /tmp/agents-scaffold/plugins/yd-skills-personal/skills/yd-claude-auth-sync .claude/skills/yd-claude-auth-sync
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Yd Claude Auth Sync in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Yd Claude Auth Sync on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Yd Claude Auth Sync is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

yd-claude-auth-sync

역할

Claude Code 를 여러 호스트에서 쓸 때, 한 곳에서 로그인하면 나머지가 같은 로그인을 쓰게 만든다. 원본은 지금 PC 이고 대상은 사용자가 등록한 호스트다.

토큰을 다루는 스킬이다. 아래 위생 규칙이 기능보다 먼저다.

위생 규칙

  • 토큰 값을 화면·로그·argv 에 내지 않는다. 스크립트는 토큰을 ssh 표준입력으로만 넘긴다. 확인할 때도 값 대신 구독 종류·만료 시각·파일 크기만 본다.
  • security ... -w·cat .credentials.json 을 단독으로 실행하지 않는다. 출력이 그대로 대화에 남는다. 필요하면 파이프 안에서 JSON 키 이름만 뽑는다.
  • 옮기는 값은 claudeAiOauth 하나다. 키체인에는 MCP 서버 로그인(mcpOAuth)도 함께 있는데, 이 PC 전용이라 옮기지 않는다. 대상 파일에 있던 다른 키는 그대로 둔다.
  • 호스트 목록은 저장소 밖에 둔다. 이 저장소는 공개다. 호스트 이름·주소·사용자 경로를 스킬 문서나 커밋에 적지 않는다.
  • 사용자가 토큰을 채팅에 붙여 넣으면 쓰지 말고, 다시 발급하라고 권한다.

준비 (처음 한 번)

호스트 목록 파일을 만든다. 한 줄에 ssh 별칭 하나다. # 뒤는 주석이다.

bash
mkdir -p ~/.config/yd-claude-auth-sync
$EDITOR ~/.config/yd-claude-auth-sync/hosts   # 별칭을 한 줄씩
chmod 600 ~/.config/yd-claude-auth-sync/hosts

경로는 YD_CLAUDE_AUTH_HOSTS 로 바꿀 수 있다. 각 별칭은 ssh <별칭> 이 비밀번호 없이 되어야 한다(스크립트는 BatchMode=yes 로 접속한다).

워크플로

1. 원본 확인

bash
python3 <skill>/scripts/sync_auth.py --dry-run

원본 요약(구독 종류, access token 만료 시각)과 대상 호스트를 보여 준다. 원본은 macOS 면 키체인 Claude Code-credentials, 리눅스면 ~/.claude/.credentials.json 이다. 원본이 없으면 이 PC 에서 claude 로 먼저 로그인한다. 로그인은 브라우저 승인이 필요하므로 사용자가 직접 한다.

2. 맞추기와 확인

bash
python3 <skill>/scripts/sync_auth.py --verify
python3 <skill>/scripts/sync_auth.py --host <별칭> --verify   # 한 호스트만
python3 <skill>/scripts/sync_auth.py --verify-only            # 쓰지 않고 확인만

호스트마다 결과가 한 줄씩 나온다.

  • same — 이미 같은 로그인이다. 아무것도 쓰지 않는다.
  • updated (backup .credentials.json.bak-<시각>) — 기존 파일을 시각 접미사로 백업하고 새로 썼다. 새 파일은 권한 600 이고, 임시 파일에 쓴 뒤 바꿔 끼워 중간에 끊겨도 깨진 파일이 남지 않는다.
  • verify ok — 그 호스트에서 claude -p 가 응답했다. claude 없음 이면 그 호스트에 설치부터 한다.

하나라도 실패하면 종료 코드는 1 이다. 실패한 호스트는 별칭과 ssh 접속부터 확인한다.

한계

  • 같은 refresh token 을 여러 호스트가 나눠 쓴다. access token 이 만료되면 먼저 갱신한 호스트가 새 refresh token 을 받는다. 나머지는 로그인이 풀릴 수 있다. 그러면 갱신한 호스트를 원본으로 다시 돌리거나, 원래 PC 에서 다시 로그인하고 돌린다.
  • 갱신 충돌을 피하려면 claude setup-token 으로 1년짜리 토큰을 받아 호스트마다 CLAUDE_CODE_OAUTH_TOKEN 으로 주는 방법이 있다. 토큰 발급은 브라우저 승인이 필요해 사용자가 직접 한다. 이 스크립트는 그 경로를 다루지 않는다.
  • 대상은 파일로 인증을 읽는 호스트(리눅스)다. 대상이 macOS 면 claude 가 키체인을 읽으므로 파일을 써도 반영되지 않는다.
  • 원격에 python3 가 있어야 한다. 병합 스크립트가 원격에서 돈다.

완료 조건

  • 모든 호스트가 same 또는 updated 이고, --verify 결과가 verify ok 다.
  • 보고에는 호스트별 결과 줄과 백업 파일 이름만 적는다. 토큰 값·호스트 주소는 적지 않는다.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Yd Claude Auth Sync AI skill do?

한 PC 에서 claude login 으로 다시 인증한 Claude Code 로그인을, 사용자가 등록해 둔 다른 PC·서버에도 똑같이 맞춘다. 키체인·~/.claude/.credentials.json 의 claudeAiOauth 만 ssh 표준입력으로 넘기고 토큰은 출력하지 않는다. "클로드 인증 서버들에 공유", "claude 로그인 다른 PC 에도 맞춰", "인증값 똑같이" 요청에 쓴다. 저장소 동기화는 yd-git-sync 가 맡는다.

Why use Yd Claude Auth Sync on TypingMind?

Because you install it once and use it with any model. Yd Claude Auth Sync is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Yd Claude Auth Sync in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/LeeYudok/agents-scaffold/tree/main/plugins/yd-skills-personal/skills/yd-claude-auth-sync. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Yd Claude Auth Sync?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Yd Claude Auth Sync?

As many as you like. As long as a model supports skills, you can use Yd Claude Auth Sync with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Yd Claude Auth Sync AI skill free?

Yes. It is published on GitHub by LeeYudok under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇