Skip to main content
Foil provides two products for the age of AI agents:

Foil Detection

Detect AI-controlled browsers, automation frameworks, and anti-detect tools. 350+ signals, server-side scoring, zero user friction.

Foil Gate

Let developers sign up for your product from their terminal. One command, browser consent, API keys delivered to .env.

Foil Detection

Add Foil to your frontend in two lines. Verify on your backend with any of our 5 server SDKs.
<script type="module">
  const Foil = await import("https://cdn.usefoil.com/t.js");
  const tw = await Foil.start({ publishableKey: "pk_live_..." });
</script>
npm install @abxy/foil-server

Quickstart

5-minute integration guide

How it works

The detection pipeline

Server verification

Verify on your backend

Foil Gate

Developers run npx signup yourproduct and get API keys without filling out a form.
npx signup foil
You implement one webhook. Gate handles consent, bot detection, and credential delivery.

What is Gate?

Product overview

Add Gate

Integration guide

CLI reference

All commands and flags

Server SDKs

LanguagePackageInstall
Node.js@abxy/foil-servernpm install @abxy/foil-server
Pythonfoil-serverpip install foil-server
Gofoil-server-gogo get github.com/abxy-labs/foil-server-go
Rubyfoil-servergem install foil-server
PHPabxy/foil-servercomposer require abxy/foil-server

Common use cases

Signup

Block automated account creation at the source.

KYC fraud

Stack with your KYC vendor to catch identity farming.

Login

Stop credential stuffing without trapping real users.

Checkout

Add Foil signal to your payments fraud stack.

User-generated content

Catch LLM-written spam at the composer.

API abuse

Block LLM scrapers; keep legitimate crawlers.

Promo & trial abuse

Catch repeat claims across account rotations.