langchain-typescript-quickstart

Scaffolds a minimal local LangChain agent in TypeScript following the official quickstart.

1.2k|90|Updated Jan 22, 2026
One-click install
npx skills add https://github.com/langchain-ai/langchain-skills --skill langchain-typescript-quickstart
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: langchain-typescript-quickstart
Source: https://github.com/langchain-ai/langchain-skills/tree/main/config/skills/langchain-typescript-quickstart
Command: npx skills add https://github.com/langchain-ai/langchain-skills --skill langchain-typescript-quickstart

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Setting up a first LangChain agent in TypeScript often leads to outdated code snippets and hallucinated APIs. This Skill grounds the setup in the live official quickstart documentation so the generated agent matches current LangChain APIs.

Core Features & Use Cases

  • Docs-grounded scaffolding: Fetches the official LangChain JavaScript quickstart and implements the weather agent with createAgent exactly as documented.
  • Model-agnostic setup: Prompts for a provider:model string (e.g. openai:gpt-5.5, anthropic:claude-sonnet-5) and installs the matching provider package.
  • Isolated workspace: Creates a new directory with a gitignored .env for the provider API key, keeping the existing project untouched.
  • Use Case: A developer wants to try LangChain locally in five minutes — the Skill scaffolds a working weather agent in a fresh langchain-agent/ directory, runs it, and shows the output.

Quick Start

Ask your coding agent to scaffold a minimal local LangChain agent in TypeScript using the langchain-typescript-quickstart skill with your preferred model provider.

Frequently Asked Questions about langchain-typescript-quickstart

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a LangChain agent in TypeScript?

Follow the official LangChain JavaScript quickstart, which builds a weather agent using createAgent. This Skill fetches that live documentation and implements it exactly, avoiding outdated or hallucinated API usage.

Which models can I use with a LangChain TypeScript agent?

LangChain is model-agnostic and accepts a provider:model string such as openai:gpt-5.5, anthropic:claude-sonnet-5, or google-genai:gemini-2.5-flash-lite. The default suggestion is anthropic:claude-sonnet-5, and the matching provider package is installed if needed.

What Node.js version does the LangChain quickstart require?

The LangChain TypeScript quickstart requires Node 22 or later. Ensure your runtime meets this version before scaffolding the agent.

Does the LangChain quickstart need LangSmith or Tavily API keys?

No, only the model provider's API key is required, stored in a gitignored .env file. LangSmith and Tavily are not configured unless you explicitly ask for them.

Will scaffolding a LangChain agent modify my existing project?

No, all work happens in a newly created directory such as langchain-agent/. Your open project remains untouched, and secrets stay in a gitignored .env file you edit yourself.