Home / Commands / weave-os/router

router-session

Print the session id that correlates this session in router telemetry and logs.

commandLicense: Apache-2.0 Source: weave-os/router

Install

Copy this folder into your Claude Code project (needs Node.js):

curl -fsSL --create-dirs -o .claude/commands/router-session.md https://raw.githubusercontent.com/weave-os/router/HEAD/install/commands/router-session.md

Or install it for every project:

curl -fsSL --create-dirs -o ~/.claude/commands/router-session.md https://raw.githubusercontent.com/weave-os/router/HEAD/install/commands/router-session.md

File content

Made by its original authors and shared under Apache-2.0. We show it unchanged, with credit and a link to the source. Source ↗

---
description: Print the session id that correlates this session in router telemetry and logs.
allowed-tools: Bash(echo:*)
---

Print the session id used by the Weave Router to correlate this session's
telemetry, logs, and feedback submissions. Also works as a transcript
filename key for manual lookups in the router dashboard.

The router carries this id as `X-Claude-Code-Session-Id` on every request and
stores it in `model_router_users.SessionID` for analytics joins.

Run `echo "$CLAUDE_CODE_SESSION_ID"`.

Then tell me the session id in one line, formatted as inline code so I can copy it.