Title: integrations | deepagents_code | LangChain Reference
Open Graph Title: integrations | deepagents_code
X Title: integrations | deepagents_code
Description: Python API reference for integrations in deepagents_code. Part of the LangChain ecosystem.
Open Graph Description: Python API reference for integrations in deepagents_code. Part of the LangChain ecosystem.
X Description: Python API reference for integrations in deepagents_code. Part of the LangChain ecosystem.
Opengraph URL: https://reference.langchain.com/python/deepagents-code/integrations
Domain: reference.langchain.com
| og:image | https://reference.langchain.com/og/python/deepagents-code/integrations |
| og:image:width | 1200 |
| og:image:height | 630 |
| og:image:alt | integrations | deepagents_code |
| og:type | article |
| twitter:card | summary_large_image |
| twitter:image | https://reference.langchain.com/og/python/deepagents-code/integrations |
Links:
| LangChain Reference home page | https://reference.langchain.com/ |
| GitHub | https://github.com/langchain-ai |
| Main Docs | https://docs.langchain.com/oss/python/deepagents |
| Deep Agents | https://reference.langchain.com/python/deepagents |
| LangChain | https://reference.langchain.com/python/langchain/overview |
| LangGraph | https://reference.langchain.com/python/langgraph/overview |
| Integrations | https://reference.langchain.com/python/integrations/overview |
| LangSmith | https://reference.langchain.com/python/langsmith |
| Deep Agents Code | https://reference.langchain.com/python/deepagents-code |
| Deep Agents Code | https://reference.langchain.com/python/deepagents-code |
| deepagents-code | https://reference.langchain.com/python/deepagents-code |
| modulesandbox_configParsing for the [sandboxes] section of ~/.deepagents/config.toml. Parallels the [models] provider configuration in model_config.py. Config providers declare a class_path (same trust model as model class_path), a working_dir, an optional install package, and params forwarded to provider.get_or_create(). | https://reference.langchain.com/python/deepagents-code/integrations/sandbox_config |
| modulesandbox_providerSandbox provider interface used by Deep Agents Code. | https://reference.langchain.com/python/deepagents-code/integrations/sandbox_provider |
| modulesandbox_registryDiscovery and instantiation of sandbox providers. Merges three provider sources into one registry: Built-in providers curated in this repo (installed as deepagents-code extras). Entry-point providers published by third-party packages under the deepagents_code.sandbox_providers group. Config-declared providers from [sandboxes.providers] in ~/.deepagents/config.toml (escape hatch for internal/local packages). Precedence on name collision: config > entry point > built-in, so a user can always override discovery via their config file. | https://reference.langchain.com/python/deepagents-code/integrations/sandbox_registry |
| modulesandbox_factorySandbox lifecycle management with provider abstraction. | https://reference.langchain.com/python/deepagents-code/integrations/sandbox_factory |
| moduleopenai_codexChatGPT OAuth integration for the openai_codex model provider. Thin orchestration layer over langchain_openai.chatgpt_oauth. Reuses the upstream PKCE/token primitives directly (_generate_pkce_pair, _build_authorize_url, _CallbackHandler, _post_form, _token_from_response, _FileChatGPTOAuthTokenProvider) so this module only adds: a UI-friendly entry point that surfaces the authorize URL to the caller before the callback server starts blocking (the upstream login_chatgpt uses print(), which is invisible inside a Textual app), a cancel-aware reimplementation of the loopback callback wait so a cancelled sign-in releases the bound port promptly instead of holding it until the upstream wall-clock timeout elapses (see _wait_for_oauth_callback), and helpers for /auth to read sign-in status, expiry, and the linked account without re-implementing token parsing. The browser-loopback flow mirrors the MCP one in mcp_auth from the user's POV — PKCE + state CSRF + browser launch with a manual-URL fallback — but the callback server here is upstream's single-threaded polling http.server.HTTPServer (reused via _CallbackHandler), not the ThreadingHTTPServer that mcp_auth runs itself. The OAuth-specific parts (token exchange, refresh, file storage with 0600 perms) are delegated to upstream. NoteThe OAuth primitives are reused from langchain-openai>=1.3.1, which is the first release to ship langchain_openai.chatgpt_oauth. This module deliberately reaches into upstream-internal (_-prefixed) helpers; their stability is an upstream concern, so pin the minimum langchain-openai version when bumping and re-check the imported names against the release. | https://reference.langchain.com/python/deepagents-code/integrations/openai_codex |
| View source on GitHub | https://github.com/langchain-ai/deepagents/blob/019900734024a7665fd65bd75235c6307d5da003/libs/code/deepagents_code/integrations/__init__.py |
Viewport: width=device-width, initial-scale=1