SDK Overview
The@castari/sdk package lets you manage agents programmatically.
Installation
Quick Example
When to Use the SDK
| Use Case | CLI or SDK? |
|---|---|
| Manual deploys | CLI |
| CI/CD pipelines | SDK |
| Building apps that manage agents | SDK |
| Quick testing | CLI |
| Programmatic invocations | SDK |
Authentication
The SDK supports two authentication methods:API Key (Recommended for servers)
OAuth Token (For user-scoped access)
TypeScript Support
The SDK is written in TypeScript and exports all types:Error Handling
Next Steps
CastariClient
Client configuration and setup
Agents API
List, deploy, and invoke agents
Secrets API
Manage agent secrets
Types
TypeScript interfaces