Skip to content

v0.3.0 — First PyPI Release

Choose a tag to compare

@Mathews-Tom Mathews-Tom released this 15 Feb 18:12
· 70 commits to main since this release

SubLLM is now available on PyPI: pip install subllm

Route OpenAI-compatible API calls through subscription-authenticated coding agents — no API keys required.

Highlights

  • 3 providers: Claude Code, OpenAI Codex CLI, Gemini CLI
  • OpenAI-compatible proxy server — drop-in replacement for any OpenAI SDK client
  • CLI with auth checking (subllm auth) and model listing (subllm models)
  • Streaming and batch support with configurable concurrency
  • PEP 561 typed package — full inline type annotations with py.typed marker

Supported Models

Provider Models
Claude Code claude-opus-4-6, claude-sonnet-4-5, claude-haiku-3-5
Codex CLI gpt-4.1, gpt-5.2-codex, gpt-5.2, gpt-5-mini
Gemini CLI gemini-2.5-pro, gemini-2.5-flash

Install

pip install subllm              # core library
pip install subllm[server]      # with proxy server

Quick Start

import subllm

response = await subllm.completion(
  model="claude-code/claude-sonnet-4-5",
  messages=[{"role": "user", "content": "Hello"}],
)

Links

- PyPI: https://pypi.org/project/subllm/0.3.0/
- Full README: https://github.com/Mathews-Tom/SubLLM#readme