Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
Sichere ProgrammierungThe Homelab Is the New Resume(21.09.2026 um 00:29 Uhr)
Sichere ProgrammierungPerl 🐪 Weekly #791 - The Dark Side is here!(21.09.2026 um 00:44 Uhr)
Sichere Programmierungbro.js v3.0.0 – What’s new(21.09.2026 um 00:44 Uhr)
Sichere ProgrammierungFour bugs my test suite couldn't catch(21.09.2026 um 00:49 Uhr)
Sichere ProgrammierungAutomating Deployment with Github Actions(21.09.2026 um 00:49 Uhr)
Linux Tipps & HardeningKernel prepatch 7.3-rc4(21.09.2026 um 00:52 Uhr)
IT NachrichtenHow to use Xbox mode on your Windows PC(21.09.2026 um 00:30 Uhr)
Sichere ProgrammierungThe Homelab Is the New Resume(21.09.2026 um 00:29 Uhr)
Sichere ProgrammierungPerl 🐪 Weekly #791 - The Dark Side is here!(21.09.2026 um 00:44 Uhr)
Sichere Programmierungbro.js v3.0.0 – What’s new(21.09.2026 um 00:44 Uhr)
Sichere ProgrammierungFour bugs my test suite couldn't catch(21.09.2026 um 00:49 Uhr)
Sichere ProgrammierungAutomating Deployment with Github Actions(21.09.2026 um 00:49 Uhr)
Linux Tipps & HardeningKernel prepatch 7.3-rc4(21.09.2026 um 00:52 Uhr)
IT NachrichtenHow to use Xbox mode on your Windows PC(21.09.2026 um 00:30 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

We Let 40 Engineers Loose With Coding Agents. The Bill Was Brutal.

Reagiere als Erste:r — dein Feedback zählt!

Your engineering team adopted Claude Code last month. Productivity went up. Then the bill came in.

340% increase.

Nobody budgeted for this. Nobody even knew who spent what.

The math that kills budgets

A single coding agent session makes 50-200 API calls. Claude Sonnet 4 processes 100K+ context windows on every call. One developer running sessions all day burns $50-100.

Scale that to 40 engineers and you hit $20K/month in unexpected AI spend.

The root cause: raw API keys. No per-developer budgets. No team caps. No visibility. You find out about the problem when the invoice arrives.

What we did

We put LiteLLM between our coding agents and the LLM providers. Every call flows through the proxy, gets tracked, gets budget-checked. Took maybe 15 minutes to set up.

Per-developer budget keys

Each engineer gets a virtual key with a hard budget cap:

curl -X POST 'http://litellm-proxy:4000/key/generate' \
  -H 'Authorization: Bearer sk-master' \
  -d '{
    "key_alias": "alice-claude-code",
    "max_budget": 100,
    "budget_duration": "1mo",
    "models": ["claude-sonnet-4-20250514", "gpt-4.1-mini"],
    "tpm_limit": 1000000,
    "rpm_limit": 100
  }'

$100/month cap. Auto-resets. Rate-limited so a runaway loop can't burn through it in 10 minutes.

The developer just changes one env var:

export ANTHROPIC_BASE_URL=http://litellm-proxy:4000
export ANTHROPIC_API_KEY=sk-alice-generated-key

Claude Code doesn't know it's going through a gateway. No SDK changes, no config files, nothing.

Team budgets as the second wall

Individual caps are good. Team budgets catch the case where 20 developers each spending $90 still adds up to $1,800:

curl -X POST 'http://litellm-proxy:4000/team/new' \
  -H 'Authorization: Bearer sk-master' \
  -d '{
    "team_alias": "backend-eng",
    "max_budget": 2000,
    "budget_duration": "1mo",
    "models": ["claude-sonnet-4-20250514", "gpt-4.1-mini", "gpt-4.1"]
  }'

Budget checks happen at every level: key, team, org. If any limit is hit, the request gets rejected with a clear error. No silent failures.

Model access controls

Not every task needs Claude Opus ($15/M input tokens). Most coding agent work, autocomplete, test generation, docs, that's Sonnet 4 ($3/M) or GPT-4.1-mini ($0.40/M) territory.

We give junior devs access to cost-effective models only. Senior engineers get the full menu. If an intern's agent tries to call Opus, the request is rejected before any tokens are consumed.

Cost attribution via tags

This is the part that actually made our CFO happy:

response = client.chat.completions.create(
    model="claude-sonnet-4",
    messages=[{"role": "user", "content": "Refactor this function..."}],
    extra_body={
        "metadata": {
            "tags": [
                "project:payments-refactor",
                "team:backend",
                "agent:claude-code"
            ]
        }
    }
)

Now instead of "AI costs $50K/month" the conversation becomes "the payments team spent $12K on Claude Sonnet for their Q3 refactor, saving 3 weeks of engineering time."

The numbers

Without controls, Month 3 of org-wide agent rollout looks like this:

  • 80 developers, 4 sessions/day, $15 avg session cost
  • $105,600/month in AI spend nobody planned for

With per-developer caps ($100/mo) and team budgets ($2,000/mo), you cap exposure at a number you actually chose. Alerts fire at 50% consumption, giving you 2 weeks to adjust.

Why not LangSmith Gateway?

LangSmith launched their LLM Gateway recently. Fair comparison:

  • Still in beta. LiteLLM has been in production since 2023.
  • 7 providers vs 100+.
  • Managed only. LiteLLM is self-hosted, your code stays in your VPC.
  • Locked to LangSmith ecosystem. LiteLLM works with any observability stack.

For coding agents processing proprietary source code, the self-hosted part matters a lot.

Getting started

# Start proxy
litellm --config config.yaml

# Create team
curl -X POST 'http://localhost:4000/team/new' \
  -H 'Authorization: Bearer sk-master' \
  -d '{"team_alias": "engineering", "max_budget": 5000, "budget_duration": "1mo"}'

# Generate developer key
curl -X POST 'http://localhost:4000/key/generate' \
  -H 'Authorization: Bearer sk-master' \
  -d '{"team_id": "TEAM_ID", "key_alias": "dev-key", "max_budget": 100, "budget_duration": "1mo"}'

# Developer sets env var
export ANTHROPIC_BASE_URL=http://litellm-proxy:4000
export ANTHROPIC_API_KEY=sk-generated-key

15 minutes. Every coding agent call gets tracked, budget-checked, and attributed.

Full walkthrough with screenshots: docs.litellm.ai/blog/coding-agent-spend-control

Ran into similar agent cost problems? Curious what approaches other teams are using.

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten We Let 40 Engineers Loose With Coding Agents. The Bill Was Brutal.

Thematisch verwandte Begriffe: Engineers, Loose, With, Coding · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-94084 | Suricata before 8.0.7 has an Http2ThreadMultiBuf use-after-free when a t…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick