Skip to content

Feature: Session-scoped bearer token for frontend SSE streaming #990

@PhilippeLaval

Description

@PhilippeLaval

When building a web app on Managed Agents, the natural pattern is:

  1. Backend creates session (with API key, vault, agent)
  2. Backend returns a scoped token to the frontend
  3. Frontend streams events directly from Anthropic (no proxy needed)

Currently every request requires the full API key, forcing all traffic through a backend proxy — adding latency, infra cost, and complexity for what is essentially a passthrough.

A short-lived, session-scoped token (similar to S3 presigned URLs or Stripe ephemeral keys) would solve this cleanly.
-+-

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions