Get started
Install knownprint with an AI coding agent
Give your AI coding agent one prompt and it adds knownprint to your app, from the proxy rule to the checks in your backend.
An AI coding agent can add knownprint to your app for you. Give it this prompt:
Add knownprint to my app: https://knownprint.com/quickstart.mdOr open your agent with the prompt already in it: Claude Code, Codex or Cursor.
The agent reads quickstart.md, a short runbook written for it, and fetches only the parts the app needs: the proxy rule for nginx or Caddy, the browser helper, and the backend module for Node, Python, PHP, Go or any other language. It works through the whole integration:
- It looks at your app: the frontend, the backend language and framework, the web server in front of the site, the forms worth protecting and your Content Security Policy.
- It checks whether knownprint is already installed, and asks before changing anything if it is.
- It asks you for your account values and has you put them into your environment yourself. It never reads or prints your secrets.
- It prepares the proxy rule for nginx or Caddy from your account's recipe files, with the commands to install them.
- It adds the script tag and gets a request id when a protected form is submitted (The browser agent).
- It adds the backend check in your language (Node, Python, PHP or Go, or by hand in any other) and a starting set of rules that treat every unknown result as unknown.
- It adds the Content Security Policy directives, if your site sends a policy.
- It verifies the setup with your test keys, then tells you what it changed and what is left for you: the proxy secret on your server, the origins on your public key, your privacy notice and the go-live checklist.
Before you start
Have these ready from your account, as the Quickstart lists:
the public key, the secret key, the API address, the proxy secret and the proxy recipe files for
your server. The agent asks you to put the keys into the app's environment as
KNOWNPRINT_PUBLIC_KEY, KNOWNPRINT_SECRET_KEY, KNOWNPRINT_API and KNOWNPRINT_SITE_ORIGINS
(every origin whose pages run the script);
the proxy secret goes on your web server only.
What the agent will not do
- Read your
.envfiles, print a secret, or write one into code, a log or a committed file. - Put the secret key or the proxy secret in browser code.
- Run
sudo, or reload or restart a web server that serves real traffic, without your go-ahead: by default it writes the configuration and the commands and hands them to you. - Treat a missing request id, a failed check or a
nullsignal as a pass, or block on it alone: it sends such a request through your extra step, such as an email code.
Review what it wrote
The agent writes ordinary code you own. Before you go live, read the decision rules it added: the thresholds are a starting point, and Signals, the suspect score and the Guides help you tune them for your own traffic. Then work through Go live.
For language models
The whole documentation is indexed for language models at
docs.knownprint.com/llms.txt, and every page is served as
Markdown at its path plus .md (this page is
docs.knownprint.com/ai-agent.md).