Đổi tài khoản Claude Code & Codex chỉ bằng một cú bấm Switch Claude Code & Codex accounts in one click

Không đăng xuất, không mất phiên đang chạy. Xem mỗi tài khoản còn bao nhiêu hạn mức, và để app tự đổi sang tài khoản còn nhiều chỗ nhất khi sắp hết. No signing out, no lost sessions. See how much every account has left, and let the app move you to the one with the most room before you run out.

Piaz Switch: mỗi tài khoản với hạn mức 5 giờ, tuần và theo model
Mọi tài khoản, hạn mức 5 giờ / tuần / theo model và nhịp dùng của bạn. Every account with its 5-hour, weekly and per-model limits and your pace.

Riêng tưPrivacy

Login của bạn ở lại máy bạnYour logins stay on your machine

Không server, không telemetry, không tài khoản của chúng tôi. Piaz Switch chỉ là một app nhỏ trên khay hệ thống. No server, no telemetry, no account of ours. Piaz Switch is just a small app in your tray.

Mã hoá trên đĩaEncrypted on disk

Login đã park được mã hoá AES-256-GCM ngay trên máy bạn, khoá nằm trong Windows Credential Manager hoặc macOS Keychain. Parked logins are AES-256-GCM encrypted on your computer, with the key in Windows Credential Manager or the macOS Keychain.

Không có server nàoNo server at all

Không đăng ký, không thu thập dữ liệu. Log phiên của các tool chỉ được đọc ngay trên máy bạn. No sign-up, nothing collected. The tools' session logs are only ever read on your computer.

Mỗi login về đúng nơi cấpEach login goes home only

Yêu cầu đọc hạn mức của một tài khoản chỉ gửi tới chính dịch vụ đã cấp login đó, không đi đâu khác. An account's usage request only goes to the service that issued its login, nowhere else.

Mã nguồn công khai trên GitHubSource available on GitHub Xem từng dòng code, tự build, báo lỗi hoặc góp ý. Miễn phí dùng, sửa và chia sẻ — chỉ không được bán lại. Read every line, build it yourself, report bugs or suggest ideas. Free to use, change and share — just not to resell. — —

Tính năngFeatures

Mọi thứ bạn cần khi dùng nhiều tài khoảnEverything you need for many accounts

Đổi ngay từ khay hệ thốngSwitch right from the tray

Bấm vào icon, chọn tài khoản — xong. Các phiên Claude Code đang mở tự đi theo, không cần đăng nhập lại. Click the icon, pick an account — done. Open Claude Code sessions follow along, no signing in again.

Thấy rõ hạn mứcSee every limit

5 giờ, tuần và theo từng model, giờ reset và bạn đang dùng nhanh hay chậm hơn nhịp. 5-hour, weekly and per-model usage, reset times, and whether you're over or under pace.

Tự đổi trước khi hếtSwitches before you run out

Khi tài khoản đang dùng sắp chạm trần, app chuyển sang tài khoản còn nhiều chỗ nhất. When the account in use is about to hit its limit, the app moves to the one with the most room left.

Warm-up cửa sổ 5 giờWarm up the 5-hour window

Khởi động sẵn cửa sổ 5 giờ kế tiếp của tài khoản, để lúc cần là đã có hạn mức mới. Start an account's next 5-hour window early, so fresh room is ready when you need it.

Biết mình đã tiêu bao nhiêuKnow what you used

Token và chi phí quy theo giá API, theo tool và theo ngày — tính từ log ngay trên máy bạn. Tokens and cost at API prices, per tool and per day — worked out from the logs on your own machine.

Có cả dòng lệnhA command line too

Thích terminal? Lệnh piaz-switch làm được mọi thứ app làm: liệt kê, đổi, xem hạn mức. Prefer the terminal? The piaz-switch command does what the app does: list, switch, check limits.

Tự cập nhậtUpdates itself

Báo khi có bản mới, kiểm tra chữ ký rồi cài trong một cú bấm. Tài khoản và cài đặt giữ nguyên. Tells you when a new version is out, checks its signature and installs in one click. Accounts and settings stay.

Tiếng Việt, sáng hay tối tuỳ bạnVietnamese, light or dark — your call

Giao diện tiếng Việt và tiếng Anh, theo hệ thống hoặc theo bạn chọn trong Cài đặt. English and Vietnamese interface, following the system or your choice in Settings.

Cách hoạt độngHow it works

Ba bước, rồi quên nó điThree steps, then forget about it

  1. 1

    Tải và mở appDownload and open

    App nằm ở khay hệ thống (Windows) hoặc thanh menu (macOS). Bạn chỉ cần Claude Code và/hoặc Codex CLI đã đăng nhập một lần. It lives in the system tray (Windows) or the menu bar (macOS). You just need Claude Code and/or the Codex CLI signed in once.

  2. 2

    Thêm tài khoảnAdd your accounts

    Nút Thêm tài khoản chạy bước đăng nhập của chính tool trong một thư mục riêng — tài khoản đang dùng không bị đụng tới. Add Account runs the tool's own sign-in in a private folder — the account in use is never touched.

  3. 3

    Bấm để đổiClick to switch

    Login đang dùng được park lại, login bạn chọn được đặt vào chỗ tool đọc. Mỗi lần ghi đều nguyên tử, lỗi là tự hoàn tác. The live login is parked, the one you pick is put where the tool reads it. Every write is atomic and a failed switch rolls back.

Tải vềDownload

Chọn máy của bạnPick your computer

Miễn phí. Bản mới nhấtFree. Latest version v0.4.0 · tất cả phiên bảnall versions · có gì mớiwhat's new

macOS Intel

macOS 11+, chip IntelmacOS 11+, Intel chips

Tải .dmgDownload .dmg

Không chắc máy mình chip gì? Menu Apple → About This Mac: ghi “Chip Apple M…” là Apple Silicon. Mở lần đầu: xem hướng dẫn. Not sure which chip? Apple menu → About This Mac: “Chip Apple M…” means Apple Silicon. First launch: see how.

Mở app trên Mac lần đầuOpening the app on a Mac the first time

Piaz Switch miễn phí nên chưa đăng ký chứng nhận với Apple. Vì vậy lần đầu macOS báo “Apple could not verify…” và chặn app. App không hỏng, mã nguồn công khai trên GitHub. Làm theo 4 bước dưới đây, chỉ cần làm một lần. Piaz Switch is free, so it isn't registered with Apple yet. The first time, macOS says “Apple could not verify…” and blocks it. The app isn't broken, and its source is public on GitHub. Do these 4 steps once.

  1. 1

    Mở file .dmg vừa tải, kéo Piaz Switch vào thư mục Applications. Open the .dmg you downloaded and drag Piaz Switch into Applications.

  2. 2

    Mở Piaz Switch trong Applications. Khi Mac báo chặn, bấm Done (macOS cũ: Cancel hoặc OK). Open Piaz Switch from Applications. When your Mac blocks it, click Done (older macOS: Cancel or OK).

    ⚠️ Đừng bấm Move to Trash, app sẽ bị chuyển vào Thùng rác. ⚠️ Don't click Move to Trash, or the app goes to the Trash.

  3. 3

    Mở System Settings → Privacy & Security, kéo xuống phần Security. Ở dòng “Piaz Switch was blocked…”, bấm Open Anyway. macOS 12 trở xuống: System Preferences → Security & Privacy → General. Open System Settings → Privacy & Security and scroll down to Security. Next to “Piaz Switch was blocked…”, click Open Anyway. On macOS 12 and older: System Preferences → Security & Privacy → General.

  4. 4

    Ở hộp thoại cuối bấm Open Anyway (hoặc Open), nhập mật khẩu máy nếu được hỏi. Xong! Từ giờ app mở bình thường, biểu tượng nằm trên thanh menu ở góc trên bên phải màn hình. In the last dialog click Open Anyway (or Open) and enter your Mac's password if asked. Done! From now on it opens normally, and its icon sits in the menu bar at the top right of the screen.

Mac báo “is damaged”, hoặc không thấy nút Open Anyway? Mở app Terminal (bấm ⌘ Space, gõ “Terminal”), dán lệnh này rồi nhấn Enter, sau đó mở lại app: Your Mac says “is damaged”, or there's no Open Anyway button? Open the Terminal app (press ⌘ Space, type “Terminal”), paste this command, press Enter, then open the app again:

xattr -dr com.apple.quarantine "/Applications/Piaz Switch.app"

Lỡ bấm Move to Trash? Mở Thùng rác, chuột phải vào Piaz Switch → Put Back (hoặc tải lại file .dmg), rồi làm lại từ bước 2. Clicked Move to Trash? Open the Trash, right-click Piaz Switch → Put Back (or download the .dmg again), then start again at step 2.

Cần thêm: Claude Code và/hoặc Codex CLI, đã đăng nhập một lần. Dòng lệnh piaz-switch có sẵn trong bản portable Windows và trên trang release cho macOS. You also need Claude Code and/or the Codex CLI, signed in once. The piaz-switch command line ships in the Windows portable zip and on the release page for macOS.

Ben Piaz

Tác giảAuthor

Ben Piaz

Mình làm Piaz Switch vì chính mình dùng nhiều tài khoản Claude Code và Codex mỗi ngày. Mình chia sẻ về AI, Claude Code và cách làm sản phẩm cùng AI trên YouTube và X — ghé chơi và theo dõi để nhận bản mới nhé! I built Piaz Switch because I juggle several Claude Code and Codex accounts every day. I share about AI, Claude Code and building products with AI on YouTube and X — come say hi and follow for new releases!

Hỏi đápFAQ

Câu hỏi thường gặpCommon questions

Piaz Switch có miễn phí không?Is Piaz Switch free?

Có, hoàn toàn miễn phí. Giấy phép MIT + Commons Clause: bạn được dùng, sửa và chia sẻ thoải mái, chỉ không được bán lại. Yes, completely. The license is MIT + Commons Clause: use it, change it and share it freely — just don't sell it.

Login của tôi có an toàn không?Are my logins safe?

Login đã park được mã hoá AES-256-GCM trên đĩa, khoá nằm trong keychain của hệ thống. Không có server nào của Piaz Switch; mỗi login chỉ được gửi tới dịch vụ đã cấp nó. Mã nguồn công khai nên bạn có thể tự kiểm tra. Parked logins are AES-256-GCM encrypted on disk with the key in the system keychain. There is no Piaz Switch server; each login only goes to the service that issued it. The source is public, so you can check.

Sao Windows / macOS cảnh báo khi mở?Why does Windows / macOS warn me?

App chưa có chứng chỉ ký số (khá đắt), nên hệ thống cảnh báo một lần. Windows: More info → Run anyway. macOS: bấm Done (đừng bấm Move to Trash), rồi vào System Settings → Privacy & Security → Open Anyway. Hướng dẫn chi tiết cho Mac. The app isn't code-signed yet, so the system warns once. Windows: More info → Run anyway. macOS: click Done (not Move to Trash), then System Settings → Privacy & Security → Open Anyway. Step-by-step for Mac.

Đổi tài khoản có làm mất phiên đang chạy không?Does switching break running sessions?

Với Claude Code, các phiên đang mở tự dùng tài khoản mới ngay. Với Codex, phiên đang chạy giữ tài khoản cũ cho tới khi bạn mở lại. Open Claude Code sessions pick up the new account right away. A running Codex keeps the old account until you restart it.

Tôi nên thêm tài khoản thế nào?How should I add accounts?

Luôn dùng nút Thêm tài khoản trong app, đừng dùng /login hay codex login, và đừng đăng xuất trong tool — đăng xuất sẽ huỷ login mà app đã park. Always use Add Account in the app, not /login or codex login, and don't log out in the tools — logging out ends the login the app parked.

Cập nhật bản mới thế nào?How do I get updates?

Từ bản 0.3.0, app tự kiểm tra vài giờ một lần và báo khi có bản mới; bấm Cài và khởi động lại là xong. Bản cũ hơn 0.3.0 thì tải lại một lần ở trang này. From 0.3.0 on, the app checks every few hours and tells you when there's a new version; click Install and Restart. Older than 0.3.0? Download once from this page.

Có bản cho Linux không?Is there a Linux version?

Hiện có bản dựng sẵn cho Windows và macOS. Bạn có thể tự build từ mã nguồn, hoặc theo dõi @benpiazai để biết khi có tin mới. Ready-made builds are for Windows and macOS. You can build from the source, or follow @benpiazai for news.

Gặp lỗi thì báo ở đâu?Where do I report a bug?

Mở một issue trên GitHub, hoặc nhắn Ben trên X. Open an issue on GitHub, or message Ben on X.

Thử ngay, miễn phíTry it, for free

Một cú bấm để đổi tài khoản. Không bao giờ bị kẹt vì hết hạn mức nữa. One click to switch accounts. Never get stuck on a used-up limit again.

Tải Piaz SwitchDownload Piaz Switch

Đang tải Piaz Switch…Downloading Piaz Switch…

Không thấy file tải về?Download didn't start? Bấm để tải lạiClick to try again

Cài đặt trên WindowsInstall on Windows

  1. Mở file PiazSwitch-windows-x64-setup.exe vừa tải (trong danh sách tải của trình duyệt hoặc thư mục Downloads). Nếu Edge báo file “isn't commonly downloaded”: bấm … → Keep.Open PiazSwitch-windows-x64-setup.exe from your browser's downloads or the Downloads folder. If Edge says it “isn't commonly downloaded”: click … → Keep.
  2. Nếu hiện “Windows protected your PC”: bấm More info → Run anyway. App chưa có chữ ký số, không phải virus.If you see “Windows protected your PC”: click More info → Run anyway. The app just isn't code-signed yet.
  3. Cài xong, app nằm ở khay hệ thống góc phải dưới (có thể ẩn sau dấu ^). Bấm vào để thêm tài khoản.Once installed it lives in the system tray at the bottom right (maybe behind the ^). Click it to add your accounts.

Dùng bản portable trên WindowsUse the portable build on Windows

  1. Chuột phải file .zip vừa tải → Extract All để giải nén ra một thư mục.Right-click the .zip → Extract All into a folder.
  2. Mở Piaz Switch.exe (không phải piaz-switch.exe, đó là bản dòng lệnh). Nếu hiện “Windows protected your PC”: bấm More info → Run anyway.Open Piaz Switch.exe (not piaz-switch.exe, the command line). If you see “Windows protected your PC”: click More info → Run anyway.
  3. App nằm ở khay hệ thống góc phải dưới. Bản portable không tự cập nhật, hãy tải lại khi có bản mới.It lives in the system tray at the bottom right. The portable build doesn't update itself; download it again for new versions.

Cài đặt trên MacInstall on a Mac

  1. Mở file .dmg vừa tải, kéo Piaz Switch vào Applications.Open the .dmg and drag Piaz Switch into Applications.
  2. Mở Terminal (bấm ⌘ Space, gõ “Terminal”, Enter), dán lệnh này vào rồi nhấn Enter: Open Terminal (press ⌘ Space, type “Terminal”, Enter), paste this command and press Enter:
    xattr -dr com.apple.quarantine "/Applications/Piaz Switch.app"
  3. Mở Piaz Switch trong Applications. Xong! Biểu tượng app nằm trên thanh menu góc trên bên phải.Open Piaz Switch from Applications. Done! Its icon is in the menu bar at the top right.

Cần có Claude Code và/hoặc Codex CLI đã đăng nhập một lần. You need Claude Code and/or the Codex CLI signed in once.