get_killcord
Get the killcord script: a dead-man's switch for Anthropic API spend. Self-hosted, dependency-free Node script that polls Anthropic's real Admin Usage & Cost API and deactivates the API key the instant spend crosses a limit -- for stopping a runaway agent loop, not just alerting on it. Returns the full script source plus a ready-to-run setup snippet, optionally pre-filled with the workspace/limit/keys you provide, so it can be written straight into the project being worked on.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | No | Comma-separated Anthropic API key IDs to deactivate when tripped, e.g. apikey_... | |
| limitUsd | No | Spend threshold in USD that trips the kill switch | |
| webhookUrl | No | Optional webhook URL to notify on trip/reset | |
| workspaceId | No | Anthropic Workspace ID to watch, e.g. wrkspc_... |