Feedback

jwt-decode-token-inspector-cli

@openclaw Claim

Basic information

Repository
openclaw
Skill
jwt-decode-token-inspector-cli

About jwt-decode-token-inspector-cli

Decode and inspect JWT tokens from command line. Check expiration, extract claims, debug auth. No more jwt.io tabs. Free CLI tool.

jwt-decode-token-inspector-cli is an agent skill listed in the AddMCP.net directory, published by openclaw. Source code is hosted on github.com.

Overview

What is jwt-decode-token-inspector-cli?


name: JWT Decode - Token Inspector CLI description: Decode and inspect JWT tokens from command line. Check expiration, extract claims, debug auth. No more jwt.io tabs. Free CLI tool.


JWT Decode

Decode JWTs from the terminal. See what's inside, check if expired.

What it does

  • Colored, readable output
  • Automatic Bearer prefix handling
  • Human-readable expiration times
  • Timestamp conversion
  • Script-friendly exit codes
  • JSON output mode

Installation

npm install -g @lxgicstudios/jwt-decode

Commands

Decode Token

npx @lxgicstudios/jwt-decode eyJhbGciOiJIUzI1NiIs...

# Works with Bearer prefix
npx @lxgicstudios/jwt-decode "Bearer eyJhbGci..."

From Environment Variable

echo $AUTH_TOKEN | npx @lxgicstudios/jwt-decode

From File

npx @lxgicstudios/jwt-decode -f token.txt

Check if Expired

npx @lxgicstudios/jwt-decode --check $TOKEN && echo "Valid" || echo "Expired"

Extract Specific Claim

npx @lxgicstudios/jwt-decode -c sub $TOKEN
npx @lxgicstudios/jwt-decode -c email $TOKEN

Example Output

Header
──────
  alg: "HS256"
  typ: "JWT"

Payload
───────
  sub: "1234567890"
  name: "John Doe"
  email: "[email protected]"
  iat: 1706547200 (2024-01-29T16:00:00.000Z)
  exp: 1706633600 (2024-01-30T16:00:00.000Z)

Status
──────
  Valid - expires in 23 hours

Options

| Option | Description | |--------|-------------| | -f, --file | Read from file | | -c, --claim | Extract specific claim | | --header | Show only header | | --payload | Show only payload | | --json | JSON output | | --check | Exit 1 if expired |

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬