LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • Agent
  • Middleware
  • Backends
  • Sandboxes
  • Skills
  • Subagents
  • Configuration
  • Types
Modal
Daytona
Deno
Node VFS
Sandbox Standard Tests
  • Vitest
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

OverviewAgentMiddlewareBackendsSandboxesSkillsSubagentsConfigurationTypes
Modal
Daytona
Deno
Node VFS
Sandbox Standard Tests
Vitest
Language
Theme
JavaScriptdeepagentsindexLocalShellBackendcreate
Method●Since v1.8

create

Create and initialize a new LocalShellBackend in one step.

This is the recommended way to create a backend when the rootDir may not exist yet. It combines construction and initialization (ensuring rootDir exists) into a single async operation.

Copy
create(options: LocalShellBackendOptions = {}): Promise<LocalShellBackend>

Parameters

NameTypeDescription
optionsLocalShellBackendOptions
Default:{}

Configuration options for the backend

View source on GitHub