SOLWYN

Solwyn Docs

Python and TypeScript SDKs for AI agents — hard spending caps, automatic provider failover, and per-agent cost attribution, without sending prompt or response content to Solwyn Cloud.

Choose your SDK

Using Claude Code, Codex or Cursor? Paste one prompt and let your agent do the wiring. You only open links in your browser to sign up and approve. → Set up Solwyn with your coding agent

Python quickstart

Install the SDK

pip install solwyn on Python 3.11 or newer, then point it at your existing client. On Node.js 22 or 24, use the TypeScript SDK. → Quickstart

Create a project from the CLI

Install the CLI (Python 3.11+), run solwyn login and approve it in your browser, where you can also sign up. Then run solwyn projects create --name my-app --budget 50 --mode hard_deny --store-key and approve that too. Prefer a browser? The dashboard creates projects too. → Quickstart

Wrap your client

Three lines wrap OpenAI, Anthropic, Gemini, Bedrock, or Together. → Quickstart

Check spend from the terminal

solwyn budget status and solwyn costs show your first tracked call, or open the dashboard. → Quickstart

Running coding agents? The CLI gives them pre-flight budget guardrails to call before they spend: reserve, spend, settle. → Agent integration · Setup prompt

Not on Python, or shipping through CI? The same CLI meters calls the SDK does not wrap and gates a deploy on budget with one exit code.

Python providers

Explore the Python docs

On this page