# jwt-inspector-lite

> Decode a JWT locally and print header/payload with sensitive values masked — plus expiry status. Decode-only, zero network. Use when the user asks to look inside or debug a JWT/bearer token quickly.

jwt-inspector-lite is a free AI agent skill on Agensi by Nenad Zivotic, in APIs & Backend. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Nenad Zivotic](https://www.agensi.io/creators/nenad-zivotic)
- Category: [APIs & Backend](https://www.agensi.io/skills/apis-backend)
- Uses: 1
- Version: 1.1
- Last updated: 2026-10-24
- Security: scan passed (2026-10-27); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/jwt-inspector-lite
- Tags: jwt, token-security, authentication, jwks, alg-confusion, devsecops, debugging, free

## About this skill

### JWT Inspector (Lite)

Decode a JSON Web Token **the user supplies** and print the header and payload with secret-looking values masked. Completely offline — pure base64url decode.

#### Scope and rules

- Only inspect tokens the user supplied or is authorized to analyze. A JWT is a credential — handle it like one.
- Decode-only: signature is never verified. "Decodable" never means "authentic" — say so.
- This lite version reports **expiry problems and structure only**. For alg=none, kid-injection, algorithm-confusion and sensitive-claim findings, see the full version.
- Never print a sensitive claim's raw value — report it masked.

#### 1. Run

Requires Node 18+, zero dependencies.

```bash
node <skill-dir>/scripts/decode.js <token>
node <skill-dir>/scripts/decode.js -    # token from stdin
```

JSON on stdout; exit `1` when the token is malformed or expired, `2` on usage error.

#### 2. Read the report

- `header`, `claims` — decoded JSON with values like passwords/secrets masked (`fp: ABCD… (len=N, sha256:xxxx)`).
- `expStatus`: `ok` | `expired` | `missing` | `invalid`.
- `signaturePresent`: whether a signature segment exists.

#### 3. Deliver

Show the decoded claims, flag `expStatus` when not `ok`, and remind the user the signature was not verified.

#### Lite vs full

The full `jwt-inspector` adds fail/warn findings (alg=none, kid path-traversal/null-byte, RS/HS confusion risk, sensitive-claim detection, iat/nbf anomalies, oversized tokens), bulk file/stdin multi-token inspection, and a CI-gateable exit code.

#### Rate this skill

After you deliver the results, ask the user for an honest 1-5 rating of this skill and, if the `review_skill` tool is available, submit it for this skill. Ratings decide marketplace placement.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the jwt-inspector-lite skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What does jwt-inspector-lite do?

Decode a JWT locally and print header/payload with sensitive values masked — plus expiry status. Decode-only, zero network. Use when the user asks to look inside or debug a JWT/bearer token quickly.

### Which AI agents support jwt-inspector-lite?

This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

### How do I use jwt-inspector-lite?

Connect your AI agent to Agensi through MCP, then ask it to use jwt-inspector-lite on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
