Skip to main content

Build

Langchain Typescript Quickstart

LangChain SkillsOfficialCertified

We earn commissions when you shop through the links below.

Scaffold a minimal local LangChain agent in TypeScript by following the official quickstart. Use when the user wants to quickly build or try a LangChain agent locally.

  • New
  • v1.0.0
  • Reviewed Jul 23
  • No reviews yet

Getting started

Full instructions

Install the skill, then ask your AI tool for the task in plain words. The full SKILL.md below shows what it covers.

Instructions: SKILL.mdv1.0.0

LangChain TypeScript quickstart

Follow the live docs — do not invent an alternate API from memory:

https://docs.langchain.com/oss/javascript/langchain/quickstart

Fetch that page (Docs MCP or HTTP) and implement what it shows (weather agent + createAgent). Requires Node 22+.

Local setup constraints

Apply these on top of the quickstart (they keep setup minimal and model-agnostic):

  1. Ask which provider/model to use. Showcase that LangChain is model-agnostic. Suggested prompt:

    Which model should this agent use? Pass a provider:model string — e.g. openai:gpt-5.5, anthropic:claude-sonnet-5, google-genai:gemini-2.5-flash-lite. Default if you're unsure: anthropic:claude-sonnet-5.

    Swap the quickstart's model string for their choice (or the default).

  2. Create a new directory (e.g. langchain-agent/) and do all work there — do not pollute the open project.

  3. Only secret: the provider API key in .env (gitignored). No LangSmith / Tavily unless they ask. Prefer they edit .env themselves — don't paste keys into chat.

  4. Install the provider package needed for their model if the quickstart's base install isn't enough.

  5. Run the example, show output, then stop. Point to langchain-fundamentals for next steps.

Explore more skills

Browse all
This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

More from LangChain Skills

View source →

Frequently asked questions about langchain-typescript-quickstart

What does the langchain-typescript-quickstart skill do?

Scaffold a minimal local LangChain agent in TypeScript by following the official quickstart. Use when the user wants to quickly build or try a LangChain agent locally. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the langchain-typescript-quickstart skill?

Run `npx @skills-hub-ai/cli install langchain-typescript-quickstart` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/langchain-typescript-quickstart/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does langchain-typescript-quickstart work with?

langchain-typescript-quickstart runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the langchain-typescript-quickstart skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use langchain-typescript-quickstart after installing it?

In Claude Code, type `/langchain-typescript-quickstart` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the langchain-typescript-quickstart skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.

Badge for your README

Show that this skill is on Skills Hub. The badge links back to this page and shows the live install count.

Install on Skills Hub badge preview
Markdown
[![Install on Skills Hub](https://skills-hub.ai/api/badges/skill/langchain-typescript-quickstart)](https://skills-hub.ai/skills/langchain-typescript-quickstart)
HTML
<a href="https://skills-hub.ai/skills/langchain-typescript-quickstart"><img src="https://skills-hub.ai/api/badges/skill/langchain-typescript-quickstart" alt="Install on Skills Hub"></a>

More options in the badge docs.