Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

gpt-oss-20b

by OpenAI

OpenAI reasoning model on your computer.

Text and agentsCommercial useRuns on 32 GB

Hugging FaceDemos

1. Commercial use

“each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work”

Any use is allowed, paid products included; follow applicable law as the usage policy asks.

huggingface.co/openai/gpt-oss-20b/raw/main/LICENSE

Checked against its official pages on Nov 23, 2026. Tap a verdict to see its source.How we checkedReport an error

What gpt-oss-20b does

gpt-oss-20b is an open text model by OpenAI that reasons step by step, calls tools and runs on a machine with 16 GB of memory. It is the smaller of OpenAI's two open-weight models. The files are on Hugging Face, free to use in paid products under the Apache 2.0 license.

What people use it for

Private assistant on a laptop

Run a chat assistant on your own computer with Ollama, so prompts and answers stay on the machine.

Use it from Python

Load the model with Hugging Face Transformers and call it from your own script or backend.

Drop-in local server for OpenAI-style apps

Start a local server that accepts the same request format as OpenAI's hosted models, so an existing app can switch to it.

Agents with tools

Build an agent that calls your functions, browses the web, runs Python and returns answers in a fixed format.

Choose speed or depth per request

Set the reasoning level to low for quick chat, or medium or high for harder questions, in the system prompt.

Train it on your own data

Fine-tune it for your own task on ordinary hardware, without a data center.

gpt-oss-20b popularity

5,348
likes on Hugging Face
5.4M
downloads, last 30 days
14
Hugging Face trending score

As reported by Hugging Face, checked Nov 26, 2026. Downloads include automated ones; some repositories report none.

Where to run gpt-oss-20b

Through an API

Provider$ per 1M in / outToolsContext
AkashML (99.1% up, 24h)$0.018 / $0.09Yes131K
OpenRouter$0.024 / $0.112Yes131K
CoreWeave (99.7% up, 24h)$0.03 / $0.13Yes131K
OpenRouter$0.03 / $0.13Yes131K
DeepInfra (98.6% up, 24h)$0.03 / $0.14Yes131K
Parasail (100% up, 24h)$0.03 / $0.15Yes131K
Amazon Bedrock (100% up, 24h)$0.07 / $0.15Yes131K
Groq (99.8% up, 24h)$0.075 / $0.3Yes131K
PrimeIntellect (99.6% up, 24h)$0.2 / $0.3Yes131K

As reported by each provider via Hugging Face Inference Providers and OpenRouter, checked Nov 26, 2026.

On your machine

Parameters

20.9B

Memory at 4-bit

about 12.5 GB

Our estimate: 0.6 GB per billion parameters, with room for the context.

GGUF builds

60 on Hugging Face

For llama.cpp, Ollama and LM Studio; e.g. ggml-org/gpt-oss-20b-GGUF

MLX builds

20 on Hugging Face

For Apple silicon

gpt-oss-20b license

Free to use, change and sell inside paid products under Apache 2.0. If you pass the model files on, include a copy of the license and mark the files you changed.

In a paid product
Yes

Any use is allowed, paid products included; follow applicable law as the usage policy asks.

“each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work” source

Ship the weights to users
With conditions

Shipping the weights or a fine-tuned copy needs a copy of the Apache 2.0 license and a note on changed files.

“You must cause any modified files to carry prominent notices stating that You changed the files” source

Work for clients
Yes

You may build and deliver client projects with it under the same Apache 2.0 terms.

“each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work” source

Alternatives

gpt-oss-20b This page

5,348 likesApache 2.0

Qwen3.8-27B

Qwen · image-text-to-text

21.7K likesApache 2.0

Kimi-K3

moonshotai · image-text-to-text

12K likesCustom license

Llama-3.1-8B-Instruct

meta-llama · text-generation

9,102 likesLlama 3.1 license

Qwen3.8-Flash-Next

Qwen · image-text-to-text

7,502 likesCustom license

All text and agents models

Get started

Tell your AI assistant

“Run openai/gpt-oss-20b locally (ollama run gpt-oss:20b, or a transformers pipeline with torch_dtype="auto" and device_map="auto"), always go through the chat template so the harmony format is applied, set "Reasoning low/medium/high" in the system prompt, and never show the reasoning text to end users.”

  1. Install the libraries.

    pip install -U transformers kernels torch

    From huggingface.co/openai/gpt-oss-20b/raw/main/README.md

  2. Run the model with a Transformers pipeline (see the "Use it from Python" recipe above).

    From huggingface.co/openai/gpt-oss-20b/raw/main/README.md

  3. Or, on a laptop, pull and run it with Ollama.

    ollama pull gpt-oss:20b
    ollama run gpt-oss:20b
    

    From huggingface.co/openai/gpt-oss-20b/raw/main/README.md

Model id to use

OpenAI-compatible: base URL https://openrouter.ai/api/v1

openai/gpt-oss-20b

Mistakes to avoid

Calling model.generate on a plain text prompt
Use the Transformers chat template (or the openai-harmony package) so the prompt is in harmony format

Without the harmony format the model does not work correctly.

Showing the model's reasoning text to end users
Show only the final answer; keep the reasoning for logs and debugging

OpenAI says the reasoning may contain made-up or harmful content.

Shipping the reference browser or Python tool from the gpt-oss repository as is
Write your own browsing backend and lock down the container that runs Python

OpenAI marks these tools as examples, not for production.

Reusing one browser tool object for many requests
Create a new browser tool instance for every request

The tool caches pages between calls.

Sending it images or audio
Use a model that reads images, such as Gemma 4 or Qwen3-VL, for pictures

gpt-oss was trained on text only.

Questions

Can I use gpt-oss-20b in a paid product?

Yes. It is under Apache 2.0, which allows commercial use; keep the license text with any copies of the files you share.

What computer do I need?

OpenAI says it runs within 16 GB of memory; the larger gpt-oss-120b needs one 80 GB GPU.

How do I make it think longer?

Put "Reasoning high" in the system prompt; low is fastest, medium is balanced.

Can it read images?

No. It was trained on text only.