scripts/test-auth.ts

Description

Minimal Bun-runnable verification script that instantiates the Anthropic SDK with the configured ANTHROPIC_API_KEY and sends a tiny messages.create() call (50 tokens, 'Say hello and nothing else'). Prints a success marker on 2xx or a clear error and exit-1 on failure. Pattern for isolating auth config errors from the rest of the CLI during rebuild.

Key claims

Relations

Sources

src-20260420-17813fb5232c