Reference
SDKs
Official Wind SDKs and their status.
Two packages, split along the trust boundary: the server package handles the
client_secret and the rotating refresh_token and must never reach a browser.
| SDK | Package | Runtime | Status |
|---|---|---|---|
| Browser | @usewind/browser | Browser | 0.1.0 — <wind-connect> button |
| Server | @usewind/node | Node | 0.1.2 — OAuth routes, refresh-and-retry, billed calls + streaming, webhooks |
| Python | usewind (PyPI) | Python | 0.1.2 — same surface, async-first; FastAPI router (Flask/Django to follow) |
| iOS | — | Swift | planned |
The old trywind / wind-ai packages and the Wind CLI are
discontinued — they targeted the previous product. These are rewrites.
@usewind/node
npm install @usewind/node
Mounts the connect flow and wraps billed calls. See Connect button & SDK for the full setup.
import { wind } from '@usewind/node'
app.use(wind.routes({ /* … */ }))
const res = await wind.connection(userId)
.model('gpt-4o')
.chat({ messages, max_tokens: 500 })
usewind (Python)
pip install usewind
from usewind import wind
app.include_router(wind.fastapi_router(current_user=lambda r: r.session.get("user_id")))
res = await wind.connection(user_id).model("gpt-4o").achat(params)
Every I/O method has an async (a-prefixed) form and a sync wrapper.
@usewind/browser
npm install @usewind/browser
Or load the hosted build:
<script src="https://accounts.usewind.app/button.js" async></script>
<wind-connect data-client-id="app_1a2b3c" data-start="/wind/start"></wind-connect>