langchain-python-quickstart

Scaffolds a minimal local LangChain agent in Python 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-python-quickstart
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: langchain-python-quickstart
Source: https://github.com/langchain-ai/langchain-skills/tree/main/config/skills/langchain-python-quickstart
Command: npx skills add https://github.com/langchain-ai/langchain-skills --skill langchain-python-quickstart

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Setting up a first LangChain agent often involves guessing at APIs, picking a model provider, and figuring out project structure. This Skill walks through the official LangChain Python quickstart so you get a working local agent without inventing outdated API calls from memory.

Core Features & Use Cases

  • Live-docs-driven setup: Fetches the official LangChain quickstart page and implements the weather agent example with create_agent exactly as documented.
  • Model-agnostic configuration: Prompts you to choose any provider via a provider:model string (e.g. openai:gpt-5.5, anthropic:claude-sonnet-5, google_genai:gemini-2.5-flash-lite) and installs the matching provider package.
  • Clean local environment: Creates a dedicated directory with only the provider API key in a gitignored .env file, then runs the example and shows the output.
  • Use Case: You want to try LangChain for the first time. The Skill asks which model to use, scaffolds a langchain-agent/ directory, installs dependencies, and runs a working weather agent in minutes.

Quick Start

Ask your coding agent to build a minimal local LangChain agent in Python using the official quickstart with your preferred model provider.

Frequently Asked Questions about langchain-python-quickstart

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

FAQPage Schema
How do I build a LangChain agent in Python quickly?

Follow the official LangChain Python quickstart, which implements a weather agent using create_agent. This Skill fetches the live docs page, scaffolds a new project directory, installs dependencies, and runs the example for you.

Which model providers can I use with a LangChain 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 Skill installs the provider package needed for whichever model you choose.

Do I need LangSmith or Tavily API keys for the LangChain quickstart?

No. The only secret required is your model provider's API key, stored in a gitignored .env file. LangSmith and Tavily are optional and only added if you explicitly ask for them.

Where should I put my API key when setting up a LangChain agent?

Place the provider API key in a .env file that is gitignored inside the new project directory. You should edit the .env file yourself rather than pasting keys into the chat.

What should I learn after completing the LangChain quickstart?

After running the quickstart example and seeing the output, move on to the langchain-fundamentals skill for deeper coverage of LangChain concepts and next steps.