What do you want to do?
4 use cases
-
Log which AI agents visit your site
Count visits by agent name so you can see agent traffic apart from people.
View prompt
Using the botscent repo (nalinbhardwaj/botscent), add agent visit logging to <site path>. Expected output: one log line per request with agent_name or human and the reasons. Verify that `npx botscent check https://<your-site>/` reports pass for both halves.
-
Let only verified AI agents through
Use Web Bot Auth verification so access decisions rely on signed requests, not names.
View prompt
Using the botscent repo (nalinbhardwaj/botscent), gate <route path> so only requests where isVerified(own, '<agent name>') is true get through. Expected output: verified requests pass and unsigned requests are refused. Verify with `npx botscent check https://<your-site>/` that the server half reports pass.
-
Change page content when an AI agent visits
Hide ads, simplify layout or adjust prices for agent visitors in the page itself.
- REPO
nalinbhardwaj/botscent - Software and DevOps
- Intermediate
View prompt
Using the botscent repo (nalinbhardwaj/botscent), change <component path> to hide ads when useBotscent() returns type agent. Expected output: the normal page for humans and a simplified page when the page verdict is agent. Verify with `npx botscent check https://<your-site>/` that the page half reports pass.
- REPO
-
Check that Botscent is installed correctly
Run one check against a live site to confirm both halves and the project setup work.
View prompt
Using the botscent repo (nalinbhardwaj/botscent), run `npx botscent check https://<your-site>/` in the project. Expected output: pass, fail, unknown or skipped for each check. Verify that the exit code is 0 and list the files you changed.
Quick start with Botscent
- Check you have what it needs: A site built with a supported framework such as Next.js, Express, Django or FastAPI; npm for the TypeScript package or pip for the Python package; Permission to edit your site's server code and page layout.
- Open nalinbhardwaj/botscent on GitHub and read the README and license.
- Run
npm install botscentin the project, orpip install botscentfor a Python server. - Add the page half for your framework, following the Quickstart section for that framework.
- Add the server half, for example
app.use(botscent())in Express, orexport { proxy } from 'botscent/next'in Next.js 16 or later. - Send the page verdict to your server with
reportHeaderson same-origin requests, then join it withcombine(own, report)on the server.
These steps come from our top use case, Log which AI agents visit your site, which also has a copy-paste agent prompt.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for nalinbhardwaj/botscent
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeBotscent alternatives · Best AI repos for Software and DevOps
About this repo
- Who it is forWeb developers and site owners who want to know which AI agents visit their site and decide what to do about them.
- Why it is hot74 stars, launched 25 days ago, picked up by one AI source we track
- LanguageTypeScript
- Sourcegithub.com/nalinbhardwaj/botscent · Back to Hot repos
Requirements
- A site built with a supported framework such as Next.js, Express, Django or FastAPI
- npm for the TypeScript package or pip for the Python package
- Permission to edit your site's server code and page layout
- A running site URL to test against
Add this badge to your README
Maintain Botscent? Show readers where to find these use cases.
Markdown
[](https://dedupedai.com/use-cases/nalinbhardwaj-botscent/?utm_source=github&utm_medium=badge&utm_campaign=nalinbhardwaj-botscent)
HTML
<a href="https://dedupedai.com/use-cases/nalinbhardwaj-botscent/?utm_source=github&utm_medium=badge&utm_campaign=nalinbhardwaj-botscent"><img src="https://dedupedai.com/badge/nalinbhardwaj/botscent.svg" alt="Use cases on Deduped" height="20"></a>
A static image, no tracking script. About the badge
Questions about Botscent
What is Botscent?
Botscent is a small open-source TypeScript and Python library that tells a site whether an AI agent, not a person, is browsing it and which agent it is. It is an open-source project on GitHub: https://github.com/nalinbhardwaj/botscent.
How do I use Botscent?
Run npm install botscent in the project, or pip install botscent for a Python server; then add the page half for your framework, following the Quickstart section for that framework; add the server half, for example app.use(botscent()) in Express, or export { proxy } from 'botscent/next' in Next.js 16 or later. The use cases on this page give the full steps and a copy-paste agent prompt for each job.
Who is Botscent for?
Web developers and site owners who want to know which AI agents visit their site and decide what to do about them.
What can I do with Botscent?
4 use cases so far, for example: Log which AI agents visit your site; Let only verified AI agents through; Change page content when an AI agent visits. Each has steps and a copy-paste agent prompt.
What do I need to run Botscent?
A site built with a supported framework such as Next.js, Express, Django or FastAPI; npm for the TypeScript package or pip for the Python package; Permission to edit your site's server code and page layout; A running site URL to test against.
What are alternatives to Botscent?
Other hot AI repos in Software and DevOps: Deep Infer, Harness2, Orca, Opencode, Graphify.
Is Botscent safe to run?
Deduped does not own, audit or vouch for it. Read the README and license, run it on your own systems first and review every command before you run it.