LibreAI / AI Agents / modelscan
// agents · protectai/modelscan

modelscan

Scan AI models for serialization attacks before you load them.

★ 781 stars⑂ 168 forksApache-2.0updated 2026-09
▦ visual — this project's README ships no embeddable screenshot,
so here's a placeholder. The guide below is complete regardless.
// project facts

Project facts

modelscan is an open-source ai agents project by protectai (protectai/modelscan on GitHub). It has 781 GitHub stars and 168 forks, is released under the Apache-2.0 license, and was last updated on GitHub on 28 September 2026.

GitHub stars
781
Forks
168
License
Apache-2.0
Last updated on GitHub
28 September 2026
Category
AI Agents
Listing
Full install guide
Official site
Official site
// how it works

How it works

  1. Clarify your goal

    Decide what you want the project to do before installing anything.

  2. Clone the repo

    Grab the source and skim the README for setup requirements.

  3. Install and configure

    Install dependencies and add any API keys or settings it needs.

  4. Run your first task

    Launch it and follow the example workflow from the docs.

// features

Why people love it

Serialization scanning

Inspects model files for dangerous payloads.

Pre-load checks

Scan before deserialization, not after.

Supply-chain defense

Trust-but-verify for downloaded weights.

CI-friendly

Gate deployments on scan results.

Python

Drops into ML pipelines easily.

Protect AI maintained

From a dedicated AI-security company.

Advertisement
// run it

Run it yourself

  1. Step 1 — Clone the repo

    Download the source and move into the project folder.

    git clone https://github.com/protectai/modelscan.git
    cd modelscan
  2. Step 2 — Create a venv and install

    Isolate dependencies, then install requirements.

    python -m venv .venv && source .venv/bin/activate
    pip install -r requirements.txt
  3. Step 3 — Run it

    Launch using the entry point shown in the README.

    python -m modelscan  # check README for the exact command
// use cases

What you can build

Advertisement
// faq

Questions, answered

Who maintains modelscan?

It is an open-source project at protectai/modelscan with 168 forks. Check the contributors tab and recent commits to judge how active maintenance is.

Is modelscan free to use?

Yes — Apache 2.0 allows commercial use and modification. Keep the license and notice files, and note it includes a patent grant.

What attacks does it catch?

Model serialization attacks — malicious code hidden in model files that executes on load.

How do I use it?

Point it at model files before loading them, ideally as a CI step.

How do I get started?

Clone the repo and follow the README quickstart — the docs at http://modelscan.ai walk through setup.

// keep exploring

Similar tools

AI Agents

garak

Scan your LLM for vulnerabilities before attackers do.

★ 9.5k starsApache-2.0
View guide →
AI Agents

career-ops

Open-source AI job search agent and job finder: scan job boards, score each job 1-5 against your CV before you apply, tailor an ATS-friendly resume and cover…

★ 73.4k starsMIT
View guide →
AI Agents

opendia

Connect your browser to AI models with a Dia-style assistant.

★ 1.9k starsMIT
View guide →
AI Agents

agentdojo

Test your agents against prompt-injection attacks.

★ 897 starsMIT
View guide →
AI Agents

openinterpreter

A coding agent tuned for open models like Kimi, GLM, DeepSeek, and Qwen.

★ 68.5k starsApache-2.0
View guide →
AI Agents

lerobot

Hugging Face's LeRobot: datasets, models and tools to make real-world robotics AI accessible

★ 28.0k starsApache-2.0
View guide →
// alternatives

Alternatives in AI Agents

The most-starred other AI Agents projects in the LibreAI catalogue — the realistic shortlist if modelscan is not the right fit.

Get modelscan

Free and open — grab the source, star the repo, and start creating.