From f10468a8fb7e4783058c9da9451083e0e07516a6 Mon Sep 17 00:00:00 2001 From: graydeon Date: Wed, 29 Apr 2026 13:05:02 -0500 Subject: [PATCH] Fix metadata 400 error (rename account_uuid to user_id) --- anthropic_billing_bypass.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/anthropic_billing_bypass.py b/anthropic_billing_bypass.py index cdfc3a8..70c4d4f 100644 --- a/anthropic_billing_bypass.py +++ b/anthropic_billing_bypass.py @@ -54,8 +54,8 @@ def _get_account_metadata() -> Dict[str, Any]: config = _read_claude_config() oauth = config.get("oauthAccount", {}) metadata = {} - if "accountUuid" in oauth: metadata["account_uuid"] = oauth["accountUuid"] - if "organizationUuid" in oauth: metadata["organization_uuid"] = oauth["organizationUuid"] + if "accountUuid" in oauth: + metadata["user_id"] = oauth["accountUuid"] return metadata def _extract_first_user_message_text(messages: List[Dict[str, Any]]) -> str: