LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • LangGraph Checkpoint
    LangGraph Store
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    LangGraph Checkpoint
    LangGraph Store
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    Language
    Theme
    Pythonlanggraph-clischemasConfigenv
    Attribute●Since v0.4

    env

    Copy
    env: dict[str, str] | str
    View source on GitHub

    Optional. Environment variables to set for your deployment.

    • If given as a dict, keys are variable names and values are their values.
    • If given as a string, it must be a path to a file containing lines in KEY=VALUE format.

    Example as a dict:

    env={"API_TOKEN": "abc123", "DEBUG": "true"}

    Example as a file path: env=".env"