# heretic

> Automatic censorship removal and abliteration for language models

Heretic is an open-source tool that removes safety alignment and refusal behaviors from transformer-based language models without full post-training. It pairs directional ablation with automated parameter optimization via Optuna to reduce refusals while preserving original model capabilities. Users run it locally via a Python command-line interface.

- Source: https://github.com/p-e-w/heretic
- Homepage: https://heretic-project.org
- License: AGPL-3.0
- Built with: Python 100.0%
- Stars: 43058 (+18027 in the last 90 days)
- Forks: 5385
- Contributors: 42
- Last commit: 2026-11-19
- Latest release: v2.1.0 (2026-11-08)
- Purpose: AI & LLM tooling
- Type: CLI
- For: Personal

## Can I use it?

GNU Affero General Public License 3.0. Network copyleft. Copyleft, and letting people use it over a network can count as sharing.

- Use it at work: Yes. Running it inside your company is fine.
- Run it as an online service: Yes, with conditions. If you change it and let others use it over a network, offer them your version’s source. Unchanged needs nothing extra.
- Sell what you build with it: Yes, with conditions. You may charge, but users get the full source and the same rights.
- Keep your own code private: Yes, with conditions. Only while you don’t share copies and don’t let others use a changed version over a network.
- Put it in a closed-source app: No. If you ship an app that includes it, the whole app must be under the AGPL-3.0. Separate programs next to it are fine.
- Credit the authors: Required. Keep the notices and mark the files you changed.

Good to know:

- It comes with no promise that it works. You use it at your own risk.
- Some authors also sell a license with other terms. Ask them if these rules don’t fit.
- This covers the project’s own code. Its dependencies, and folders like “ee”, may have other licenses.
- The license can change between versions. The one in the version you use is what counts.

_For information only, not legal advice. This is a short summary of the GNU Affero General Public License 3.0. The license text is what counts. [Read the full license](https://spdx.org/licenses/AGPL-3.0.html). For a business decision, ask a lawyer._

[Compare the common licenses](https://diggithub.com/-/licenses#lic-agpl-3.0)

## Worth score: 88/100

How much DigGitHub recommends it, from activity, adoption, docs, license and security signals.

- Popularity: 23/25
- Momentum: 20/20
- Maintenance: 25/25
- Community: 12/15
- Readiness: 8/15

## Downloads

Latest release: [v2.1.0](https://github.com/p-e-w/heretic/releases/tag/v2.1.0). Files from the project's GitHub release, not checked by DigGitHub.

Other files:

- [heretic-2.1.0.zip](https://github.com/p-e-w/heretic/releases/download/v2.1.0/heretic-2.1.0.zip) (460 KB, 1.4k downloads)
- [heretic-2.1.0.zip.sigstore.json](https://github.com/p-e-w/heretic/releases/download/v2.1.0/heretic-2.1.0.zip.sigstore.json) (6.6 KB, 302 downloads)

---

Source page: https://diggithub.com/p-e-w/heretic
Updated: 2026-11-25
