Repository avatar
AI Tools
v0.1.1
active

sloptotal

io.github.pablocaeg/sloptotal

Open-source AI text detector: 23 engines, one calibrated score. Checks texts, pages and sites.

Documentation

SlopTotal: open-source AI text detector that runs 23 detection engines on your own hardware

CI status Latest release Docker image Python 3.10+ GitHub stars MIT license Live demo

English · 简体中文 · Русский · Español

SlopTotal

VirusTotal for AI-generated text. Paste text, drop in a PDF or Word file, or give it a URL. Twenty-three independent AI detectors (neural classifiers, statistical tests and linguistic heuristics) score it in parallel, and a calibrated ensemble turns their votes into one verdict you can inspect engine by engine. It runs on your own CPU, so nothing you scan leaves your machine.

It is a free, self-hosted, open-source alternative to hosted AI content detectors such as GPTZero, Originality.ai, Copyleaks, ZeroGPT and Humalingo. Instead of one number from one model, it shows you every model's opinion, and it publishes how accurate that is, failures included.

Trying the sample text on sloptotal.com: the calibrated score, the verdict band and every engine’s vote

Try it: sloptotal.com · Run it locally: one Docker command

Run locally

Docker (x86-64 or ARM, Apple Silicon included), one command:

docker run -d --name sloptotal -p 8000:8000 -v sloptotal-models:/app/models ghcr.io/pablocaeg/sloptotal

The first start downloads about 9 GB of models into the sloptotal-models volume, so later starts are quick. Wait until the log says they are loaded, then open http://localhost:8000:

until docker logs sloptotal 2>&1 | grep -q "Model preloading complete"; do sleep 10; done

Check that it works:

curl -s -X POST http://localhost:8000/api/analyze \
  -H "Content-Type: application/json" \
  -d '{"text": "Artificial intelligence has fundamentally transformed the landscape of modern education, offering unprecedented opportunities for personalized learning. Moreover, it is important to note that these tools foster critical thinking and collaboration among students."}'

It returns a JSON report: overall_score (0-100), overall_verdict and the 23 engine_results. curl -s http://localhost:8000/health returns "status":"healthy".

Requirements. About 12 GB of RAM (the loaded models take about 8.3 GB, an estimate; see docs/MODELS.md) and about 9 GB of disk. No GPU, account or API key. The image is built for linux/amd64 and linux/arm64, so it runs natively on Apple Silicon and ARM servers such as AWS Graviton.

From source (Python 3.10 to 3.14; macOS ships 3.9, which is too old):

git clone https://github.com/pablocaeg/sloptotal.git
cd sloptotal
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
./scripts/start.sh    # or: uvicorn app.main:app --port 8000

Models go to ~/.cache/huggingface unless HF_HOME is set. python scripts/smoke_test.py then checks every route and all 23 engines. To build the image yourself: docker compose -f docker/docker-compose.yml up -d.

The Docker image uses CPU-only PyTorch; for an NVIDIA GPU, install from source and follow Configuration. Offline use, updates and common problems are in the self-hosting guide (Markdown).

For AI agents

Installing SlopTotal for a user, or calling it as a tool:

  1. docker --version. With Docker (x86-64 or arm64): use the Docker command above. With no Docker: install from source.
  2. Start it, then wait for Model preloading complete in the log (the loop above). The first start takes minutes: it downloads about 9 GB.
  3. Check it with the curl above. Any JSON with overall_score and "engines_total": 23 means it works.
  4. Call POST /api/analyze with {"text": "..."} (50 characters or more) or {"url": "..."}. 200 is the report. 202 means queued: poll GET /api/queue/ticket/{ticket_id} until it returns 200. 429 means the queue is full: wait retry_after seconds and retry.
  5. Read overall_score: 45 is where the top 5% of human writing begins, 55 the top 2%, 80 the top 0.5%. Under about 80 words it is a weak signal, and no detector is proof on its own.

As an MCP tool (Claude Code, Cursor, VS Code, Claude Desktop)

The MCP server gives agents three tools: analyze_text, analyze_url and check_website_builder. It calls the SlopTotal server on http://localhost:8000, so start that first. In Claude Code, with uv:

claude mcp add sloptotal -- uvx sloptotal-mcp

Or with Docker:

claude mcp add sloptotal -- docker run -i --rm --add-host=host.docker.internal:host-gateway ghcr.io/pablocaeg/sloptotal-mcp

It is on PyPI, on ghcr.io and in the official MCP registry as io.github.pablocaeg/sloptotal. A real call and reply, the limits and every client: sloptotal.com/ai-detector-mcp.

Configuration for Claude Desktop, Cursor and VS Code is in integrations/mcp. Setting SLOPTOTAL_URL=https://api.sloptotal.com uses the public instance instead of a local server; the text then leaves your machine.

No key is needed. The OpenAPI schema is at http://localhost:8000/openapi.json. Ready-made clients for Python, Node, Go and Ruby are in examples/ (see API). Once the models are loaded, the log prints one line asking for a GitHub star; SLOPTOTAL_QUIET=1 drops it. API responses never carry it.

Features

  • 23 detection engines, one calibrated score. DeBERTa and RoBERTa classifiers, Binoculars, Fast-DetectGPT, GLTR, perplexity and burstiness tests, and stock-phrase heuristics. Results stream in as each engine finishes.
  • Text, URLs and documents. Paste text, scan a web page (main content is extracted automatically), or upload .pdf, .docx, .txt or .md.
  • Site check: was this website vibe-coded? Finds the fingerprints that Lovable, v0, Bolt, Base44, Replit, Same and Emergent leave in the sites they deploy, and shows the evidence for each one. How it works
  • Per-paragraph heat map through the API, to see which parts read as AI.
  • Measured, not claimed. Every accuracy number below comes with the corpus, the harness and the raw per-sample scores.
  • Private by default. Self-hosted, no third-party AI APIs, no tracking, reports deleted after 30 days.
  • CPU-only is fine. Auto-detects your hardware; a GPU is optional. Loaded models need about 8.3 GB of RAM (an estimate; see docs/MODELS.md).
  • JSON API and a Chrome extension that marks AI-looking results in Google Search and LinkedIn.

Measured accuracy

Most detectors publish an accuracy figure without saying what it was measured on. SlopTotal is measured on SlopBench: 1,626 human texts, every one written before ChatGPT, and 1,626 AI texts on the same topics and at the same lengths from 14 current models, across 15 kinds of writing (news, Wikipedia, arXiv, Stack Exchange, Reddit, reviews, student essays, non-native English, fiction and literature published 1532-1915). Every number below is measured on kinds of writing the model was not tuned on.

AUC0.942
AI texts called "Likely AI" (55+)67%
Human texts called "Likely AI" (55+)1.7%
Human texts flagged at all (45+)3.9%
Literature published 1532-1915 flagged0 of 87

The score bands are anchored on that human text: 45 is where the top 5% of human writing begins, 55 the top 2%, 80 the top 0.5%. So "Likely AI" means fewer than 2 in 100 human texts score this high.

Other languages. Spanish, French, German, Italian, Portuguese, Dutch, Polish, Russian and Japanese are supported (AUC 0.91 to 0.997); Arabic and Korean are experimental; Hindi, Turkish and Chinese are not reliable yet, and the report says so.

What does not work. Essays by non-native English writers are still flagged more than native ones (15% of TOEFL essays called Likely AI, against none of 88 US school essays). Under about 80 words a score is a weak signal. AI text run through a "humanizer" is caught about half the time. Source code is outside what these engines do. All of it, per source, per model and per engine, is in the findings, including that the classifiers which top the RAID benchmark drop to AUC 0.75 on current models.

Site check: detect sites built with AI app builders

SlopTotal’s website builder check identifying a site built with Lovable from its hosting, badge and scripts

"Is this website vibe-coded?" checkers mostly score style (Tailwind class counts, missing security headers, buzzwords) and turn it into a percentage. Hand-written sites share all of those traits. SlopTotal looks only for markers the builders themselves leave in what they deploy, each one confirmed on live sites or in the builders' own templates:

BuilderFingerprints
Lovablegptengineer.js runtime, /lovable-uploads/ assets, the Lovable badge, /~flock.js, *.lovable.app
v0 (Vercel)<meta name="generator" content="v0.app"> from v0's layout template, *.vusercontent.net
BoltX-Powered-By: Bolt.new header, bolt.new/badge.js, *.bolt.host
Base44app.base44.com platform calls, base44_access_token, *.base44.app
ReplitReplit Agent dev banner, Replit badge, *.replit.app
Sameassets served from same-assets.com
Emergent__emg_sid and __emg_vid cookies, emergent-main.js script, *.emergent.host

A site with no marker may still have been written with AI: code exported from these tools and hosted elsewhere, or written in an AI editor, carries no fingerprint. So the result is evidence, not a probability. The page's copy is scored separately by the text engines.

curl -X POST http://localhost:8000/api/scan/site \
  -H "Content-Type: application/json" -d '{"url": "example.com"}'

API

EndpointMethodWhat it doesTypical latency (CPU)
/api/analyzePOSTFull 23-engine report for text or url2-8 s
/api/quick-scorePOST4 classifiers plus heuristics0.1-0.5 s
/api/paragraph-scorePOSTScore per paragraph (heat map)1-3 s
/api/scan/sitePOSTAI app builder fingerprints plus a copy score1-3 s
/api/extractPOSTText from an uploaded .pdf / .docx / .txt (multipart file)< 1 s
/api/scan/snippetsPOSTBatch of 1-30 short snippets~0.5 s
/api/scan/urlsPOSTBatch of 1-10 URLs, page-type aware1-5 s
/api/enginesGETEngine metadatainstant
/api/report/{id}GETA stored reportinstant
/api/report/{id}/feedbackPOSTRecord who actually wrote the text: {"label": "human" | "ai" | "mixed" | "unsure"}instant
/api/queue/statusGETQueue capacityinstant
curl -X POST http://localhost:8000/api/analyze \
  -H "Content-Type: application/json" \
  -d '{"text": "Your text to analyze here..."}'

From Python, examples/python_client.py analyses a text, prints the five engines scoring highest and runs a site check, waiting in the queue when the server is busy:

python examples/python_client.py "Paste at least 50 characters of text here..." example.com

The response lists every engine with its score, verdict and a plain-language detail line, plus overall_score (0-100) and overall_verdict.

From Node 18+, examples/node_client.mjs uses the built-in fetch to analyse a text and print the overall score, the verdict and the five engines scoring highest. Pass --base to point it at another server:

node examples/node_client.mjs "Paste at least 50 characters of text here..." --base http://localhost:8000

From Go, examples/go_client/main.go uses only the standard library to analyse a text and print the overall score, the verdict and the five engines scoring highest:

go run examples/go_client/main.go "Paste at least 50 characters of text here..." --base http://localhost:8000

Detection Engines

Every engine links to its page on sloptotal.com, which carries its measured scores against both corpora. AUC below is the probability the engine ranks a random AI passage above a random human one: 1.0 is perfect, 0.5 is a coin flip.

Neural Classifiers

EngineModelAUCNotes
Desklib DeBERTaDeBERTa-v3-large (435M)1.000Strongest separation in our own tests
SuperAnnotateRoBERTa-large (355M)0.989No measurable bias against archaic prose
E5-SmallE5 + LoRA (33M)0.999Matches far larger models at 33M params
TMR DetectorRoBERTa-base (125M)1.000RAID-trained, so RAID scores flatter it
BERT-tiny RAIDBERT-tiny (4.4M)1.000Answers in milliseconds
ReMoDetectDeBERTa (184M)0.941Targets RLHF-aligned LLMs
ChatGPT DetectorRoBERTa-base (125M)0.829ChatGPT-specific
FakespotRoBERTa-base (125M)0.999Accurate on modern text, but +0.533 bias on pre-1920 prose
OpenAI DetectorRoBERTa-base (125M)0.771The 2019 GPT-2 detector; weaker on modern LLMs

Statistical Methods

EngineMethodAUC
Log-RankAverage log-rank under GPT-20.909
GLTRToken rank distribution0.904
PerplexityGPT-2 perplexity scoring0.901
Cross-PerplexityTwo-model perplexity comparison0.891
Fast-DetectGPTConditional probability curvature0.890
BinocularsCross-entropy ratio between two LMs0.836
DivEyeSurprisal diversity0.730

Linguistic Heuristics

EngineSignalAUC
Structural AnalysisEm-dash usage, sentence uniformity0.836
Linguistic MarkersAI-preferred phrases ("delve", "tapestry"...)0.713
Formulaic PatternsCliche openings and closings0.698
Vocabulary RichnessType-token ratio, hapax legomena0.583
Readability UniformityCross-paragraph consistency0.581
BurstinessPer-sentence perplexity variance0.582
Sentiment & HedgingHedging and forced balance0.522

The linguistic heuristics are weak on their own. They are kept because they fail independently of the neural classifiers, which is what makes them useful as tiebreakers rather than as evidence.

Scoring

The overall score is a logistic model over the engine scores, fitted on SlopBench. The fitted parameters are in app/calibration.json, and every number in the fit's report, tests/eval/slopbench/FINDINGS.md, is measured on kinds of writing the fit never saw. docs/CALIBRATION.md explains each field in the JSON and how to regenerate it.

  1. Weights from a fit, not by hand. Each engine's score is turned into log-odds and weighted by the model, with weights kept non-negative. An engine earns weight only for what it adds once the others are known, so engines that fail together do not count twice. In English, 8 of the 23 engines carry weight (Structural, Desklib, Fakespot, SuperAnnotate, Formulaic, Readability, Binoculars and Burstiness). The other 15 add nothing on top of them, and every one is still shown in the report.
  2. Bands set on human text. The output is mapped so that 45 is where the top 5% of human texts begin, 55 the top 2% and 80 the top 0.5%.
  3. Short texts held back. Short English texts are pulled toward a neutral score by words / (words + 5); other languages use a fitted short-text term. Scripts written without spaces (Chinese, Japanese, Thai and others) skip it.
  4. Other languages. A separate fit with a per-language offset, placed so 5% of human text scores above 45, and a support status: supported for German, Spanish, French, Italian, Japanese, Dutch, Polish, Portuguese and Russian; experimental for Arabic and Korean; not yet reliable for Hindi, Turkish and Chinese.
  5. Confidence from the score. Low under 80 words, in a language that is not yet reliable, or between 35 and 65; medium in an experimental language or between 15 and 80; high otherwise.

Up to v1.1 the score was a hand-weighted blend anchored on four classifiers. tests/eval/FINDINGS.md keeps that history, including the Fakespot bias against pre-1920 prose that led to it.

Configuration

SlopTotal detects CPU, RAM and GPU at startup and picks a profile. Everything can be overridden with environment variables; see .env.example.

ProfileWhen chosen (RAM)CPUGPUNotes
Litebelow 8 GB2 coresNoneFewer workers; still loads every model
Standard8 GB or more4 coresNoneDefault for most laptops
Performance16 GB or more6+ coresCUDA optionalPool replicas, max throughput

Profiles change workers and replicas, not which engines run. Every profile loads all models: about 8.3 GB of RAM once loaded (an estimate) and about 9 GB on disk. Per-engine memory and latency, measured on one machine, are in docs/MODELS.md.

NVIDIA GPU: requirements.txt installs the CPU-only torch wheel. To run the models on the GPU, replace it with a CUDA build of the same torch version (keep the version: upgrading torch can move scores):

pip uninstall -y torch
pip install torch==<installed version> --index-url https://download.pytorch.org/whl/cu130 --extra-index-url https://pypi.org/simple
python -c "import torch; print(torch.cuda.is_available())"   # True

cu130 needs an NVIDIA driver with CUDA 13 support and covers RTX 20xx through 50xx; pick another index from pytorch.org for older cards. With CUDA and at least 4 GB of VRAM, startup selects the performance profile and the banner shows Device: cuda. All models run in fp32, so scores match the CPU to three decimals.

High-RAM CPU servers (e.g. 64 GB, no GPU): you automatically get the performance profile. With no CUDA, all inference stays on CPU but you can run more concurrent workers and model pool replicas:

# Tune for a 64 GB CPU-only server
export SLOPTOTAL_PROFILE=performance
export SLOPTOTAL_TORCH_THREADS=8
export SLOPTOTAL_FULL_WORKERS=8
export SLOPTOTAL_SNIPPET_WORKERS=6
export SLOPTOTAL_MAX_CONCURRENT_FULL=4
export SLOPTOTAL_POOL_FAKESPOT=2
export SLOPTOTAL_POOL_TMR=2
./scripts/start.sh
VariableDefaultPurpose
SLOPTOTAL_PROFILEautolite, standard or performance
SLOPTOTAL_RETENTION_DAYS30Delete reports after N days (0 keeps them)
SLOPTOTAL_DIRECT_DAILY_LIMIT0 (no limit)Calls per client IP per UTC day that start an analysis from outside the first-party origins below; for a public instance
SLOPTOTAL_FIRST_PARTY_ORIGINSsloptotal.com, the extension, localhostRegex of browser origins allowed by CORS and not counted by the daily limit
SLOPTOTAL_ALLOW_PRIVATE_URLSoffLet URL scans reach private or intranet hosts (blocked by default)
SLOPTOTAL_DATA_DIRproject-root data/Directory for stored reports and the database
SLOPTOTAL_DB_NAMEsloptotal.dbDatabase filename inside the data directory
SLOPTOTAL_DB_TIMEOUT30.0 secondsSQLite connection timeout
SLOPTOTAL_DB_BUSY_TIMEOUT5000 millisecondsSQLite busy timeout
SLOPTOTAL_CACHE_ENABLEDtrueEnable result caching (true, 1 or yes, case-insensitive)
SLOPTOTAL_DEVICEauto-detectedOverride inference device with cpu or cuda; otherwise CUDA is used when available
SLOPTOTAL_RESERVED_CORES2CPU cores reserved when calculating usable analyzer cores
SLOPTOTAL_SHORT_LANE_WORDS350Word-count threshold for the short-text lane
SLOPTOTAL_SHORT_WORKERS4Short-text worker count
SLOPTOTAL_MAX_CONCURRENT_SHORT2Concurrent short-text scan limit enforced by the queue manager
SLOPTOTAL_MAX_CONCURRENT_SNIPPET4 (2 in lite)Concurrent snippet scan limit
SLOPTOTAL_POOL_BERT_RAID1 (see below)BERT RAID model pool replicas
SLOPTOTAL_POOL_E51 (see below)E5 model pool replicas
SLOPTOTAL_POOL_FAKESPOT1 (see below)Fakespot model pool replicas
SLOPTOTAL_POOL_TMR1 (see below)TMR model pool replicas
SLOPTOTAL_QUIEToff1, true or yes drops the one-line GitHub star note from the startup log
HF_HOME~/.cache/huggingface (Docker image: /app/models)Where model weights are cached

Startup profiles populate unset settings before the analyzer reads its fallback defaults. Explicit environment values take precedence. The lite profile sets the snippet concurrency limit to 2; other profiles use 4. On CPU, the performance profile sets all four classifier pools above to 2 when RAM is at least 32 GB; otherwise these pools use 1, including CUDA profiles.

FAQ

Can AI detectors be trusted? Not blindly. No detector, this one included, should be the only evidence for an accusation. That is why SlopTotal shows all 23 votes, how much they agree, and its measured false-positive rate. Short text (under about 80 words) and heavily edited AI text are unreliable for every detector.

Does it detect ChatGPT, Claude, Gemini, Llama and Mistral? The evaluation corpus includes GPT-4, ChatGPT, Llama and Mistral output. The classifiers were trained on a wider mix. Newer models are covered as far as they share those fingerprints; the evaluation harness lets you measure any model you care about.

Will it flag classic literature or formal writing? Not in our tests: none of the 26 passages from Austen, Melville, Kafka, Machiavelli and others is flagged. Pre-1920 prose is part of the evaluation precisely because naive detectors fail on it.

Is my text stored or shared? It is processed on the server you run. Reports are kept for 30 days (configurable) so report links work, and nothing is sent to an outside service.

Can it detect AI-generated code? No, and we do not claim it can: in testing the engines never flagged human code but never caught machine-written code either. The Site check reports which AI app builder produced a website, which is a different question.

Troubleshooting

SymptomFix
TypeError: unsupported operand type(s) for | at startupPython 3.9 or older; use 3.10+
An engine reports Model loading failedCheck disk space and network for the first model download, then restart; python scripts/smoke_test.py shows which engine fails
First scan is slowModels are loading; later scans take seconds
no matching manifest for linux/arm64/v8An old local copy of the image from before arm64 builds; run docker pull ghcr.io/pablocaeg/sloptotal
The container stops with exit code 137Out of memory; in Docker Desktop raise the memory limit to 12 GB (Settings, Resources)
port is already allocatedPort 8000 is taken; run with -p 8080:8000 and use http://localhost:8080
A URL scan says "private network address"Intended; set SLOPTOTAL_ALLOW_PRIVATE_URLS=1 to scan intranet pages

Project layout

app/            FastAPI backend: engines, ensemble, site fingerprints, API
web/            The web UI (Jinja2 templates, vanilla JS, no build step)
tests/          Unit tests (seconds, no downloads) and tests/eval/ accuracy harness
scripts/        smoke_test.py (end-to-end) and the model drift check
benchmarks/     Speed and load scripts

ARCHITECTURE.md covers the internals. AGENTS.md is a short brief for contributors and AI coding assistants.

Newer open detectors we measured

Detector models keep appearing on Hugging Face, each with its own accuracy claim. Before adding any, we score them on the same two corpora. September 2026, standalone, 180 RAID texts plus the 26 literary passages:

ModelRAID AUCLiterary bias (lower is better)Status
Gradient (DeBERTa-v3-large)0.9980.033Next engine to add
Vanguard (ModernBERT-large)0.9980.037Candidate; poorly calibrated at 0.5
Earlybird-fast (82M)0.9130.040Candidate for fast snippet scans
rasbt ModernBERT0.8640.000Not added

RAID-trained models score near 1.0 on RAID by construction and need a different test set first. The full table, the models we excluded and why, and the raw scores are in tests/eval/FINDINGS.md. The roadmap is in TODO.md.

Related projects and reading

Contributing

Contributions are welcome, especially new engines with measurements. Start with CONTRIBUTING.md.

If SlopTotal is useful to you, a star helps other people find it.

License

MIT. Model weights keep their own licenses; see THIRD_PARTY_LICENSES.md.

PYPI
sloptotal-mcp
Install Command
pip install sloptotal-mcp
Runtime: uvx
OCI
ghcr.io/pablocaeg/sloptotal-mcp:0.1.1
Install Command
docker pull ghcr.io/pablocaeg/sloptotal-mcp:0.1.1:undefined
Runtime: docker