Installation

Install the Tenzro Cloud SDK in your project.

TypeScript SDK

The official TypeScript SDK for Node.js, Deno, and Bun:

npm install @tenzro/cloud
# or
pnpm add @tenzro/cloud
# or
yarn add @tenzro/cloud

Python SDK

The official Python SDK with sync and async support:

pip install tenzro-cloud
# or
poetry add tenzro-cloud
# or
uv add tenzro-cloud

Requirements

PackageRequirements
@tenzro/cloudNode.js >= 18.0, TypeScript >= 5.0
tenzro-cloudPython >= 3.10

Environment Setup

Create a .env file in your project root:

# Required
TENZRO_API_KEY=sk_your_api_key_here
# Optional - set default project
TENZRO_PROJECT_ID=your_project_id

TypeScript Configuration

Recommended tsconfig.json settings:

{
"compilerOptions": {
"target": "ES2022",
"module": "ESNext",
"moduleResolution": "bundler",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true
}
}

Verify Installation

TypeScript:

import { Tenzro } from '@tenzro/cloud';
const client = new Tenzro({
apiKey: process.env.TENZRO_API_KEY!,
projectId: process.env.TENZRO_PROJECT_ID,
});
// Test with a simple AI chat
const response = await client.ai.chat('Hello, Tenzro!');
console.log(response);

Python:

from tenzro_cloud import Tenzro
import os
client = Tenzro(
api_key=os.environ["TENZRO_API_KEY"],
project_id=os.environ.get("TENZRO_PROJECT_ID"),
)
# Test with a simple AI chat
response = client.ai.chat("Hello, Tenzro!")
print(response)

Next Steps