Skip to main content

xyberos-llm-providers

Remaining LLM providers plugin — RFC-0019, M6. Thin configs, no new architecture. The long tail of OpenAI-compatible providers are covered by presets over the core OpenAICompatibleLLM; Azure OpenAI, AWS Bedrock and Google Vertex AI get dedicated LLMProvider adapters.

Install

pip install xyberos-llm-providers     # from PyPI
pip install "xyberos-llm-providers[llm_providers]"  # optional: boto3 + google-auth for Bedrock/Vertex

# development (editable, from this repo):
pip install -e ./llm-providers
# (also available as the core extra):
pip install xyberos[llm-providers]

Provider presets (OpenAI-compatible — one line each)

provider base URL default model API key env
openai api.openai.com/v1 gpt-4o-mini OPENAI_API_KEY
mistral api.mistral.ai/v1 mistral-small-latest MISTRAL_API_KEY
groq api.groq.com/openai/v1 llama-3.3-70b-versatile GROQ_API_KEY
deepseek api.deepseek.com/v1 deepseek-chat DEEPSEEK_API_KEY
cohere api.cohere.com/compatibility/v1 command-r-plus COHERE_API_KEY
together api.together.xyz/v1 Llama-3.3-70B-Instruct-Turbo TOGETHER_API_KEY
xai api.x.ai/v1 grok-2 XAI_API_KEY
openrouter openrouter.ai/api/v1 openrouter/auto OPENROUTER_API_KEY
from xyberos_llm_providers import get_llm
llm = get_llm("groq")                      # key from GROQ_API_KEY
print(llm.generate("Say hi"))

Dedicated adapters

  • Azure OpenAI — AzureOpenAILLM(deployment, endpoint=..., api_key=...) posts to the Azure deployments endpoint with an api-key header (AZURE_OPENAI_ENDPOINT, AZURE_OPENAI_API_KEY, AZURE_OPENAI_DEPLOYMENT).
  • AWS Bedrock — BedrockLLM(model_id) over bedrock-runtime.converse (lazy boto3; region from AWS_REGION/AWS_DEFAULT_REGION).
  • Google Vertex AI — VertexAILlm(model, project=...) over the generateContent REST API (lazy google-auth token; VERTEX_AI_PROJECT/GOOGLE_CLOUD_PROJECT).

Plugin usage

from xyberos import create_app
from xyberos_llm_providers import LlmProvidersPlugin

app = create_app()
app.load_plugin(LlmProvidersPlugin(provider="deepseek"))   # or set LLM_PROVIDER=deepseek
print(app.llm.generate("Say hi"))

provider accepts a preset name or azure_openai / bedrock / vertex. An unconfigured plugin registers nothing (logs a warning); calling plugin.llm() directly surfaces misconfiguration errors.

Examples

  • examples/llm_providers.py — lists presets and runs one; --stub for a no-network demo, otherwise a real call.

Tests

pip install pytest
pytest tests/

All adapters are tested against stub transports / fake clients — no network, no SDKs required. Bedrock/Vertex lazy-import tests skip when their SDK is present.

Ship location

Plugin (xyberos.plugins entry point) / [llm-providers] extra. One LLMProvider contract; providers are implementations of it.

Metadata

Release files for xyberos-llm-providers 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xyberos-llm-providers 0.1.2
File Size Uploaded Provenance Actions
xyberos_llm_providers-0.1.2.tar.gz 10.6 kB With provenance Details for xyberos_llm_providers-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for xyberos-llm-providers 0.1.2
File Interpreter ABI Platform Actions
xyberos_llm_providers-0.1.2-py3-none-any.whl Python 3 none any Details for xyberos_llm_providers-0.1.2-py3-none-any.whl

Total release size: 21.3 kB

Release files / xyberos_llm_providers-0.1.2.tar.gz

Download URL xyberos_llm_providers-0.1.2.tar.gz
Size 10.6 kB
Tags Source
SHA-256 checksum
How to use checksums
a7b311612250c0c487431cca5fe7f2e5e5f0a5046822333e89b6fb6f9f8fc0fe
BLAKE2b-256 checksum
How to use checksums
5578bc5b4f41279c81e8e69b0b8b9e0f002a8ea6d087b7211015d1b5b58797f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 11, 2026.

Transparency log

Release files / xyberos_llm_providers-0.1.2-py3-none-any.whl

Download URL xyberos_llm_providers-0.1.2-py3-none-any.whl
Size 10.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3a4294c269a65eea9bb0246448d212544bdd3bd699a6351a072784af514f869c
BLAKE2b-256 checksum
How to use checksums
c08db90fc49b5e90cf29a51367b41befa90916731694dcddb935bbe3a5dcf0e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 11, 2026.

Transparency log

Security for xyberos-llm-providers 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for xyberos_llm_providers-0.1.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 11, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page