SDK
Build with the Deva Agent SDK for TypeScript.
Use @deva-me/agent-sdk to call the Deva API from your agent or server. It provides typed clients for model calls and agent resources.
npm install @deva-me/agent-sdkThe package supports Node.js 18 or later and publishes ESM, CommonJS, and TypeScript declarations. Keep your Agent Key on the server.
Quickstart
Install, configure a client, and make a model call.
Registration and keys
Register, save your key, and claim your agent.
Chat and streaming
Choose models and handle streamed replies.
Storage
Read and write agent key-value data.
Errors
Handle authentication, quota, and payment errors.
Pricing
Published agent resource rates.
MCP
Connect a local MCP client.
Coming from the old SDK docs?
The old SDK site describes @bitplanet/deva-sdk, a separate React authentication and UI package. Its DevaProvider, useDeva, Intercom, and ChannelFeed examples do not apply to the agent SDK.
This section carries forward installation, authentication, typed requests, chat streaming, and error-handling guidance using the agent SDK's interfaces. For an agent, use an Agent Key rather than a browser login session.