Search

PythonReactSEOPDF
OpenClaw

telegram-usage

Display session usage statistics (quota, session time, tokens, context)

c-drew0 source installs☆ 0 Repository stars

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

SkillHub CLI

skillhub install c-drew/telegram-usage

Inspect the source and compatibility requirements, then follow its installation steps.

Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.

View source ↗Guides

Skill instructions

Telegram Usage Stats

Display comprehensive session usage statistics by running the handler script.

What it does

Shows a quick status message with:

  • Quota Remaining: Percentage of API quota left with visual indicator
  • Reset Timer: Time remaining until quota resets

How to use this skill

When the user asks for usage statistics, quota info, or session data:

node /home/drew-server/clawd/skills/telegram-usage/handler.js

This will output formatted HTML suitable for Telegram's parseMode.

Output Format

The response is formatted as a clean Telegram message with:

  • Section headers (bold)
  • Clear percentages and time remaining
  • Visual indicators (emoji)
  • All in one message for quick reference

Example Output

📊 API Usage

🔋 Quota: 🟢 47%
⏱️ Resets in: 53m

Notes

  • Pulls real-time data from clawdbot models status
  • Updates on each invocation with current API quota values
  • Uses plain text formatting for Telegram compatibility

Source information

Source
github
Repository
openclaw/skills
Path
skills/c-drew/telegram-usage
Version
—
Commit
3f6741539430e707f168b93013a6279308cfe3ef
Classification source
rules
Status
active
Visibility
public

These signals come from indexed source analysis and may lag behind changes. Check the current source files.

README

Telegram Usage Command Skill

A custom Telegram command that displays comprehensive session usage statistics in a clean, formatted message.

Features

✅ Quota Remaining - Shows percentage of API quota left (provider-specific)
✅ Session Time - Displays time remaining before session resets
✅ Token Usage - Shows input and output tokens used in session
✅ Context Window - Displays current context window usage
✅ Visual Indicators - Color-coded emoji for quick status check
✅ Single Message - All info in one clean Telegram message

Installation

Option 1: Automatic (via ClawdHub)
clawdhub install telegram-usage
Option 2: Manual (Already in workspace)

The skill is located at /skills/telegram-usage in your Clawdbot workspace.

Setup

1. Enable the Skill

Ensure the skill is enabled in ~/.clawdbot/clawdbot.json:

{
  "skills": {
    "entries": {
      "telegram-usage": {
        "enabled": true
      }
    }
  }
}
2. Add Custom Command to Telegram (Optional)

Register the command in Telegram's bot menu via config:

{
  "channels": {
    "telegram": {
      "customCommands": [
        {
          "command": "usage",
          "description": "Show session usage stats"
        }
      ]
    }
  }
}
3. Restart Gateway
clawdbot gateway restart

Or if running manually:

clawdbot gateway

Usage

In Telegram

Send any of these:

/telegram_usage
/usage          (if custom command registered)
/skill telegram-usage
Output Example
📊 Session Usage Report

🔋 Quota Remaining
🟢 82% of API quota available
Provider: anthropic

⏱️ Session Time
3 hours 40 minutes remaining
(resets daily at 4:00 AM)

🎯 Tokens Used
4,370 total tokens
├─ Input: 2,847
└─ Output: 1,523

📦 Context Window
🟢 45% used
1,856 / 4,096 tokens

Model: Claude 3.5 Haiku

Configuration

No additional configuration required. The skill reads from Clawdbo...

Extracted content

SKILL.md
# Telegram Usage Stats

Display comprehensive session usage statistics by running the handler script.

## What it does

Shows a quick status message with:
- **Quota Remaining**: Percentage of API quota left with visual indicator
- **Reset Timer**: Time remaining until quota resets

## How to use this skill

When the user asks for usage statistics, quota info, or session data:

```bash
node /home/drew-server/clawd/skills/telegram-usage/handler.js
```

This will output formatted HTML suitable for Telegram's parseMode.

## Output Format

The response is formatted as a clean Telegram message with:
- Section headers (bold)
- Clear percentages and time remaining
- Visual indicators (emoji)
- All in one message for quick reference

## Example Output

```
📊 API Usage

🔋 Quota: 🟢 47%
⏱️ Resets in: 53m
```

## Notes

- Pulls real-time data from `clawdbot models status`
- Updates on each invocation with current API quota values
- Uses plain text formatting for Telegram compatibility
README
# Telegram Usage Command Skill

A custom Telegram command that displays comprehensive session usage statistics in a clean, formatted message.

## Features

✅ **Quota Remaining** - Shows percentage of API quota left (provider-specific)  
✅ **Session Time** - Displays time remaining before session resets  
✅ **Token Usage** - Shows input and output tokens used in session  
✅ **Context Window** - Displays current context window usage  
✅ **Visual Indicators** - Color-coded emoji for quick status check  
✅ **Single Message** - All info in one clean Telegram message  

## Installation

### Option 1: Automatic (via ClawdHub)

```bash
clawdhub install telegram-usage
```

### Option 2: Manual (Already in workspace)

The skill is located at `/skills/telegram-usage` in your Clawdbot workspace.

## Setup

### 1. Enable the Skill

Ensure the skill is enabled in `~/.clawdbot/clawdbot.json`:

```json
{
  "skills": {
    "entries": {
      "telegram-usage": {
        "enabled": true
      }
    }
  }
}
```

### 2. Add Custom Command to Telegram (Optional)

Register the command in Telegram's bot menu via config:

```json
{
  "channels": {
    "telegram": {
      "customCommands": [
        {
          "command": "usage",
          "description": "Show session usage stats"
        }
      ]
    }
  }
}
```

### 3. Restart Gateway

```bash
clawdbot gateway restart
```

Or if running manually:

```bash
clawdbot gateway
```

## Usage

### In Telegram

Send any of these:

```
/telegram_usage
/usage          (if custom command registered)
/skill telegram-usage
```

### Output Example

```
📊 Session Usage Report

🔋 Quota Remaining
🟢 82% of API quota available
Provider: anthropic

⏱️ Session Time
3 hours 40 minutes remaining
(resets daily at 4:00 AM)

🎯 Tokens Used
4,370 total tokens
├─ Input: 2,847
└─ Output: 1,523

📦 Context Window
🟢 45% used
1,856 / 4,096 tokens

Model: Claude 3.5 Haiku
```

## Configuration

No additional configuration required. The skill reads from Clawdbo...

Related skills

OpenClaw

laborany

laborany

基于 Claude Code 的桌面 AI 工作力平台 — 支持飞书/QQ 远程调度、技能创建、定时任务。OpenClaw 的桌面实现,零代码养好你的 AI 🦞 Desktop AI workforce platform built on Claude Code. Feishu/QQ bot integration, skill c...

OpenClaw

bambu-studio-ai

heyixuan2

Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pi...