Quickstart
Cloakr.ai is a privacy-first enterprise AI gateway that provides end-to-end encryption, PII protection, and intelligent routing for your LLM infrastructure. Get started in minutes with our simple SDK integration.
Installation
Node.js
npm install @cloakrai/sdk
Python
pip install cloakrai
Java
<dependency>
<groupId>ai.cloakr</groupId>
<artifactId>cloakr-sdk</artifactId>
<version>1.0.0</version>
</dependency>
Authentication
API Key Setup
- Get your API key from the Cloakr Dashboard
- Set environment variables:
# For Node.js
export CLOAKR_API_KEY="your-api-key-here"
# For Python
export CLOAKR_API_KEY="your-api-key-here"
# For Java
export CLOAKR_API_KEY="your-api-key-here"
Bring Your Own Key (BYOK)
For enterprise customers, you can use your own encryption keys:
# Set your own encryption key
export CLOAKR_ENCRYPTION_KEY="your-encryption-key-here"
export CLOAKR_KEY_ID="your-key-id"
Hello World Example
Node.js
import { CloakrClient } from '@cloakrai/sdk';
const client = new CloakrClient({
apiKey: process.env.CLOAKR_API_KEY
});
(async() => {
const response = await client.chat({
model: 'gpt-4o',
prompt: 'Hello world'
});
console.log(response);
})();
Python
from cloakrai import CloakrClient
import os
client = CloakrClient(api_key=os.getenv('CLOAKR_API_KEY'))
response = client.chat(
model='gpt-4o',
prompt='Hello world'
)
print(response)
Java
import ai.cloakr.CloakrClient;
import ai.cloakr.models.ChatRequest;
CloakrClient client = new CloakrClient.Builder()
.apiKey(System.getenv("CLOAKR_API_KEY"))
.build();
ChatRequest request = ChatRequest.builder()
.model("gpt-4o")
.prompt("Hello world")
.build();
ChatResponse response = client.chat(request);
System.out.println(response);
What Happens Next?
Instantly you have:
- ✅ End-to-end encryption - All data encrypted in transit and at rest
- ✅ PII protection - Automatic detection and redaction of sensitive data
- ✅ Intelligent routing - Automatic model selection and load balancing
- ✅ Audit logging - Complete audit trail for compliance
- ✅ Enterprise security - SOC 2, GDPR, and HIPAA compliance ready
Next Steps
- API Reference - Explore the full API
- SDK Tutorials - Learn advanced features
- Security & Compliance - Enterprise security features