Publishing your package
This guide assumes you have already implemented your package and written tests for it. If you haven’t, please refer to the implementation guide and testing guide.
Setup credentials
First, make sure you have a PyPI account:How to create a PyPI Token
How to create a PyPI Token
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.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. 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.