~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.
Python academiaanthropicarxivbravedeep-researchencryptionhome-automationhomeserverlocallocal-deep-researchlocal-llmmistralollamaopenaipubmedresearchresearch-toolretrieval-augmented-generationsearxngself-hosted
"""xAI Grok LLM provider for Local Deep Research."""
from ..base import Exposure
from ..openai_base import OpenAICompatibleProvider
class XAIProvider(OpenAICompatibleProvider):
"""xAI Grok provider using OpenAI-compatible endpoint.
This uses xAI's OpenAI-compatible API endpoint to access Grok models.
"""
provider_name = "xAI Grok"
api_key_setting = "llm.xai.api_key"
default_base_url = "https://api.x.ai/v1"
default_model = "" # User must explicitly pick a model — no silent fallback
# Metadata for auto-discovery
provider_key = "XAI"
company_name = "xAI"
is_cloud = True
# Egress exposure (ADR-0007): cloud inference sink — data leaves the box.
egress_exposure = Exposure.EXPOSING
@classmethod
def requires_auth_for_models(cls):
"""xAI requires authentication for listing models."""
return True