Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

agentpulse

bởi sru4ka

AI & LLMs
373Lượt tải do clawskills.sh công bố
1Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

Track LLM API costs, tokens, latency, and errors for your AI agent.

Mô tả

Kỹ năng này làm gì

AgentPulse tracks LLM API calls made by your agent, recording costs, token counts, latency, and errors. Data is sent to a real-time dashboard at agentpulse.dev. Cost is calculated server-side against an up-to-date pricing table covering 50+ models across Anthropic, OpenAI, Google, MiniMax, DeepSeek, and Mistral.

Cost is calculated server-side using a maintained pricing table, so you don't need to track per-model pricing yourself or write custom logging code.

Khi nào nên dùng

  • Checking daily or weekly API spend across models
  • Identifying which model is driving the most cost
  • Reviewing error rates and failed API calls
  • Monitoring average response latency over time
  • Setting alerts when daily spend exceeds a budget

Quy trình ví dụ

ĐẦU VÀO

User asks: How much have I spent this week?

AGENT
  1. 1

    Call GET https://agentpulse.dev/api/stats/overview with the API key

  2. 2

    Parse the JSON response for daily_stats and total_cost fields

  3. 3

    Sum costs from daily_stats entries covering the past 7 days

  4. 4

    Present the weekly total and a per-day breakdown to the user

ĐẦU RA

This week you spent $4.32 across 847 API calls. Monday was your heaviest day at $1.10, mostly from claude-sonnet-4-5.

Yêu cầu

  • AgentPulse account (free signup at agentpulse.dev)
  • AGENTPULSE_API_KEY environment variable

Cài đặt

clawhub install sru4ka/agentpulse

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết