Licence
MIT
Version
2.2.1
Deps
1
Size
62 kB
Vulns
0
Weekly
0
@usekindred/client
TypeScript client for the Kindred Cloud API.
Install
npm install @usekindred/client
Usage
import { createKindredClient } from "@usekindred/client";
const client = createKindredClient({
apiKey: process.env.KINDRED_API_KEY,
});
const agents = await client.listAgents();
const sessions = await client.listRecentSessions({ agent_id: agents[0]?.id, time_range: "24h" });
Configuration
Resolution order: constructor options → KINDRED_API_KEY / KINDRED_API_URL / KINDRED_CONSOLE_URL env vars → ~/.config/kindred/config.json → defaults.
| Variable | Default |
|---|---|
KINDRED_API_URL |
https://api.usekindred.dev |
KINDRED_CONSOLE_URL |
https://app.usekindred.dev |
Exports
@usekindred/client—KindredClient, config helpers, error utilities@usekindred/client/urls— dashboard URL builders@usekindred/client/types— API response types
CLI
Prefer the kindred-cli package for terminal workflows:
npx kindred-cli --help
License
MIT