---

nav: Install with an AI agent
title: Install knownprint with an AI coding agent
description: 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:

```text
Add knownprint to my app: https://knownprint.com/quickstart.md
```

Or open your agent with the prompt already in it: [Claude Code](claude://code/new?q=Add%20knownprint%20to%20my%20app%3A%20https%3A%2F%2Fknownprint.com%2Fquickstart.md),
[Codex](codex://new?prompt=Add%20knownprint%20to%20my%20app%3A%20https%3A%2F%2Fknownprint.com%2Fquickstart.md) or [Cursor](https://cursor.com/link/prompt?text=Add%20knownprint%20to%20my%20app%3A%20https%3A%2F%2Fknownprint.com%2Fquickstart.md).

The agent reads [quickstart.md](https://knownprint.com/quickstart.md), a short runbook written for
it, and fetches only the parts the app needs: the proxy rule for
[nginx](https://knownprint.com/quickstart/nginx.md) or
[Caddy](https://knownprint.com/quickstart/caddy.md), the
[browser helper](https://knownprint.com/quickstart/browser.md), and the backend module for
[Node](https://knownprint.com/quickstart/node.md),
[Python](https://knownprint.com/quickstart/python.md),
[PHP](https://knownprint.com/quickstart/php.md), [Go](https://knownprint.com/quickstart/go.md)
or [any other language](https://knownprint.com/quickstart/other.md). It works through the whole
integration:

1. 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.
2. It checks whether knownprint is already installed, and asks before changing anything if it is.
3. It asks you for your account values and has you put them into your environment yourself. It
   never reads or prints your secrets.
4. It prepares the [proxy rule](/install/proxy) for nginx or Caddy from your account's recipe
   files, with the commands to install them.
5. It adds the script tag and gets a request id when a protected form is submitted
   ([The browser agent](/install/browser)).
6. It adds the [backend check](/install/server) 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.
7. It adds the [Content Security Policy](/install/csp) directives, if your site sends a policy.
8. 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](/install/go-live).

## Before you start

:::note Early access
knownprint is in early access and signup is not open yet ("Get early access" at
[knownprint.com](https://knownprint.com)). Your keys, your proxy secret, the proxy recipe files and
the API address come with your account. Without them the agent can still prepare the code behind
environment variables, and it starts working when the values arrive.
:::

Have these ready from your account, as the [Quickstart](/quickstart#before-you-start) 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 `.env` files, 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 `null` signal 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](/signals), the [suspect score](/signals/suspect-score)
and the [Guides](/guides) help you tune them for your own traffic. Then work through
[Go live](/install/go-live).

## For language models

The whole documentation is indexed for language models at
[docs.knownprint.com/llms.txt](https://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](https://docs.knownprint.com/ai-agent.md)).
