openapi-changes lets you inspect what changed in an OpenAPI specification between two files,
across local git history, or directly from a GitHub-hosted file URL.
It can render the same semantic change model as:
- an interactive terminal UI
- a terminal summary
- a machine-readable JSON report
- a markdown report
- a self-contained offline HTML report
It works well for local exploration, CI/CD checks, release notes, and API review workflows.
openapi-changes gives you the power to view all changes between two OpenAPI contracts, and over time in every which way you can possibly think of. Graphs, trees, lists, diffs, JSON, mark down.
Has no network dependencies at all. Runs 100% offline, including the HTML report.
brew install pb33f/taps/openapi-changesnpm i -g @pb33f/openapi-changesIf you prefer yarn:
yarn global add @pb33f/openapi-changescurl -fsSL https://pb33f.io/openapi-changes/install.sh | shdocker pull pb33f/openapi-changesDocker images are available for both linux/amd64 and linux/arm64.
To run a command, mount the current working directory into the container:
docker run --rm -v $PWD:/work:rw pb33f/openapi-changes summary . sample-specs/petstorev3.jsonTo run the interactive console through Docker, allocate a TTY with -it:
docker run --rm -it -v $PWD:/work:rw pb33f/openapi-changes console . path/to/openapi.yamlComes in multiple themes! PB33F (Dark), Roger Mode (Light) and Tektronix (Retro Dark)
A self-contained, offline HTML report with interactive timeline, change explorer graph, diff views, and more.
Full docs: https://pb33f.io/openapi-changes/
- Installing openapi-changes
- Configuring breaking changes
- Command arguments
- Commands:
- About openapi-changes
openapi-changes currently requires Go 1.25.0.
git clone https://github.com/pb33f/openapi-changes.git
cd openapi-changes
go build -o bin/openapi-changes .Or use make:
makeThe current command surface is:
consolefor the interactive terminal UIsummaryfor fast terminal and CI outputreportfor machine-readable JSONmarkdown-reportfor shareable markdown outputhtml-reportfor the interactive offline browser reportcompletionfor shell completion scripts
Run openapi-changes --help or openapi-changes <command> --help for the live CLI surface.
The terminal-facing commands support multiple presentation modes:
--no-colorfor the light Roger monochrome theme--roger-modeas an alias for--no-color--tektronixfor the green monochrome terminal theme
See the command arguments docs for the full shared flag set.
openapi-changes supports configurable breaking-change rules via changes-rules.yaml.
openapi-changes summary -c my-rules.yaml old.yaml new.yamlopenapi-changes summary old.yaml new.yamlDefault lookup locations:
./changes-rules.yaml~/.config/changes-rules.yaml
pathItem:
get:
removed: false
post:
removed: false
put:
removed: false
delete:
removed: false
schema:
enum:
removed: false
parameter:
required:
modified: falseEach rule supports:
addedmodifiedremoved
For the full rules reference and more examples, see the configuration docs.
See the full docs at https://pb33f.io/openapi-changes/












