LLM Frameworks
Mastra
Use Mastra with Keywords AI
This tutorial shows how to set up Keywords AI tracing with Mastra to monitor and trace your AI-powered applications.
We have built a pre-built example for you to get started quickly. You can find the code here.
Here’s the tutorial about the Mastra Weather Agent example.
Setup
1. Install Dependencies
2. Environment Variables
Copy the example environment file and add your API keys:
Update .env.local with your credentials:
.env.local
3. Run the Project
This opens the Mastra playground where you can interact with the weather agent.
Observability
The project is configured with KeywordsAI telemetry in src/mastra/index.ts
: