@eidentic/server
v1.0.1
Published
Hono HTTP server for Eidentic agents — streaming query endpoint, async runs, workflow registry, auth, rate-limiting, and quotas.
Maintainers
Readme
@eidentic/server
Hono HTTP server for Eidentic agents — a ready-made multi-agent backend with a streaming query endpoint, async fire-and-poll runs, workflow run registry, built-in auth, rate-limiting, quotas, and an AI SDK UI-compatible stream format. Deploy anywhere Hono runs: Node, Bun, Deno, Cloudflare Workers.
Install
pnpm add @eidentic/serverUsage
import { createServer, serveNode, ApiKeyAuth } from "@eidentic/server";
import { Agent, AIModel, SqliteStore } from "eidentic";
import { anthropic } from "@ai-sdk/anthropic";
const agent = new Agent({
id: "support",
instructions: "You are a helpful support assistant.",
model: new AIModel(anthropic("claude-sonnet-4-5")),
store: new SqliteStore("./eidentic.sqlite"),
});
const app = createServer({
agents: { support: agent },
auth: ApiKeyAuth({ "key_live_abc123": { userId: "u-1" } }),
});
// Node.js
await serveNode(app, { port: 3000 });
// POST /v1/agents/support/query → NDJSON stream
// GET /v1/runs/:id/status → async run status
// GET /v1/workflows → workflow run listThe stream format is compatible with Vercel AI SDK's useChat and @eidentic/react's
useEidenticStream out of the box.
@eidentic/server follows AI SDK 7's ESM-only runtime surface. Use ESM import, not
CommonJS require().
Links
Apache-2.0
