till
Features Docs Blog Dashboard
API Security AI Agents Scoped Keys March 18, 2026 3 min read

500 Calls or Bust: Why Activation Limits Matter

The Wake-Up Call from Recent API Breaches

Just last week, news broke about a significant security breach involving a popular AI service where exposed API keys led to unauthorized access. As developers and operators, we need to take these incidents seriously. They’re not just alarmist tales; they’re clarion calls for better security practices.

In our experience building tools for AI agents, we’ve seen that one of the biggest vulnerabilities stems from how we handle API keys. Sharing real keys among multiple agents is a recipe for disaster. It’s time to rethink our approach.

Why We Need Activation Limits

Here’s the crux of the issue: traditional API key management methods are failing us. Let’s break down the options and why they don’t cut it:

  • Real Key Sharing: This method exposes your entire infrastructure. One leak means you potentially lose control over every API call.
  • Per-Agent Keys from Providers: While they offer some isolation, they’re still permanent and can lead to management nightmares as the number of agents scales.
  • IP Whitelisting: It sounds good in theory, but it introduces latency and is fragile, especially in dynamic environments.
  • Budget/Spend Limits: These require complex token math and parsing responses, making them error-prone and often specific to a single provider.
  • Time-Based Expiry: Setting arbitrary time limits doesn’t align with how agents work, leading to unnecessary confusion.

This is where activation limits shine. Instead of focusing on time or dollars, we should be counting discrete interactions. By setting limits on the number of API calls, we can create a more predictable and safer environment for our AI agents.

The Practical Benefits of Activation Limits

  1. Simplicity in Counting: Counting each API call as one activation is straightforward. Each call increments a counter, and you know exactly how many are left.
  2. Predictability: Knowing that a key is valid for a specific number of calls allows you to plan your agent workloads more effectively. If you estimate that a job needs 150 calls, you can confidently assign a key with that limit.
  3. Immediate Feedback: When a key reaches its limit, you know instantly that it’s dead. No ambiguity; no guessing when it might expire.
  4. Provider-Agnostic: Activation limits work regardless of the API provider you’re using, whether it’s OpenAI, Anthropic, or Google. This universality simplifies development and integration.

Real-World Application: Till’s Approach

At Till, we’ve built a solution that embodies these principles by allowing operators to create scoped API keys with activation limits. When you give an AI agent a Till proxy key, you’re ensuring that it has access only to the API calls it needs—and nothing more. Once the limit is reached, the key self-destructs, leaving no room for unauthorized access.

Here’s how you can set it up in just a few commands:

# Install Till
npx till-proxy

# Or run with Docker
docker run -p 4100:4100 ghcr.io/dbhurley/till

This approach eliminates the complexities of token math and time-based expiration, making it a robust choice for anyone managing multiple AI agents.

Conclusion: Rethink Your API Key Management

The security landscape around API keys is changing fast. We can’t afford to be complacent, especially in light of recent breaches. By adopting activation limits, you can protect your infrastructure and streamline your operations.

Let’s stop sharing real keys and start using scoped, activation-limited keys. The transition may seem small, but it can have a massive impact on your security posture.

For further insights on API security, check out our previous post on API Security in a Competitive AI Landscape.

Take control of your API access today—your agents deserve it.

Try Till on your next project

Scoped API keys for AI agents. One command to start.

Get started free

← Back to blog

© 2026 Till
Docs Blog GitHub