Hermetic
Hermetic is an open-source, agentic tester for REST microservices. Give it an OpenAPI spec and any design or architecture docs. It works out the service's external dependencies (databases, caches, downstream HTTP services), stands them up as mocks, generates a runnable test suite, runs it, and reports failures with a curl command you can paste to reproduce each one.
Each run is kept in a local history. A small web UI shows past runs, which tests failed and why, and which tests were added, modified, or dropped since the last run, and why.
Status: early (v0.1). Every stage in the pipeline works end to end: ingest, discover, provision, generate, run, report and history. It is young, so read
docs/architecture.md(Known limits) before you rely on it. To add your own report destination, seedocs/writing-sinks.md.
Install
pip install hermetic-agent # once published; the command it installs is `hermetic`
# or run the container
docker run --rm ghcr.io/subhiandrews/hermetic --help
Use
hermetic discover openapi.yaml --docs docs/ # finds the databases, caches and services it depends on
hermetic compose --service <service> # writes the mock stack (compose file) for those dependencies
hermetic stubs --service <service> --name <dep> --spec dep.yaml # WireMock stubs for an HTTP dependency, from its OpenAPI file
hermetic up --service <service> # starts it and prints NAME=URL lines; `hermetic down` removes it
hermetic generate openapi.yaml --docs docs/ # writes tests/<service>/ from the spec
hermetic run --target http://localhost:8080 --spec openapi.yaml # runs it and records the run
hermetic serve # the web UI, at http://127.0.0.1:8000
hermetic export --service <service> # packs the tests into hermetic-tests-<service>.zip
hermetic publish --service <service> # hands the tests to a publisher (local, or --publisher github-pr)
<service> is a slug of the spec's title unless you pass --service. Each command has --help.
Web UI
hermetic serve lists the services, each service's runs with a pass-rate trend, and every run's failures (with a curl to reproduce) and added, modified and dropped tests. It listens on loopback only and refuses a Host header it was not started for.
In a container the server has to listen on every interface for the published port to reach it. Publish that port on loopback only, and mount the history so it outlives the container:
docker run --rm -p 127.0.0.1:8000:8000 -v "$PWD/.hermetic:/work/.hermetic" \
ghcr.io/subhiandrews/hermetic serve --host 0.0.0.0
It then answers to localhost. For any other name (a reverse proxy, a team hostname) add --allowed-host <name>; without it that name gets a 421. --host 0.0.0.0 prints a warning because anyone who can reach the port can read the history.
To keep one history for many machines, set HERMETIC_API_TOKEN (32 or more characters) on the server and hermetic run --history-dir https://your-server on each client, which reads the same variable. Put a TLS proxy in front of it. See docs/architecture.md (Central history).
Examples
examples/petclinic: a real OpenAPI spec (Spring PetClinic REST) with a design note and the files Hermetic produces from them.
examples/sockshop: the Sock Shop orders service, which has a database and calls three other services, all described by Swagger 2.0 files.
How the examples are checked is in docs/architecture.md (Examples).
Develop
Requires uv and Python 3.12+.
uv sync --group dev
uv run pytest --cov
uv run ruff check . && uv run ruff format --check . && uv run mypy
uv run hermetic version
See CONTRIBUTING.md.
License
MIT. Contributions are welcome; improvements are shared back through pull requests.
Metadata
Release files for hermetic-agent 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hermetic_agent-0.1.0.tar.gz | 331.5 kB | With provenance | Details for hermetic_agent-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hermetic_agent-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for hermetic_agent-0.1.0-py3-none-any.whl |
Total release size: 449.2 kB
Release files / hermetic_agent-0.1.0.tar.gz
| Download URL | hermetic_agent-0.1.0.tar.gz |
|---|---|
| Size | 331.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
16d549d0818630173f8f1998a08f919bae2dca64e2915676b8f7ab9cc8b82efc
|
|
BLAKE2b-256 checksum How to use checksums |
2fc740de4c329cc2f2808e1c1a51e0655712a70f1ceba05eef3bcaa12f23d7a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.
Transparency logRelease files / hermetic_agent-0.1.0-py3-none-any.whl
| Download URL | hermetic_agent-0.1.0-py3-none-any.whl |
|---|---|
| Size | 117.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8373275b5cd9fd2b2eabe7b1d16c303e75b8ef80992318e2e24390a428f65d70
|
|
BLAKE2b-256 checksum How to use checksums |
ad787e3639cb5ae22bbded4b9bf79f16d0d111f7cca4f7c1f61b496fbf47a80e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.
Transparency logSecurity for hermetic-agent 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for hermetic_agent-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.