{"slug": "langchain-devcontainer", "title": "LangChain DevContainer", "summary": "LangChain's repository now ships a Dev Container configuration that lets developers build and run the library inside a container without installing its tools locally, usable through GitHub Codespaces or the VS Code Dev Containers extension. The setup documentation directs contributors to fork and clone the repo, then run the \"Dev Containers: Open Folder in Container...\" command, and notes that the repo's .gitattributes file disables line-ending conversion to prevent hundreds of spurious changes in the SCM view on Windows.", "body_md": "This project includes a [dev container](https://containers.dev/), which lets you use a container as a full-featured dev environment.\n\nYou can use the dev container configuration in this folder to build and run the app without needing to install any of its tools locally! You can use it in [GitHub Codespaces](https://github.com/features/codespaces) or the [VS Code Dev Containers extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers).\n\nYou may use the button above, or follow these steps to open this repo in a Codespace:\n\n1. Click the **Code** drop-down menu at the top of[https://github.com/langchain-ai/langchain](https://github.com/langchain-ai/langchain) .\n2. Click on the **Codespaces** tab.\n3. Click **Create codespace on master** .\n\nFor more info, check out the [GitHub documentation](https://docs.github.com/en/free-pro-team@latest/github/developing-online-with-codespaces/creating-a-codespace#creating-a-codespace).\n\nNote\n\nIf you click the link above you will open the main repo (`langchain-ai/langchain`) and *not* your local cloned repo. This is fine if you only want to run and test the library, but if you want to contribute you can use the link below and replace with your username and cloned repo name:\n\n```\nhttps://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/&lt;YOUR_USERNAME&gt;/&lt;YOUR_CLONED_REPO_NAME&gt;\n```\n\nThen you will have a local cloned repo where you can contribute and then create pull requests.\n\nIf you already have VS Code and Docker installed, you can use the button above to get started. This will use VSCode to automatically install the Dev Containers extension if needed, clone the source code into a container volume, and spin up a dev container for use.\n\nAlternatively you can also follow these steps to open this repo in a container using the VS Code Dev Containers extension:\n\n1. \nIf this is your first time using a development container, please ensure your system meets the pre-reqs (i.e. have Docker installed) in the [getting started steps](https://aka.ms/vscode-remote/containers/getting-started) .\n2. \nOpen a locally cloned copy of the code: \n  - Fork and Clone this repository to your local filesystem.\n  - Press `F1` and select the**Dev Containers: Open Folder in Container...** command.\n  - Select the cloned copy of this folder, wait for the container to start, and try things out!\n\nYou can learn more in the [Dev Containers documentation](https://code.visualstudio.com/docs/devcontainers/containers).\n\n- If you are working with the same repository folder in a container and Windows, you'll want consistent line endings (otherwise you may see hundreds of changes in the SCM view). The `.gitattributes` file in the root of this repo will disable line ending conversion and should prevent this. See[tips and tricks](https://code.visualstudio.com/docs/devcontainers/tips-and-tricks#_resolving-git-line-ending-issues-in-containers-resulting-in-many-modified-files) for more info.\n- If you'd like to review the contents of the image used in this dev container, you can check it out in the [devcontainers/images](https://github.com/devcontainers/images/tree/main/src/python) repo.", "url": "https://wpnews.pro/news/langchain-devcontainer", "canonical_source": "https://github.com/langchain-ai/langchain/tree/master/.devcontainer", "published_at": "2026-11-28 13:30:21+00:00", "updated_at": "2026-11-28 13:43:07.931926+00:00", "lang": "en", "topics": ["developer-tools", "ai-tools"], "entities": ["LangChain", "GitHub Codespaces", "Visual Studio Code", "Docker", "langchain-ai/langchain"], "also_reported_by": [], "takeaway": "LangChain's dev container lets contributors run and test the library in GitHub Codespaces or VS Code Dev Containers without local installs, with the repo's .gitattributes disabling line-ending conversion to avoid hundreds of spurious SCM changes on Windows.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/langchain-devcontainer", "markdown": "https://wpnews.pro/news/langchain-devcontainer.md", "text": "https://wpnews.pro/news/langchain-devcontainer.txt", "jsonld": "https://wpnews.pro/news/langchain-devcontainer.jsonld"}}