explaingit

jawaz-keyzor/darkgpt

Analysis updated 2026-05-18

244PythonAudience · developerComplexity · 2/5LicenseSetup · moderate

TLDR

A Python app that sends pre-written jailbreak prompts to the OpenAI API to try to bypass its content restrictions.

Mindmap

mindmap
  root((repo))
    What it does
      Sends jailbreak prompts to OpenAI
      Offers web desktop and API modes
      Saves chat history locally
    Tech stack
      Python
      FastAPI
      PyQt6
      SQLite
    Use cases
      Test jailbreak prompt engineering
      Run a local chat interface
      Call a REST API from your own code
    Audience
      Developers
      Researchers
    Caveats
      May violate provider terms of service
      Educational demonstration only

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Experiment with prompt-engineering jailbreak techniques against the OpenAI API.

USE CASE 2

Chat through a dark-themed web UI, a PyQt6 desktop app, or a REST API server.

USE CASE 3

Load custom jailbreak prompts from a plain-text file and switch between personas.

What is it built with?

PythonFastAPIPyQt6SQLiteOpenAI API

How does it compare?

jawaz-keyzor/darkgptkyutai-labs/hibiki-zerolukashoel/video_to_world
Stars244247248
LanguagePythonPythonPython
Setup difficultymoderatemoderatehard
Complexity2/54/55/5
Audiencedeveloperdeveloperresearcher

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires an OpenAI API key (or compatible endpoint) and Python 3.11 or newer.

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

In plain English

DarkGPT is a Python application that connects to the OpenAI API and injects pre-written "jailbreak" prompts to try to get the AI model to skip its usual content restrictions. The idea is that certain specially crafted instructions, sent at the start of a conversation, can cause the model to roleplay as an unrestricted version of itself. The README itself notes that results vary depending on the model and API provider, and that this approach may violate OpenAI's terms of service. The project offers three ways to run it: a web interface with a dark-themed chat UI, a desktop application built with PyQt6, and a REST API server you can call from your own code. All three modes share the same core engine, which handles the API calls, streams responses back as they are generated, and manages which jailbreak prompt is currently active. Chat history is saved in a local SQLite database. Three jailbreak presets come included. The first is the classic DAN ("Do Anything Now") prompt, which instructs the model to roleplay as an AI with no restrictions. The second is a Developer Mode preset that claims to produce additional debug output. The third is a minimal "Unrestricted" prompt. Users can also load any plain-text file as a custom prompt. Multiple "personas" can be configured and switched between during a session. Setup requires Python 3.11 or newer, an OpenAI API key (or a compatible endpoint such as a locally running model), and a few Python packages including FastAPI, the OpenAI client library, and PyQt6 for the desktop mode. Configuration is done through a .env file where you set your API key, the model to use, and default behavior. The README includes a disclaimer describing the project as an educational demonstration of prompt engineering, and warns that using jailbreaks risks account termination by the API provider. The project is released under the MIT license.

Copy-paste prompts

Prompt 1
Explain how the DAN jailbreak prompt in this project is supposed to work.
Prompt 2
Walk me through setting up the .env file with my OpenAI API key for this project.
Prompt 3
Help me add a custom jailbreak persona as a plain-text prompt file.
Prompt 4
What are the terms-of-service risks of using jailbreak prompts with the OpenAI API?

Frequently asked questions

What is darkgpt?

A Python app that sends pre-written jailbreak prompts to the OpenAI API to try to bypass its content restrictions.

What language is darkgpt written in?

Mainly Python. The stack also includes Python, FastAPI, PyQt6.

What license does darkgpt use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is darkgpt to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is darkgpt for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.