Requirements
- Node.js 18 or newer for JavaScript and TypeScript wrappers
- Python 3.10 or newer for Python wrappers
- An Averta API key
- A policy attached to that Averta API key
- Network access to
https://api.averta.io - The native provider SDK for the provider you already use
Packages
| Package | Use it when |
|---|---|
@averta-security/sdk-openai | Your agent uses the OpenAI JavaScript SDK. |
@averta-security/sdk-anthropic | Your agent uses the Anthropic JavaScript SDK. |
@averta-security/sdk-core | You are building a custom adapter or unsupported provider integration. |
averta-openai | Your agent uses the OpenAI Python SDK. Source beta; not on PyPI yet. |
averta-core | You are building Python custom adapter helpers. Source beta; not on PyPI yet. |
sdk-core or averta-core directly. Use custom integrations or the raw API when no provider wrapper fits.
OpenAI
openai>=2, and a sync OpenAI client. It supports responses.create(...), responses.create(stream=True, ...), responses.stream(...), chat.completions.create(...), and chat.completions.create(stream=True, ...).
Anthropic JavaScript
Custom Adapters
Environment Variables
Set the provider key your agent already uses plusAVERTA_API_KEY. The Averta key must have a policy attached.
AVERTA_API_KEY automatically. Use the explicit key option only when a wrapped client should ignore the process environment.
If you are using a non-production Averta environment, you can also set:
What to read next
OpenAI quickstart
Wrap an existing OpenAI client.
Anthropic quickstart
Wrap an existing Anthropic client.
Custom integrations
Build an adapter on top of
sdk-core.Raw API
Call Averta directly from any language.
Choose an integration
Compare the supported paths.