Skip to content
Back to skills

2606 Credential Usage Tracking Eadca345

ASecurity

When a model is attached to a [reusable credential](./ui_credentials.md), LiteLLM automatically injects the credential name as a tag on every request that uses that model. This means credential-level spend and usage are tracked with zero extra configuration.

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
securitygodocumentation

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 2606-credential_usage_tracking_eadca345 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 2606 Credential Usage Tracking Eadca345?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 2606 Credential Usage Tracking Eadca345
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-2606-credential-usage-tracking-eadca345/badge)](https://www.skillsdirectory.com/skills/tools-only-2606-credential-usage-tracking-eadca345)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
# Credential Usage Tracking

When a model is attached to a [reusable credential](./ui_credentials.md), LiteLLM automatically injects the credential name as a tag on every request that uses that model. This means credential-level spend and usage are tracked with zero extra configuration.

## How It Works

When you attach a model to a reusable credential via `litellm_credential_name`, each request routed through that model is tagged `Credential: <name>` (for example, `Credential: xAI`). This tag flows into `DailyTagSpend` and appears in the **Tag** view on the Usage page, where you can filter spend and usage by credential.

If a model has no credential attached, behavior is unchanged—no credential tag is added.

## Viewing Credential Usage

In the Admin UI, go to **Usage → Tag** and look for tags with the `Credential: ` prefix. These represent aggregated spend and token usage across all requests that used that credential.

## Related Documentation

- [Adding LLM Credentials](./ui_credentials.md) - How to create and attach reusable credentials to models
- [Tag Budgets](./tag_budgets.md) - Setting spend limits on tags
- [Tag Routing](./tag_routing.md) - Routing requests based on tags

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.