﻿# LiteLLM can register a first-seen customer member through a known organization alias

Race first requests for one synthetic member, then verify one membership and correct default budget; compare fallback attribution when registration is unavailable.

Author: Retrivium team
Updated: 2026-11-15
Canonical URL: https://retrivium.ai/journal/week46-agent-litellm-first-member-default-team-registration/
Language: en

LiteLLM v1.111.0-dev.2 adds first-use registration of an unknown customer member when a known organization alias and default budget make that path eligible. Released on November 13 as a prerelease, it creates the default team as needed. This convenience needs a race and attribution test: one successful first request does not prove one membership row or correct spend ownership under concurrent arrivals.

## Eligibility is narrower than an arbitrary member header

Create a known synthetic organization alias with a default budget and submit a new member identifier. Compare with an organization lacking the required default. Later work in this same release lets an unregistrable unknown member run with organization-only attribution, replacing the earlier PR’s rejection. A member header is not universal registration. Record authenticated caller scope and resolved organization so the creation path and fallback attribution remain distinct and reviewable.

## Concurrent first use needs a single durable identity

Send several harmless first requests for the same synthetic member across candidate workers. Inspect organization, default-team and member rows afterward. The implementation reuses the management helper to converge registration. Assert one intended identity and explain the outcome of every request. A unique constraint error exposed to one caller can still matter even if the final database looks correct after another caller completed creation.

## First-request accounting must find the new member

Give each concurrent synthetic request a distinctive usage amount and compare the member ledger with the expected sum. The registration path and spend path complete at different points, so inspect attribution rather than assuming creation success implies first-call tracking. Then run a later request near a deliberately small test cap. It should use the effective default budget and the same member identity as the first-use registration.

## Default assignment is an operating choice

Inspect the resulting default-team identity and management view before automatic registration at scale. Keep explicit assignment and overrides under their documented controls. Genuine cross-organization mismatches still need their error case, while untracked or organization-only fallback must remain visible. A useful record proves eligibility, race convergence, first-call attribution and enforcement without confusing request success with the existence of a new member row or treating diagnostic headers as unlimited provisioning authority.

## Sources

- [LiteLLM v1.111.0-dev.2 prerelease notes](https://github.com/BerriAI/litellm/releases/tag/v1.111.0-dev.2)
- [LiteLLM implementation and review #51546](https://github.com/BerriAI/litellm/pull/51546)
- [Later same-release attribution fallback #51548](https://github.com/BerriAI/litellm/pull/51548)

## Related reading

- [LiteLLM budgets: periods, shared limits and overrun tests](/journal/litellm-budget-reset/)
- [LiteLLM virtual keys: separate access for each application](/journal/litellm-virtual-key-scopes/)
