# Bernstein vs DSPy — Fit & Features

Canonical: https://trutool.co/compare/bernstein-vs-dspy
Author: Snehil (https://trutool.co/authors/snehil)

Compare Bernstein and DSPy by use case, features, limitations, and evaluation questions.

## Compare fit, features, and limitations

### Bernstein
The open‑source AI Agents Governance & Orchestration framework: write the rules declaratively, Bernstein enforces them and produces the verifiable, replayable record. Free, Apache-2.0. https://bernstein.run.
Best fit: People and teams evaluating ai agent frameworks for a specific workflow.
- Core product workflow
Before you choose: Test a representative task, inspect outputs, and confirm integrations, permissions, data handling, licensing, and current costs.
Pricing: https://github.com/pricing
- [Read Bernstein profile](https://trutool.co/tools/bernstein): Read Bernstein profile

### DSPy
Program and optimize language model pipelines with structured modules.
Best fit: Developers composing agents, structured model outputs, and tool workflows.
- LM programs
- Pipeline optimization
- Evaluation workflows
Before you choose: Check licensing, provider compatibility, maintenance, and tool permissions. Test failure recovery before enabling agent actions.
Pricing: https://dspy.ai/current/
- [Read DSPy profile](https://trutool.co/tools/dspy): Read DSPy profile
