Documentation
¶
Overview ¶
Package bridgesid names the Claude Code sessions the Claude subscription bridge runs, so the local-session readers can tell them from the user's own.
A bridge run is the real Claude Code, and it saves its session where Claude Code saves the user's: the account's projects folder, in the caller's folder's project. The readers of local sessions took it for a session of the user's, and the request the gateway already counted was counted again as "Claude Code · Local session", its tokens and cost twice (iwinux on X: a Pi request through a Claude subscription group listed twice since the bridge runs the interactive mode).
Every session a bridge run writes gets an id New made: a version 4 UUID whose last six bytes are a keyed hash of its first ten. The key is this computer's own (a random file in magpie's config folder), so the id is as random as any to anyone without it, Anthropic, which Claude Code tells the session id, included, while magpie's readers check it with no list to keep: Is.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.