SDKs
SDK Overview
Official Altirs client libraries for 9 programming languages.
Available SDKs
Altirs provides official SDKs for all major languages. Each SDK wraps the REST API with idiomatic interfaces, automatic retry, and type safety.
| Language | Package | Install |
|---|---|---|
| TypeScript | altirs | npm install altirs |
| Python | altirs-sdk | pip install altirs-sdk |
| Go | github.com/altirs/sdk-go | go get github.com/altirs/sdk-go |
| Java | ai.altirs:altirs-sdk | Gradle/Maven |
| Ruby | altirs-sdk | gem install altirs-sdk |
| C# | Altirs.Sdk | dotnet add package Altirs.Sdk |
| PHP | altirs/sdk | composer require altirs/sdk |
| Rust | altirs-sdk | cargo add altirs-sdk |
| Swift | AltirsSDK | Swift Package Manager |
Common Methods
All SDKs expose the same core methods:
| Method | Description |
|---|---|
check() | Run guardrail checks on a single input/response |
batch() | Check up to 20 items in one request |
isSafe() | Convenience: returns true if the input passes all checks |
maskPII() | Convenience: returns the input with PII redacted |
SDK Version Header
All SDKs automatically send an X-SDK-Version header (e.g. typescript/0.1.0) to help with debugging and analytics. This is visible in your dashboard logs.
MCP Server
If you want guardrails inside a coding agent rather than in your own code, the MCP server wraps the TypeScript SDK and exposes every check as a tool for Claude Code, Claude Desktop, Cursor, and Windsurf.