You built an API. Now bots are hitting it, and not the smart kind! Automated scripts cycling through endpoints, low-effort crawlers scraping your data, or spammy throwaway clients burning through your resources.
Traditional CAPTCHAs block everyone who isn't a human sitting in a browser. API keys work, but they require manual signup, email verification, approval flows are friction that kills adoption for legitimate AI agents.
agent-challenge sits in the middle: it blocks automated scripts and low-capability bots while letting any competent LLM walk right through. The challenge requires actual reasoning — reversing strings, solving arithmetic, decoding ciphers — things that a real language model handles instantly but a curl loop or a Python script with requests.post() can't easily fake.
Security is also considered, and it supports first-party dynamic challenge generation using the OpenAI API, take a look!
https://github.com/Kav-K/agent-challenge (Would appreciate a star!)
More docs and live demo: https://challenge.llm.kaveenk.com