> ## Documentation Index
> Fetch the complete documentation index at: https://langchain.idochub.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Permit

[Permit.io](https://permit.io/) offers fine-grained access control and policy
enforcement. With LangChain, you can integrate Permit checks to ensure only authorized
users can access or retrieve data in your LLM applications.

## Installation and Setup

<CodeGroup>
  ```bash pip theme={null}
  pip install langchain-permit
  pip install permit
  ```

  ```bash uv theme={null}
  uv add langchain-permit
  uv add permit
  ```
</CodeGroup>

Set environment variables for your Permit PDP and credentials:

```python theme={null}
export PERMIT_API_KEY="your_permit_api_key"
export PERMIT_PDP_URL="http://localhost:7766"   # or your real PDP endpoint
```

Make sure your PDP is running and configured. See
[Permit Docs](https://docs.permit.io/sdk/python/quickstart-python/#2-setup-your-pdp-policy-decision-point-container)
for policy setup.

## Tools

See detail on available tools [here](/oss/python/integrations/tools/permit).

## Retrievers

See detail on available retrievers [here](/oss/python/integrations/retrievers/permit).
