Claude Code stores OAuth tokens differently per platform. Here's how to access them manually.
| Platform | Storage | Location |
|---|---|---|
| macOS | Encrypted Keychain | Service: Claude Code-credentials |
| Linux | JSON file | ~/.claude/.credentials.json |
| #!/usr/bin/env python3 | |
| """csm - map Claude Code session ids, both ways. | |
| Claude Code gives the same session two unrelated identifiers: | |
| local a1b2c3d4-... UUIDv4, 122 random bits. Assigned client-side by the | |
| CLI; names its transcript at | |
| ~/.claude/projects/<escaped-cwd>/<uuid>.jsonl | |
| cloud session_01 + 22 base58 chars, ~129 random bits. Assigned by the | |
| server; appears in https://claude.ai/code/session_... links and in |
| # /// script | |
| # requires-python = ">=3.10" | |
| # dependencies = [ | |
| # "rich", | |
| # ] | |
| # /// | |
| """ | |
| ssh-cm-status.py — SSH ControlMaster connection status dashboard. | |
| Run with: uv run ssh-cm-status.py |
This guide shows how to play audio through both your laptop speakers and an external monitor (via HDMI) at the same time on Linux with PipeWire.
pactl command available (install with sudo apt install pulseaudio-utils if missing)| #!/bin/bash | |
| # zclaude - Claude Code wrapper for Z.AI GLM models | |
| # | |
| # WHAT THIS IS: | |
| # A wrapper script that allows you to use Claude Code with Z.AI's GLM-4.6 models | |
| # while keeping your original 'claude' command for Anthropic models intact. | |
| # | |
| # HOW IT WORKS: | |
| # - Sets environment variables to redirect Claude Code to Z.AI's API endpoint |