@mastra/mcp-docs-server 1.2.16 → 1.2.17-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/.docs/docs/agents/code-mode.md +2 -2
  2. package/.docs/docs/agents/skills.md +1 -1
  3. package/.docs/docs/agents/using-tools.md +1 -1
  4. package/.docs/docs/harness/agent-controller.md +1 -1
  5. package/.docs/docs/mcp/overview.md +4 -5
  6. package/.docs/docs/studio/overview.md +1 -1
  7. package/.docs/docs/workspace/filesystem.md +182 -153
  8. package/.docs/docs/workspace/lsp.md +4 -5
  9. package/.docs/docs/workspace/sandbox.md +234 -141
  10. package/.docs/docs/workspace/search.md +52 -4
  11. package/.docs/docs/workspace/skills.md +62 -33
  12. package/.docs/integrations/browsers/browser-viewer.md +2 -2
  13. package/.docs/integrations/file-storage/amazon-s3.md +1 -1
  14. package/.docs/integrations/file-storage/azure-blob.md +1 -1
  15. package/.docs/integrations/file-storage/google-cloud-storage.md +1 -1
  16. package/.docs/integrations/file-storage/mesa.md +1 -1
  17. package/.docs/integrations/file-storage/vercel-files.md +1 -1
  18. package/.docs/integrations/sandboxes/apple-container.md +1 -1
  19. package/.docs/integrations/sandboxes/daytona.md +1 -1
  20. package/.docs/integrations/sandboxes/docker.md +1 -1
  21. package/.docs/integrations/sandboxes/e2b.md +1 -1
  22. package/.docs/integrations/sandboxes/modal.md +1 -1
  23. package/.docs/models/environment-variables.md +1 -0
  24. package/.docs/models/gateways/vercel.md +3 -2
  25. package/.docs/models/index.md +1 -1
  26. package/.docs/models/providers/baseten.md +2 -1
  27. package/.docs/models/providers/crossmodel.md +2 -2
  28. package/.docs/models/providers/crusoe.md +80 -0
  29. package/.docs/models/providers/deepinfra.md +3 -1
  30. package/.docs/models/providers/fireworks-ai.md +26 -20
  31. package/.docs/models/providers/huggingface.md +5 -1
  32. package/.docs/models/providers/hyper.md +1 -1
  33. package/.docs/models/providers/kilo.md +4 -4
  34. package/.docs/models/providers/llmgateway.md +3 -2
  35. package/.docs/models/providers/merge-gateway.md +5 -2
  36. package/.docs/models/providers/nano-gpt.md +6 -6
  37. package/.docs/models/providers/ofox.md +5 -1
  38. package/.docs/models/providers/opencode-go.md +2 -1
  39. package/.docs/models/providers/opencode.md +3 -1
  40. package/.docs/models/providers/requesty.md +3 -1
  41. package/.docs/models/providers/zai-coding-plan.md +3 -2
  42. package/.docs/models/providers/zhipuai-coding-plan.md +2 -1
  43. package/.docs/models/providers.md +1 -0
  44. package/.docs/reference/agent-controller/agent-controller-class.md +26 -1
  45. package/.docs/reference/browser/browser-viewer.md +1 -1
  46. package/.docs/reference/configuration.md +1 -1
  47. package/.docs/reference/core/removeWorkspace.md +1 -1
  48. package/.docs/reference/file-based-agents/workspace.md +3 -3
  49. package/.docs/reference/observability/tracing/exporters/mastra-platform-exporter.md +2 -0
  50. package/.docs/reference/processors/skill-search-processor.md +1 -1
  51. package/.docs/reference/tools/create-code-mode.md +1 -1
  52. package/.docs/reference/tools/create-tool.md +11 -3
  53. package/.docs/reference/tools/mcp-server.md +4 -1
  54. package/.docs/reference/workspace/local-filesystem.md +1 -1
  55. package/.docs/reference/workspace/local-sandbox.md +1 -1
  56. package/.docs/reference/workspace/workspace-class.md +52 -15
  57. package/CHANGELOG.md +14 -0
  58. package/package.json +5 -5
  59. package/.docs/docs/workspace/overview.md +0 -416
@@ -2,10 +2,50 @@
2
2
 
3
3
  # Workspace skills
4
4
 
5
- **Added in:** `@mastra/core@1.1.0`
6
-
7
5
  Skills are reusable instructions that teach agents how to perform specific tasks. They follow the [Agent Skills specification](https://agentskills.io) - an open standard for packaging agent capabilities.
8
6
 
7
+ > **Note:** Workspace skills are discovered through a workspace and shared with every agent that uses it. To attach skills directly to one agent without requiring a workspace, use [agent skills](https://mastra.ai/docs/agents/skills).
8
+
9
+ ## When to use skills
10
+
11
+ Use workspace skills when your agent needs to:
12
+
13
+ - Follow repeatable instructions for specialized tasks
14
+ - Load detailed guidance only when it becomes relevant
15
+ - Share instructions, reference files, scripts, and assets across agents
16
+ - Discover capabilities from one or more directories
17
+ - Search skill content alongside other workspace content
18
+
19
+ ## Quickstart
20
+
21
+ Create a skill with a `SKILL.md` file:
22
+
23
+ ```markdown
24
+ ---
25
+ name: code-review
26
+ description: Reviews code for bugs and readability issues
27
+ ---
28
+
29
+ # Code review
30
+
31
+ Check the code for bugs, missing error handling, and unclear naming.
32
+ ```
33
+
34
+ Configure the skill directory on a workspace:
35
+
36
+ ```typescript
37
+ import { Workspace, LocalFilesystem } from '@mastra/core/workspace'
38
+
39
+ const workspace = new Workspace({
40
+ filesystem: new LocalFilesystem({ basePath: './workspace' }),
41
+ skills: ['skills'],
42
+ })
43
+ ```
44
+
45
+ Agents that use this workspace can now discover and load the `code-review` skill when needed.
46
+
47
+ ## Skill structure
48
+
9
49
  A skill is a folder containing:
10
50
 
11
51
  - `SKILL.md`: Instructions and metadata for the agent
@@ -24,8 +64,6 @@ skills/
24
64
  lint.ts
25
65
  ```
26
66
 
27
- When skills are configured on a workspace, agents can discover and activate them during conversations.
28
-
29
67
  ## `SKILL.md` format
30
68
 
31
69
  Follow the official [skill specification](https://agentskills.io/specification) when creating your skill. Here is an example `SKILL.md` for a code review skill:
@@ -59,17 +97,6 @@ You are a code reviewer. When reviewing code:
59
97
 
60
98
  ## Configuring skills
61
99
 
62
- Enable skill discovery by setting the `skills` option on your workspace:
63
-
64
- ```typescript
65
- import { Workspace, LocalFilesystem } from '@mastra/core/workspace'
66
-
67
- const workspace = new Workspace({
68
- filesystem: new LocalFilesystem({ basePath: './workspace' }),
69
- skills: ['skills'],
70
- })
71
- ```
72
-
73
100
  You can specify multiple skill directories:
74
101
 
75
102
  ```typescript
@@ -100,23 +127,6 @@ const workspace = new Workspace({
100
127
  })
101
128
  ```
102
129
 
103
- ## Dynamic skills
104
-
105
- For runtime skill paths based on context, pass a function:
106
-
107
- ```typescript
108
- const workspace = new Workspace({
109
- filesystem: new LocalFilesystem({ basePath: './workspace' }),
110
- skills: ctx => {
111
- const paths = ['skills']
112
- if (ctx.requestContext?.get('userRole') === 'developer') {
113
- paths.push('dev-skills')
114
- }
115
- return paths
116
- },
117
- })
118
- ```
119
-
120
130
  ## How agents use skills
121
131
 
122
132
  When a workspace has skills configured, agents automatically get access to skill tools. Available skills are listed in the system message so the agent knows what's available, and the agent can load any skill on demand.
@@ -127,6 +137,8 @@ The agent has three skill tools:
127
137
  - **`skill_read`**: Reads a file from a skill's `references/`, `scripts/`, or `assets/` directory.
128
138
  - **`skill_search`**: Searches across all skill content. Uses BM25 or vector search when configured, otherwise falls back to basic text matching.
129
139
 
140
+ Skill tools are registered when skills are configured. They aren't part of `WORKSPACE_TOOLS`, which configures filesystem, sandbox, search, and LSP tools.
141
+
130
142
  This design is stateless, there is no activation state to track. If the skill instructions leave the conversation context (due to context window limits or compaction), the agent can call `skill` again to reload them.
131
143
 
132
144
  ## Same-named skills
@@ -195,10 +207,27 @@ You can also attach skills directly to an agent without a workspace using `creat
195
207
 
196
208
  See [Agent skills](https://mastra.ai/docs/agents/skills) for details.
197
209
 
210
+ ## Dynamic skills
211
+
212
+ For runtime skill paths based on context, pass a function:
213
+
214
+ ```typescript
215
+ const workspace = new Workspace({
216
+ filesystem: new LocalFilesystem({ basePath: './workspace' }),
217
+ skills: ctx => {
218
+ const paths = ['skills']
219
+ if (ctx.requestContext?.get('userRole') === 'developer') {
220
+ paths.push('dev-skills')
221
+ }
222
+ return paths
223
+ },
224
+ })
225
+ ```
226
+
198
227
  ## Related
199
228
 
200
229
  - [Agent skills](https://mastra.ai/docs/agents/skills)
201
230
  - [Agent skills specification](https://agentskills.io)
202
- - [Workspace overview](https://mastra.ai/docs/workspace/overview)
231
+ - [Sandbox](https://mastra.ai/docs/workspace/sandbox)
203
232
  - [Search and indexing](https://mastra.ai/docs/workspace/search)
204
233
  - [`createSkill()` reference](https://mastra.ai/reference/agents/createSkill)
@@ -2,7 +2,7 @@
2
2
 
3
3
  # BrowserViewer
4
4
 
5
- The `@mastra/browser-viewer` package provides browser automation for CLI-based tools like [agent-browser](https://www.npmjs.com/package/agent-browser), [browser-use](https://pypi.org/project/browser-use/), and [browse](https://www.npmjs.com/package/browse). BrowserViewer launches Chrome via Playwright, exposes a Chrome DevTools Protocol (CDP) URL, and automatically injects it into CLI commands run through [workspace tools](https://mastra.ai/docs/workspace/overview).
5
+ The `@mastra/browser-viewer` package provides browser automation for CLI-based tools like [agent-browser](https://www.npmjs.com/package/agent-browser), [browser-use](https://pypi.org/project/browser-use/), and [browse](https://www.npmjs.com/package/browse). BrowserViewer launches Chrome via Playwright, exposes a Chrome DevTools Protocol (CDP) URL, and automatically injects it into CLI commands run through [sandbox tools](https://mastra.ai/docs/workspace/sandbox).
6
6
 
7
7
  ## When to use BrowserViewer
8
8
 
@@ -147,5 +147,5 @@ CDP flag: `--ws` See [BrowserViewer reference](https://mastra.ai/reference/brows
147
147
  - [Browser overview](https://mastra.ai/docs/browser/overview)
148
148
  - [AgentBrowser](https://mastra.ai/integrations/browsers/agent-browser)
149
149
  - [Stagehand](https://mastra.ai/integrations/browsers/stagehand)
150
- - [Workspace overview](https://mastra.ai/docs/workspace/overview)
150
+ - [Sandbox](https://mastra.ai/docs/workspace/sandbox)
151
151
  - [Workspace skills](https://mastra.ai/docs/workspace/skills)
@@ -271,4 +271,4 @@ See [E2BSandbox reference](https://mastra.ai/integrations/sandboxes/e2b) for mor
271
271
  - [GCSFilesystem reference](https://mastra.ai/integrations/file-storage/google-cloud-storage)
272
272
  - [AzureBlobFilesystem reference](https://mastra.ai/integrations/file-storage/azure-blob)
273
273
  - [E2BSandbox reference](https://mastra.ai/integrations/sandboxes/e2b)
274
- - [Workspace overview](https://mastra.ai/docs/workspace/overview)
274
+ - [Filesystem](https://mastra.ai/docs/workspace/filesystem)
@@ -217,4 +217,4 @@ const config = filesystem.getMountConfig()
217
217
  - [WorkspaceFilesystem interface](https://mastra.ai/reference/workspace/filesystem)
218
218
  - [S3Filesystem reference](https://mastra.ai/integrations/file-storage/amazon-s3)
219
219
  - [GCSFilesystem reference](https://mastra.ai/integrations/file-storage/google-cloud-storage)
220
- - [Workspace overview](https://mastra.ai/docs/workspace/overview)
220
+ - [Filesystem](https://mastra.ai/docs/workspace/filesystem)
@@ -194,4 +194,4 @@ See [E2BSandbox reference](https://mastra.ai/integrations/sandboxes/e2b) for mor
194
194
  - [S3Filesystem reference](https://mastra.ai/integrations/file-storage/amazon-s3)
195
195
  - [AzureBlobFilesystem reference](https://mastra.ai/integrations/file-storage/azure-blob)
196
196
  - [E2BSandbox reference](https://mastra.ai/integrations/sandboxes/e2b)
197
- - [Workspace overview](https://mastra.ai/docs/workspace/overview)
197
+ - [Filesystem](https://mastra.ai/docs/workspace/filesystem)
@@ -317,5 +317,5 @@ Read operations still work. Write operations throw `WorkspaceReadOnlyError`.
317
317
 
318
318
  - [WorkspaceFilesystem interface](https://mastra.ai/reference/workspace/filesystem)
319
319
  - [Filesystem docs](https://mastra.ai/docs/workspace/filesystem)
320
- - [Workspace overview](https://mastra.ai/docs/workspace/overview)
320
+ - [Sandbox](https://mastra.ai/docs/workspace/sandbox)
321
321
  - [Mesa documentation](https://docs.mesa.dev/content/getting-started/introduction)
@@ -184,5 +184,5 @@ const url = await filesystem.files.url('reports/q3.pdf')
184
184
  - [S3Filesystem reference](https://mastra.ai/integrations/file-storage/amazon-s3)
185
185
  - [GCSFilesystem reference](https://mastra.ai/integrations/file-storage/google-cloud-storage)
186
186
  - [AzureBlobFilesystem reference](https://mastra.ai/integrations/file-storage/azure-blob)
187
- - [Workspace overview](https://mastra.ai/docs/workspace/overview)
187
+ - [Filesystem](https://mastra.ai/docs/workspace/filesystem)
188
188
  - [FilesSDK documentation](https://files-sdk.dev)
@@ -254,4 +254,4 @@ const editor = new MastraEditor({
254
254
  - [WorkspaceSandbox interface](https://mastra.ai/reference/workspace/sandbox)
255
255
  - [DockerSandbox reference](https://mastra.ai/integrations/sandboxes/docker)
256
256
  - [LocalSandbox reference](https://mastra.ai/reference/workspace/local-sandbox)
257
- - [Workspace overview](https://mastra.ai/docs/workspace/overview)
257
+ - [Sandbox](https://mastra.ai/docs/workspace/sandbox)
@@ -503,4 +503,4 @@ Resources are only applied when `image` is set. Passing `resources` without `ima
503
503
  - [LocalSandbox reference](https://mastra.ai/reference/workspace/local-sandbox)
504
504
  - [S3Filesystem reference](https://mastra.ai/integrations/file-storage/amazon-s3)
505
505
  - [GCSFilesystem reference](https://mastra.ai/integrations/file-storage/google-cloud-storage)
506
- - [Workspace overview](https://mastra.ai/docs/workspace/overview)
506
+ - [Sandbox](https://mastra.ai/docs/workspace/sandbox)
@@ -256,4 +256,4 @@ const sandbox = new DockerSandbox({
256
256
  - [WorkspaceSandbox interface](https://mastra.ai/reference/workspace/sandbox)
257
257
  - [LocalSandbox reference](https://mastra.ai/reference/workspace/local-sandbox)
258
258
  - [E2BSandbox reference](https://mastra.ai/integrations/sandboxes/e2b)
259
- - [Workspace overview](https://mastra.ai/docs/workspace/overview)
259
+ - [Sandbox](https://mastra.ai/docs/workspace/sandbox)
@@ -274,4 +274,4 @@ const { tool, instructions } = createCodeMode(
274
274
  - [S3Filesystem reference](https://mastra.ai/integrations/file-storage/amazon-s3)
275
275
  - [GCSFilesystem reference](https://mastra.ai/integrations/file-storage/google-cloud-storage)
276
276
  - [Azure Blob Filesystem reference](https://mastra.ai/integrations/file-storage/azure-blob)
277
- - [Workspace overview](https://mastra.ai/docs/workspace/overview)
277
+ - [Sandbox](https://mastra.ai/docs/workspace/sandbox)
@@ -165,4 +165,4 @@ See [`SandboxProcessManager` reference](https://mastra.ai/reference/workspace/pr
165
165
  - [WorkspaceSandbox interface](https://mastra.ai/reference/workspace/sandbox)
166
166
  - [E2BSandbox reference](https://mastra.ai/integrations/sandboxes/e2b)
167
167
  - [DaytonaSandbox reference](https://mastra.ai/integrations/sandboxes/daytona)
168
- - [Workspace overview](https://mastra.ai/docs/workspace/overview)
168
+ - [Sandbox](https://mastra.ai/docs/workspace/sandbox)
@@ -39,6 +39,7 @@ List of required environment variables for each model provider and gateway suppo
39
39
  | [Cortecs](https://mastra.ai/models/providers/cortecs) | `cortecs/*` | `CORTECS_API_KEY` |
40
40
  | [CrofAI](https://mastra.ai/models/providers/crof) | `crof/*` | `CROF_API_KEY` |
41
41
  | [CrossModel](https://mastra.ai/models/providers/crossmodel) | `crossmodel/*` | `CROSSMODEL_API_KEY` |
42
+ | [Crusoe](https://mastra.ai/models/providers/crusoe) | `crusoe/*` | `CRUSOE_API_KEY` |
42
43
  | [D.Run (China)](https://mastra.ai/models/providers/drun) | `drun/*` | `DRUN_API_KEY` |
43
44
  | [DaoXE](https://mastra.ai/models/providers/daoxe) | `daoxe/*` | `DAOXE_API_KEY` |
44
45
  | [Databricks](https://mastra.ai/models/providers/databricks) | `databricks/*` | `DATABRICKS_HOST`, `DATABRICKS_TOKEN` |
@@ -2,7 +2,7 @@
2
2
 
3
3
  # ![Vercel logo](https://models.dev/logos/vercel.svg)Vercel
4
4
 
5
- Vercel aggregates models from multiple providers with enhanced features like rate limiting and failover. Access 326 models through Mastra's model router.
5
+ Vercel aggregates models from multiple providers with enhanced features like rate limiting and failover. Access 327 models through Mastra's model router.
6
6
 
7
7
  Learn more in the [Vercel documentation](https://ai-sdk.dev/providers/ai-sdk-providers).
8
8
 
@@ -64,6 +64,7 @@ ANTHROPIC_API_KEY=ant-...
64
64
  | `alibaba/qwen3.7-flash` |
65
65
  | `alibaba/qwen3.7-max` |
66
66
  | `alibaba/qwen3.7-plus` |
67
+ | `alibaba/qwen3.8-2.4t-a95b` |
67
68
  | `alibaba/qwen3.8-max` |
68
69
  | `alibaba/wan-v2.5-t2v-preview` |
69
70
  | `alibaba/wan-v2.6-i2v` |
@@ -151,6 +152,7 @@ ANTHROPIC_API_KEY=ant-...
151
152
  | `google/gemini-3.5-flash` |
152
153
  | `google/gemini-3.5-flash-lite` |
153
154
  | `google/gemini-3.6-flash` |
155
+ | `google/gemini-3.7-flash` |
154
156
  | `google/gemini-embedding-001` |
155
157
  | `google/gemini-embedding-2` |
156
158
  | `google/gemini-omni-flash-preview` |
@@ -169,7 +171,6 @@ ANTHROPIC_API_KEY=ant-...
169
171
  | `inception/mercury-2` |
170
172
  | `inception/mercury-coder-small` |
171
173
  | `inclusionai/ling-3.0-flash` |
172
- | `inclusionai/ling-3.0-tiny-free` |
173
174
  | `interfaze/interfaze-beta` |
174
175
  | `klingai/kling-v2.5-turbo-i2v` |
175
176
  | `klingai/kling-v2.5-turbo-t2v` |
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Model Providers
4
4
 
5
- Mastra provides a unified interface for working with LLMs across multiple providers, giving you access to 5661 models from 171 providers through a single API.
5
+ Mastra provides a unified interface for working with LLMs across multiple providers, giving you access to 5698 models from 172 providers through a single API.
6
6
 
7
7
  ## Features
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # ![Baseten logo](https://models.dev/logos/baseten.svg)Baseten
4
4
 
5
- Access 18 Baseten models through Mastra's model router. Authentication is handled automatically using the `BASETEN_API_KEY` environment variable.
5
+ Access 19 Baseten models through Mastra's model router. Authentication is handled automatically using the `BASETEN_API_KEY` environment variable.
6
6
 
7
7
  Learn more in the [Baseten documentation](https://docs.baseten.co).
8
8
 
@@ -38,6 +38,7 @@ for await (const chunk of stream) {
38
38
  | -------------------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
39
39
  | `baseten/deepseek-ai/DeepSeek-V4-Flash-0731` | 1.0M | | | | | | $0.13 | $0.26 |
40
40
  | `baseten/deepseek-ai/DeepSeek-V4-Pro` | 262K | | | | | | $2 | $3 |
41
+ | `baseten/deepseek-ai/DeepSeek-V4-Pro-0813` | 1.0M | | | | | | $1 | $4 |
41
42
  | `baseten/moonshotai/Kimi-K2.5` | 262K | | | | | | $0.60 | $3 |
42
43
  | `baseten/moonshotai/Kimi-K2.6` | 262K | | | | | | $0.95 | $4 |
43
44
  | `baseten/moonshotai/Kimi-K2.7-Code` | 262K | | | | | | $0.95 | $4 |
@@ -43,8 +43,8 @@ for await (const chunk of stream) {
43
43
  | `crossmodel/anthropic/claude-opus-5` | 1.0M | | | | | | $5 | $25 |
44
44
  | `crossmodel/anthropic/claude-sonnet-4-6` | 1.0M | | | | | | $3 | $15 |
45
45
  | `crossmodel/anthropic/claude-sonnet-5` | 1.0M | | | | | | $2 | $10 |
46
- | `crossmodel/deepseek/deepseek-v4-flash` | 1.0M | | | | | | $0.16 | $0.32 |
47
- | `crossmodel/deepseek/deepseek-v4-pro` | 1.0M | | | | | | $0.47 | $0.94 |
46
+ | `crossmodel/deepseek/deepseek-v4-flash` | 1.0M | | | | | | $0.45 | $1 |
47
+ | `crossmodel/deepseek/deepseek-v4-pro` | 1.0M | | | | | | $1 | $4 |
48
48
  | `crossmodel/gemini/gemini-2.5-flash` | 1.0M | | | | | | $0.30 | $3 |
49
49
  | `crossmodel/gemini/gemini-2.5-flash-lite` | 1.0M | | | | | | $0.10 | $0.40 |
50
50
  | `crossmodel/gemini/gemini-2.5-pro` | 1.0M | | | | | | $1 | $10 |
@@ -0,0 +1,80 @@
1
+ > Discover all available pages from the documentation index: https://mastra.ai/llms.txt
2
+
3
+ # ![Crusoe logo](https://models.dev/logos/crusoe.svg)Crusoe
4
+
5
+ Access 8 Crusoe models through Mastra's model router. Authentication is handled automatically using the `CRUSOE_API_KEY` environment variable.
6
+
7
+ Learn more in the [Crusoe documentation](https://docs.crusoecloud.com/managed-inference/overview).
8
+
9
+ ```bash
10
+ CRUSOE_API_KEY=your-api-key
11
+ ```
12
+
13
+ ```typescript
14
+ import { Agent } from "@mastra/core/agent";
15
+
16
+ const agent = new Agent({
17
+ id: "my-agent",
18
+ name: "My Agent",
19
+ instructions: "You are a helpful assistant",
20
+ model: "crusoe/deepseek-ai/DeepSeek-V3-0324"
21
+ });
22
+
23
+ // Generate a response
24
+ const response = await agent.generate("Hello!");
25
+
26
+ // Stream a response
27
+ const stream = await agent.stream("Tell me a story");
28
+ for await (const chunk of stream) {
29
+ console.log(chunk);
30
+ }
31
+ ```
32
+
33
+ > **Note:** Mastra uses the OpenAI-compatible `/chat/completions` endpoint. Some provider-specific features may not be available. Check the [Crusoe documentation](https://docs.crusoecloud.com/managed-inference/overview) for details.
34
+
35
+ ## Models
36
+
37
+ | Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
38
+ | ------------------------------------------------------ | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
39
+ | `crusoe/deepseek-ai/DeepSeek-V3-0324` | 164K | | | | | | $0.50 | $2 |
40
+ | `crusoe/google/gemma-4-31b-it` | 262K | | | | | | $0.14 | $0.40 |
41
+ | `crusoe/meta-llama/Llama-3.3-70B-Instruct` | 128K | | | | | | $0.25 | $0.75 |
42
+ | `crusoe/moonshotai/Kimi-K2.6` | 262K | | | | | | $0.70 | $4 |
43
+ | `crusoe/nvidia/Nemotron-3-Nano-Omni-Reasoning-30B-A3B` | 256K | | | | | | $0.30 | $2 |
44
+ | `crusoe/openai/gpt-oss-120b` | 131K | | | | | | $0.05 | $0.20 |
45
+ | `crusoe/zai/GLM-5.1` | 200K | | | | | | $1 | $4 |
46
+ | `crusoe/zai/GLM-5.2` | 1.0M | | | | | | $1 | $4 |
47
+
48
+ ## Advanced configuration
49
+
50
+ ### Custom headers
51
+
52
+ ```typescript
53
+ const agent = new Agent({
54
+ id: "custom-agent",
55
+ name: "custom-agent",
56
+ model: {
57
+ url: "https://api.inference.crusoecloud.com/v1",
58
+ id: "crusoe/deepseek-ai/DeepSeek-V3-0324",
59
+ apiKey: process.env.CRUSOE_API_KEY,
60
+ headers: {
61
+ "X-Custom-Header": "value"
62
+ }
63
+ }
64
+ });
65
+ ```
66
+
67
+ ### Dynamic model selection
68
+
69
+ ```typescript
70
+ const agent = new Agent({
71
+ id: "dynamic-agent",
72
+ name: "Dynamic Agent",
73
+ model: ({ requestContext }) => {
74
+ const useAdvanced = requestContext.task === "complex";
75
+ return useAdvanced
76
+ ? "crusoe/zai/GLM-5.2"
77
+ : "crusoe/deepseek-ai/DeepSeek-V3-0324";
78
+ }
79
+ });
80
+ ```
@@ -2,7 +2,7 @@
2
2
 
3
3
  # ![Deep Infra logo](https://models.dev/logos/deepinfra.svg)Deep Infra
4
4
 
5
- Access 52 Deep Infra models through Mastra's model router. Authentication is handled automatically using the `DEEPINFRA_API_KEY` environment variable.
5
+ Access 54 Deep Infra models through Mastra's model router. Authentication is handled automatically using the `DEEPINFRA_API_KEY` environment variable.
6
6
 
7
7
  Learn more in the [Deep Infra documentation](https://deepinfra.com/models).
8
8
 
@@ -37,6 +37,7 @@ for await (const chunk of stream) {
37
37
  | `deepinfra/ByteDance/Seed-2.0-code` | 256K | | | | | | $0.50 | $3 |
38
38
  | `deepinfra/deepseek-ai/DeepSeek-R1-0528` | 164K | | | | | | $0.50 | $2 |
39
39
  | `deepinfra/deepseek-ai/DeepSeek-V3` | 164K | | | | | | $0.32 | $0.89 |
40
+ | `deepinfra/deepseek-ai/DeepSeek-V3-0324` | 164K | | | | | | $0.24 | $0.90 |
40
41
  | `deepinfra/deepseek-ai/DeepSeek-V3.1` | 164K | | | | | | $0.25 | $0.95 |
41
42
  | `deepinfra/deepseek-ai/DeepSeek-V3.2` | 164K | | | | | | $0.26 | $0.38 |
42
43
  | `deepinfra/deepseek-ai/DeepSeek-V4-Flash` | 1.0M | | | | | | $0.09 | $0.18 |
@@ -58,6 +59,7 @@ for await (const chunk of stream) {
58
59
  | `deepinfra/openai/gpt-oss-120b` | 131K | | | | | | $0.04 | $0.17 |
59
60
  | `deepinfra/openai/gpt-oss-20b` | 131K | | | | | | $0.03 | $0.14 |
60
61
  | `deepinfra/Qwen/Qwen3-235B-A22B-Instruct-2507` | 262K | | | | | | $0.09 | $0.55 |
62
+ | `deepinfra/Qwen/Qwen3-30B-A3B` | 41K | | | | | | $0.12 | $0.50 |
61
63
  | `deepinfra/Qwen/Qwen3-32B` | 41K | | | | | | $0.08 | $0.28 |
62
64
  | `deepinfra/Qwen/Qwen3-Coder-480B-A35B-Instruct-Turbo` | 262K | | | | | | $0.30 | $1 |
63
65
  | `deepinfra/Qwen/Qwen3-Max` | 256K | | | | | | $1 | $6 |
@@ -2,7 +2,7 @@
2
2
 
3
3
  # ![Fireworks AI logo](https://models.dev/logos/fireworks-ai.svg)Fireworks AI
4
4
 
5
- Access 17 Fireworks AI models through Mastra's model router. Authentication is handled automatically using the `FIREWORKS_API_KEY` environment variable.
5
+ Access 23 Fireworks AI models through Mastra's model router. Authentication is handled automatically using the `FIREWORKS_API_KEY` environment variable.
6
6
 
7
7
  Learn more in the [Fireworks AI documentation](https://fireworks.ai/docs/).
8
8
 
@@ -34,25 +34,31 @@ for await (const chunk of stream) {
34
34
 
35
35
  ## Models
36
36
 
37
- | Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
38
- | --------------------------------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
39
- | `fireworks-ai/accounts/fireworks/models/deepseek-v4-flash` | 1.0M | | | | | | $0.14 | $0.28 |
40
- | `fireworks-ai/accounts/fireworks/models/deepseek-v4-flash-0731` | 1.0M | | | | | | $0.14 | $0.28 |
41
- | `fireworks-ai/accounts/fireworks/models/deepseek-v4-pro` | 1.0M | | | | | | $2 | $3 |
42
- | `fireworks-ai/accounts/fireworks/models/glm-5p2` | 1.0M | | | | | | $1 | $4 |
43
- | `fireworks-ai/accounts/fireworks/models/gpt-oss-120b` | 131K | | | | | | $0.15 | $0.60 |
44
- | `fireworks-ai/accounts/fireworks/models/gpt-oss-20b` | 131K | | | | | | $0.07 | $0.30 |
45
- | `fireworks-ai/accounts/fireworks/models/kimi-k2p6` | 262K | | | | | | $0.95 | $4 |
46
- | `fireworks-ai/accounts/fireworks/models/kimi-k2p7-code` | 262K | | | | | | $0.95 | $4 |
47
- | `fireworks-ai/accounts/fireworks/models/kimi-k3` | 1.0M | | | | | | $3 | $15 |
48
- | `fireworks-ai/accounts/fireworks/models/minimax-m2p7` | 197K | | | | | | $0.30 | $1 |
49
- | `fireworks-ai/accounts/fireworks/models/minimax-m3` | 512K | | | | | | $0.30 | $1 |
50
- | `fireworks-ai/accounts/fireworks/models/qwen3p7-plus` | 262K | | | | | | $0.40 | $2 |
51
- | `fireworks-ai/accounts/fireworks/routers/glm-5p2-fast` | 1.0M | | | | | | $2 | $7 |
52
- | `fireworks-ai/accounts/fireworks/routers/kimi-k2p6-fast` | 262K | | | | | | $2 | $8 |
53
- | `fireworks-ai/accounts/fireworks/routers/kimi-k2p6-turbo` | 262K | | | | | | $2 | $8 |
54
- | `fireworks-ai/accounts/fireworks/routers/kimi-k2p7-code-fast` | 262K | | | | | | $2 | $8 |
55
- | `fireworks-ai/accounts/fireworks/routers/kimi-k3-fast` | 1.0M | | | | | | $5 | $23 |
37
+ | Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
38
+ | ----------------------------------------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
39
+ | `fireworks-ai/accounts/fireworks/models/deepseek-v4-flash` | 1.0M | | | | | | $0.14 | $0.28 |
40
+ | `fireworks-ai/accounts/fireworks/models/deepseek-v4-flash-0731` | 1.0M | | | | | | $0.14 | $0.28 |
41
+ | `fireworks-ai/accounts/fireworks/models/deepseek-v4-pro` | 1.0M | | | | | | $2 | $3 |
42
+ | `fireworks-ai/accounts/fireworks/models/deepseek-v4-pro-0813` | 1.0M | | | | | | $1 | $4 |
43
+ | `fireworks-ai/accounts/fireworks/models/glm-5p2` | 1.0M | | | | | | $1 | $4 |
44
+ | `fireworks-ai/accounts/fireworks/models/gpt-oss-120b` | 131K | | | | | | $0.15 | $0.60 |
45
+ | `fireworks-ai/accounts/fireworks/models/gpt-oss-20b` | 131K | | | | | | $0.07 | $0.30 |
46
+ | `fireworks-ai/accounts/fireworks/models/inkling` | 1.0M | | | | | | $1 | $4 |
47
+ | `fireworks-ai/accounts/fireworks/models/kimi-k2p6` | 262K | | | | | | $0.95 | $4 |
48
+ | `fireworks-ai/accounts/fireworks/models/kimi-k2p7-code` | 262K | | | | | | $0.95 | $4 |
49
+ | `fireworks-ai/accounts/fireworks/models/kimi-k3` | 1.0M | | | | | | $3 | $15 |
50
+ | `fireworks-ai/accounts/fireworks/models/minimax-m2p7` | 197K | | | | | | $0.30 | $1 |
51
+ | `fireworks-ai/accounts/fireworks/models/minimax-m3` | 512K | | | | | | $0.30 | $1 |
52
+ | `fireworks-ai/accounts/fireworks/models/muse-glimmer-30b` | 131K | | | | | | $0.35 | $2 |
53
+ | `fireworks-ai/accounts/fireworks/models/nemotron-3-ultra-nvfp4` | 262K | | | | | | $0.60 | $2 |
54
+ | `fireworks-ai/accounts/fireworks/models/nemotron-lightning-3p5-30b-a3b` | 262K | | | | | | $0.05 | $0.20 |
55
+ | `fireworks-ai/accounts/fireworks/models/qwen3p7-plus` | 262K | | | | | | $0.40 | $2 |
56
+ | `fireworks-ai/accounts/fireworks/models/qwen3p8-max` | 262K | | | | | | $2 | $6 |
57
+ | `fireworks-ai/accounts/fireworks/routers/glm-5p2-fast` | 1.0M | | | | | | $2 | $7 |
58
+ | `fireworks-ai/accounts/fireworks/routers/kimi-k2p6-fast` | 262K | | | | | | $2 | $8 |
59
+ | `fireworks-ai/accounts/fireworks/routers/kimi-k2p6-turbo` | 262K | | | | | | $2 | $8 |
60
+ | `fireworks-ai/accounts/fireworks/routers/kimi-k2p7-code-fast` | 262K | | | | | | $2 | $8 |
61
+ | `fireworks-ai/accounts/fireworks/routers/kimi-k3-fast` | 1.0M | | | | | | $5 | $23 |
56
62
 
57
63
  ## Advanced configuration
58
64
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # ![Hugging Face logo](https://models.dev/logos/huggingface.svg)Hugging Face
4
4
 
5
- Access 60 Hugging Face models through Mastra's model router. Authentication is handled automatically using the `HF_TOKEN` environment variable.
5
+ Access 64 Hugging Face models through Mastra's model router. Authentication is handled automatically using the `HF_TOKEN` environment variable.
6
6
 
7
7
  Learn more in the [Hugging Face documentation](https://huggingface.co).
8
8
 
@@ -39,6 +39,7 @@ for await (const chunk of stream) {
39
39
  | `huggingface/deepseek-ai/DeepSeek-R1` | 64K | | | | | | $0.70 | $3 |
40
40
  | `huggingface/deepseek-ai/DeepSeek-R1-0528` | 164K | | | | | | $3 | $5 |
41
41
  | `huggingface/deepseek-ai/DeepSeek-V3` | 64K | | | | | | $0.40 | $1 |
42
+ | `huggingface/deepseek-ai/DeepSeek-V3-0324` | 164K | | | | | | $0.27 | $1 |
42
43
  | `huggingface/deepseek-ai/DeepSeek-V3.1` | 131K | | | | | | $0.27 | $1 |
43
44
  | `huggingface/deepseek-ai/DeepSeek-V3.2` | 164K | | | | | | $0.28 | $0.40 |
44
45
  | `huggingface/deepseek-ai/DeepSeek-V4-Flash` | 1.0M | | | | | | $0.14 | $0.28 |
@@ -46,6 +47,7 @@ for await (const chunk of stream) {
46
47
  | `huggingface/deepseek-ai/DeepSeek-V4-Pro` | 1.0M | | | | | | $0.43 | $0.87 |
47
48
  | `huggingface/google/gemma-4-26B-A4B-it` | 262K | | | | | | $0.13 | $0.40 |
48
49
  | `huggingface/google/gemma-4-31B-it` | 262K | | | | | | $0.14 | $0.40 |
50
+ | `huggingface/meta-llama/Llama-3.1-8B-Instruct` | 131K | | | | | | $0.06 | $0.06 |
49
51
  | `huggingface/meta-llama/Llama-3.3-70B-Instruct` | 131K | | | | | | $0.59 | $0.79 |
50
52
  | `huggingface/MiniMaxAI/MiniMax-M2` | 205K | | | | | | $0.30 | $1 |
51
53
  | `huggingface/MiniMaxAI/MiniMax-M2.1` | 205K | | | | | | $0.30 | $1 |
@@ -61,9 +63,11 @@ for await (const chunk of stream) {
61
63
  | `huggingface/moonshotai/Kimi-K3` | 1.0M | | | | | | $3 | $15 |
62
64
  | `huggingface/openai/gpt-oss-120b` | 131K | | | | | | $0.25 | $0.69 |
63
65
  | `huggingface/openai/gpt-oss-20b` | 131K | | | | | | $0.10 | $0.50 |
66
+ | `huggingface/Qwen/Qwen2.5-Coder-32B-Instruct` | 131K | | | | | | $0.06 | $0.20 |
64
67
  | `huggingface/Qwen/Qwen3-235B-A22B` | 41K | | | | | | $0.20 | $0.80 |
65
68
  | `huggingface/Qwen/Qwen3-235B-A22B-Instruct-2507` | 262K | | | | | | $0.85 | $3 |
66
69
  | `huggingface/Qwen/Qwen3-235B-A22B-Thinking-2507` | 262K | | | | | | $0.30 | $3 |
70
+ | `huggingface/Qwen/Qwen3-30B-A3B` | 41K | | | | | | $0.12 | $0.50 |
67
71
  | `huggingface/Qwen/Qwen3-32B` | 131K | | | | | | $0.29 | $0.59 |
68
72
  | `huggingface/Qwen/Qwen3-Coder-30B-A3B-Instruct` | 262K | | | | | | $0.07 | $0.26 |
69
73
  | `huggingface/Qwen/Qwen3-Coder-480B-A35B-Instruct` | 262K | | | | | | $2 | $2 |
@@ -37,7 +37,7 @@ for await (const chunk of stream) {
37
37
  | Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
38
38
  | ---------------------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
39
39
  | `hyper/deepseek-v4-flash` | 1.0M | | | | | | $0.20 | $0.40 |
40
- | `hyper/deepseek-v4-flash-0731` | 1.0M | | | | | | $0.15 | $0.30 |
40
+ | `hyper/deepseek-v4-flash-0731` | 1.0M | | | | | | $0.20 | $0.40 |
41
41
  | `hyper/deepseek-v4-pro` | 1.0M | | | | | | $2 | $5 |
42
42
  | `hyper/gemma-4-26b-a4b-it` | 256K | | | | | | $0.13 | $0.42 |
43
43
  | `hyper/glm-5.1` | 203K | | | | | | $2 | $5 |
@@ -126,7 +126,7 @@ for await (const chunk of stream) {
126
126
  | `kilo/google/gemini-3.1-pro-preview-customtools` | 1.0M | | | | | | $2 | $12 |
127
127
  | `kilo/google/gemini-3.5-flash` | 1.0M | | | | | | $2 | $9 |
128
128
  | `kilo/google/gemini-3.5-flash-lite` | 1.0M | | | | | | $0.30 | $3 |
129
- | `kilo/google/gemini-3.6-flash` | 1.0M | | | | | | $2 | $8 |
129
+ | `kilo/google/gemini-3.6-flash` | 1.0M | | | | | | $0.75 | $4 |
130
130
  | `kilo/google/gemini-3.7-flash` | 1.0M | | | | | | $0.75 | $4 |
131
131
  | `kilo/google/gemma-2-27b-it` | 8K | | | | | | $0.65 | $0.65 |
132
132
  | `kilo/google/gemma-3-12b-it` | 131K | | | | | | $0.05 | $0.15 |
@@ -161,7 +161,7 @@ for await (const chunk of stream) {
161
161
  | `kilo/meta-llama/llama-3.2-1b-instruct` | 60K | | | | | | $0.03 | $0.20 |
162
162
  | `kilo/meta-llama/llama-3.2-3b-instruct` | 131K | | | | | | $0.05 | $0.33 |
163
163
  | `kilo/meta-llama/llama-3.3-70b-instruct` | 131K | | | | | | $0.10 | $0.32 |
164
- | `kilo/meta-llama/llama-4-maverick` | 128K | | | | | | $0.20 | $0.70 |
164
+ | `kilo/meta-llama/llama-4-maverick` | 1.0M | | | | | | $0.20 | $0.70 |
165
165
  | `kilo/meta-llama/llama-4-scout` | 328K | | | | | | $0.10 | $0.30 |
166
166
  | `kilo/meta-llama/llama-guard-4-12b` | 164K | | | | | | $0.18 | $0.18 |
167
167
  | `kilo/meta/muse-glimmer-30b` | 131K | | | | | | $0.30 | $1 |
@@ -318,7 +318,7 @@ for await (const chunk of stream) {
318
318
  | `kilo/qwen/qwen3-next-80b-a3b-thinking` | 131K | | | | | | $0.15 | $1 |
319
319
  | `kilo/qwen/qwen3-vl-235b-a22b-instruct` | 131K | | | | | | $0.26 | $1 |
320
320
  | `kilo/qwen/qwen3-vl-235b-a22b-thinking` | 131K | | | | | | $0.40 | $4 |
321
- | `kilo/qwen/qwen3-vl-30b-a3b-instruct` | 262K | | | | | | $0.13 | $0.52 |
321
+ | `kilo/qwen/qwen3-vl-30b-a3b-instruct` | 131K | | | | | | $0.13 | $0.52 |
322
322
  | `kilo/qwen/qwen3-vl-30b-a3b-thinking` | 131K | | | | | | $0.20 | $2 |
323
323
  | `kilo/qwen/qwen3-vl-32b-instruct` | 131K | | | | | | $0.10 | $0.42 |
324
324
  | `kilo/qwen/qwen3-vl-8b-instruct` | 131K | | | | | | $0.12 | $0.46 |
@@ -391,7 +391,7 @@ for await (const chunk of stream) {
391
391
  | `kilo/z-ai/glm-5` | 205K | | | | | | $0.95 | $3 |
392
392
  | `kilo/z-ai/glm-5-turbo` | 203K | | | | | | $1 | $4 |
393
393
  | `kilo/z-ai/glm-5.1` | 203K | | | | | | $1 | $4 |
394
- | `kilo/z-ai/glm-5.2` | 1.0M | | | | | | $1 | $4 |
394
+ | `kilo/z-ai/glm-5.2` | 262K | | | | | | $1 | $4 |
395
395
  | `kilo/z-ai/glm-5v-turbo` | 203K | | | | | | $1 | $4 |
396
396
 
397
397
  ## Advanced configuration
@@ -2,7 +2,7 @@
2
2
 
3
3
  # ![LLM Gateway logo](https://models.dev/logos/llmgateway.svg)LLM Gateway
4
4
 
5
- Access 188 LLM Gateway models through Mastra's model router. Authentication is handled automatically using the `LLMGATEWAY_API_KEY` environment variable.
5
+ Access 189 LLM Gateway models through Mastra's model router. Authentication is handled automatically using the `LLMGATEWAY_API_KEY` environment variable.
6
6
 
7
7
  Learn more in the [LLM Gateway documentation](https://llmgateway.io/docs).
8
8
 
@@ -67,7 +67,8 @@ for await (const chunk of stream) {
67
67
  | `llmgateway/gemini-3.1-pro-preview` | 1.0M | | | | | | $2 | $12 |
68
68
  | `llmgateway/gemini-3.5-flash` | 1.0M | | | | | | $2 | $9 |
69
69
  | `llmgateway/gemini-3.5-flash-lite` | 1.0M | | | | | | $0.30 | $3 |
70
- | `llmgateway/gemini-3.6-flash` | 1.0M | | | | | | $2 | $8 |
70
+ | `llmgateway/gemini-3.6-flash` | 1.0M | | | | | | $0.75 | $4 |
71
+ | `llmgateway/gemini-3.7-flash` | 1.0M | | | | | | $0.75 | $4 |
71
72
  | `llmgateway/gemini-pro-latest` | 1.0M | | | | | | $2 | $12 |
72
73
  | `llmgateway/gemma-3-27b` | 110K | | | | | | $0.10 | $0.30 |
73
74
  | `llmgateway/gemma-4-26b-a4b-it` | 262K | | | | | | $0.07 | $0.34 |