
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.
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
ollama pull gpt-oss:20b
ollama run gpt-oss:20bpip install gpt-osspip install -U transformers kernels torchCommands 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.
Meta's family of downloadable open-weight language models, including the multimodal mixture-of-experts Llama 4.
Microsoft's MIT-licensed Phi small language models (Phi-4 family) for reasoning, vision and multimodal tasks on modest hardware.
DeepSeek's MIT-licensed open-weight reasoning and chat models, also served through an OpenAI- and Anthropic-compatible API.
MCP servers for this
MCP reference server that gives an AI client controlled read/write access to chosen local directories.
Open-source MCP server that gives coding agents simplified Figma layout and styling data to implement designs.
Community MCP server and Blender addon that let an AI agent model, light and render scenes in a running Blender.
Skills for this
Hugging Face's Agent Skills for the Hub CLI, datasets, model training, evaluation, Spaces and SageMaker deployment.
Anthropic skill that guides Claude through designing, building and evaluating MCP servers in TypeScript or Python.
Related resources
Open-source Python library for building AI agents that browse and act on websites, with an optional hosted cloud.
Open-source framework for building LLM agents and apps with a standard interface across model providers.
Coding agent that runs each thread in a cloud sandbox, with a CLI, web, desktop and mobile apps.
Anthropic's agentic coding tool that works in your terminal, IDE, desktop app and on the web.