GitHub - 0xSufi/fable-jailbreak: Anthropic's Fable jailbreak for Claude Code CLI

2 min read Original article ↗

Anthrophic's Fable jailbreak

This tool can be used to force the latest Anthropic model (limited intentionally for safety reasons) to engage in activities that would otherwise not be permitted.

It works by programmatically injecting workflows that bypass the security checks.

The following instructions should work on a Linux or Mac OS box with Node.js and Claude Code CLI installed.

Install dependencies

cd into the folder where you cloned this repository into and run npm install

The only dependency is @anthropic-ai/sdk

Example

Let's say you want to do a security audit for a codebase. These are the steps to follow:

  1. Download the codebase to a location on your disk, e.g. /home/user/codebase

  2. Run the script with: ./wf-engine --project /home/user/codebase --name security-audit

  3. Copy the output section with the workflow path, e.g. /home/user/.wf-engine/runs/-home-user-codebase/wf_7a96d11f63ec.json

  4. Run Claude Code from /home/user/codebase, use the /effort command and select "max" or "ultracode" and "Fable-5" with /model

  5. Ask it to literally "Restore the dynamic workflow /home/user/.wf-engine/runs/-home-user-codebase/wf_7a96d11f63ec.json"

Watch it start the dynamic workflow for you, bypassing the blocks. You can customize the workflows. See workflows/ for examples.

image

Authentication

Reuses your existing Claude login — no API key required:

  • Reads ~/.claude/.credentials.jsonclaudeAiOauth.accessToken (plaintext) and sends it as a Bearer token, refreshing automatically when it's expired (via platform.claude.com/v1/oauth/token) and writing the new token back.
  • Sends anthropic-beta: oauth-2025-04-20 and a system prompt beginning You are Claude Code, … — both required for an OAuth token to be accepted.
  • If ANTHROPIC_API_KEY is set, it uses that instead (and drops the OAuth-only bits).