跳到正文
cccskills
免费在 GitHub 公开中文介绍

omni-usage-logs

按提供商、模型、时间范围、状态和费用筛选AI调用日志,汇总用量并导出日志。还可设置预算和令牌上限,查看响应时间及提示词缓存情况。

原文查看原文说明

Access detailed call logs and usage analytics. Filter by provider, model, time range, status, and cost. Export logs and aggregate token usage across all connections.

AI 评分70分/ 100查看安装方法

适用场景

  • 筛选调用日志以排查失败请求
  • 汇总所有连接的令牌用量和费用
  • 设置预算和令牌上限
  • 按提供商和模型比较响应时间
  • 查看提示词缓存使用情况

中文介绍

功能

查看AI调用历史和使用情况。可按提供商、模型、时间范围、状态和费用筛选日志,查看单次调用的详情或各个连接的用量。支持导出日志、汇总所有连接的令牌用量、设置预算,以及为各个API密钥设置令牌上限。还可获取按模型和提供商划分的响应时间,以及提示词缓存的统计信息;提示词缓存用于重复利用相同的输入。

适用场景

适合查看费用和用量的明细,或追查失败的请求。也可用于日常运维,例如比较不同模型的响应速度,查看缓存写入和读取的变化趋势。

使用示例

  • “筛选指定时间范围内的调用,按模型汇总用量。”
  • “查看当前的预算上限和消耗情况。”
  • “按提供商和模型比较响应时间。”

注意事项

API请求需要有效的Bearer令牌或会话Cookie。缓存统计仅涵盖已记录缓存信息的成功调用。如果成功调用数量未达到指定的最低数量,响应时间统计会改用全部样本,包括失败的调用。

本介绍由 AI(OpenAI Codex)根据公开的 SKILL.md 撰写。准确的规格请查看下方原文。

客观评估

AI 仅根据 SKILL.md 的内容,从 4 个方面进行了评估。星标数和热度不计入评估。

指令清晰度能否看出何时使用、做什么
A良好概述明确说明了日志筛选和用量汇总功能。
步骤具体性步骤、输入输出和示例是否具体
B部分不足各接口均有curl示例,但预算设置的请求体为空,未说明必填字段。
安全性发送数据、删除文件、执行命令等是否有说明
B部分不足包含修改预算和删除令牌上限的接口,但未说明执行前的确认步骤。
安装难易度所需工具和 API 密钥是否少且有说明
B部分不足说明了认证令牌的获取接口,但未提供本地API的启动步骤。

总分按每项 A=25 分、B=15 分、C=5 分相加。 由 AI(OpenAI Codex)于 2026年10月21日 评估。仅供参考,安装前请同时查看原文。

如果您认为评估有误,请申请复核

请写明哪一项有误以及原因。无需登录。我们会对照 SKILL.md 重新评估,并在此处更新结果。

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

包含的文件(1)

  • SKILL.md7.9 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

<!-- generated by src/lib/agentSkills/generator.ts; manual edits will be overwritten -->

Overview

Access detailed call logs and usage analytics. Filter by provider, model, time range, status, and cost. Export logs and aggregate token usage across all connections.

Authentication

All requests require a valid Bearer token or session cookie. Obtain a token via POST /api/auth/login or configure REQUIRE_API_KEY=false for local development.

Endpoints

GET /api/usage/analytics

Get usage analytics

curl http://localhost:20128/api/usage/analytics \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN"

GET /api/usage/call-logs

Get call logs

curl http://localhost:20128/api/usage/call-logs \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN"

GET /api/usage/call-logs/filters

Get call log filter options

Distinct providers, models, accounts and API keys seen in call logs, plus every configured API key (id and name only). Feeds the Logs tab filter dropdowns.

curl http://localhost:20128/api/usage/call-logs/filters \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN"

GET /api/usage/call-logs/{id}

Get a specific call log

curl http://localhost:20128/api/usage/call-logs/{id} \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN"

GET /api/usage/{connectionId}

Get usage for a specific connection

curl http://localhost:20128/api/usage/{connectionId} \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN"

GET /api/usage/history

Get usage history

curl http://localhost:20128/api/usage/history \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN"

GET /api/usage/logs

Get usage logs

curl http://localhost:20128/api/usage/logs \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN"

GET /api/usage/proxy-logs

Get proxy logs

curl http://localhost:20128/api/usage/proxy-logs \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN"

GET /api/usage/request-logs

Get request logs

curl http://localhost:20128/api/usage/request-logs \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN"

GET /api/usage/budget

Get usage budget status

Returns current budget limits and consumption.

curl http://localhost:20128/api/usage/budget \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN"

POST /api/usage/budget

Configure usage budget

Set or update budget limits for usage tracking.

curl -X POST http://localhost:20128/api/usage/budget \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

GET /api/usage/cache-health

Get prompt-cache health summary

Summarizes the write/read cache ratio from call_logs for a time window: distribution (p50/p90/p99/max of cache-write tokens), warm/cold/rewrite/uncached call counts, the "heavy write" outlier share (10x the window median, floored at 1024 tokens — Anthropic's cache-creation minimum), and a per-model breakdown. Only successful (status = 200) calls with a non-null cache column are counted.

curl http://localhost:20128/api/usage/cache-health \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN"

GET /api/usage/model-latency-stats

Get per-model/provider latency statistics

Aggregates usage_history rows into per-(provider, model) latency stats (avg/p50/p95/p99, std-dev, TTFT, tokens/sec) over a rolling window. Falls back from successful-only to all-sample rows when the successful count is below minSamples.

curl http://localhost:20128/api/usage/model-latency-stats \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN"

GET /api/usage/budget/bulk

GET usage › budget › bulk

curl http://localhost:20128/api/usage/budget/bulk \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN"

GET /api/usage/codex-reset-credit

GET usage › codex reset credit

curl http://localhost:20128/api/usage/codex-reset-credit \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN"

POST /api/usage/codex-reset-credit

POST usage › codex reset credit

curl -X POST http://localhost:20128/api/usage/codex-reset-credit \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

GET /api/usage/combo-forecast

GET usage › combo forecast

curl http://localhost:20128/api/usage/combo-forecast \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN"

GET /api/usage/combo-health

GET usage › combo health

curl http://localhost:20128/api/usage/combo-health \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN"

GET /api/usage/combo-health-autopilot

GET usage › combo health autopilot

curl http://localhost:20128/api/usage/combo-health-autopilot \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN"

GET /api/usage/combo-health-dashboard

GET usage › combo health dashboard

curl http://localhost:20128/api/usage/combo-health-dashboard \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN"

GET /api/usage/combo-scoring-inspector

GET usage › combo scoring inspector

curl http://localhost:20128/api/usage/combo-scoring-inspector \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN"

GET /api/usage/combo-trace/{id}

GET usage › combo trace › <id>

curl http://localhost:20128/api/usage/combo-trace/{id} \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN"

GET /api/usage/om-usage

GET usage › om usage

curl http://localhost:20128/api/usage/om-usage \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN"

GET /api/usage/provider-limits

GET usage › provider limits

curl http://localhost:20128/api/usage/provider-limits \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN"

POST /api/usage/provider-limits

POST usage › provider limits

curl -X POST http://localhost:20128/api/usage/provider-limits \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

GET /api/usage/provider-window-costs

GET usage › provider window costs

curl http://localhost:20128/api/usage/provider-window-costs \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN"

GET /api/usage/quota

GET usage › quota

curl http://localhost:20128/api/usage/quota \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN"

GET /api/usage/requests-by-provider-date

GET usage › requests by provider date

curl http://localhost:20128/api/usage/requests-by-provider-date \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN"

GET /api/usage/route-explain/{id}

GET usage › route explain › <id>

curl http://localhost:20128/api/usage/route-explain/{id} \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN"

GET /api/usage/token-limits

GET usage › token limits

curl http://localhost:20128/api/usage/token-limits \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN"

POST /api/usage/token-limits

POST usage › token limits

Save a per-key token limit. A key holds one limit per scope and reset interval, so daily, weekly and monthly limits for the same scope coexist. Without id, a new limit is added (or the key's limit for the same scope and interval is updated); with id, that limit is updated.

curl -X POST http://localhost:20128/api/usage/token-limits \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

DELETE /api/usage/token-limits

DELETE usage › token limits

curl -X DELETE http://localhost:20128/api/usage/token-limits \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN"

GET /api/usage/utilization

GET usage › utilization

curl http://localhost:20128/api/usage/utilization \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN"

Payloads

See the full OpenAPI specification at GET /api/openapi/spec or docs/openapi.yaml for detailed request/response schemas.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

cli-a2a

免费有简介AI 评分 90分

通过命令行向OmniRoute的A2A服务器发送任务,查看执行历史和日志,监控或取消任务,并交互测试智能体之间的通信。

  • 检查服务器状态和可用技能
  • 使用JSON输入调用技能
  • 查看任务执行历史和日志
diegosouzapw/OmniRoute7.9万2026年10月20日 更新

cli-backup-sync

免费有简介AI 评分 70分

通过命令行备份和恢复OmniRoute数据,管理定期保存、加密与云端同步,并在同步前检查差异,执行数据导出和导入。

  • 恢复前创建备份
  • 设置定期备份
  • 云端同步前检查差异
diegosouzapw/OmniRoute7.9万2026年10月20日 更新

Submit groups of AI requests as batch jobs with the OmniRoute command line. Manage input files, monitor or cancel jobs, save results and errors, and incorporate batch processing into automated build and deployment workflows.

中文简介正在准备中。当前显示英语简介。

  • Submitting AI requests from a JSONL file
  • Monitoring batch jobs and waiting for completion
  • Saving batch results and error details
diegosouzapw/OmniRoute7.9万2026年10月20日 更新

cli-chat

免费有简介AI 评分 90分

从终端向LLM提问,逐步显示回答或进行交互对话。支持从文件或标准输入读取提示词、选择模型和指定系统提示词。

  • 在终端向AI提问
  • 使用文件内容作为输入
  • 逐步显示回答并保存到文件
diegosouzapw/OmniRoute7.9万2026年10月20日 更新

cli-compression

免费有简介AI 评分 80分

通过命令行管理缩短提示词的压缩设置,调整RTK过滤器、Caveman规则及多种方式的组合,并用实际输入预览结果。

  • 用实际输入查看压缩结果
  • 调整RTK和Caveman规则
  • 比较多种压缩方式
diegosouzapw/OmniRoute7.9万2026年10月20日 更新

cli-contexts

免费有简介AI 评分 80分

通过命令行调整传给AI的信息处理设置和RTK过滤器,切换OmniRoute连接,以JSON导入导出配置,并查看或使会话失效。

  • 调整令牌预算和过滤器
  • 切换已保存的服务器连接
  • 以JSON导入导出连接配置
diegosouzapw/OmniRoute7.9万2026年10月20日 更新

查看 diegosouzapw 的全部技能

报告此技能的问题