Metadata-Version: 2.5
Name: kllm-gateway
Version: 0.3.1
Summary: Free GPU LLMs for Claude Code, opencode and any OpenAI client: Qwen on Kaggle's free T4s as a local OpenAI/Anthropic API
Project-URL: Homepage, https://santhan-kumar.github.io/kllm/
Project-URL: Source, https://github.com/SANTHAN-KUMAR/kllm
Project-URL: Documentation, https://github.com/SANTHAN-KUMAR/kllm#readme
Project-URL: Changelog, https://github.com/SANTHAN-KUMAR/kllm/blob/main/CHANGELOG.md
Project-URL: Issues, https://github.com/SANTHAN-KUMAR/kllm/issues
Project-URL: Discussions, https://github.com/SANTHAN-KUMAR/kllm/discussions
Author: SANTHAN-KUMAR
License: MIT License
        
        Copyright (c) 2026 SANTHAN-KUMAR
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Keywords: abliterated,anthropic,claude-code,coding-agent,free-gpu,gguf,inference,kaggle,llama-cpp,llama.cpp,llm,local-llm,mcp,openai,openai-compatible,opencode,qwen,self-hosted
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: MacOS
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: OS Independent
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Internet :: WWW/HTTP :: HTTP Servers
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Software Development
Requires-Python: >=3.10
Requires-Dist: fastapi>=0.110
Requires-Dist: httpx>=0.27
Requires-Dist: kaggle>=1.6
Requires-Dist: pyyaml>=6.0
Requires-Dist: uvicorn>=0.29
Provides-Extra: dev
Requires-Dist: anyio; extra == 'dev'
Requires-Dist: jinja2; extra == 'dev'
Requires-Dist: jsonschema; extra == 'dev'
Requires-Dist: numpy; extra == 'dev'
Requires-Dist: pillow; extra == 'dev'
Requires-Dist: pytest-timeout; extra == 'dev'
Requires-Dist: pytest>=8; extra == 'dev'
Requires-Dist: websockets; extra == 'dev'
Provides-Extra: litellm
Requires-Dist: litellm[proxy]; extra == 'litellm'
Description-Content-Type: text/markdown

# kllm: free GPU LLMs for Claude Code, opencode and any OpenAI client

![kllm: free GPUs for your coding agent. pipx install kllm-gateway. OpenAI and Anthropic API on localhost](https://raw.githubusercontent.com/SANTHAN-KUMAR/kllm/main/docs/assets/banner.svg)

**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 |
| --- | --- | --- | --- | --- |

<sub>Six weeks of one developer's Claude Code and opencode sessions (Oct 6 to Nov 16 2026), from kllm's request log.</sub>

## Install and run

```bash
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.

![kllm's first-run page: open your Kaggle settings, verify your phone, create a token, then paste it or drop kaggle.json](https://raw.githubusercontent.com/SANTHAN-KUMAR/kllm/main/docs/assets/panel-welcome.png)

## 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](https://github.com/SANTHAN-KUMAR/kllm)
- Changelog: [CHANGELOG.md](https://github.com/SANTHAN-KUMAR/kllm/blob/main/CHANGELOG.md)
- Issues and questions: [Issues](https://github.com/SANTHAN-KUMAR/kllm/issues) and [Discussions](https://github.com/SANTHAN-KUMAR/kllm/discussions)

Use your own Kaggle account and follow [Kaggle's Terms of Service](https://www.kaggle.com/terms). MIT licensed.
