claude codeがサードパーティだと怒られる

400エラー

API Error: 400 
{
  "type": "error",
  "error": {
    "type": "invalid_request_error",
    "message": "Third-party apps now draw from your extra usage, not your plan limits. We've added a $20 credit to get you started. Claim it at claude.ai/settings/usage and keep going."
  },
  "request_id": "req_hogehogehogehoge"
}

解決

npm uninstall -g @anthropic-ai/claude-code
curl -fsSL https://claude.ai/install.sh | bash

npmでinstallしていたのをcurl経由に変えたら治った。夕方ごろには529も出ていたし、sourcemapの漏洩の件や、openclawなどから大量のリクエストが来ている?などがあって対応注なのかもしれない。

ネイティブinstallコマンド

上記のmac用以外もある

[https://code.claude.com/docs/en/quickstart:embed:cite]