Skip to main content

LLM plugin for models hosted by ElectronHub

Project description

llm-electronhub

PyPI License

LLM plugin for accessing 450+ models via ElectronHub

Installation

Install this plugin in the same environment as LLM.

llm install llm-electronhub

Or for development:

cd llm-electronhub
llm install -e .

Configuration

You need to set an ElectronHub API key using the llm keys set electronhub command:

llm keys set electronhub
# Paste your ElectronHub API key

Or set the ELECTRONHUB_API_KEY environment variable.

Usage

Once configured, all ElectronHub models will be available with the electronhub/ prefix:

# List all available models
llm electronhub models

# List only chat-capable models
llm electronhub models --chat-only

# Use a model
llm -m electronhub/claude-opus-4-1-20250805 "Explain quantum computing"

# Use GPT-5
llm -m electronhub/gpt-5 "Write a haiku about programming"

# Use Gemini 2.5 Pro (1M context!)
llm -m electronhub/gemini-2.5-pro "Summarize this long document..."

Features

  • 450+ models supporting chat completions from various providers
  • OpenAI-compatible API for seamless integration
  • Vision support for multimodal models
  • Large context windows - up to 2M tokens (Grok-4-fast)
  • Reasoning models - Models with -thinking suffix for extended reasoning

Available Commands

List models

# List all models
llm electronhub models

# List as JSON
llm electronhub models --json

# List only chat-capable models
llm electronhub models --chat-only

Check API key status

llm electronhub key

Recommended Models

  • Claude: electronhub/claude-opus-4-1-20250805 (200k context)
  • GPT: electronhub/gpt-5 (400k context)
  • Gemini: electronhub/gemini-2.5-pro (1M context)
  • Grok: electronhub/grok-4-0709 (256k context)
  • DeepSeek: electronhub/deepseek-v3.1 (164k context)
  • Qwen: electronhub/qwen3-max (256k context)

Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:

cd llm-electronhub
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

Now install the dependencies and test dependencies:

llm install -e '.[test]'

To run the tests:

pytest

About ElectronHub

ElectronHub is a unified LLM API proxy service that provides access to 450+ models from various providers (Anthropic, OpenAI, Google, Meta, xAI, Alibaba, and more) through a single API endpoint and key.

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llm_electronhub-0.1.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llm_electronhub-0.1-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file llm_electronhub-0.1.tar.gz.

File metadata

  • Download URL: llm_electronhub-0.1.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.13

File hashes

Hashes for llm_electronhub-0.1.tar.gz
Algorithm Hash digest
SHA256 3ea152918e4109cf2cb4e4c47cc6e18295d74cbd1252c1b5a14b7717745aaf5c
MD5 11ea7c18d16755c5ccbb99acb3eae5f4
BLAKE2b-256 97ac764016d84a61723017b61155f36a0546ac1bf6132d49a7514e4c81749278

See more details on using hashes here.

File details

Details for the file llm_electronhub-0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for llm_electronhub-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 86b609c4ced15ec6219410ae19b170cc5e4f00d1722920423208d7535c908e02
MD5 6f865ca11379fb8d1c783e842288a374
BLAKE2b-256 973c998e7509f2029fe8bacc75f5d73145af846297f496607243fd3caed9c06d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page