---
id: 20261018-T0-01
title: "Vercel AI Gateway日志新增会话视图，可追踪Claude Code、Codex、Cursor会话成本与缓存命中"
title_en: "Vercel AI Gateway Adds Session View Tracking Costs and Cache Hits for Claude Code, Codex, Cursor"
url: https://ai.daily.yangsir.net/daily/20261018-T0-01
issue_date: 2026-10-18
publish_date: 2026-10-17T20:03:00.000Z
category: release
source_name: "Vercel Blog"
source_url: https://vercel.com/changelog/ai-gateway-logs-now-show-session-affinity
---

# Vercel AI Gateway日志新增会话视图，可追踪Claude Code、Codex、Cursor会话成本与缓存命中

Vercel为AI Gateway日志加入Sessions视图，把请求按会话分组，并展示会话亲和性如何路由每个请求。每行记录运行该会话的编码代理或应用（如Claude Code、Codex、Cursor），同时列出成本、所用模型、提供商以及输入中被缓存的比例。对同时接入多个模型和代理的团队来说，这提供了按会话粒度的成本与缓存效率可见性，便于排查路由问题和优化调用开销。

## English Version

**Vercel AI Gateway Adds Session View Tracking Costs and Cache Hits for Claude Code, Codex, Cursor**

Vercel's AI Gateway logs now include a Sessions view that groups requests into sessions and shows how session affinity routed each one. Each row lists the coding agent or app that ran the session, such as Claude Code, Codex, or Cursor, along with its cost, models, providers, and how much of its input was cached. For teams routing multiple models and agents through the gateway, this gives per-session visibility into cost and cache efficiency, making it easier to debug routing behavior and reduce inference spend.

---

**来源**：[Vercel Blog](https://vercel.com/changelog/ai-gateway-logs-now-show-session-affinity)

**详情页**：https://ai.daily.yangsir.net/daily/20261018-T0-01

---

*智语观潮 · Daily — https://ai.daily.yangsir.net/llms.txt*