Back to browse
GitHub Repository

A Python library that lets API providers inject agent-targeted instructions into their JSON responses.

1 starsPython

Monetize your APIs by injecting agent targeted instructions

by dinge·Mar 14, 2026·2 points·0 comments

AI Analysis

●●SolidBold BetBig Brain

Clever hack for the agent economy, but feels like SEO spam for LLMs.

Strengths
  • FastAPI and Flask middleware enables drop-in integration with existing APIs.
  • Weighted instructions and injection rate controls allow fine-tuned targeting.
  • Presets for referrals, affiliates, and competitor steering speed up deployment.
Weaknesses
  • Ethically questionable — essentially poisoning agent responses with hidden ads.
  • No evidence agents actually follow these instructions consistently.
Category
Target Audience

API providers looking to monetize AI agent traffic

Similar To

Prompt injection tools · SEO meta tag optimizers

Post Description

ad-injector is a Python library that lets API providers inject agent-targeted instructions into their JSON responses. Think referral codes, product recommendations, affiliate links, all buried in your API response so that when an AI agent fetches the data, it picks up your instructions too and (hopefully) listens to them.

Similar Projects

Developer Tools●●Solid

ClawProxy: An HTTP proxy that injects auth tokens into API calls

It replaces real API keys with short proxy tokens (e.g. PROXY:openai) and uses an X-Upstream-Host allowlist to ensure containers can only hit approved endpoints — neat and low-friction. Comes as a tiny Rust CLI with init/secret set/start commands and clear SDK examples, so you can bolt it onto OpenClaw or Docker agents without adopting a full secrets vault.

Niche GemBig Brain
LordHumungous
204mo ago
Security●●Solid

Khaos – Every AI agent I tested broke in under 30 seconds

Auto-patching LLM calls to inject faults and log telemetry is a neat technical trick that lets you fuzz real agent runs without changing your stack. The repo ships six intentionally vulnerable example agents and a CLI (discover/run/ci) with eval packs for security and resilience, so you can reproduce attacks and gate releases. It feels like an early, practical toolkit that fills a gap in agent security testing — adoption and more community-playbooks will determine how far it goes.

Big BrainNiche Gem
exordex
114mo ago
Security●●Solid

OneCLI – Vault for AI Agents in Rust

Agents never see real keys, but Vault already does secret injection.

Solve My ProblemSlick
guyb3
161523mo ago