← All packages

Database · Convex component

mastra-weflayr

Run Mastra agents on Weflayr routing strategies with every call tagged by customer and run, and stop a customer's run on their real AI cost or margin.

npm install mastra-weflayr
—downloads last week
—downloads last 12 months
v0.1.1latest, Nov 6, 2026
3releases since Nov 6, 2026

Downloads

Download history

Loading download history…

Build this

Build with mastra-weflayr

The install and setup steps from the package documentation.

  1. 1

    Install

    sh
    npm install mastra-weflayr

    You need @mastra/core 1.34 or later and Node 22.13 or later. Create a key at :

    sh
    export WEFLAYR_API_KEY=<your key>

    Give the key the Gateway scope for model calls, and the Management scope as well for real cost, margin, revenue and tags. To use a separate management key, set WEFLAYR_MANAGEMENT_KEY. You don't need a key from the model provider.