integrations

CrewCheck + LangChain Integration

Integrate CrewCheck with LangChain for DPDP-compliant AI governance. Step-by-step setup guide for ai framework integration with PII redaction and audit trails.

Overview

Integrate CrewCheck with LangChain to add DPDP-compliant AI governance to your ai framework workflows. LangChain applications can use CrewCheck by setting the base URL on your LLM provider configuration. No changes to your chain definitions, agents, or tools are required.

Quick setup

``` # In your LangChain config llm = ChatOpenAI(base_url='https://your-org.crewcheck.in/v1/proxy/openai') ```

Once configured, all LangChain traffic passes through CrewCheck's governance layer. Indian PII (Aadhaar, PAN, UPI, mobile numbers) is automatically detected and redacted. Policy packs are evaluated on every request. Every interaction is logged to the tamper-evident audit trail.

What you get

• Automatic Indian PII detection and redaction for all LangChain interactions

• DPDP Act 2023 compliance controls applied at the request boundary

• Real-time cost tracking in ₹ for every LangChain API call

• Tamper-evident audit trail for regulatory reporting

• Shadow Mode to test governance controls before enforcement

• Dashboard visibility into LangChain-specific metrics and compliance scores

Next steps

After setting up the LangChain integration, configure your policy packs in the CrewCheck dashboard. Start with Shadow Mode to observe detection rates and policy impacts, then promote to enforcement when you're confident in the configuration.

For production deployments, enable circuit breakers to automatically halt LangChain traffic if PII detection rates or costs exceed your configured thresholds.

#langchain#integration#ai-framework

Ready to govern your AI workflows?

Try CrewCheck's live demo — no sign-up required.

Try Live Demo