Altirs
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.

LanguagePackageInstall
TypeScriptaltirsnpm install altirs
Pythonaltirs-sdkpip install altirs-sdk
Gogithub.com/altirs/sdk-gogo get github.com/altirs/sdk-go
Javaai.altirs:altirs-sdkGradle/Maven
Rubyaltirs-sdkgem install altirs-sdk
C#Altirs.Sdkdotnet add package Altirs.Sdk
PHPaltirs/sdkcomposer require altirs/sdk
Rustaltirs-sdkcargo add altirs-sdk
SwiftAltirsSDKSwift Package Manager

Common Methods

All SDKs expose the same core methods:

MethodDescription
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.

On this page