Comparisons
How Crux compares
Crux isn't trying to replace your SDK. It's a kit of typed building blocks for the harness around it. Pick the ones you need, drop the rest.
Using generateText / generateObject directly
vs. Vercel AI SDK (alone)
Vercel AI SDK is an excellent execution layer, and Crux uses it as its primary adapter. The comparison is about what you get when you add Crux's harness on top.
Bottom line: AI SDK handles the model call. Crux handles everything around it. Complementary, not competing.
OpenAI SDK, Anthropic SDK, Google GenAI
vs. Raw SDK calls
Raw SDK calls give you maximum control but zero structure. Crux sits on top, composing your context, validating schemas, and delegating execution to the SDK. You keep full SDK access.
Bottom line: Keep using the SDK. Crux doesn't replace it. Add Crux when you need memory, retrieval, guardrails, routing, evals, or observability around the call.
Template literals and string concatenation
vs. Prompt strings in code
If your app has 1–2 simple prompts, raw strings are fine. Crux adds value when complexity grows. Here's where the line is.
Bottom line: Start with strings. Adopt Crux when you have shared context, need structured output, or want automated evaluation.
Full orchestration frameworks
vs. LangChain / LlamaIndex
LangChain and LlamaIndex replace your SDK and own execution. Crux keeps your SDK and owns the harness around it: prompts, memory, retrieval, tools, guardrails, routing, evaluation, observability.
Bottom line: LangChain replaces your SDK. Crux keeps it. Pick LangChain if you want an all-in-one framework; pick Crux if you want typed building blocks around the SDK you already use.
Try it yourself
Install Crux and write your first typed prompt in under 5 minutes.