retoken

Sync Claude OAuth tokens from Mac Keychain to a remote server and restart Docker containers.

Updated Apr 11, 2026
Ready to run
npx skills add https://github.com/leessju/claude-skills --skill retoken
๐Ÿ’ฌ Prompt for ChatGPT / Claude Chatโ–ผ
Please help me install this Agent Skill.
Skill: retoken
Source: https://github.com/leessju/claude-skills/tree/main/retoken
Command: npx skills add https://github.com/leessju/claude-skills --skill retoken

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Mac Keychain์˜ Claude OAuth ํ† ํฐ์„ ์›๊ฒฉ ์„œ๋ฒ„์— ๋™๊ธฐํ™”ํ•˜๊ณ  Docker ์ปจํ…Œ์ด๋„ˆ๋ฅผ ์žฌ์‹œ์ž‘ํ•ฉ๋‹ˆ๋‹ค. ๋ฉ€ํ‹ฐ ๊ณ„์ • ์Šฌ๋กฏ์„ ์ง€์›ํ•ฉ๋‹ˆ๋‹ค.

Core Features & Use Cases

  • Mac Keychain์—์„œ Claude ํ† ํฐ์„ ์ฝ๊ณ  ์›๊ฒฉ ์„œ๋ฒ„์— ๋™๊ธฐํ™”ํ•ฉ๋‹ˆ๋‹ค.
  • ์Šฌ๋กฏ 0/1/2 ๋“ฑ ๋ฉ€ํ‹ฐ ๊ณ„์ • ์Šฌ๋กฏ์„ ์ง€์›ํ•˜๋ฉฐ, ์Šฌ๋กฏ์ด ์ง€์ •๋˜์ง€ ์•Š์€ ๊ฒฝ์šฐ ๊ธฐ์กด ๋ฐฉ์‹์œผ๋กœ ์ €์žฅํ•ฉ๋‹ˆ๋‹ค.
  • ์„œ๋ฒ„์˜ Docker ์ปจํ…Œ์ด๋„ˆ๋ฅผ docker compose๋ฅผ ์ด์šฉํ•ด ์žฌ์‹œ์ž‘ํ•˜๊ณ  ์žฌ์‹œ์ž‘ ํ›„ ์ƒํƒœ๋ฅผ ํ™•์ธํ•ฉ๋‹ˆ๋‹ค.
  • ํ•„์š” ์‹œ ํ˜„์žฌ ๋กœ์ปฌ ํ”„๋กœ์ ํŠธ ๋””๋ ‰ํ† ๋ฆฌ๋ช…๊ณผ ์ผ์น˜ํ•˜๋Š” ์„œ๋ฒ„ ๊ฒฝ๋กœ๋ฅผ ์ž๋™ ํƒ์ƒ‰ํ•ฉ๋‹ˆ๋‹ค.

Quick Start

Run /retoken <ssh-name> [slot] [project-path] to synchronize Claude OAuth tokens from Mac Keychain to the remote server and restart the Docker container.

Frequently Asked Questions about retoken

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I sync Claude OAuth tokens from Mac Keychain to a remote server?โ–ผ

Sync Claude OAuth tokens to a remote server by reading credentials from Mac Keychain, mapping them to slot-based accounts, and applying them via SSH to the target project directory.

Can I sync multiple Claude accounts using different slots to my server?โ–ผ

Yes, multi-account slots are supported. You can specify slot 0, 1, or 2 to map specific credentials, and if a slot is not provided, the system saves the token using the default legacy method.

Does this tool restart Docker containers after updating the OAuth token?โ–ผ

Yes, after syncing the token, it restarts the athena-core Docker container using docker-compose and verifies the LLM status to ensure the updated credentials are active.

How do I auto-detect the project path on the remote server during token sync?โ–ผ

When the project path is not explicitly provided, the token sync process automatically searches the remote server for a directory matching your current local project directory name.

What do I need to run the Claude token synchronization process?โ–ผ

You need an SSH connection configured for the remote server, Mac Keychain storing your Claude OAuth tokens, and docker-compose managing the athena-core container on the target server.

Why does my Docker container need restarting after syncing Claude tokens?โ–ผ

Restarting the Docker container via docker-compose ensures the athena-core service reloads the newly synced OAuth tokens and allows you to verify the LLM status is functioning correctly.