CreateWithAIHub

AI model OpenAI

gpt-oss

OpenAI's Apache-2.0 open-weight reasoning models, gpt-oss-120b and gpt-oss-20b, for local and self-hosted use.

Open-weight modelsFreeOpen source
Visit website ↗
Save

What it is

gpt-oss is OpenAI's open-weight model family: gpt-oss-120b (117B total, 5.1B active parameters, fits on a single 80GB GPU) and gpt-oss-20b (21B total, 3.6B active, runs within 16GB of memory), plus gpt-oss-safeguard variants for safety classification. They are text-only mixture-of-experts reasoning models with a 128k context, released under Apache-2.0. They run through Transformers, vLLM, Ollama, LM Studio and llama.cpp and are offered on Amazon Bedrock, Amazon SageMaker JumpStart, Azure AI Foundry and other hosts, but not in the OpenAI API.

What it's useful for

Running a reasoning model with tool use entirely on your own machine or server, for example gpt-oss-20b on a laptop through Ollama.

Key features

  • gpt-oss-120b and gpt-oss-20b mixture-of-experts models
  • 128k context window
  • Apache-2.0 license
  • gpt-oss-safeguard models for policy-based safety classification
  • Runs in Transformers, vLLM, Ollama, LM Studio and llama.cpp
  • Reference implementations in the official gpt-oss repo

How to use it

Before you start

  • 16GB of memory for gpt-oss-20b, one 80GB GPU for gpt-oss-120b
Run with Ollama
ollama pull gpt-oss:20b
ollama run gpt-oss:20b
Install reference package
pip install gpt-oss
Transformers
pip install -U transformers kernels torch

Commands are copied from the official documentation. Check the docs for the latest version before running them.

Limitations to know

  • Requires the harmony response format to work correctly
  • Text only, no image input
  • Not served through the OpenAI API
  • The reference PyTorch implementation needs at least 4x H100 GPUs

Alternatives

Google DeepMind's Apache-2.0 open-weight Gemma 4 models, from on-device E2B to 31B, with text, image and audio input.

FreeOpen source

Meta's family of downloadable open-weight language models, including the multimodal mixture-of-experts Llama 4.

Free

Microsoft's MIT-licensed Phi small language models (Phi-4 family) for reasoning, vision and multimodal tasks on modest hardware.

Free plan + paidOpen source

DeepSeek's MIT-licensed open-weight reasoning and chat models, also served through an OpenAI- and Anthropic-compatible API.

Free plan + paidOpen source

See all 9 gpt-oss alternatives →

MCP servers for this

MCP reference server that gives an AI client controlled read/write access to chosen local directories.

FreeOpen source

Open-source MCP server that gives coding agents simplified Figma layout and styling data to implement designs.

Free plan + paidOpen source

Community MCP server and Blender addon that let an AI agent model, light and render scenes in a running Blender.

Free plan + paidOpen source

Skills for this

Hugging Face's Agent Skills for the Hub CLI, datasets, model training, evaluation, Spaces and SageMaker deployment.

FreeOpen source

Anthropic skill that guides Claude through designing, building and evaluating MCP servers in TypeScript or Python.

FreeOpen source

Related resources

Open-source Python library for building AI agents that browse and act on websites, with an optional hosted cloud.

FreeOpen source

Open-source framework for building LLM agents and apps with a standard interface across model providers.

FreeOpen source

Coding agent that runs each thread in a cloud sandbox, with a CLI, web, desktop and mobile apps.

Free plan + paid

Anthropic's agentic coding tool that works in your terminal, IDE, desktop app and on the web.

Paid

Type to search. Use ↑ ↓ and Enter.