Installation
CapFence requires Python 3.10 or later.
Install from PyPI
pip install capfenceInstall with optional framework extras
# LangChain / LangGraph support
pip install "capfence[langchain]"
# CrewAI support
pip install "capfence[crewai]"
Verify the installation
capfence --versionWhat gets installed
| Component | Purpose |
|---|---|
capfence CLI |
Scan, audit, replay, approve |
capfence.ActionRuntime |
Runtime authorization for direct API use |
capfence.framework.* |
Framework-specific wrappers |
capfence.mcp.gateway |
MCP governance gateway |
| Local SQLite audit database | Created when a runtime or CLI command writes audit events |
Next steps
- Quickstart — wrap your first tool in under 5 minutes
- First policy — write a policy that blocks and allows
- First blocked action — see enforcement in action