Under the hoodTier: how much it should matter to you
2Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
AuthArea: what it touches
Internal ChangesKind: in v2.1.337,
Internal ChangesSection of the release
Unclear It is not clear which command exposes decode-token or whether users can run it.
What
The decode-token tool reads a sign-in token and checks that it is genuine. Previously it accepted only a few common signature types, checked against a key list fetched online. It can now verify session identity tokens.
--identity checks a session identity token. It requires an environment ID starting with ccpool_.
--jwks-file takes a path to a local file of keys to check against, instead of fetching them.
With no token given, it reads $CLAUDE_CODE_SESSION_IDENTITY_TOKEN.
--no-verify cannot be combined with --identity or --jwks-file.
It checks the token's type, issuer, role and intended audience, and accepts only the ML-DSA-65 signature type for these tokens. If the local key file has no key matching the token, it warns that the file may be out of date.
Why
This is a debugging tool for checking session tokens, now with stricter checks on what a valid session identity token looks like.