LangGraph
1. Install the CLI
npm install -g swytchcodeirm https://cli.swytchcode.com/install.ps1 | iexcurl -fsSL https://cli.swytchcode.com/install.sh | shUse swy as a shorter alias for swytchcode.
2. Install the packages
npm install @swytchcode/runtime @langchain/core langgraph dotenvpip install swytchcode-runtime langgraph python-dotenv3. Initialize Swytchcode and fetch a toolkit
swy initswy get githubswy init creates .swytchcode/ and tooling.json for the project. swy get github downloads the GitHub integration bundle - the schemas that tools.get reads from in the next step.
4. Load the tools
import 'dotenv/config';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'] });import osfrom dotenv import load_dotenvfrom swytchcode_runtime import Swytchcode
load_dotenv()
swx = Swytchcode()tools = swx.tools.get(toolkits=["github"])
print(f"Loaded {len(tools)} tools")5. Pass them into LangGraph
// Build your graph with the returned tools and let the agent invoke them.console.log('LangGraph tools ready:', tools.length);result = swx.tools.execute("github.pull_requests.list", { "params": {"state": "open"}, "Authorization": f"Bearer {os.getenv('GITHUB_TOKEN')}",})
print(result)6. Run the file
Save the example as main.js or main.py, then run the matching command:
node main.jspython main.pyThis keeps tool execution inside Swytchcode while the workflow graph stays focused on orchestration.
Example projects
Browse all examples →Weekly Reporting
Agent writes a weekly activity report to Notion and emails it via Resend — no human in the loop.
Lead Qualification
Qualifies inbound leads and creates contacts and deals in HubSpot automatically.
Fintech Compliance
Covers bank account linking (Plaid), KYC (Persona), payments (Dwolla), and policy enforcement in one flow.
Customer Onboarding
Signup flow that creates a HubSpot contact, a Stripe customer, and sends a Resend welcome email.