Skip to main content
install
agent.ts
To get typed team names and the durable-runtime surface, construct it from your config instead — same credential, same transport, and every method above still present:
client.ts
  • Node ≥ 18 (uses global fetch). Ships ESM + CJS with bundled types.
  • Server-only in v1 — your API key is a server secret. Don’t ship it to browsers.
Already importing @usenaive-sdk/node? Keep going — it is published, supported, and not deprecated. @usenaive-sdk/server re-exports it in full and adds forUser(id).provision(...), so moving over is a one-line change to the import specifier with no other edits. Installing both is unnecessary: server depends on node.