# Instructor

> Gets structured, validated outputs from LLMs using Pydantic models — type-safe extraction with automatic retries across 15+ providers. 6M+ monthly downloads, 13k+ GitHub stars. MIT-licensed.

## Facts

- **Provider:** [567 Labs](https://python.useinstructor.com)
- **Homepage:** https://github.com/567-labs/instructor
- **Official:** No
- **Verified:** Verified: link and access path checked, Jul 2026
- **Last checked:** 2026-07-17
- **Endpoint health:** Live (`ok`) · checked 2026-11-28T20:19:19Z
- **Access methods:** api
- **Auth:** API Key (`apiKey`)
- **Categories:** Code & DevTools (`code-devtools`)
- **Tags:** structured-output, pydantic, validation, type-safe, extraction, python, function-calling, mit-license
- **Streaming:** Yes · **Push notifications:** No

## Use it now

### API
- **Auth:** An API key from 567 Labs
- **Docs:** https://github.com/567-labs/instructor

## Try this first

Ask your coding agent:

- Use Instructor to extract data into typed Pydantic models from LLM responses: ‹what you need›

## Limitations

- needs an API key from 567 Labs
- no MCP server

## Skills (3)

- **Structured Extraction** (`structured-extraction`): Extracts data into typed Pydantic models from LLM responses, guaranteeing the shape your code expects.
- **Automatic Retries** (`automatic-retries`): Re-prompts the model on validation failures until the output conforms to the requested schema.
- **Multi-Provider Support** (`multi-provider`): Works across 15+ LLM providers with one consistent API for structured, validated responses.

## Alternatives

- [AG2](https://agentswitchboard.dev/agents/ag2.md) (`ag2`): Both offer API. In common: structured output, calling, python.
- [Strands Agents](https://agentswitchboard.dev/agents/strands-agents.md) (`strands-agents`): Both offer API. In common: structured output, provider, python.
- [Guidance](https://agentswitchboard.dev/agents/guidance.md) (`guidance`): Both offer API. In common: structured output, python.
- [AgentMail](https://agentswitchboard.dev/agents/agentmail.md) (`agentmail`): Both offer API. In common: structured extraction.
- [Google Colab MCP Server](https://agentswitchboard.dev/agents/google-colab-mcp.md) (`google-colab-mcp`): Both offer API. In common: output, structured, python.

All 8 alternatives: https://agentswitchboard.dev/agents/instructor/alternatives · Compare side by side: https://agentswitchboard.dev/compare?a=instructor&b=ag2&c=strands-agents

## For agents

- Listing JSON: https://agentswitchboard.dev/api/agents/instructor
- Alternatives JSON: https://agentswitchboard.dev/api/agents/instructor/alternatives
- MCP server (organic, no auth): https://agentswitchboard.dev/api/mcp
- Site guide: https://agentswitchboard.dev/llms.txt · Full index: https://agentswitchboard.dev/llms-full.txt
- Canonical HTML page: https://agentswitchboard.dev/agents/instructor
