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

liboqs is an open source C library of post-quantum algorithms that your team builds and maintains itself. This page lists the build tools, platforms, configuration choices and upkeep it documents, so you can decide between self-hosting and paid help.

On this page

What does self-hosting liboqs involve for an engineering team?

If your team is considering liboqs, you should plan to compile, configure and keep the library current yourselves, because no commercial vendor stands behind it. liboqs is an open source C library of post-quantum key encapsulation and signature algorithms, with a common API, a test harness and benchmarking routines, and it is part of the Open Quantum Safe project. Self-hosting means your team owns the builds, the configuration choices and every upgrade. The liboqs README states plainly that this project is not commercially supported, and it says the maintainers do not currently recommend relying on the library in a production environment or to protect any sensitive data.

The build side starts with the tools listed in the README: CMake, a C compiler, Ninja and Python 3 with the project's pinned requirements. The README gives at least GNU compiler version 7.1.0 as a requirement and shows installation steps for Ubuntu and macOS with Homebrew, plus a Nix option. The basic build is cmake -GNinja .. followed by ninja. Configuration is where most decisions sit. The default build produces a static library, since BUILD_SHARED_LIBS defaults to OFF. OQS_MINIMAL_BUILD lets you compile only the algorithms you list, and OQS_DIST_BUILD defaults to ON, which produces code that runs on any CPU of the target architecture. Your team should confirm which of these settings match its deployment, and check the OpenSSL requirement: OQS_USE_OPENSSL defaults to ON and needs OpenSSL 3.0 or newer.

The upkeep side matters most for the long term. The security policy says only the most recent release is supported, and it names 0.16.0 as that release when read and states that versions before 0.16 are unsupported. Release changes can break compatibility: the 0.17.0-rc1 notes say UOV, MAYO and SNOVA moved to NIST round 3, so 0.16.0 keys and signatures are not interoperable with 0.17.0 for most parameter sets. Your team will need a process for tracking releases, testing upgrades against stored keys and signatures, and deciding who approves each change. Bare-metal targets carry an extra requirement, since OQS_EMBEDDED_BUILD=ON means you must supply randomness yourselves or key generation and signing fail. Confirm each of these points against the current CONFIGURE.md and release notes before you commit.

How liboqs is owned, deployed and licensed

This table sets out who owns and maintains liboqs, how it is built and deployed, which platforms and algorithm families it covers, and what license and support terms apply. Read the rows to see what your team must provide itself, since the project publishes no commercial support and no price, because it is open source. Confirm the version you plan to run against the project's own release notes before you adopt it.

ItemWhat the project documentsWhat your team must confirm or provide
OwnerOpen Quantum Safe project, with Maintainers named in GOVERNANCE.md (currently @baentsch, @dstebila and @xuganyu96)Check the GOVERNANCE.md file for current Maintainers before you rely on them for questions or reviews
What it isOpen source C library of post-quantum key encapsulation and signature algorithms with a common API, test harness and benchmarksDecide which algorithms your use needs and build only those where possible
Deployment modelSelf-built C library, static by default (BUILD_SHARED_LIBS defaults to OFF)Build it yourself with CMake and Ninja, and set BUILD_SHARED_LIBS if you need a shared library
Supported platformsx86-64, ARM32v7 and ARM64v8, taken from CMAKE_SYSTEM_PROCESSORConfirm your target architecture is on this list, and supply randomness yourself for bare-metal targets
Post-quantum supportKey encapsulation families and signature families listed in the README, plus stateful LMS and XMSSMap each algorithm your systems need to its family and check the release notes for its status
LicenseMIT License, per the README and LICENSE.txtInclude the MIT notice in your distribution and record the license in your software bill of materials
Commercial supportNone: the README states the project is not commercially supportedArrange support from a vendor or consultancy yourself if you need it, and plan internal ownership of upgrades
PriceNo price is published because the library is open sourceBudget for your own engineering, build, testing and upkeep time, since these are not covered by a license fee

What the build and configuration options control

liboqs is built with CMake and Ninja, and the project's README lists the tools a build machine needs. The basic build is run as cmake -GNinja .. followed by ninja. The README also says the GNU compiler must be at least version 7.1.0, and it lists Doxygen, Graphviz, xsltproc and Valgrind as optional tools for documentation and testing. Installation steps are given for Ubuntu and macOS with Homebrew, and a Nix option is also described.

  • CMake and Ninja: the documented basic build depends on both, so build hosts need them installed and version-matched to your build scripts.
  • Python 3: the README lists Python 3 with the project's pinned requirements as a build need.
  • GNU compiler 7.1.0 or newer: the README states this minimum, so older toolchains on build agents will not qualify.
  • Optional documentation and test tools: Doxygen, Graphviz, xsltproc and Valgrind are optional, and only needed if your team builds docs or runs those checks.
  • Platform steps: Ubuntu, macOS with Homebrew and Nix are covered in the README, while other platforms are not described there.

Before you rely on a build pipeline, confirm the compiler and CMake versions on your build hosts against the README, and record the exact toolchain you used so a rebuild can reproduce it.

Which build tools and compilers must the team provide?

This sequence gets a working liboqs build on a machine your team controls. Each step installs one prerequisite or runs one build command, and the sequence ends with a built library your team can test. The README covers Ubuntu, macOS with Homebrew and Nix, so the steps are the same whichever of those your team uses.

  1. Install CMake, Ninja and Python 3

    Install CMake, Ninja and Python 3 on the build machine, using the Ubuntu, macOS with Homebrew or Nix path the liboqs README gives for your platform. Python 3 is needed with the project's pinned requirements, so install those requirements from the repository before building. Your team owns this step and should record the exact tool versions used. You know it is done when cmake --version, ninja --version and python3 --version each return a version number.

  2. Provide a C compiler at GNU 7.1.0 or later

    Install a C compiler that meets the requirement in the liboqs README, which says at least GNU compiler version 7.1.0 is required. Confirm the version on the build machine instead of assuming the system default meets it. Your team owns the choice of compiler and any hardening flags it applies. You know it is done when the compiler reports version 7.1.0 or later.

  3. Add OpenSSL 3.0 or newer if needed

    The liboqs CONFIGURE.md says OQS_USE_OPENSSL defaults to ON and requires OpenSSL 3.0 or newer, so install OpenSSL 3.0 or later if you keep that default. OpenSSL is used for some symmetric algorithms. If your team builds without it, set OQS_USE_OPENSSL to OFF and note that choice in your build record. You know it is done when the OpenSSL version reported on the build machine is 3.0 or newer, or the setting is recorded as OFF.

  4. Install optional documentation and testing tools

    Doxygen, Graphviz, xsltproc and Valgrind are optional in the liboqs README, for documentation and testing. Install them only if your team will build the documentation or run memory checks. Skipping them does not block the core build. You know it is done when each tool your team chose to install returns a version on the command line.

  5. Configure and run the basic build

    From the liboqs source directory, create a build folder, move into it, and run cmake -GNinja ... This generates Ninja build files using the tools you installed. The liboqs CONFIGURE.md says BUILD_SHARED_LIBS defaults to OFF, so the default output is a static library, and your team should confirm that is the intended result. You know it is done when CMake finishes without errors and reports the compiler and OpenSSL it found.

  6. Compile the library with ninja

    Run ninja in the same build folder to compile liboqs. This is the step that produces the library and test binaries. Watch the output for compiler errors and for any warning about a missing dependency, since those point back to the prerequisites above. You know it is done when ninja exits without errors and the built library is present in the build folder.

  7. Record the build configuration for upkeep

    Save the CMake options, tool versions and platform used for the build in your team's configuration record, so a later rebuild can match this one. Note the processor target as well, since the CONFIGURE.md says the library supports x86-64, ARM32v7 and ARM64v8, taken from CMAKE_SYSTEM_PROCESSOR. Note whether the build targets bare metal, which needs separate randomness handling under OQS_EMBEDDED_BUILD. You know it is done when someone who did not run the build can reproduce it from the record.

How the build and test path fits into your environment

The path starts at the liboqs source repository, where your team checks the toolchain: CMake, a C compiler (GNU 7.1.0 or newer), Ninja and Python 3, with OpenSSL 3.0 or newer if you want liboqs to use it for some symmetric algorithms. CMake options then decide the output: BUILD_SHARED_LIBS defaults to OFF, which gives a static library, OQS_MINIMAL_BUILD limits the build to a semicolon-delimited algorithm list, and OQS_DIST_BUILD defaults to ON, which builds for any CPU of the target architecture. Check each choice before compilation, then run the test harness on the result. Only the artifacts that pass the tests should reach the internal artifact store that feeds your applications.

Build path from the liboqs source repository to your applications.

Which upkeep tasks fall to your team after the first build?

A first liboqs build is only the start. The work that follows is tracking releases, keeping version compatibility in view, running only supported code and watching who maintains the library. Each card below names one of those duties and what to check.

Tracking releases

The most recent documented release is 0.16.0, marked Latest on the GitHub releases page and dated 9 July 2026. A pre-release, 0.17.0-rc1, was published on 1 December 2026. Your team should watch the releases page and decide when to move, because a newer release can change algorithms and build behavior. Record the version you build against so every later change can be traced to a specific release.

liboqs releases

Handling version compatibility

Keys and signatures from 0.16.0 are not interoperable with 0.17.0 for most parameter sets. The 0.17.0-rc1 notes say UOV, MAYO and SNOVA moved to NIST round 3, which causes the break. Any system that stores or exchanges these artifacts across versions needs a plan for regeneration or dual-version support before an upgrade. Test cross-version exchange in a staging environment before you roll out the change.

Release notes

Running only supported versions

The security policy says only the most recent release is supported, which it names as 0.16.0 when read. Versions before 0.16 are unsupported. A build pinned to an older release will not receive security fixes from the project, so your team owns the patching decision for anything older. Check the policy at each upgrade cycle, because the supported release changes when a new release ships.

Security policy

Handling embedded randomness

For bare-metal targets, OQS_EMBEDDED_BUILD=ON removes the use of getentropy() and /dev/urandom. Your team must then supply randomness through OQS_randombytes_custom_algorithm(), or key generation and signing fail. Each embedded target needs its own randomness source, and that source must be reviewed and tested whenever the build or target changes. Confirm the entropy path on hardware before shipping.

Configure guide

Handling Windows static build API changes

The 0.17.0-rc1 notes say Windows static builds no longer export the public API. Any Windows build that links statically and depends on those exports will fail to link or run after an upgrade. Your team should test Windows builds separately on each release and update the linking step, rather than assuming the Linux or macOS path carries over. Keep this check in the release checklist so it is not missed.

Release notes

Monitoring the maintainer roster

The governance document names the current Maintainers as @baentsch, @dstebila and @xuganyu96. A change in that roster can signal a change in who decides releases and security responses. Your team should check GOVERNANCE.md at each upgrade cycle and record the date of each check. Treat a roster change as a trigger for a fresh review of the project's direction and support.

Governance document

Where self-hosting liboqs stops

The most important line for a self-hosting team is in the liboqs README: "WE DO NOT CURRENTLY RECOMMEND RELYING ON THIS LIBRARY IN A PRODUCTION ENVIRONMENT OR TO PROTECT ANY SENSITIVE DATA." The same README also says "This project is not commercially supported." Self-hosting means your team takes that caveat on directly. Before you build anything that carries real traffic or real data, decide whether your use case falls outside what the project itself recommends, and record that decision with the people who own the risk. The project's MIT license lets you use the code, but a license grants no support, warranties or production assurances, and the README does not offer any.

Running liboqs yourself puts several jobs on your team that the project does not do for you. You own testing of your build and of the algorithms you enable, including verification against the parameter sets you actually ship. You own hardening of the build and the runtime environment. You own key management: generating, storing, rotating and destroying key material your application depends on. The liboqs CONFIGURE.md also flags that for bare-metal targets, randomness must be supplied through OQS_randombytes_custom_algorithm() or key generation and signing fail, so the entropy source is a decision your team makes. Assign an owner for each of these before go-live.

You also need a policy for experimental algorithms. The liboqs build includes stateful signatures XMSS and LMS, which default to OFF, and key and signature generation for them additionally requires OQS_HAZARDOUS_EXPERIMENTAL_ENABLE_SIG_STFL_KEY_SIG_GEN, which also defaults to OFF. The liboqs security policy says only the most recent release is supported, and that versions before 0.16 are unsupported. The sources listed on this page do not describe a service-level agreement, support contract or response commitment from the project. Confirm this directly with the maintainers in writing before you rely on the library, and record the answer alongside your own risk acceptance.

How should a team evaluate whether to self-host?

This sequence takes a team from choosing which liboqs algorithms it needs to a dated record of build settings, version checks and upkeep ownership. The output is enough evidence to decide between running liboqs in-house and buying outside help.

  1. List the algorithms and parameter sets you need

    Start from the algorithm families in the liboqs README, which cover key encapsulation (including ML-KEM) and signatures (including ML-DSA and SLH-DSA). Map each one to the NIST standards it corresponds to: FIPS 203 for ML-KEM, FIPS 204 for ML-DSA and FIPS 205 for SLH-DSA. Name the parameter sets your protocols or products actually call, such as the ML-KEM or ML-DSA variant in use. Done when a short written list exists that an engineer and a security lead have both signed off on, since this list drives every later build decision.

  2. Choose a minimal or full build

    Decide whether to compile every algorithm or only the listed ones. The liboqs CONFIGURE.md describes OQS_MINIMAL_BUILD, which takes a semicolon-delimited list of algorithms to build, so a minimal build can reduce what you compile and maintain. Also decide on OQS_DIST_BUILD, which defaults to ON and builds for any CPU of the target architecture, versus OFF for the current machine only. Record the choice and the reason for it. Done when the chosen flags are written down alongside the algorithm list from the previous step.

  3. Run the test harness on your target platforms

    Build liboqs on each platform you intend to ship or operate, using the basic build steps in the README (CMake with Ninja, then ninja). Run the project's test harness on every target and keep the output. Note the compiler version, since the README states at least GNU compiler version 7.1.0 is required, and confirm OpenSSL 3.0 or newer if you rely on OpenSSL for symmetric algorithms. The README also lists x86-64, ARM32v7 and ARM64v8 support in the CONFIGURE.md, so confirm your architecture is among them. Done when each target has a passing test log on file.

  4. Confirm your version against SECURITY.md

    Check the liboqs SECURITY.md before you commit to a version. The policy says only the most recent release is supported, which it names as 0.16.0 when read, and that versions before 0.16 are unsupported. Also note the 0.17.0-rc1 pre-release, which the release notes say changes UOV, MAYO and SNOVA to NIST round 3 and breaks interoperability with 0.16.0 keys and signatures for most parameter sets. Re-read the SECURITY.md when you plan an upgrade, since the supported version may change. Done when your chosen version and its support status are recorded with the date you checked.

  5. Record build settings and compatibility checks

    Write down every build setting that affects behavior: BUILD_SHARED_LIBS (default OFF, meaning a static library), OQS_USE_OPENSSL, OQS_EMBEDDED_BUILD and any experimental stateful signature options. Note the randomness source on each platform, because the CONFIGURE.md says bare-metal targets must supply randomness through OQS_randombytes_custom_algorithm() or key generation and signing fail. Run a compatibility check against every system that will exchange keys or signatures with yours, and record the result. Done when a single build record exists that a future engineer could use to rebuild the same binary.

  6. Decide who on staff owns upgrades

    Name one engineer or team responsible for tracking releases, reading the security policy and rebuilding liboqs when a new version ships. The liboqs governance document names its current Maintainers, but the project does not provide commercial support, so upkeep falls to your staff unless you buy it. Assign the review cadence, the test-and-rebuild process and who signs off on a version change. Done when the owner, the review cadence and the sign-off path are written into your team's runbook.

  7. Decide whether to self-host or buy outside help

    Compare the results of the previous steps against the skills and time your team has. The liboqs README states the project is not commercially supported and that the team does not currently recommend relying on the library in production or to protect sensitive data, so any production use needs a deliberate risk decision. If your staff can own the algorithm list, build record, test logs and upgrade owner, self-hosting is possible. If not, ask outside providers for a written scope covering those same items. Done when the team has a written decision, with the reasons, that a security lead and an engineering lead have both approved.

What license applies and is any price published?

liboqs is licensed under the MIT License, and the project's README says so directly: "liboqs is licensed under the MIT License; see LICENSE.txt for details." The license text in the repository's LICENSE.txt file is the document to read and keep on record. For a team that self-hosts, the MIT License generally lets you build, modify, and ship the library inside your own products, provided you keep the copyright and license notice. Before this goes into a software supply chain, have your legal or vendor-risk reviewer confirm the terms against the LICENSE.txt in the exact release you plan to use, since the 0.16.0 and 0.17.0-rc1 releases are the reference points for what is current as of this writing.

No price is published for liboqs, because it is open source and downloadable at no charge from the project's GitHub repository. The README also states that "This project is not commercially supported," so there is no vendor contract, service tier or subscription to price. Any paid help you buy, such as integration work, a security review or a support arrangement from a third party, is a separate engagement. Quotes for that work should come from a written scope that names the release, the components, the deliverables and the acceptance criteria. Ask each provider to itemize one-time work and any recurring support, and to say who maintains the patched release if a vulnerability is found. Internal costs, such as engineering time for builds, testing and upgrades, are real but are not a license fee, and your own estimates should replace any figure you might assume.

Which questions should you put to the project or to a support provider?

Which liboqs versions receive security fixes?

Only the most recent release is supported. The liboqs security policy says only the latest release receives support, names 0.16.0 as that release when read, and states that versions before 0.16 are unsupported. Ask the maintainers or your provider to confirm the current latest release on the GitHub releases page before you pin a version, and plan an upgrade path because older builds will not get fixes. The 0.16.0 release of 9 July 2026 is marked Latest there, while 0.17.0-rc1 was published as a pre-release on 1 December 2026. Confirm which version is current on the date you read this page, since a new release changes the answer.

How long is each liboqs release supported?

The sources on this page do not give a fixed support window for any release. The security policy describes support in terms of the latest release only, not a calendar period. Ask the maintainers for the expected end-of-support date of each release and whether any extended support exists. Until you have that in writing, plan for a release to lose fixes as soon as a newer one ships, and budget upgrade and retesting work on that cadence.

Does a commercial support contract exist for liboqs?

The liboqs README states that the project is not commercially supported. The project itself therefore offers no paid support contract. Commercial help, if you need it, comes from third parties such as consultancies or integrators, and those are separate agreements with their own scope and terms. Ask any provider to state in writing what they cover, which liboqs versions they support, how they handle security fixes and who answers when a build fails in your environment.

How does liboqs handle interoperability between releases?

Interoperability between versions is not guaranteed, and you should plan for breaks. The 0.17.0-rc1 notes say UOV, MAYO and SNOVA moved to NIST round 3, so 0.16.0 keys and signatures are not interoperable with 0.17.0 for most parameter sets. The 0.16.0 notes say the mldsa-native implementation became the default behind the ML-DSA signature variants and that SPHINCS+ was removed. Ask the maintainers which algorithms and parameter sets change between releases, and test every upgrade against keys and signatures you already hold before it reaches production.

What testing does the project document for each platform?

The liboqs documentation lists supported architectures as x86-64, ARM32v7 and ARM64v8, taken from CMAKE_SYSTEM_PROCESSOR, and it describes a test harness and benchmarking routines. The sources on this page do not say which platforms the project tests in continuous integration or how far that testing reaches. Ask the maintainers for the list of platforms and compilers covered by their test runs, and for the results on your target platform. If a platform is absent from that list, your own testing has to cover it.

Is liboqs ready for production use?

The liboqs README states that the maintainers do not currently recommend relying on the library in a production environment or to protect sensitive data. Ask the maintainers whether that position has changed in the release you plan to use and what they require before they would endorse production use. Until they confirm otherwise, treat liboqs as a tool for prototyping, testing and evaluation, and check your own risk and compliance obligations before you put it into a live path.

Can we run liboqs ourselves, and what skills does it need?

Yes, the project is open source under the MIT License and you can build it yourself. The build needs CMake, a C compiler (the README says at least GNU compiler version 7.1.0), Ninja and Python 3 with the pinned requirements. OpenSSL 3.0 or newer is needed if you keep the default OpenSSL-backed symmetric algorithms. Ask your team to confirm it can build, configure and retest the library on each target platform, and to name who owns upgrades and security monitoring. Those skills, not the license, usually decide whether self-hosting is feasible.

How DeployOpen helps teams that self-host liboqs

DeployOpen plans, builds, hardens and documents self-hosted open-source platforms inside your own infrastructure, including the build and configuration work that running liboqs involves. Engagements start with a written scope, so your team knows what is delivered, tested and supported before work begins.

How we scope

  • We agree in writing which liboqs version, target architecture and build options your team will run.
  • We confirm which algorithms are needed, since a minimal build lists only the chosen algorithms.
  • We record the build toolchain, OpenSSL version and any embedded randomness requirements before work starts.

How we build

  • We set up the CMake, Ninja and compiler toolchain on your build hosts and pin the versions used.
  • We configure build options such as shared or static linking, distribution or current-machine builds, and OpenSSL use.
  • We run the liboqs test harness on your targets and document any failures or architecture-specific results.

How we hand over

  • We deliver build scripts, configuration files and a runbook covering how to reproduce the build.
  • We document the release version in use and which liboqs releases are supported, so your team can plan upgrades.
  • We walk your engineers through the build, the test process and the points where interoperability should be confirmed.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer, scoped separately from the initial build.
  • Retainers can cover tracking new liboqs releases and retesting after each upgrade in your environment.
  • Ask for the support terms and response expectations in writing, since liboqs itself is not commercially supported.

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.