DROP-IN SDKHARD SPENDING CAPSPROMPTS STAY LOCAL

Your agent can spiral.
Your LLM bill can't.

Solwyn wraps the LLM client you already use and denies over-budget calls in your own process — before they reach the provider.

Import, wrap, set a cap — three steps.

Budget Status

nightly-batch

$50.00 / $50.00(100.0%)Budget Exceeded

your process

client = Solwyn(client)

client.chat.completions.create(…)

BudgetExceededError: Budget exceeded

for project nightly-batch

call not sent to provider

The bill stopped at $50.00 — exactly where you set it.

Hard-deny is a single setting in your dashboard — alerts-only is the default, so nothing breaks until you flip it.

Works with
OpenAIAnthropicGoogleMistralCohere+ any OpenAI-compatible API

How runaway spend actually happens

Not stolen keys. Not your cloud bill. The spend that originates inside your own code — the only kind a local cap can stop.

The retry job with no ceiling.

32M tokens / 24 hours

A background job with no max-retry limit re-sent the same work until the developer noticed: “I assumed that not having a default meant there was a fixed number of retries, not infinite.” A daily cap ends this at your limit.

Triplett, micro.webology.dev, Nov 2025 — self-reported, named.

The agent stuck in a tool-call loop.

~$260 before it was killed

An assistant fell into a function-call loop: “burned $100 in a couple of hours… by the next morning, it burned another $160.” A hard-deny cap stops the loop at the cap, not at the refund.

OpenAI Developer Community, Dec 2023 — self-reported, guardrail code posted; OpenAI later credited the charges.

The pattern

Every runaway is the same shape: your code calls the model, the result triggers another call, and nothing in the loop knows to stop. The calls succeed, so no error fires — until something external intervenes.

The model kept answering because the code kept asking. Solwyn adds the stop condition.

Three steps between your agents and a runaway bill.

No infrastructure changes. No proxy. No new dependencies. Just a wrapper around the client you already use.

1
Install
pip install solwyn
2
Wrap your client
client = Solwyn(your_llm_client)
3
Set a budget
$100/day — set in the dashboard
BEFORE SOLWYN

Deploy an agent, cross your fingers, check the bill next month.

AFTER SOLWYN

Deploy an agent that can't spend more than you allow, fails over to your configured fallback, and reports every dollar.

Start Free

5K requests a month and one hard cap, free. No card.

What you get

The cap is just the start.

Set the limit before the damage starts.

Daily, weekly, or monthly budgets per project. Alerts fire by default, so your agents keep running while you get notified. Opt into hard-deny and over-budget calls stop in your process — before they ever reach the provider.

Budget Status

support-copilot
$4,200.00 / $5,000.00(84.0%)
rag-search
$1,000.00 / $2,000.00(50.0%)
doc-summarizer
$225.84 / $500.00(45.2%)
nightly-batch
$1,500.00 / $1,500.00(100.0%)Budget Exceeded
Live budget status across four projects in the Solwyn dashboard. nightly-batch has hit 100% of its cap and is flagged Budget Exceeded — every project carries its own hard limit.

Team and Scale plans

When your provider goes down, your agents don't.

A local circuit breaker tracks provider health client-side — no network hop — and routes to your configured fallback automatically. The decision happens in your own process, with no server in the loop, so you don't get paged.

Provider Health

OpenAI
Closed
Success Rate99.5%
Avg Latency487ms
Total Calls6,800
Errors35
12h Success Rate
Anthropic
Closed
Success Rate99.6%
Avg Latency612ms
Total Calls4,100
Errors18
12h Success Rate
Google
Half-Open
Success Rate95.1%
Avg Latency920ms
Total Calls1,300
Errors64
12h Success Rate
Groq
Closed
Success Rate99.6%
Avg Latency210ms
Total Calls900
Errors4
12h Success Rate
Live provider health for support-copilot. Solwyn tracks each provider's circuit-breaker state and fails over automatically — here Google is Half-Open, probing for recovery.

The agent burning money has a name.

Per-project cost breakdown by model and time period. Real-time spend vs. budget. Trend indicators that show you where costs are accelerating before they become a problem. All powered by metadata — your prompts never leave your environment.

Breakdown — by model

OpenAIAnthropicGoogle
ModelShare of costRequestsTokensCost
gpt-5.2OpenAI
1,3924,214,284$650.00 · 47%
claude-sonnet-4-5Anthropic
7323,196,428$410.71 · 30%
gpt-5-miniOpenAI
1,4648,964,284$171.43 · 12%
gemini-3-proGoogle
3502,246,428$158.93 · 11%
Total · 4 models · 3 providers3,93818,621,424$1,391.07
Per-model cost attribution for nightly-batch: gpt-5.2 leads spend across 4 models and 3 providers.

Every channel on all paid plans

Text the founder. Page the on-call. Ping the Discord.

Email and SMS out of the box; Slack, Microsoft Teams, and PagerDuty for the eng team; Telegram and Discord for the community you run. Every channel ships on every paid plan — configure a destination once and reuse it across all your projects.

Notification Channels

EmailAccount default

founder@acme.dev

Eng on-callSlack

Webhook ****XXXX

Test
Prod incidentsPagerDuty

Routing key ****R3y0

Test
Platform TeamsMicrosoft Teams

Webhook ****T3AM

Test
Dev DiscordDiscord

Webhook ****D1SC

Test
Ops TelegramTelegram

Bot token ****B0T9 · chat -1001234567890

Test
Add channel
Route alerts where your team already lives — every channel on every paid plan, Email on Free.

Your prompts never touch our servers.

Not by policy. By architecture.

Solwyn runs inside your process — your LLM calls go straight to the provider, and we're never in the path.

ALL WE EVER RECEIVE
  • Token count
  • Model
  • Cost
  • Latency
  • Status
  • Project ID
WHAT NEVER LEAVES YOUR APP
  • Prompts
  • Responses
  • System messages
  • Function calls
  • Conversation history
  • Any content whatsoever

Audit exactly what leaves your process — read the open-source SDK →

We can't leak what we never had.

The dashcam vs. the brakes.

Other tools watch. Solwyn prevents.

PROXY PLATFORMS

Helicone, Portkey, LiteLLM

In hosted proxy mode, every call routes through their servers — they see your prompts and add latency. When their proxy is down, your calls are too.

OBSERVABILITY TOOLS

LangSmith, Langfuse

Great dashboards — after the damage. A recursive agent loops overnight. Other tools email you the report. Solwyn denies the call before it leaves your app. The dashboard shows you the fire. It doesn't stop it.

SOLWYN

Local SDK. Budgets enforced before the request leaves your app. Failover handled client-side. Only metadata reaches us.

Your prompts never leave. Ever.

A loop won't wait for you to check the dashboard.

Wrap your client, set a cap, deploy. Three steps, and over-budget calls stop before they reach your provider. The free tier includes a hard cap — no card, no prompts transmitted.

Start Free

30-day money-back guarantee on all paid plans. Refund policy