Self-hosting PQClean: what your team needs to run it

PQClean is source code you copy and build, not a hosted service, so self-hosting means your team owns building, testing and keeping the code current. This page sets out what that work involves and when to consider paid help.

On this page

What does running PQClean yourself actually involve?

If you are an engineering lead deciding whether to self-host PQClean or pay for outside help, start by understanding what you would actually be taking on. PQClean is a collection of clean, portable C reference implementations of post-quantum schemes, distributed as source code that you copy into your project and build. It has no server, service or hosted deployment, so "self-hosting" here means your team owns the build, the testing and every later change. The PQClean GitHub organization owns the project, and the sources listed on this page cover its README and repository. Before you commit, confirm that each implementation directory you need builds in your own toolchain, since the README gives Makefile and nmake files only as build examples.

The first real work is integration. The README says to copy an implementation directory, such as crypto_kem/kyber768_clean, into your project and add its files to your build system. You must also supply the primitives the code depends on: randombytes, and possibly SHA-2, AES, SHA-3 (fips202) and cSHAKE (SP 800-185), depending on the scheme. Your team should decide who provides these, where they come from, and how they are reviewed. The README also warns that the common code may not be the most performant and may use heap allocations for testing purposes, so profile it before it reaches production paths. Budget engineers with C build experience and a clear owner for the dependency map.

Testing is the second piece, and it is heavier than copying files. The test suite is written in Python and run with pytest, after git submodule update --init, using pytest -v or pytest -n=auto from the test directory. The README requires Python 3.6 or later and pytest. The suite also uses valgrind, AddressSanitizer, test-vector consistency checks across endianness and word size, and strict-warning builds on gcc and clang. Check the PQClean wiki for the test framework. Most important for upkeep: the repository was archived and made read-only on 4 August 2026, so no upstream fixes or standards changes will arrive. Your team will own every update, and you should confirm each directory against the final FIPS 203, 204 and 205 text yourself.

What PQClean documents about its delivery model and platforms

This table lists what PQClean's own documentation says about how it is delivered, where its checks run and how it is maintained. Read each row as a fact the project states, then check it against the version and environment you plan to run. The main takeaway is that PQClean is source code you copy and build, so your team owns the build, the tests and any later changes.

ItemWhat the project documentsWhat your team should confirm
OwnerPQClean organization on GitHub, described as clean, portable, tested implementations of post-quantum cryptographyConfirm who you would contact for questions, since the repository is now read-only
What it isStandalone C implementations of schemes collected from the NIST post-quantum projectConfirm which scheme directories you need and which standard each one targets
Deployment modelSource code copied into your project and added to your build system, with no hosted service or serverPlan for your own build integration, updates and fixes
Automated checksRun on Linux, macOS and Windows, with emulated Linux and Aarch64 builds on Travis CIConfirm the platforms in your own environment, since CI coverage may differ from your targets
Test toolingTests written in Python, run with pytest, which needs Python 3.6 or laterConfirm your Python and pytest versions meet the stated minimum
Repository statusArchived and read-only on 4 August 2026, with the README stating PQClean is retiredPlan to carry your own updates, fixes and standards changes after this date
Latest releaseTag round3, titled last version before round-4 candidates were removed, published 2023-04-19Check the repository for any later changes before you rely on the code
Licensing and pricingThe sources listed on this page publish no price for PQCleanReview the license on the sibling license page before adoption

Which primitives must your team supply before PQClean builds?

PQClean does not ship every primitive its schemes depend on. The project's README says the user must supply the required primitives themselves: randombytes, a source of random bytes, and, depending on the implementation, SHA-2, AES, SHA-3 (fips202) and cSHAKE as defined in SP 800-185. Before any build step, your team should open the implementation you plan to use, read its dependency list, and confirm which of these it calls. Those inputs are the part of the build your team is responsible for, so an implementation that compiles against a stub or a different provider will not show you whether the supplied primitives are correct.

To integrate an implementation, the README says to copy its directory (for example crypto_kem/kyber768_clean) into your project and add its files to your build system. Each implementation includes a Makefile and a Makefile.Microsoft_nmake that serve as build examples. Treat them as references to adapt, not as finished build files: your toolchain, compiler flags, warning settings and target platforms may differ from the examples. Run the build on the exact compiler and platform you ship, and confirm that the symbols the code expects resolve to the primitives you chose.

Confirm the dependency list for each scheme and variant you use, and record which provider backs each required primitive, since the README does not say which provider to pick. Then build and test on your own toolchain. The README's test setup uses Python 3.6 or later with pytest, but running PQClean's suite does not confirm your integration, so check the output of your own build against the standard you target. The README names Kyber, Dilithium, Falcon and SPHINCS+, and the NIST final standards are FIPS 203, 204 and 205 (see the NIST FIPS 203 page). Confirm for yourself how each directory relates to those standards.

How do you build and test PQClean in your own environment?

This sequence takes a team from a copied implementation directory to a passing test run, so you can confirm the code builds and behaves as the repository documents on your own machines. Each step names the output that tells you it is finished. The same steps apply whether you run the tests once or wire them into your own pipeline.

  1. Choose the implementation directory to copy

    Pick the scheme and parameter set your project needs from the repository, such as crypto_kem/kyber768_clean for a Kyber-768 key encapsulation build. The person doing this should check the directory name against the standard it targets, because the README uses pre-standard names such as Kyber, Dilithium, Falcon and SPHINCS+ and not ML-KEM, ML-DSA or SLH-DSA. You know this step is done when you have a list of the directories you plan to use and the standard each one is meant to match.

  2. Copy the implementation into your project

    Copy the chosen implementation directory into your project tree, following the README's instruction to place it there and add its files to your build system. Keep a record of the upstream commit or tag you copied from, because the repository is read-only and you will maintain the copy yourself from this point. The step is complete when the directory sits in your project and your team can point to the source revision it came from.

  3. Wire the files into your build

    Add the copied source files to your build system, using the Makefile or Makefile.Microsoft_nmake in the implementation directory as examples of how the project expects to be compiled. Your engineers decide how these examples fit your own toolchain. You know this step is done when the library compiles with your build tool on each platform you target.

  4. Supply the required primitives

    Provide the primitives the implementation depends on, which the README lists as randombytes and, depending on the scheme, SHA-2, AES, SHA-3 (fips202) and cSHAKE (SP 800-185). Your team must choose and vet these sources, since PQClean does not supply them for you. The step is complete when every symbol the build reports as missing is resolved by code your team has reviewed.

  5. Fetch the test submodules

    From the repository checkout, run git submodule update --init so the test dependencies are present locally. Confirm that the submodule directories are populated before you continue, because the test run will fail without them. The step is finished when the submodules show as checked out with their expected contents and the command exits without error.

  6. Install Python 3.6 or later and pytest

    Set up a Python environment that meets the README's stated minimum of Python 3.6 or later and install pytest in it. Check the installed versions before you run any tests, since older interpreters are outside the documented requirement. You know this step is done when the interpreter and pytest both report their versions from the environment the tests will use.

  7. Run the test suite from the test directory

    Change into the test directory and run pytest -v for a verbose run, or pytest -n=auto to run tests in parallel. The test suite also covers checks that the repository documents, including valgrind, AddressSanitizer, test-vector consistency across endianness and word size, and strict-warning builds with gcc and clang. Confirm which of these tools are installed on your runners, since the documented checks depend on them. The step is complete when the run reports its results and you have read which tests passed, failed or were skipped.

  8. Record the results and your toolchain

    Save the test output along with the compiler versions, Python version, operating system and any sanitizer or analysis tools you used, so the run can be repeated and reviewed later. Ask your security or compliance reviewers which records they need, since they will check the evidence against your own policies. The step is done when the record exists alongside the copied source revision from earlier.

Where your team's build, test and review work sits

The path starts with copying a PQClean implementation directory, such as crypto_kem/kyber768_clean, into your own repository and adding its files to your build system. Before the build runs, your team must supply the primitives the code needs, including randombytes and possibly SHA-2, AES, SHA-3 and cSHAKE. The Python and pytest suite, along with sanitizer and strict-warning checks, then runs against your copy. Your own review and upkeep close the loop, since the repository has been read-only since 4 August 2026 and no one upstream will ship your fixes.

The self-hosting path from copying PQClean code to your own review and upkeep.

What upkeep falls to your team once the repository is archived?

PQClean was archived and made read-only on 4 August 2026, so a team that copies its code takes on the updates, fixes and checks that the upstream project would otherwise handle. The cards below cover the work the sources on this page place on your team, from standards alignment to the test toolchain.

Owning updates and fixes

Because the repository has been read-only since 4 August 2026, no upstream project will publish fixes to the code you copy. Your team must decide which defects matter, apply any corrections itself, and record which copied directory received each change. Assign a named owner for each implementation directory you ship, and check whether any security-relevant issue is reported against the code you have already vendored into your project.

PQClean issue 604

Checking directories against final standards

The README names the standards-track schemes as Kyber, Dilithium, Falcon and SPHINCS+, which are pre-standard names. A team targeting FIPS 203, 204 or 205 must compare each directory against the final text of that standard, since ML-KEM, ML-DSA and SLH-DSA are the names those documents use. Map each copied directory to its final standard entry and note any differences you find before you rely on it for compliance evidence.

FIPS 203 text

Planning for performance and memory limits

The README says the implementations in common may not be the most performant and may use heap allocations for testing purposes. Before you ship any copied code to production, benchmark it on your target hardware and review how it allocates memory. Treat the reference implementations as a starting point that your engineers must review, not as a finished, optimized library.

Tracking the last release

The most recent GitHub release shown for PQClean is the tag round3, titled as the last version before round-4 candidates were removed, and it was published on 2023-04-19. Your team should record that tag as the baseline for any code you copy and decide which later changes, if any, you will port in yourself. Check the repository's release list before each copy so the version you adopt is documented.

Releases API

Maintaining the test toolchain

PQClean's tests are written in Python and run with pytest on Python 3.6 or later, and the suite also uses valgrind, AddressSanitizer and strict-warning builds on gcc and clang. Your team must keep those tools installed, working and pinned on its build machines, and update them when the platforms change. Confirm that the test framework still runs on each operating system you support before you rely on its results.

PQClean repository

When should a team self-host PQClean and when should it buy help?

A team with in-house cryptography and build engineering can own PQClean, because the project is source code rather than a hosted service. Each implementation directory, such as crypto_kem/kyber768_clean, is copied into your project and built with your own build system, using the included Makefile or Makefile.Microsoft_nmake as examples. The team then carries the work that a vendor would otherwise handle.

  • Build integration: your engineers add the implementation files to your build and supply the primitives the README says you must provide, such as randombytes and possibly SHA-2, AES, SHA-3 (fips202) and cSHAKE (SP 800-185).
  • Test ownership: the test suite is written in Python, needs Python 3.6 or later and pytest, and runs with pytest -v or pytest -n=auto after git submodule update --init.
  • Fixes and updates: because the repository is read-only since 4 August 2026, your team owns every fix and every change needed when standards move.
  • Standards checks: the README names Kyber, Dilithium, Falcon and SPHINCS+ as the pre-standard names, so you must check each directory against FIPS 203, 204 or 205 yourself.
  • Documentation: record which directory, commit and build settings you copied, and who reviews changes.

Before committing, confirm that your engineers can run the test suite and read the wiki's description of the test framework.

Which questions should you put to a support provider before relying on PQClean?

Who owns patches to a copied PQClean codebase after the archive?

Your team does, unless the provider's contract says otherwise. The PQClean GitHub repository was archived and made read-only on 4 August 2026, so no upstream fixes will land there. Ask the provider who will review incoming security reports, who writes and tests any patch, who applies it to your copy, and how long that commitment runs. Get the answers in writing, with named roles rather than a team alias, and confirm whether the provider will track fixes that other projects publish for the same algorithms. Ask whether the fix process is in scope of the quote or billed as separate work, and what happens when the provider stops offering support.

Which standards version does each PQClean directory track?

Ask the provider to map each directory you plan to use to a specific standard and version. PQClean's README names the schemes as Kyber, Dilithium, Falcon and SPHINCS+, which are pre-standard names, while NIST's final standards are FIPS 203 (ML-KEM), FIPS 204 (ML-DSA) and FIPS 205 (SLH-DSA). Do not accept a general statement that a directory is compatible with the final standards. Ask for the exact parameter set, the commit or tag the code was taken from, and a list of the differences from the final FIPS text that the provider has checked. Confirm the mapping yourself against the standards at the NIST publication page before you rely on it.

What test evidence will a provider supply for PQClean code?

Ask for the actual outputs, not a description of the test suite. PQClean's tests are written in Python and run with pytest, using pytest -v or pytest -n=auto from the test directory after git submodule update --init, and the README says the setup needs Python 3.6 or later. The suite also covers valgrind, AddressSanitizer, test-vector consistency checks across endianness and word size, and strict-warning builds on gcc and clang. Ask the provider to run these on your target platforms, to supply the logs, the versions of each tool, and the commit tested, and to state which checks they did not run. Ask whether they will add tests for your own build flags and primitive choices.

How does a provider handle a read-only PQClean repository?

Ask how the provider keeps your copy current and how they record where it came from. Because the repository has been read-only since 4 August 2026, a team that copies the code takes on its own updates, fixes and standards changes. Ask whether the provider will vendor the code into your own repository, pin a commit, keep a record of every change they make on top of the upstream code, and document how a future change would be reviewed and merged. Confirm whether they will check for and report changes to the upstream project's issue tracker, and what they will do if a dependency such as the randombytes or SHA-3 primitives you supply changes behind the code.

What documentation will the provider hand over at the end?

Ask for a written handover that lets your own engineers run the code without the provider present. At a minimum, ask for the build steps used for each target, the list of primitives you must supply (randombytes, and possibly SHA-2, AES, SHA-3 and cSHAKE), the pinned commit and any local changes, the test runbook with logs, and a record of which standard version each directory tracks. Ask whether the documents are owned by your organization, what format they will be in, and whether they will be updated when the code changes. Confirm that the documentation covers the parts the README calls out as not performance-optimized or as using heap allocations for testing.

Does the provider's quote cover ongoing upkeep or only the initial copy?

Ask the provider to separate one-time work from recurring work. One-time work usually includes copying and building the code, running the tests, and writing the handover documentation. Recurring work includes tracking standards changes, applying fixes, rerunning tests and renewing the environment. Ask what drives the recurring cost up or down, such as the number of directories in use, the number of target platforms, and how often you need a new build. Ask for the cost basis in writing and whether it is a fixed scope or billed by time. Compare the quote with the effort your own team would need for the same work, and note that the README itself describes no hosted service, so every cost of running the code is a cost of your own environment.

What should a provider confirm about licensing and reuse of the code?

Ask the provider to confirm, in writing, which license applies to each file you will copy and whether that license permits the way you plan to ship the code. Ask whether they have checked the license of each third-party primitive you will supply yourself, because the README says those must come from your own environment. Ask who will keep the license notices intact when the code is vendored and updated. This is a question for your legal or vendor-risk reviewer as well as for the provider, so ask the provider to point you to the license text in the repository rather than paraphrase it.

What do the sources listed on this page not say about running PQClean?

The sources for this page establish several limits on what PQClean is. PQClean is source code to copy into your project and build, not a server, service or hosted product. Its README describes no hosted deployment, no managed service and no operational runtime, so a team that runs it is running its own build of code it has taken into its own repository. The GitHub repository was archived and made read-only on 4 August 2026, and its README states that PQClean is retired and archived as read-only. The latest release shown in the sources is the tag round3, published on 2023-04-19. Taken together, that means no new releases, fixes or standards updates are published there after that date.

The sources also do not describe a compliance status for PQClean. The README does not state that any implementation is certified, validated or approved against a standard, and the sources publish no price, licensing fee or support charge for running it. Before you rely on any of these points, confirm them in the project's own documentation, including the current README, the wiki and the issue tracker, and check the release history yourself on the day you make a decision. Confirm also whether a given directory matches the final text of FIPS 203, 204 or 205, since the README names the standards-track schemes by their pre-standard names.

Anything beyond these points belongs in your own environment. Whether PQClean meets your internal assurance requirements, how your build and test pipeline should be set up for your platforms, and who will own updates after the repository went read-only are questions the sources do not answer. Put them to your engineering and compliance owners, and record the answers before a copy of the code becomes a dependency.

Frequently asked questions about self-hosting PQClean

What is PQClean?

PQClean is an open-source collection of clean, portable, tested C implementations of post-quantum cryptography schemes. Its README says it gathers implementations of schemes from the NIST post-quantum project as standalone code that other libraries and frameworks can integrate. It is source code you copy into a project and build, not a finished library with a support contract. The README lists Kyber, HQC and Classic McEliece as key encapsulation schemes, and Dilithium, Falcon and SPHINCS+ as signature schemes, using their pre-standard names. Check the PQClean README for the current list before you rely on it.

Is PQClean a hosted service?

No. The README does not describe any server, service or hosted deployment, because PQClean is source code to copy and build. Running it means building the implementations inside your own build system, on infrastructure you already operate. There is no vendor endpoint to call, no managed uptime and no hosted dashboard. Any hosting, monitoring or availability work sits with your team.

What does a team need to install and run to use PQClean?

The README says you copy an implementation directory, such as crypto_kem/kyber768_clean, into your project and add its files to your build system. Each implementation ships a Makefile and a Makefile.Microsoft_nmake that can serve as build examples. You must supply the required primitives yourself: randombytes, and possibly SHA-2, AES, SHA-3 (fips202) and cSHAKE (SP 800-185). To run the test suite you need Python 3.6 or later and pytest, then run pytest -v or pytest -n=auto from the test directory after git submodule update --init. The test suite also uses valgrind and AddressSanitizer, and the README says automated checks run on Linux, macOS and Windows.

Does the archived PQClean repository still get updates?

No. The PQClean GitHub repository was archived and made read-only on 4 August 2026, and its README states that PQClean is retired and archived as read-only. The latest release on GitHub is round3, titled "Last version before round-4 candidates were removed", published on 2023-04-19. Because the repository is read-only, a team that copies PQClean code takes on its own updates, fixes and standards changes. Plan that ownership before you build on it.

Which NIST standards do PQClean's schemes map to?

The README names the standards-track schemes as Kyber, Dilithium, Falcon and SPHINCS+, which are pre-standard names. NIST's final standards are FIPS 203 (ML-KEM), FIPS 204 (ML-DSA) and FIPS 205 (SLH-DSA). The README does not map each directory to those final standards, so a team targeting them must check each directory against the final standard itself. Do not assume a PQClean directory matches a FIPS document without that check. The FIPS documents are at NIST FIPS 203, 204, 205.

Should we self-host PQClean or get outside help?

It depends on your engineers' capacity and how much of the upkeep you want in-house. Self-hosting means your team owns building, testing, patching and tracking standards changes for every copied implementation, and the archived status means no upstream fixes are coming. Outside help can cover integration, testing and upkeep under a written scope. Ask any provider for the scope, deliverables, who owns updates after handover, and what is one-time versus recurring. DeployOpen plans, implements, integrates and tests self-hosted platforms in the client's own infrastructure, and quotes follow from a written scope.

Are PQClean's test results and security checks enough for production?

The README says the implementations in common may not be the most performant and may use heap allocations for testing purposes, so review them before production use. The test suite uses valgrind, AddressSanitizer, test-vector consistency checks across endianness and word size, and strict-warning builds on gcc and clang. Those checks are useful evidence, but they do not replace your own review, performance testing or a security assessment of your integration. The sources listed here do not say whether PQClean code has been independently audited, so confirm that with the project before relying on it.

How DeployOpen helps teams that need PQClean running

PQClean is source code you copy and build yourselves, with no hosted service behind it. DeployOpen works with your team to decide what gets copied, how it is built and tested inside your environment, and who maintains it after handover.

How we scope

  • We confirm which PQClean implementation directories your project needs, such as crypto_kem/kyber768_clean.
  • We agree in writing which standards your code must match, checking each directory against the final FIPS 203, 204 or 205 text.
  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before any work starts.

How we build

  • We integrate the chosen implementations into your build system using the Makefile or Makefile.Microsoft_nmake examples.
  • We supply the required primitives your project needs, such as randombytes and SHA-3 or AES where applicable.
  • We run PQClean's pytest suite with Python 3.6 or later and review results from valgrind and AddressSanitizer runs.

How we hand over

  • We document which PQClean commit is in use, since the repository is read-only and archived as of 4 August 2026.
  • We record the build, test and integration steps so your engineers can reproduce them without us.
  • We deliver a written record of the tests run, the warnings found and the open items your team owns.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers for teams that want help after handover.
  • Your team owns updates, fixes and standards changes to copied code, and we can help plan that work.
  • Ask any support provider to confirm in writing which PQClean version and standard revision they will maintain against.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.