Skip to content

Releases

claude-acc 2.0.3 — pins work on Claude Code 2.1.312

Choose a tag to compare

@linhh-phv linhh-phv released this 29 Oct 09:27

Directory pins (switch <name> --here) work again on Claude Code 2.1.312 — the build inside the
VS Code extension — which silently ignored them and ran the chat on the global account.

Fixed

  • Claude Code 2.1.312 no longer reads CLAUDE_CODE_OAUTH_TOKEN from a repo's
    .claude/settings.local.json. A pin now also holds the same token as ANTHROPIC_AUTH_TOKEN,
    which 2.1.300 and 2.1.312 both read. Measured with a fake API and then the real one: it beats
    the global account, a change reaches chat tabs that are already open (about a second later),
    and the request is billed to the account's plan exactly as before.
  • off and main empty that key instead of removing it, so an open chat tab leaves the token
    account at once; running off again removes the empty key.
  • A repo that sets an ANTHROPIC_AUTH_TOKEN of its own (a gateway key) is not pinned — the pin
    would replace it. --all skips such a folder; off and main leave the key alone.
  • sync and reassign report a pin file they cannot edit and carry on with the rest.

What 2.1.312 cannot do

Keep a directory on main while the global account is a token one: no repo-level setting hides
the global token from it. here main, ls, usage and switch say so when it happens. Make
main the global account and pin token accounts to the other repos instead.

Upgrading

Pins made with an earlier version have only the old key. Run once after installing:

claude-acc sync

Until then ls says how many pins are left to fix.

Install / upgrade

macOS:

curl -fsSL https://raw.githubusercontent.com/linhh-phv/claude-acc/main/install.sh | bash

Windows (PowerShell):

irm https://raw.githubusercontent.com/linhh-phv/claude-acc/main/install.ps1 | iex

Nothing needs to be added again.

SHA256SUMS lists the checksum of each file.

claude-acc 2.0.2 — usage says which account is in effect here

Choose a tag to compare

@linhh-phv linhh-phv released this 22 Oct 08:56

usage now tells you which account is in effect where you stand, so its quota can be read
off the table without running ls as well.

New

  • Under its table, usage prints the HERE row of ls: the account in effect in the current
    directory, and why (a pin of its own, a pin shared with another folder, or the global
    account). In a folder of a multi-root workspace that is not folder [0], a GUI row above
    it names the account the chat tabs use. ls and usage print these rows with the same code,
    so they always agree.

      account    5-hour window                  7-day window
     * work      #.........   9%  13:40 (3h32 left)   3%  11/09 (6 days left)
     * personal  ..........   2%  11:00 (52m left)    0%  11/09 (6 days left)
    
    HERE      work  (pin of …/some-repo)
    
    Most headroom: personal (5h only 2% used)
      -> use it for the repo you are in:  claude-acc switch personal --here
    

Nothing else changed: ls, every other command and every file claude-acc writes are the same
as in 2.0.1.

Install / upgrade

macOS:

curl -fsSL https://raw.githubusercontent.com/linhh-phv/claude-acc/main/install.sh | bash

Windows (PowerShell):

irm https://raw.githubusercontent.com/linhh-phv/claude-acc/main/install.ps1 | iex

Nothing needs to be added again.

SHA256SUMS lists the checksum of each file.

claude-acc 2.0.1 — workspaces that share a folder

Choose a tag to compare

@linhh-phv linhh-phv released this 15 Oct 06:40

A fix for directories that belong to more than one Cursor/VS Code workspace — typically a repo
that is folder [0] of its own .code-workspace and an extra folder of a bigger one.

Fixed

  • switch <name> --here no longer refuses such a repo with "this directory belongs to SEVERAL
    different workspaces". The workspace whose folder [0] holds the directory wins. here also
    names the other workspaces: their chat tabs run in their own folder [0], which this pin does
    not reach. A directory that is only an extra folder of workspaces with different folders [0]
    is still not guessable — name the target with --at. (In 1.x, ls also stopped after its
    first line there.)
  • Pinning the bigger workspace — with or without --all — no longer rewrites, or replaces with a
    link, the pin of a folder that is folder [0] of a workspace of its own. Before, switching one
    workspace could silently switch the other.
  • --all from such a repo no longer links the bigger workspace's folders to it, and ls lists
    the repo as a pin of its own instead of hiding it inside the bigger workspace.

Install / upgrade

macOS:

curl -fsSL https://raw.githubusercontent.com/linhh-phv/claude-acc/main/install.sh | bash

Windows (PowerShell):

irm https://raw.githubusercontent.com/linhh-phv/claude-acc/main/install.ps1 | iex

Nothing needs to be added again: 2.0.1 reads and writes the same files as 2.0.0 and 1.x.

SHA256SUMS lists the checksum of each file.

claude-acc 2.0.0 — Windows support

Choose a tag to compare

@linhh-phv linhh-phv released this 12 Oct 09:31

claude-acc now runs on Windows as well as macOS, as a single self-contained binary.

Install

macOS:

curl -fsSL https://raw.githubusercontent.com/linhh-phv/claude-acc/main/install.sh | bash

Windows (PowerShell):

irm https://raw.githubusercontent.com/linhh-phv/claude-acc/main/install.ps1 | iex

Or download claude-acc-windows-amd64.zip below, unzip it and double-click install.cmd.
Step-by-step guide: README → Windows: step by step
· Tiếng Việt.

Upgrading from 1.x

Install over it — no account needs to be added again. 2.0 reads the same Keychain items,
the same ~/.config/claude-acc files and the same pins that 1.x wrote, and writes them back the
same way, so going back to 1.x also works. python3 is no longer needed.

What changed

  • Rewritten in Go (from bash + Python). Every command behaves as before: 100 scenarios run the
    1.x script and the new binary side by side and compare output, exit codes and every file
    written.
  • Windows: tokens in Credential Manager; main's credential read wherever Claude Code keeps it
    (.credentials.json or Credential Manager); --all copies the pin into each workspace
    folder; env prints PowerShell; npm installs of Claude Code supported.
  • add checks a token with the API before storing it — re-adding an account with a broken
    token no longer replaces the working one everywhere.
  • A token wrapped across lines by a narrow terminal is rejoined (when captured, copied or
    pasted) instead of being stored truncated.
  • claude-acc login: what you type or paste at the code prompt is visible, and a code copied
    from the browser is filled in automatically.
  • Fixes to 1.x quirks: sync exiting 1 on success, switch failing when ~/.claude did not
    exist yet, Python tracebacks on errors, settings.json symlinks replaced by plain files.

SHA256SUMS lists the checksum of each file.