开始
🌐 Start
创建一个新的 Mastra 项目,或将 Mastra 与你喜欢的框架集成以开始构建。
🌐 Create a new Mastra project, or integrate Mastra with your preferred framework to start building.
新项目Direct link to 新项目
🌐 New project
create mastra 命令是构建第一个代理的最快方式。它会引导你完成设置,并生成一个示例代理,你可以立即在 Studio 中运行和调整。当你准备好时,你随时可以将 Mastra 集成到你的框架或用户界面中。
🌐 The create mastra command is the fastest way to build your first agent. It walks you through setup and generates an example agent you can run and adapt in Studio right away. You can always integrate Mastra with your framework or UI when you’re ready.
与你的框架集成Direct link to 与你的框架集成
🌐 Integrate with your framework
将 Mastra 添加到现有项目中,或者如果你从零开始,可以创建一个新的 Mastra 应用。
🌐 Add Mastra to an existing project, or scaffold a new Mastra-powered app if you’re starting from scratch.
Build an AI-powered Next.js app
Add agents to your React + Vite app
Integrate Mastra with SvelteKit
Add AI agents to your Astro site
Integrate Mastra with Nuxt
Integrate Mastra with the Express server adapter
Integrate Mastra with the Hono server adapter
Mastra 与像 AI SDK UI、CopilotKit 和 Assistant UI 这样的代理型 UI 框架配合使用效果极佳。可以将它们与上述任意前端框架一起使用,以流式传输代理响应、呈现工具并构建聊天界面。
🌐 Mastra works great with agentic UI frameworks like AI SDK UI, CopilotKit, and Assistant UI. Use them with any of the frontend frameworks above to stream agent responses, render tools, and build chat interfaces.
从模板开始Direct link to 从模板开始
🌐 Start from a template
有具体的使用场景吗?可以从 Mastra 或我们的社区提供的预设模板开始。
🌐 Have a use case in mind? Start with a pre-built template from Mastra or our community.