Back to services

Keygen

Software licensing and distribution API.

View alternatives to Keygen
Suggest edit
Self-hostable
proprietary
Recent reviews

Alternatives

Tech stack

No tech stack added yet. Sign in to suggest some

Introduction

Keygen is a developer-focused software licensing and distribution API. Instead of building a licensing system from scratch, developers can add license validation and device activation to desktop apps, on-premise software, mobile apps, container images, and all kinds of software packages. According to its website, more than 6,000 software companies use it, including F1000 enterprises, AI startups, small and mid-sized businesses, and indie developers.

Key Features

  • Software Licensing API: Supports license key validation, device (machine) activation and binding, and entitlement management. It can also detect states such as expired or inactive licenses.
  • Software Distribution API: Securely delivers software artifacts to licensed users and provides automatic updates.
  • Developer CLI: The official command-line tool can be used to sign and publish software releases, and works with the SDKs to enable secure automatic upgrades.
  • Keygen Relay: Securely distributes node-locked licenses in offline or air-gapped environments.
  • No-code automation: Connect tools such as Stripe (payments) and Postmark (transactional email) through Zapier to automate licensing workflows without writing code.
  • Portal: A web admin interface (currently in public beta), with an online demo available.
  • Security and compliance: Supports ECDSA P-256 signatures to meet NIST FIPS 140-3 compliance requirements; Keygen Cloud is SOC 2 Type II certified.

Supported Platforms and Languages

Official SDKs are provided, and you can also call the API directly with any HTTP client. The languages listed on the website include Go, Rust, JS, C/C++, C#, Swift, Java, and Kotlin. Covered scenarios include Windows, macOS, iOS, Android, Electron, Tauri, WordPress plugins, Docker container images, and Python, PHP (Composer), Node (npm), and RubyGems packages.

Editions and Deployment Options

  • Keygen Cloud: The officially hosted service. The vendor takes care of infrastructure, scaling, high availability, continuous backups, and data encryption (in transit, at rest, and in use), so your team can focus on the product.
  • Keygen CE (Community Edition): Free to self-host, for both personal and commercial projects.
  • Keygen EE (Enterprise Edition): Suited to enterprises that need to self-host. It additionally provides an OCI/Docker container registry, historical request logs, event/audit logs, custom environments, custom permissions, SAML/SSO, and self-hosted technical support.

Self-Hosting Example (Community Edition)

git clone https://github.com/keygen-sh/keygen-api && cd keygen-api
bundle
bundle exec rails keygen:setup
bundle exec rails server

You can also deploy with the official Docker image keygen/api. You will need a PostgreSQL database and Redis, and configure it through environment variables such as DATABASE_URL, REDIS_URL, KEYGEN_HOST, and KEYGEN_EDITION.

Technical Requirements

  • Self-hosting is based on Ruby on Rails and depends on PostgreSQL and Redis.
  • Deployment with Docker containers is supported.

License

Keygen uses the Fair Core License (a Fair Source model). The source code is public on GitHub (keygen-sh/keygen-api), where you can browse, clone, fork, and modify it. Community support channels are GitHub Discussions and Discord.

Target Users

  • Indie developers and software companies that need to protect commercial software with licensing
  • Enterprises that offer on-premise or multi-environment deployments of their software
  • Teams that need to manage licensing in offline or isolated networks
  • Teams that want to switch their licensing system from "build" to "buy" and save development time