{
    "$schema": "./provider-rules.schema.json",
    "id": "credentials",
    "apiKeyFormats": {
        "openai": "^sk-(?!ant-)(?:proj-|svcacct-|admin-)?[A-Za-z0-9_-]{48,}$",
        "anthropic": "^sk-ant-[A-Za-z0-9\\-_]{95,}$",
        "google-ai": "^AIza[A-Za-z0-9\\-_]{35}$",
        "huggingface": "^hf_[A-Za-z0-9]{37}$",
        "mistral": "^[A-Za-z0-9]{32}$",
        "azure": "^[A-Za-z0-9]{32}$",
        "aws": "^[A-Z0-9]{20}$",
        "bedrock": "^[A-Z0-9]{20}$"
    },
    "oauthTokenFormats": {
        "anthropic-access": "^[A-Za-z0-9\\-_]+\\.[A-Za-z0-9\\-_]+\\.[A-Za-z0-9\\-_]+$|^[A-Za-z0-9\\-_]{32,}$",
        "anthropic-refresh": "^[A-Za-z0-9\\-_]{32,}$"
    },
    "credentialFormatNotes": {
        "aws": "AWS access key ID format.",
        "bedrock": "AWS access key ID: 20 uppercase alphanumerics.",
        "anthropic-access": "Claude OAuth access tokens: JWT-shaped or opaque.",
        "anthropic-refresh": "Refresh tokens are longer opaque strings.",
        "apiKeyLengths": "Lengths quoted in the configuration hints (providerUtils.ts). Each matches its apiKeyFormats pattern; GOOGLE_AI_EXACT counts the AIza prefix.",
        "credentialChecks": "Provider spelling (lowercased) to the validateProviderEnvVars() check it runs. none: no environment variables are required. A spelling not listed is reported as an unknown provider."
    },
    "apiKeyLengths": {
        "OPENAI_MIN": 48,
        "ANTHROPIC_MIN": 95,
        "HUGGINGFACE_EXACT": 37,
        "AZURE_MIN": 32,
        "MISTRAL_EXACT": 32,
        "AWS_ACCESS_KEY": 20,
        "GOOGLE_AI_EXACT": 39
    },
    "credentialChecks": {
        "bedrock": "aws",
        "amazon": "aws",
        "aws": "aws",
        "vertex": "vertex",
        "googlevertex": "vertex",
        "google": "vertex",
        "gemini": "vertex",
        "openai": "openai",
        "gpt": "openai",
        "anthropic": "anthropic",
        "claude": "anthropic",
        "azure": "azure",
        "azureopenai": "azure",
        "google-ai": "google-ai",
        "google-studio": "google-ai",
        "huggingface": "huggingface",
        "hugging-face": "huggingface",
        "hf": "huggingface",
        "mistral": "mistral",
        "mistral-ai": "mistral",
        "mistralai": "mistral",
        "ollama": "none",
        "local": "none",
        "local-ollama": "none",
        "litellm": "none"
    }
}
