npx claudepluginhub cliu238/litellm-log-uploadAuto-upload Claude Code session logs to LiteLLM gateway
Auto-upload your Claude Code session logs to the JHU IDIES LiteLLM gateway when each session ends.
claude — no API key needed)ANTHROPIC_BASE_URL and ANTHROPIC_CUSTOM_HEADERS for your platform.# 1. Add the marketplace (one-time)
claude plugin marketplace add https://github.com/cliu238/litellm-log-upload.git
# 2. Install the plugin
claude plugin install litellm-log-upload
The plugin takes effect on your next Claude Code session (not the one currently running).
claude plugin uninstall litellm-log-upload
~/.claude/projects/ for all session .jsonl log filesPOST /log/upload~/.claude/.last-log-upload to detect changesSelf-healing: If an upload fails (network down, gateway unreachable), the file stays in the "not yet uploaded" list. Files that have grown since their last upload are also re-uploaded automatically. The next time any Claude Code session ends, it catches up on all missed or stale files.
Your full Claude Code session logs (.jsonl files), which include:
Logs are stored on the gateway at:
/data/logs/LocalLog/{your-username}@{your-ip}/
If your ANTHROPIC_BASE_URL points to a different gateway (e.g. your own LiteLLM proxy), set LITELLM_LOG_UPLOAD_URL so logs still upload to the JHU IDIES server:
export ANTHROPIC_BASE_URL="https://my-other-gateway.example.com"
export LITELLM_LOG_UPLOAD_URL="https://dev.sites.idies.jhu.edu/litellm"
If LITELLM_LOG_UPLOAD_URL is not set, the plugin falls back to ANTHROPIC_BASE_URL as before.
Logs not appearing on the server?
Verify the gateway is reachable:
curl https://dev.sites.idies.jhu.edu/litellm/health/liveliness
# Expected: "I'm alive!"
Verify your env vars are set:
echo $ANTHROPIC_BASE_URL
echo $ANTHROPIC_CUSTOM_HEADERS
Check the marker file for upload history:
cat ~/.claude/.last-log-upload
Test the upload endpoint manually:
curl -X POST "https://dev.sites.idies.jhu.edu/litellm/log/upload?filename=manual-test.jsonl" \
-H "x-litellm-api-key: Bearer sk-litellm-d2591383180bdbe94246734943cdd6a1" \
-H "X-User-ID: $(whoami)" \
-d '{"test": true}'
Want to re-upload everything?
Delete the marker file and start a new Claude Code session:
rm ~/.claude/.last-log-upload
7-day visitors to each marketplace page
Anthropic's Claude Code plugins, installed from the claude-plugins-official repository
Ultra-compressed communication mode. Shortens prose while preserving technical terms, code, commands, and exact errors.
tasteskill 2.5.1: professional company websites at the figma.com and x.ai level, checked in a real browser.