LC

larcane97/clausona

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

57 stars 11 forks 质量 69 趋势 27MIT

只需一个命令即可在多个 Claude Code 和 OpenAI Codex CLI 账户间切换。技能、钩子、插件和设置会保持共享,对话记录也可以共享。

概览

Clausona 是 Claude Code 和 OpenAI Codex CLI 的配置文件管理器。每个账户都会有一个用于登录的配置文件目录。技能、钩子、插件和设置会在它们之间共享,所以只需用 csn 使用工作就能迁移到另一个账户。 除非你选择分享,否则对话记录会保留在账号上。一旦分享完,从一个账号开始的对话可以在另一个账号下继续。 Clausona 还会显示账户的 5 小时和每周套餐限制还剩多少,并排显示。 分步指南,包括如何手动操作:多个Claude Code账户、多个Codex CLI账户,韩文版本相同。另一份指南涵盖技能、MCP服务器和每个账户加载的钩子。 我一直在用 Claude Code 同时使用个人和工作账户,但我厌倦了为两个账户设置插件和权限。所以我做了一个简单的工具。

概述(AI 翻译)

在同一台机器上切换多个Claude Code和OpenAI Codex的CLI账户。它们分别登录并共享一个设置。Clausona还可以选择每次运行时剩下的配额账户,并展示每个账户加载的技能、MCP服务器和挂钩。

Clausona 是 Claude Code 和 OpenAI Codex CLI 的配置文件管理器。每个账户都会获得一个 用于登录的配置文件目录。技能、钩子、插件和设置在它们之间共享,所以 csn use work 只需移动到另一个账户即可。

除非你选择分享,否则对话记录会保留在账号上。一旦分享,一个 从一个账号开始的对话可以在另一个账号下继续。

Clausona 还会显示账户的 5 小时和每周套餐限制还剩多少,并排显示。

逐步指南,包括如何手动操作: 多个Claude Code账户, 多个Codex CLI账户, 韩文版也是如此。另一本指南涵盖 每个账户加载的技能、MCP服务器和钩子。

为什么

我一直在用 Claude Code 同时使用个人账户和工作账户,但我厌倦了设置 插件和权限。所以我做了一个简单的工具。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

clausona

Switch between multiple Claude Code and OpenAI Codex CLI accounts on one machine. They sign in separately and share one setup. clausona can also pick the account with quota left for each run, and show the skills, MCP servers and hooks every account loads.

clausona is a profile manager for the Claude Code and OpenAI Codex CLIs. Every account gets a config directory for its sign-in. Skills, hooks, plugins and settings are shared across them, so csn use work is all it takes to move to another account.

Conversation history stays with the account unless you choose to share it. Once it’s shared, a conversation started under one account can be resumed under another.

clausona also shows how much of your accounts’ 5-hour and weekly plan limits is left, side by side.

Step-by-step guides, including how to do it by hand: multiple Claude Code accounts, multiple Codex CLI accounts, and the same in Korean. Another guide covers the skills, MCP servers and hooks each account loads.

Why

I’ve been using Claude Code with a personal and a work account, and I got tired of setting up plugins and permissions for both. So I made a simple tool for it.

If you have Claude Code or OpenAI Codex CLI accounts for personal use, work or different orgs, switching between them on one machine is tedious:

  • Switching is manual. You log out and back in, or juggle CLAUDE_CONFIG_DIR (Claude) or CODEX_HOME (Codex) yourself.
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →