Scalar is an open-source API platform centered on OpenAPI and Swagger. It offers interactive API references, an offline-first API client, and related docs and agent-facing tooling.
Overview
Scalar is an open-source API platform built around OpenAPI and Swagger. Its API reference component renders OpenAPI documents, includes API testing, generates multi-language code examples, and ships plugins for many web and backend frameworks.
A separate API client is free, open-source, offline-first, and aimed at OpenAPI workflows with environment variables, dynamic parameters, and watch-mode sync with server frameworks. It can be tried in the browser or downloaded for Windows, macOS, and Linux.
Setup paths include a single HTML file loading an ESM build from a CDN, framework-specific integrations, and optional managed hosting for published API references and documentation. Additional listed projects cover registry, SDK generation, CLI, mock server, parsers, and editors.
Hosted docs, MCP servers derived from OpenAPI, and generated SDKs in several languages are available; the docs core remains open source. The stack is intended as infrastructure between an API and agents or developers consuming it.
Key features
- OpenAPI and Swagger rendering
- Built-in API testing
- Multi-language code examples
- Framework plugins and integrations
- Offline-first API client
- Environment and dynamic parameters
- OpenAPI SDK generation
- Hosted MCP from OpenAPI
Use cases
- Publishing interactive API references
- Testing REST APIs against OpenAPI specs
- Embedding docs in web frameworks
- Agent-ready API documentation
- Generating typed client SDKs
Open-source alternative to