LangChain

Connect Akto with LangChain

Overview

LangChain is a framework for developing applications powered by language models. This setup is recommended if you want to monitor Agent traffic from your LangChain applications and ensure your AI-powered processes maintain security standards.

The Akto LangChain connector automatically:

  • Fetches all LangChain application metadata

  • Monitors LangChain executions

  • Sends API traffic data to Akto for security analysis

Steps to Connect

1

Configure Akto Traffic Processor

Set up and configure Akto Traffic Processor. The steps are mentioned herearrow-up-right.

2

Open the Langchain Connector in Akto Argus

  1. Navigate to Akto Argus.

  2. Open Connectors.

  3. Under AI Agent Security, locate the LangChain connector card.

  4. Select Connect to open the langchain dialog.

3

Enter the LangSmith Base URL

Provide the base URL for the LangSmith API in the LangSmith Base URL field.

4

Enter the LangSmith API Key

Provide a valid LangSmith API key in the LangSmith API Key field.

Follow the steps to generate the API keys:

  • Log in to LangSmith (smith.langchain.com).

  • Go to Settings → API Keys.

  • Create a new API key and copy it.

  • Enter this key into LangSmith API Key.

5

Enter the Data Ingestion Service URL

Enter the URL of your self-hosted data ingestion service in the URL for Data Ingestion Service field in order to forward agent execution and telemetry data into your environment for processing.

circle-exclamation

Note

6

Complete the Integration

After all fields are populated:

  1. Review the configuration details.

  2. Select Import to finalise the connection.

What Data is Collected?

The LangChain connector collects execution data from your LangChain applications:

Application Metadata

  • All LangChain applications and traces

Execution Data

  • Recent execution traces

  • Input and output data

Get Support for your Akto setup

There are multiple ways to request support from Akto. We are 24X7 available on the following:

  1. In-app intercom support. Message us with your query on intercom in Akto dashboard and someone will reply.

  2. Join our discord channelarrow-up-right for community support.

  3. Contact [email protected] for email support.

  4. Contact us herearrow-up-right.

Last updated