Official SDK releases

Published package versions, registry links, changelogs, and release notes.

Server-side essentials
Security and runtime requirements for every integration.

Official SDKs are server-side only.

Never expose API keys in browser or client code.

Store API keys in environment variables.

The default fallback is false.

SDKs fail safely if SwitchPilot is unreachable.

Default cache TTL: 60 seconds.

Default stale-if-error window: 5 minutes.

Node.js SDK

@switchpilot/node

v0.2.0

Node.js 18+

Python SDK

switchpilot

v0.2.0

Python 3.10+

Node.js changelog — 0.2.0

  • Default cache TTL increased from 30 to 60 seconds.
  • Automatic ETag and 304 Not Modified support.
  • Last Known Good with a configurable stale-if-error window.
  • Retry-After awareness for rate limiting.
  • Local status inspection and safer public errors.
  • Concurrent refresh deduplication and stronger response validation.

Release notes: no integration changes are required. Existing clients adopt the new defaults when they upgrade to 0.2.0.

Python changelog — 0.2.0

  • Default cache TTL increased from 30 to 60 seconds.
  • Automatic ETag and 304 Not Modified support.
  • Last Known Good with a configurable stale-if-error window.
  • Retry-After awareness for rate limiting.
  • Local status inspection and safer public errors.
  • Concurrent refresh deduplication and stronger response validation.

Release notes: no integration changes are required. Existing clients adopt the new defaults when they upgrade to 0.2.0.