CastariClient
The main client for interacting with the Castari API.Constructor
Options
Provide either
apiKey or token, not both. If neither is provided, the client will throw an error on the first request.Authentication Methods
API Key
Best for server-side applications, CI/CD, and automation:cast_xxxxxxxx_xxxxxxxxxx
Generate one in the Castari Dashboard.
OAuth Token
Best for user-facing applications where you want user-scoped access:Properties
Example Usage
Custom Base URL
For self-hosted or development environments:Environment Variables
The SDK respects these environment variables:See Also
- Agents API — Manage agents
- Secrets API — Manage secrets
- Auth API — Authentication and API keys
- Usage API — Usage statistics
- Storage API — Cloud storage buckets
- Mounts API — Agent mounts
- Files API — Managed file storage
- Types — TypeScript interfaces