> ## Documentation Index
> Fetch the complete documentation index at: https://usefoil.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Start building with Foil

> Detect AI agents, headless browsers, and automation with Foil. Verify sealed sessions on your backend.

Foil detects AI-controlled browsers, automation frameworks, and anti-detect tools. It scores more than 350 signals on the server, and detection adds no step for real users.

Add Foil to your frontend with two lines of code, then verify each session on your backend with one of the five server SDKs.

```html theme={"dark"}
<script type="module">
  const Foil = await import("https://cdn.usefoil.com/t.js");
  const tw = await Foil.start({ publishableKey: "pk_live_..." });
</script>
```

```bash Node.js theme={"dark"}
npm install @abxy/foil-server
```

```bash Python theme={"dark"}
pip install foil-server
```

```bash Go theme={"dark"}
go get github.com/abxy-labs/foil-server-go
```

```bash Ruby theme={"dark"}
gem install foil-server
```

```bash PHP theme={"dark"}
composer require abxy/foil-server
```

> [card] [Quickstart](https://usefoil.com/docs/quickstart.md)
>
> 5-minute integration guide

> [card] [How it works](https://usefoil.com/docs/how-it-works.md)
>
> The detection pipeline

> [card] [Server verification](https://usefoil.com/docs/server-verification.md)
>
> Verify on your backend

## Common use cases

> [card] [Signup](https://usefoil.com/docs/use-cases/signup.md)
>
> Block automated account creation at the source.

> [card] [KYC fraud](https://usefoil.com/docs/use-cases/kyc.md)
>
> Stack with your KYC vendor to catch identity farming.

> [card] [Login](https://usefoil.com/docs/use-cases/login.md)
>
> Stop credential stuffing without trapping real users.

> [card] [Checkout](https://usefoil.com/docs/use-cases/checkout.md)
>
> Add Foil signal to your payments fraud stack.

> [card] [User-generated content](https://usefoil.com/docs/use-cases/user-generated-content.md)
>
> Catch LLM-written spam at the composer.

> [card] [API abuse](https://usefoil.com/docs/use-cases/api-abuse.md)
>
> Block LLM scrapers; keep legitimate crawlers.

> [card] [Promo & trial abuse](https://usefoil.com/docs/use-cases/promo-abuse.md)
>
> Catch repeat claims across account rotations.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.