llm-github-models
LLM plugin to access GitHub Models API
What it is and what it does
llm-github-models is a plugin that extends the llm command-line tool to access GitHub Models, a free service offering dozens of AI language models including GPT-4o, o3, DeepSeek-R1, and Llama variants. It uses the Azure AI Inference SDK to communicate with the GitHub Models API and requires only a GitHub personal access token or existing GITHUB_TOKEN environment variable for authentication.
The plugin supports text-only and multimodal (image, audio) models, streaming and async outputs, structured schemas, embeddings, and tool use on models that support them. It tracks output token usage and integrates seamlessly with llm's attachment system for vision tasks. All models are prefixed with 'github/' to distinguish them from other llm providers.
Use it for:
- Run GPT-4o or o3 reasoning models from the command line without a paid OpenAI subscription
- Process images with Llama vision models or Phi multimodal models using llm attachments
- Integrate free AI inference into GitHub Actions workflows with automatic GITHUB_TOKEN authentication
- Prototype with multiple model families (Mistral, Cohere, DeepSeek, Phi) to compare outputs
- Build CLI tools or scripts that call structured-output models like gpt-4.1 or gpt-5 with schemas
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A plugin for the llm command-line tool that provides access to GitHub Models, a free service offering many AI language models via the Azure AI Inference SDK.
Yes. The package offers free access to a large roster of modern AI models through a simple CLI interface, requires minimal setup (just a GitHub token), has low install friction, is actively maintained, carries no security vulnerabilities, and uses a permissive license. Install it if you want to experiment with or integrate GitHub Models into command-line workflows or GitHub Actions without cost.
Install
llm-github-models on PyPI
pip
pip install llm-github-modelsuv
uv add llm-github-modelspoetry
poetry add llm-github-modelsInstalling llm-github-models
Before you install
Low install friction with a pure Python wheel. The package is actively maintained with recent commits and has 3 runtime dependencies (aiohttp, llm, azure-ai-inference), all standard libraries in the Python ecosystem.
License in practice
Licensed under Apache-2.0 (permissive), which allows commercial use, modification, and distribution with minimal restrictions—suitable for most projects.
Quickstart
pip install llm-github-models
llm keys set github
llm prompt 'top facts about cheese' -m github/gpt-4.1-mini
Requires a GitHub personal access token (PAT) or GITHUB_TOKEN environment variable set; GitHub Models API access must be available on your GitHub account.
Verify before relying
- Exact number of supported models (description says '>30' but the table lists many more—clarify the current count)
- Whether all embedding models listed in the feature set are actually available in the current release
- Rate limits and quota behavior for free tier usage under typical workloads
Package facts
| License | Apache-2.0 (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — aiohttp, llm, azure-ai-inference |
| Maintenance | actively maintained — 366 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 131,108/month — #11,606 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: llm_github_models-0.18.0-py3-none-any.whl
Tags
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to…
permissive · top 100 on PyPI
huggingface-hubClient library and CLI tool for downloading,…
permissive · top 100 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
hf-xethf-xet provides chunk-based deduplication and…
permissive · top 1,000 on PyPI
tokenizersTokenizers converts raw text into token…
permissive · top 1,000 on PyPI
transformersTransformers provides a unified framework for…
permissive · top 1,000 on PyPI
llmLLM is a CLI tool and Python library for…
permissive · top 15,000 on PyPI
llm-openai-pluginA plugin that extends LLM to access OpenAI…
permissive · top 15,000 on PyPI
llm-anthropicA plugin for the LLM command-line tool that…
permissive · top 15,000 on PyPI
coherePython SDK for accessing Cohere's language…
permissive · top 1,000 on PyPI
litellm-enterpriseLiteLLM Enterprise provides a unified Python…
unclear · top 5,000 on PyPI
vllmvLLM is a high-throughput inference and serving…
permissive · top 5,000 on PyPI
g4fAggregates multiple LLM and media-generation…
unclear · top 15,000 on PyPI
vllm-tpuvllm-tpu is a high-throughput LLM inference and…
permissive · top 15,000 on PyPI
fhlmifhlmi provides a unified async Python interface…
permissive · top 15,000 on PyPI