Access control and workspace filters
These team/key tracing controls and Org, Team, Project and Key selectors are part of the upcoming Gateway and Lens updates. The screenshots show a preview build.
Connect Lens to your LiteLLM gateway and the permissions you already set up there apply in Lens. You do not create Lens users, map teams or define roles a second time. Your Gateway account determines which traces you can read, and that holds for every request that runs through the gateway.
Use the permissions you already have
An administrator connects Lens to LiteLLM once, with four environment variables on the gateway and two on Lens. From then on Lens asks the gateway who each person is and what they can see.
| Already set up in LiteLLM | What it does in Lens |
|---|---|
| Users and single sign-on (SSO) | People sign in to Lens with their LiteLLM login. Lens has no separate user list or identity provider setup. |
| Proxy administrator and administrator viewer roles | These roles read every trace. |
| Teams and team administrators | Traces belong to the team of the key that made the request. Team administrators read their team's traces. |
| Team member permissions | Members read their team's traces when the team grants /spend/logs, the same permission that shares its spend logs. |
| Virtual keys | Each trace records the key, user and team that sent it, so people see their own traffic without extra setup. |
Changes on the gateway carry over too. Add someone to a team or change a member permission in LiteLLM, and it applies in Lens the next time that person opens Lens or signs in. There is no matching change to make in Lens.
Sign in with your LiteLLM login
Select Lens in the LiteLLM dashboard sidebar to open Lens with your current gateway session. On the Lens address itself, select Log in with LiteLLM on the sign-in page. The gateway signs you in, through SSO when you use it, and returns you to Lens with your gateway permissions. Offer Log in with LiteLLM covers the one extra setting for the Lens sign-in page.

Team members do not enter separate Lens integration credentials for each key. Workspace filters narrow the traces you can already read. Selecting another organization, team, project or key does not grant access.
Lens also runs without a gateway. Standalone Lens has one admin token and no per-team permissions, so connect a gateway when different people need different access.
Org and Project menus need configured entities and permission to list them. Organization management follows the Gateway's Enterprise licensing. Those management permissions do not grant trace access.
Understand the hierarchy
Common traffic grouping:
A key can belong to a team without a project. A personal key can also have no team. For organization filters, an explicit organization on a key takes precedence; otherwise Lens uses the key's team's organization. These assignments group traffic, but do not define a separate permission grant.
Who can read traces
Lens uses the Gateway's existing trace permissions. Nothing in this table is configured in Lens:
| Reader | Visible traces |
|---|---|
| Proxy administrator or administrator viewer | All traces. |
| Team administrator | Their own user-owned traces, plus traces from teams they administer or have permission to view. |
| Other users, including team members | Their own user-owned traces, plus traces from teams that share logs with them. |
| Organization administrator or project owner | The same user/team rules. Organization or project ownership alone does not grant all related traces. |
| Non-admin key without a user identity | No trace reads; the request returns 403. |
To share a team's traces, open Teams, select the team, then select Member Permissions. Grant the /spend/logs permission. A team administrator can read that team's traces without this member grant. See Share a team's traces for the API and default-team configuration.
Dedicated Lens tracing keys upload telemetry and check their own delivery receipts; they do not read traces. See Upload traces.
Enable Lens for a team and key
Set the team default
Open Teams, select your team, and open its Lens tab. Set the switch to On to enable tracing for keys that inherit the team setting. Default for team keys identifies this control.

Check the key
Open Virtual Keys, select the key, and open Lens. On enables tracing for that key. Use team setting removes a custom key override and restores inheritance.

A key's explicit On or Off setting takes precedence over its team. Without a key override, the team setting applies. If neither sets a value, tracing defaults to On when Lens is configured. This controls future collection: it does not grant read access or delete traces already stored. After enabling Lens, verify trace delivery.
Segment traffic in Lens
Select Open Lens from the key's Lens tab. Lens opens with that key selected and its team when assigned. The left sidebar contains Lens pages; the hierarchy controls sit above the content.

| Select | Inspect |
|---|---|
| Organization | Traffic from keys assigned to that organization, including inherited team assignments. |
| Team | Traffic recorded for that team. |
| Project | Traffic from keys currently assigned to that project. |
| Key | Traffic recorded with that specific key. |
For example, select your organization, choose a team, then select a project to compare that application's traffic. Select a key to isolate one integration or service. Choosing All keys keeps the parent filters. Changing a parent clears its descendants and any open trace; selecting a key fills in its parents. No project means that key has no project assignment.
Selected filters combine with AND and remain within your authorized rows. A mismatched combination returns no results. Trace details, spans, conversation history, pagination, copied trace queries and shared links retain the selection. Trace SQL uses the same scope; see Query traces with SQL.
These selectors filter trace views and trace SQL. They do not automatically filter Profiles, Datasets or Evals, or grant access to those objects.
Organization and project filters use current key assignments, not a historical snapshot. Scopes that match more than 2,048 keys require a narrower team, project or key selection. Organization filters also stop at 2,048 candidate teams. The Gateway returns an error instead of silently omitting matching keys.
If no traces appear, check the time range, tracing policy and connection, then follow Send your first trace.