Skip to main content
Naive is multi-tenant infrastructure for AI agents. One API key works across the SDK, CLI, and MCP. Pick your surface.
npm install @usenaive-sdk/node
import { Naive } from "@usenaive-sdk/node";

const naive = new Naive({ apiKey: process.env.NAIVE_API_KEY! });

// Solo mode — auto-scopes to your default user.
await naive.cards.create({ spending_limit_cents: 25000 });
await naive.vault.put("instantly.api_key", "key_xyz");
const { redirectUrl } = await naive.connections.connect("gmail", {
  callbackUrl: "https://myapp.com/oauth/callback",
});

// Multi-tenant — create a user, then scope with forUser(id).
const alice = await naive.users.create({ external_id: "alice_db_uuid" });
await naive.forUser(alice.id).cards.create({ spending_limit_cents: 25000 });
See the full SDK reference.

Next steps