BriefsToolAvailable now1 min read

Vercel adds a Sessions view to AI Gateway logs showing session affinity

Vercel's AI Gateway logs now group AI requests into sessions and show cache hit rate, cost, models and providers for each one.

Vercel adds a Sessions view to AI Gateway logs showing session affinity — image from Vercel
Image: Vercel

Summary

Vercel's AI Gateway logs now include a Sessions view that groups requests into sessions and shows how session affinity routed each one. Each session shows its cost, models, providers and cache hit rate, and you can open it to see every turn. Session affinity runs by default on text and chat requests.

What changed

  • New Sessions view in AI Gateway logs groups requests into sessions.
  • Each row shows the client, such as Claude Code, Codex or Cursor, plus cost, models, providers and cached input.
  • Opening a session shows cache hit rate, duration, and a path listing each turn with its model and timing.
  • Sessions can be filtered by turns, client, model, provider, authentication or cost.
  • You can set your own sessions with sessionId in providerOptions.gateway or an x-session-id header.

Availability

Available now

“Session affinity runs by default on text and chat requests.”

Founder takeaway

If you route coding agents or chat apps through AI Gateway, check the Sessions view to see cache hit rates and cost per session. Send a consistent session id on every request in a conversation so requests group the way you want.

Source

VercelAI Gateway logs now show session affinity - Vercel

Announced Checked

Researched and drafted with AI from the official sources above, then checked automatically before publishing. Spotted a mistake? Tell us.

SharePost on XLinkedIn

Related

More briefs

All briefs
  1. Vercel adds sandbox plugin support for running Paseo AI agents — image from Vercel

    ToolAvailable now

    Vercel adds sandbox plugin support for running Paseo AI agents

    Paseo now supports running AI agents in the cloud using the Vercel Sandbox plugin.

    Vercel1 min read

  2. Vercel introduces Virtual Models on AI Gateway for AI apps — image from Vercel

    ToolAvailable now

    Vercel introduces Virtual Models on AI Gateway for AI apps

    Vercel released Virtual Models on AI Gateway to let developers manage model strings and fallbacks centrally.

    Vercel1 min read

  3. Vercel CLI allows AI agents to enable web analytics and observability — image from Vercel

    ToolAvailable now

    Vercel CLI allows AI agents to enable web analytics and observability

    AI agents can now enable Web Analytics and Observability Plus for projects without requiring an interactive terminal.

    Vercel1 min read

One email, every Monday

Briefs are published here through the day. Monday Heist is the email: one useful AI workflow, the files to use it, and the catch. The first issue is being prepared; subscribers get it first. Free, and you can leave in one click.

One email. Every Monday.