Installation
Install Shield using your preferred package manager:Requirements
Shield requires the following minimum versions:- Node.js 18+ or Bun 1.0+
- TypeScript 5.0+ (optional, for type definitions)
Optional peer dependencies
Provider wrappers require the corresponding SDK as a peer dependency. Install only the ones you need:OpenAI
shieldOpenAI. Minimum version: openai >= 4.0.0
Anthropic
shieldAnthropic. Minimum version: @anthropic-ai/sdk >= 0.20.0
Groq
shieldGroq. Minimum version: groq-sdk >= 0.3.0
Vercel AI SDK
shieldMiddleware and shieldLanguageModelMiddleware. Minimum version: ai >= 3.0.0
Verification
Verify your installation by importing the core functions:Next steps
Quickstart
Learn how to use Shield in your application