Embed Swytchcode tools into LangGraph workflows

Use Swytchcode as the runtime for LangGraph's orchestration graph.

Book a demo

6

Integration steps

Graph

Orchestration-ready

Runtime

Provider support

Safe

Tool execution

CLI

Ship in one command.

Pull the manifest, set your policy, execute. No SDK sprawl, no boilerplate. Just the tool you need, right now.

npm install @swytchcode/runtime @langchain/core langgraph dotenv
swytchcode login
swytchcode get github

How it connects

Connect LangGraph in minutes

Follow these steps to connect your agent, load a toolkit, and start executing tools through Swytchcode.

  1. 1

    Install the CLI

    Install the CLI, or use swy as a shorter alias for swytchcode.

    npm install -g swytchcode
  2. 2

    Install the packages

    Install the Runtime SDK together with LangGraph's dependencies.

    npm install @swytchcode/runtime @langchain/core langgraph dotenv
  3. 3

    Initialize Swytchcode

    Set up a Swytchcode project in your repo.

    npx swytchcode
    swytchcode init
  4. 4

    Load the tools

    Initialize the LangGraph provider and fetch the tools your graph will execute.

    import { Swytchcode } from '@swytchcode/runtime'
    import { LangGraphProvider } from '@swytchcode/runtime/providers/langgraph'
    
    const swx = new Swytchcode(new LangGraphProvider())
    const tools = await swx.tools.get({ toolkits: ['github'] })
  5. 5

    Pass them into LangGraph

    Build your graph with the returned tools and let the agent invoke them directly.

    console.log('LangGraph tools ready:', tools.length)
  6. 6

    Run the file

    Tool execution stays inside Swytchcode while the graph focuses on orchestration.

    node main.js

Works with

APIs your team already uses

GitHub
Notion

Ready to ship langgraph integrations?

Install the CLI and pull your first manifest in under a minute. No account required.

Book a demo