# Cap

Cap is a self-hosted security app. Lightweight open-source CAPTCHA solution using SHA-256 proof-of-work.

Canonical page: https://ourlocalhost.com/app/7930/cap

## Description

Lightweight open-source CAPTCHA solution using SHA-256 proof-of-work. 250x smaller than hCaptcha, fully customizable, and privacy-focused with zero telemetry.

## Platform availability

Available on 1 of 10 platforms: Any server.

## Health score

76/100 (Good), based on 4 of 5 factors.
- Maintained: 100 (last commit 5 days ago)
- Popular: 79 (8,574 GitHub stars)
- Easy to install: 25 (1 install platform, install notes)
- Security check: 76 (no serious findings, 4 minor, CI, tests)

## Links

- Documentation: https://trycap.dev/guide/
- Official website: https://trycap.dev
- GitHub: https://github.com/tiagozip/cap

## Common questions

### Where are Cap's keys, settings, and analytics stored?

Keys and settings are stored in Valkey, while analytics can go to either DuckDB (lightweight, best for small sites) or ClickHouse (more scalable), both built-in options in the compose setup.

### Can Cap run somewhere other than a Docker server?

Yes. Besides running capd on your own server with Docker, you can deploy it on Railway or on a serverless platform like Cloudflare Workers.

### Does Cap only use proof-of-work to detect bots?

No. It runs two independent layers: proof-of-work (SHA-256 via WASM or GPU-resistant time-lock challenges) plus instrumentation challenges, which are server-generated JS that verifies a real browser environment through DOM operations.

### What are the two components I need to integrate?

Cap consists of a widget that runs and solves challenges in the visitor's browser and returns a token, and the server (capd) that issues challenges and verifies those tokens. Since the widget talks to the server directly from visitors' browsers, the server needs to be publicly reachable in production.

### Is there a way to stop AI agents from consuming my resources?

Yes, the challenges (proof-of-work and instrumentation) can be configured to stop autonomous AI agents from using up your resources.

---
Source: Our Local Host (https://ourlocalhost.com/app/7930/cap), the self-hosted and open-source app directory.
