使您的集成对社区可用。
重要:新集成应该是独立的包,而不是对 LangChain 单体仓库的 PR。虽然 LangChain 在主仓库中维护一小部分第一方和高使用率集成(如 OpenAI、Anthropic 和 Ollama),但新集成应该作为单独的 PyPI 包和仓库发布(例如,langchain-yourservice),用户可以将其与核心 LangChain 包一起安装。您不应该提交 PR 直接将您的集成添加到主 LangChain 仓库。
现在您的包已实现并经过测试,您可以发布它并添加文档以使其可被社区发现。

发布您的包

本指南假设您已经实现了您的包并为其编写了测试。如果您还没有,请参阅实现指南测试指南
出于本指南的目的,我们将使用 PyPI 作为包注册表。如果您愿意,可以选择发布到其他注册表;说明会有所不同。

Setup credentials

First, make sure you have a PyPI account:
1

Create account

Go to the PyPI website and create an account
2

Verify email

Verify your email address by clicking the link that PyPI emails to you
3

Enable 2FA

Go to your account settings and click “Generate Recovery Codes” to enable 2FA. To generate an API token, you must have 2FA enabled
4

Generate token

Go to your account settings and generate a new API token

Build and publish

How to publish a package

Helpful guide from uv on how to build and publish a package to PyPI.

Adding documentation

To add documentation for your package to this site under the integrations tab, you will need to create the relevant documentation pages and open a PR in the LangChain docs repository.

Writing docs

Depending on the type of integration you have built, you will need to create different types of documentation pages. LangChain provides templates for different types of integrations to help you get started.
To reference existing documentation, you can look at the list of integrations and find similar ones to yours.To view a given documentation page in raw markdown, use the dropdown button next to “Copy page” on the top right of the page and select “View as Markdown”.

Submitting a PR

Make a fork of the LangChain docs repository under a personal GitHub account, and clone it locally. Create a new branch for your integration. Copy the template and modify them using your favorite markdown text editor. Make sure to refer to and follow the documentation guide when writing your documentation.
We may reject PRs or ask for modification if:
Please be patient as we handle a large volume of PRs. We will review your PR as soon as possible and provide feedback or merge it. Do not repeatedly tag maintainers about your PR.

Next steps

Congratulations! Your integration is now published and documented, making it available to the entire LangChain community.

Co-marketing

Get in touch with the LangChain marketing team to explore co-marketing opportunities.

Connect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.