bridgesid

package
v0.1.4607 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2026 License: MIT Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func Is

func Is(id string) bool

Is says id is a session New made on this computer.

func New

func New() string

New is a session id for a bridge run: a version 4 UUID that Is knows. Without a key (magpie's config folder can't be written) it is a plain random one, which the readers take for the user's.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL