Skip to main content

llm-openuncensored

PyPI Tests License

LLM plugin for uncensored and abliterated models hosted by OpenUncensored.

About: OpenUncensored is one OpenAI compatible API for uncensored, abliterated and "heretic" open weight models (GLM, DeepSeek, Qwen, Gemma, Kimi, Hermes and more). Compare them on the uncensored LLM leaderboard.

Installation

Install this plugin in the same environment as LLM:

llm install llm-openuncensored

Configuration

You need an OpenUncensored API key. Keys start with ou- and are prepaid at openuncensored.com/credits.

Save the key with LLM:

llm keys set openuncensored
# Paste your ou-... key here

Or set it as an environment variable:

export OPENUNCENSORED_KEY=ou-...

You can also pass a key for a single prompt with --key ou-....

Usage

Every chat model in the OpenUncensored model list is registered with an openuncensored/ prefix. To see them:

llm models | grep openuncensored

Run a prompt:

llm -m openuncensored/glm-5.3-flash-uncensored "Say hi in 3 words"

Responses stream by default. Use --no-stream to wait for the full reply.

Set a default model so you can leave out -m:

llm models default openuncensored/glm-5.3-flash-uncensored
llm "Write a limerick about a robot with no filter"

Start an interactive chat, with a system prompt and options:

llm chat -m openuncensored/kimi-k3.1-pro-uncensored \
  -s "You are a blunt code reviewer" \
  -o temperature 0.7 -o max_tokens 800

Run llm models --options -q openuncensored to see the options each model accepts (temperature, max_tokens, top_p, stop, seed and more).

Images

Models tagged vision accept image attachments (PNG, JPEG, WebP and GIF):

llm openuncensored models --vision
llm -m openuncensored/inkling-2-mini-uncensored "Describe this image" -a photo.jpg

Tools

Tool calling works with every model, using LLM's tools support:

llm -m openuncensored/glm-5.3-flash-uncensored -T llm_time "What time is it?" --td

llm -m openuncensored/glm-5.3-flash-uncensored \
  --functions 'def multiply(x: int, y: int) -> int: return x * y' \
  "What is 1234 times 5678?" --td

Python API

import llm

model = llm.get_model("openuncensored/glm-5.3-flash-uncensored")
# Uses the key from "llm keys set openuncensored" or OPENUNCENSORED_KEY,
# or set one directly with model.key = "ou-..."
response = model.prompt("Say hi in 3 words")
print(response.text())

Async models are available too, through llm.get_async_model(...).

Commands

List the chat models with their context length, tags and price per million tokens:

llm openuncensored models
llm openuncensored models --vision   # only models that accept images
llm openuncensored models --json     # full details as JSON

The model list is public, so listing models does not need a key. It is cached for one hour in openuncensored_models.json in the LLM user directory (dirname "$(llm logs path)"). To pick up new models right away:

llm openuncensored refresh

Development

To set up this plugin locally, check out the code and create a virtual environment:

cd llm-openuncensored
python -m venv venv
source venv/bin/activate

Install the plugin with its test dependencies and run the tests:

pip install -e . --group dev
pytest

The tests mock all HTTP calls, so they need no key and no network access.

Metadata

Release files for llm-openuncensored 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llm-openuncensored 0.1.0
File Size Uploaded Provenance Actions
llm_openuncensored-0.1.0.tar.gz 14.3 kB With provenance Details for llm_openuncensored-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for llm-openuncensored 0.1.0
File Interpreter ABI Platform Actions
llm_openuncensored-0.1.0-py3-none-any.whl Python 3 none any Details for llm_openuncensored-0.1.0-py3-none-any.whl

Total release size: 25.2 kB

Release files / llm_openuncensored-0.1.0.tar.gz

Download URL llm_openuncensored-0.1.0.tar.gz
Size 14.3 kB
Tags Source
SHA-256 checksum
How to use checksums
c74f4ca9b92f81f1563041515faf419ddd207d5bf32ad89d1b20cd86b1df4a71
BLAKE2b-256 checksum
How to use checksums
3af6ee2006c78ef8050f3f414fc7f009c54301b22cddc7be84127f62ffb33eb3
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 27, 2026.

Transparency log

Release files / llm_openuncensored-0.1.0-py3-none-any.whl

Download URL llm_openuncensored-0.1.0-py3-none-any.whl
Size 10.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fd8bea255e9890597dffbd9ef6cd8138126fd1fb3b35d92b36fa034590338a96
BLAKE2b-256 checksum
How to use checksums
417ea54682464efe90e8b1d9b608db9ed1910993a76917f02384b2e6924e8454
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 27, 2026.

Transparency log

Security for llm-openuncensored 0.1.0

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.

Select from 2 files

Attestation for llm_openuncensored-0.1.0.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 27, 2026.

Transparency log

A 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page