Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.coreweave.com/llms.txt

Use this file to discover all available pages before exploring further.

Source: src/cwsandbox/_auth.py:64
set_auth_mode(name: str, get_auth: Callable[[], AuthHeaders]) -> None
Set the active auth mode for this process. The active mode replaces the built-in auth mode until it is reset. Configuration is process-global and last-writer-wins. The callback must return AuthHeaders or raise CWSandboxAuthenticationError.
Last modified on May 1, 2026