comparar · AI
Both work with Next.js, Node.js, Bun, Nuxt, SvelteKit. In a kit you pick one, and your agent gets the rule to use only that one.
| Claude API | OpenAI | |
|---|---|---|
| What it is | Anthropic's official SDK for calling Claude. | Official OpenAI SDK for server-side model calls. |
| Frameworks | Next.js, Node.js, Bun, Nuxt, SvelteKit | Node.js, Bun, Nuxt, SvelteKit, Next.js |
| Paquetes | @anthropic-ai/sdk | openai@^7.57.0 |
| Skill oficial | anthropics/skills@claude-api | — |
| How your agent uses it | Use `askClaude()` from `src/lib/claude.ts`, or the `claude` client for advanced cases (streaming, tools). Always check `stop_reason` before reading the response. Read the `claude-api` skill before changing models or parameters. | Create the SDK client only inside server code when OPENAI_API_KEY is present. Bound tokens, timeouts and spend; validate model output before taking actions. |
| Kits that offer it | api-elysia, api-express, api-fastify, api-hono, api-nestjs, cli-node, discord-bot, github-action, mcp-server-ts, saas-ai-next, saas-next-better-auth, saas-next-supabase, saas-nuxt, saas-sveltekit, saas-t3, slack-app, web-next, web-nuxt, web-sveltekit | api-elysia, api-express, api-fastify, api-hono, api-nestjs, cli-node, discord-bot, github-action, mcp-server-ts, saas-ai-next, saas-next-better-auth, saas-next-supabase, saas-nuxt, saas-sveltekit, saas-t3, slack-app, web-next, web-nuxt, web-sveltekit |
| Chosen in | 0 installs | 0 installs |