What is an open source CAPTCHA?
An open source CAPTCHA is a CAPTCHA whose code is published under an open source license, so you can read it, change it and run it on your own servers. Both the widget in the browser and the check on the server are yours, and no CAPTCHA provider sees your visitors’ requests. ALTCHA and Cap are the two fully open proof-of-work CAPTCHAs we would look at first.
The license decides what you may do with the code. MIT and Apache 2.0 are permissive: you can use and change the code in your own product without publishing your changes. The AGPL is a copyleft license and asks that changes to code you run as a network service are published under the same license. If that matters for your project, check it with whoever handles licensing in your company.
“Open source” also gets used loosely. Some vendors publish the code of the widget and keep the service closed. That lets you audit what runs in your visitors’ browsers, but the verification still happens on the vendor’s servers.
Open source CAPTCHA options compared
The table lists the open source and partly open options we checked, with TrustCaptcha in the last row for comparison.
| License | Where it runs | Worth knowing | |
|---|---|---|---|
| ALTCHA | MIT (widget) | Your own servers; also ALTCHA Cloud, processed in the EU, from €47 a month, and self-hosted Sentinel from €99 | Proof-of-work without cookies, from BAU Software s.r.o. in Czechia |
| Cap | Apache 2.0 | Your own servers only; there is no hosted version | Proof-of-work without cookies; an actively maintained one-person project |
| mCaptcha | AGPL | Your own servers | Effectively stalled: the only release is version 0.1.0, from 2024 |
| Friendly Captcha | Widget code open source; the service is not | Hosted service; EU-only endpoint from the Advanced plan (€200 a month) | Proof-of-work without cookies, from Friendly Captcha GmbH in Germany |
| Prosopo Procaptcha | Code under Apache 2.0; bot detection closed source | Hosted plan, free up to 10,000 requests a month; Professional from $39 a month | A UK company |
| TrustCaptcha (for comparison) | Not open source | Hosted service, EU data centers | Proof-of-work and bot scoring, no cookies, a DPA for every customer |
Prices per month; ALTCHA and TrustCaptcha prices exclude VAT.
Two more projects come up when you search for this. mosparo is an open source spam protection project from Switzerland, worth a look if form spam is your main problem. And the European Commission publishes an open source component called EU CAPTCHA under the EUPL-1.2 license. It is code you build into your own service, not a service you sign up for; our page on the EU CAPTCHA explains how it differs from the commercial products with the same name.
Self-hosted CAPTCHA
A self-hosted CAPTCHA runs on infrastructure you control. Your page loads the widget from your server, your server hands out the challenges, and your server checks the answers. Nothing about your visitors goes to a CAPTCHA provider, and nobody bills you per request.
In exchange, you take on the parts a provider would otherwise run:
- A verification endpoint that has to be up whenever your forms are. If it goes down, you choose between blocking every submission and letting everything through.
- A secret key on the server that signs the challenges. Whoever has it can create valid tokens.
- Replay protection. A solved challenge should count once, so the server has to remember which ones were already used.
- Updates and security fixes for a project you did not write, which means watching its releases.
- Capacity during an attack. A bot wave hits your verification endpoint as hard as it hits your form.
For a team that already runs its own servers, that is ordinary work. For a team that does not, it is one more service nobody watches until it fails.
Self-hosting also decides what kind of check you get. ALTCHA and Cap are built on proof-of-work: every request costs the browser some computing time, which makes volume expensive for a bot. Proof-of-work does not judge whether a request looks automated. A bot score does that, and it needs signals and rules that you would have to build and keep current yourself.
Is there an open source reCAPTCHA?
No. reCAPTCHA is a closed Google service, and since 22 April 2026 it is part of Google Cloud Fraud Defense. The risk analysis runs on Google’s side, and you cannot host any part of it yourself. It is free up to 10,000 assessments a month per Google Cloud organization.
People who search for an open source reCAPTCHA usually want one of two things: a CAPTCHA that runs without Google, or one whose code they can inspect. ALTCHA and Cap give you both. They replace the reCAPTCHA widget on your form and the verification call on your server. Keep in mind that the check works differently: reCAPTCHA v3 returns a score from 0.0 to 1.0 based on Google’s signals, while a self-hosted proof-of-work CAPTCHA tells you whether the browser did the work. If you want to compare hosted services as well, our list of reCAPTCHA alternatives puts seven of them side by side.
The options in detail
ALTCHA
ALTCHA is a proof-of-work widget under the MIT license from BAU Software s.r.o. in Czechia. It sets no cookies, and you can run it on your own servers for free. If you later decide you would rather not run it, ALTCHA Cloud starts at €47 a month and is processed entirely in the EU. Sentinel, the self-hosted edition, starts at €99 a month.
It suits teams that want open source with a company behind it, so there is someone to pay once they want hosting. Watch for the usual self-hosting work: the verification server is yours to run, update and secure.
Cap
Cap is a self-hosted proof-of-work CAPTCHA under the Apache 2.0 license, published at trycap.dev. It sets no cookies, and there is no managed version at all, so there are no quotas and no per-request fees either.
It suits developers who want full control and are comfortable running one more small service. Watch for what happens if the maintainer stops: Cap is a one-person project. It is actively maintained, but there is no company behind it.
mCaptcha
mCaptcha is licensed under the AGPL and looks effectively stalled: the only release is version 0.1.0, from 2024. We would not start a new project on it. If you already run it, plan the move before a browser change or a new kind of bot forces it.
Friendly Captcha
Friendly Captcha GmbH from Wörthsee in Germany publishes the code of its widget, but the verification is a hosted service. It uses proof-of-work and sets no cookies. Plans start at €9 a month, and the EU-only endpoint, hosted in Germany, needs the Advanced plan at €200 a month.
It suits teams that want to read the widget code without running the service themselves.
Prosopo Procaptcha
Prosopo is a UK company. The code of Procaptcha is published under Apache 2.0, but its bot detection is closed source. The hosted plan is free up to 10,000 requests a month, and Professional starts at $39 a month.
That split is worth noticing. The parts that benefit from public review are open, and the part a bot author would most like to read stays closed.
Is open source less secure?
Not because the code is public. Proof-of-work does not depend on secrecy: a bot that has read every line still has to do the computation, and across a hundred thousand requests that adds up.
Openness matters more for bot detection. A rule that flags automated browsers works as long as the bot does not know about it. Once the rules are public, a bot author can read them and avoid them, which is why some projects open everything except detection.
In practice, the bigger risk is neglect. A project with one maintainer, or with no release in two years, will fall behind the bots that target it. Whatever you pick, look at the release history before you build on it.
Proof-of-work has one more limit, hosted or not: an attacker who sends only a few targeted requests pays very little. On login and signup forms, add rate limits and a honeypot CAPTCHA field, or use a service that scores each request. Our page on CAPTCHA alternatives shows how those layers fit together.
When a hosted EU service is the better choice
Self-hosting is the right call when visitor data must not leave your own servers, when you already run infrastructure and someone looks after it, or when per-request fees would add up on a high-volume site.
A hosted service is the better choice when nobody on the team wants to run one more server, when you need bot scoring on top of proof-of-work, or when you want a contract and a Data Processing Agreement with a company that is accountable if something breaks. If data protection is the reason you looked at self-hosting, an EU CAPTCHA that processes data in the EU and sets no cookies keeps the data in the EU without the servers. Whether a setup meets the GDPR is a question for your data protection officer; this page is not legal advice.
For a contact form that mostly gets spam, the answer may be simpler still. Our page on form spam protection covers the lighter options.
Where TrustCaptcha fits
TrustCaptcha is not open source. It is a hosted service from Trustcaptcha GmbH in Munich, and on a page about open source we would rather say that plainly.
Every plan includes proof-of-work that gets harder with the risk of the request. From the Solo plan at €36 a month, bot detection scores each request from about 35 signals, and you can add your own rules. Several honeypot fields are built into the widget. TrustCaptcha sets no cookies, processes data in EU data centers and includes a Data Processing Agreement for every customer. Your server validates the result with one API call, and the integration samples are on GitHub.
It suits teams that want data processed in the EU and nothing for visitors to solve, and would rather not run the verification servers themselves. If you need to read and run every line yourself, ALTCHA or Cap is the better fit.
Try TrustCaptcha
Every plan starts with a 14-day free trial, and non-commercial websites can use TrustCaptcha for free with 500 verifications a month. Start your free trial and test it on one form next to the open source option you are considering.