Install¶
CredenceStack needs Python 3.12 or later. Nothing else: no API key, no account, no network for anything but installing.
The package¶
python -m venv .venv && source .venv/bin/activate
pip install credencestack
credencestack --version
Every connector is an optional extra:
| Extra | Installs | For |
|---|---|---|
| (none) | the core | Python agents, HTTP services, every command except framework connectors |
langchain |
LangChain 1.x and LangGraph 1.x | the LangChain / LangGraph connector |
anthropic, openai |
the LangChain provider packages | live LangChain models |
mcp |
the MCP Python SDK 2.x | the MCP connector and credencestack env serve |
openai-agents |
the OpenAI Agents SDK | its connector |
msaf |
agent-framework-core |
the Microsoft Agent Framework connector |
strands |
strands-agents |
the AWS Strands connector |
adk |
google-adk |
the Google ADK connector |
crewai |
crewai |
the CrewAI connector (its own environment, see below) |
claude-agent-sdk |
claude-agent-sdk |
the Claude Agent SDK connector |
bench |
matplotlib | benchmark charts |
judge |
the Anthropic and OpenAI SDKs | the optional advisory judge (--judge) |
tenuo |
the Tenuo SDK | turning Tenuo warrants into profiles (credencestack profiles import) |
otel |
the OpenTelemetry SDK and OTLP exporters | --otel traces (observability) |
all |
every connector except CrewAI, plus otel |
trying several frameworks |
pip install "credencestack[openai-agents]"
credencestack connectors list
connectors list shows each connector: installed or not, the framework version installed and
targeted, its conformance result and whether suspension is supported.
CrewAI needs its own environment: CrewAI 1.15 requires mcp<2 and openai<3, which
conflict with the MCP and OpenAI Agents SDK connectors.
Offline and live mode¶
Every guide runs offline first. --model credencestack:scripted makes the connector use
a scripted model inside the real framework: the framework's tools, approvals and middleware
all run, but the model's choices come from CredenceStack's scripted safe policy
(credencestack:scripted-naive replays the naive one). No network, no key, the same result
every time. It tests your agent's wiring, not its judgement.
Live mode uses a real model: pass its name with --model, and set the provider's API key
in the environment. CredenceStack never reads keys from files.
| Framework | Model names | Credentials |
|---|---|---|
| LangChain / LangGraph | init_chat_model strings, e.g. anthropic:<model> |
ANTHROPIC_API_KEY, OPENAI_API_KEY, ... |
| OpenAI Agents SDK | SDK model names, or litellm/<provider>/<model> |
OPENAI_API_KEY, or the provider's key |
| Microsoft Agent Framework | what your factory's chat client takes | the provider's key (e.g. OPENAI_API_KEY) |
| AWS Strands | Bedrock model ids | AWS credentials |
| Google ADK | Gemini model names | GOOGLE_API_KEY |
| CrewAI | CrewAI model strings, <provider>/<model> |
the provider's key |
Live runs cost money and vary from run to run; run several epochs and read the confidence intervals.
Keys for signing¶
Signing keys are separate from API keys. Create them outside any git repository
(credencestack evidence keygen refuses to write inside one):
credencestack evidence keygen ~/.credencestack/keys