Use Case

Add Identity & Permissions to LangChain Agents

LangChain gives your agents tools. KYA controls what they're allowed to do with those tools. Add pre-execution verification, spend limits, and tamper-proof audit logs to any LangChain agent in minutes.

The problem with LangChain agents in production

LangChain makes it easy to give agents powerful tools: web search, database writes, Stripe charges, email sending. But there's no built-in mechanism to say 'this agent can charge up to €100 but no more' or 'this agent cannot delete records'. Every tool call goes straight through.

How KYA wraps LangChain tools

KYA integrates as a wrapper around LangChain's tool execution layer. Before any tool runs, KYA's verify gate checks the agent's identity, evaluates the policy, and returns ALLOW or DENY. Your LangChain code barely changes.

Code example

from langchain.agents import AgentExecutor
from kya import KYAClient, wrap_tools

kya = KYAClient(api_key="kya_...")

# Wrap your tools with KYA verification
secure_tools = wrap_tools(
    tools=[stripe_tool, crm_tool, email_tool],
    agent_id="agt_sales_assistant",
    kya_client=kya
)

agent = AgentExecutor(
    agent=your_agent,
    tools=secure_tools  # drop-in replacement
)

What you get

Every tool call is verified before execution. Unauthorized actions are denied with a reason code. Every decision is logged in the tamper-proof audit trail. Your LangChain agent is now a compliant, accountable system.

Add KYA to your agent

Get identity, permissions, and audit logs in under 5 minutes.