kllm: free GPU LLMs for Claude Code, opencode and any OpenAI client
kllm runs open-weight LLMs on Kaggle's free GPUs and gives your coding tools a local API for them. It serves
Qwen and other GGUF models (including abliterated ones) through llama.cpp on two free Tesla T4s, behind an OpenAI
and Anthropic compatible endpoint on 127.0.0.1. No local GPU, no API bill.
| 15,481 requests | 98.95% succeeded | 750M prompt tokens | 89.8% from cache | 395K largest context |
|---|
Six weeks of one developer's Claude Code and opencode sessions (Oct 6 to Nov 16 2026), from kllm's request log.
Install and run
pipx install kllm-gateway # or: uv tool install kllm-gateway, or: pip install kllm-gateway
kllm # opens the panel; paste your Kaggle token once
claude-kllm # Claude Code on a 35B model in Kaggle
The package is kllm-gateway; it installs the kllm and claude-kllm commands. You need a Kaggle account with
a verified phone number (Kaggle's rule for GPU access). The first request starts a GPU in about 8 to 10 minutes;
after that, requests go straight through.
Models measured on two T4s
| Model | Best for | Context | Speed |
|---|---|---|---|
qwen3.8-27b family |
Highest answer quality; vision variant | 128K or 256K | 16 to 19 tok/s over 6,889 real requests |
qwen3.6-35b-abliterated (default) |
Long agent sessions at speed | 256K | 70 tok/s short, 43 tok/s at 209K |
qwen3-coder-30b-abliterated |
Fastest turnaround | 96K | 84 tok/s short |
Use it from any tool
| Tool | How |
|---|---|
| Claude Code | claude-kllm |
| opencode, Codex CLI, Gemini CLI, Antigravity, Cursor | the panel's Connect page writes their config |
| OpenAI clients | base URL http://127.0.0.1:8080/v1, model kllm |
| Anthropic clients | ANTHROPIC_BASE_URL=http://127.0.0.1:8080 |
When a Kaggle notebook nears its 12-hour limit, kllm starts a successor and moves each conversation with its prompt cache warm, so long sessions continue. Idle GPUs stop by themselves to save your weekly quota.
Links
- Documentation, diagrams and source: github.com/SANTHAN-KUMAR/kllm
- Changelog: CHANGELOG.md
- Issues and questions: Issues and Discussions
Use your own Kaggle account and follow Kaggle's Terms of Service. MIT licensed.
Metadata
Release files for kllm-gateway 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kllm_gateway-0.3.1.tar.gz | 4.9 MB | With provenance | Details for kllm_gateway-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kllm_gateway-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for kllm_gateway-0.3.1-py3-none-any.whl |
Total release size: 8.6 MB
Release files / kllm_gateway-0.3.1.tar.gz
| Download URL | kllm_gateway-0.3.1.tar.gz |
|---|---|
| Size | 4.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
16614f3365cc57c26e04f13fac5b0932222849eb1ed633a3faa5b5edf45534fc
|
|
BLAKE2b-256 checksum How to use checksums |
d96ced74cc4fdacd8e41f4b9c3292715ae6a2dc66385be1a293303ce1b6174f0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 18, 2026.
Transparency logRelease files / kllm_gateway-0.3.1-py3-none-any.whl
| Download URL | kllm_gateway-0.3.1-py3-none-any.whl |
|---|---|
| Size | 3.7 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ccf76ace383c381920ed850f6d64e523ce6b079431610765a4e83eb7cc7903b6
|
|
BLAKE2b-256 checksum How to use checksums |
7d641a5def050fbe6639b2e3cce064309a1641f2a835fde23d66839ed6bd63bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 18, 2026.
Transparency logSecurity for kllm-gateway 0.3.1
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
Both files in this release have been uploaded with provenance metadata.
Attestation for kllm_gateway-0.3.1.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 Nov 18, 2026.
Transparency logA 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.