thuanleandClaude 171e5dc9c0 Show target host in every step header
Each step now prints "--- [Label] on <host> ---". The host is threaded
through the remote self-bootstrap as argv[2] so it shows the real
server name when running over ssh.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-22 00:36:56 +07:00
2026-04-19 21:43:13 +07:00
2026-05-04 21:37:28 +07:00
2026-07-22 00:01:01 +07:00
2026-04-19 21:43:13 +07:00

~/bin — Custom CLI Utilities

Environment Variables

All scripts accept environment variables as the primary credential source. If set, the secret store (macOS Keychain / Linux libsecret) is skipped.

Variable Used by Description
GLM_API_KEY claude-glm, glm-quota Zhipu AI (GLM) API key
TK_AI_API_TOKEN claude-tk, ask TK AI API token

Precedence

  1. Environment variable (if set, used directly)
  2. Secret store (macOS Keychain via security, or Linux secret-tool)
  3. Error if neither source provides a value

Usage Examples

# Override for a single invocation
GLM_API_KEY=xxx claude-glm

# Export for the session
export TK_AI_API_TOKEN=xxx
ask "how to find large files"

Secret Store Setup

macOS (Keychain):

security add-generic-password -a "$USER" -s GLM_API_KEY -w "YOUR_KEY"
security add-generic-password -a "$USER" -s TK_AI_API_TOKEN -w "YOUR_KEY"

Linux / Arch (libsecret):

echo "YOUR_KEY" | secret-tool store --label "GLM API Key" service GLM_API_KEY
echo "YOUR_KEY" | secret-tool store --label "AI API Token" service TK_AI_API_TOKEN
S
Description
No description provided
Readme
127 KiB
Languages
Shell 100%