Quick Start
Quickly build a fully-featured agent application with deepseek-kit
Scaffold a Project
The fastest way to get started is using the CLI scaffolding tool:
Try it online without local setup: Open in StackBlitz
Manual Setup
If you prefer to set up manually:
Install Dependencies
Set API Key
Get your API key at platform.deepseek.com
.env
Build a Basic Agent
Create a simple agent that can answer questions and autonomously call tools. Let's see how to build an agent that queries the weather on its own.
agent.ts
How It Works
When the agent receives the user's question How's the weather in Chongqing today?, the collaboration flow works as follows:
- Intent Understanding: The LLM analyzes the user's question and identifies it as a weather query request
- Tool Selection: The model determines from the registered tool list that it needs to call
getWeatherToolto fetch weather data - Parameter Extraction: The model extracts the city parameter
city: "Chongqing"from the question - Tool Execution: The framework calls
getWeatherTool'sexecutefunction, which returns simulated weather data - Result Integration: The model integrates the tool's returned data into a natural language response and outputs the final result
Expected Output:

