Skip to content

gpt-oss-safeguard-20b

Hugging Face (open weights) Open weights

The catch: Built for content classification against your own policy, not as a general chat or coding model.

AccessOpen weights
Free limitsFree to download and self-host; you pay only for your own compute. 21B total / 3.6B active (MoE); fits GPUs with 16GB of VRAM. A safety classifier that reasons over a policy you write. Larger sibling: openai/gpt-oss-safeguard-120b (117B / 5.1B active).
Modalitytext
Credit cardNot required
Commercial useAllowed
Trains on your data–
Licence or termsApache-2.0
Context window131,072 tokens
Model idopenai/gpt-oss-safeguard-20b
Base URL–
Last checked8 Oct 2026

How to use gpt-oss-safeguard-20b

Download the weights and serve them yourself; the quickstart below shows one way. Licence: Apache-2.0.

Quickstart
vllm serve openai/gpt-oss-safeguard-20b  # then: curl http://localhost:8000/v1/chat/completions -H "Content-Type: application/json" -d '{"model":"openai/gpt-oss-safeguard-20b","messages":[{"role":"user","content":"Hello"}]}'
Paste into Claude Code
I want to run the open-weight model "gpt-oss-safeguard-20b" (openai/gpt-oss-safeguard-20b) for my project.
Please:
1. Check the model card and tell me the hardware it needs and the simplest way to serve it (vLLM, SGLang, Ollama or a hosted endpoint).
2. Give me a minimal working setup and a test request.
3. Tell me the licence terms for commercial use.
4. If a cheaper or smaller variant would do the job, mention it.

Before you ship on it

  • Built for content classification against your own policy, not as a general chat or coding model.
  • Apache-2.0 (licence tag on the HF repo; the card calls it ideal for commercial deployment): use, modify, distribute and sell, including commercially; keep the licence and notices when you redistribute.
  • Free to run means you pay for the GPUs, the serving stack and the on-call.

Questions

Is gpt-oss-safeguard-20b free?

Yes. Open weights offers it as open weights, with these limits: Self-host free · Apache-2.0. No credit card is needed.

Can I use gpt-oss-safeguard-20b commercially?

Yes, under Apache-2.0. Check the current terms before you ship.

How do I start with gpt-oss-safeguard-20b?

Download the weights and serve them yourself; the quickstart below shows one way. Licence: Apache-2.0.

Source: huggingface.co/openai/gpt-oss-safeguard-20b, checked 8 Oct 2026.