Subswap banner
x0c x0c

Subswap

Development community

Description

Safely switch and monitor Claude Code, Codex, Cursor, Kimi and OpenCode accounts with local snapshots and optional quota-aware auto-swap.

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

subswap

[![CI](https://github.com/x0c/subswap/actions/workflows/ci.yml/badge.svg)](https://github.com/x0c/subswap/actions/workflows/ci.yml) [![Release](https://github.com/x0c/subswap/actions/workflows/release.yml/badge.svg)](https://github.com/x0c/subswap/actions/workflows/release.yml) [![License](https://img.shields.io/github/license/x0c/subswap)](LICENSE)

Languages: English | [简体中文](README.zh-CN.md) | [日本語](README.ja.md) | [한국어](README.ko.md)

**A local-first multi-account switcher for AI coding tools that respects each client's native login state and quota boundaries.**

subswap safely switches accounts for Claude Code, OpenAI Codex / ChatGPT, Kimi Code, Cursor, and OpenCode Go. It keeps private local credential snapshots, shows quota status, and can optionally move to another eligible account when usage reaches your threshold.

Why subswap

  • Keep work, personal, and client accounts separate. Switch an account without repeatedly logging out and back in.
  • Know your remaining headroom. See Claude, Codex, Kimi, Cursor, and OpenCode quota windows in one place.
  • Stay in control. A manual swap never waits for a network or quota API; automatic swapping is optional and respects accounts marked manual-only.
  • Use parallel terminals when it is safe. Claude, Codex, Kimi, and OpenCode can run in isolated environments without changing the global active account.

Supported clients

Client Import and switch Quota and auto-swap Isolated run Important boundary
Claude Code Yes Yes Yes Custom API endpoints are manual-only.
Codex CLI / ChatGPT Yes Yes Yes Quota lookup uses the official app-server channel.
Kimi Code Yes Yes Yes Sign in with the native client, then import.
Cursor desktop Yes Yes No Switching coordinates a desktop-app restart and its SQLite state.
OpenCode Go Yes Yes Yes Only the opencode-go entry is changed; other entries stay untouched.

T