@mastra/mcp-docs-server 1.2.17-alpha.7 → 1.2.17

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 (255) hide show
  1. package/.docs/course/02-agent-tools-mcp/32-conclusion.md +1 -1
  2. package/.docs/docs/agents/code-mode.md +3 -3
  3. package/.docs/docs/agents/guardrails.md +1 -1
  4. package/.docs/docs/agents/{agent-approval.md → human-in-the-loop.md} +5 -5
  5. package/.docs/docs/agents/networks.md +3 -3
  6. package/.docs/docs/agents/overview.md +7 -7
  7. package/.docs/docs/agents/processors.md +3 -3
  8. package/.docs/docs/agents/{using-tools.md → tools.md} +7 -7
  9. package/.docs/docs/{server/auth → auth}/custom-auth-provider.md +1 -1
  10. package/.docs/docs/{server/auth → auth}/fga.md +27 -1
  11. package/.docs/docs/{server/auth.md → auth/overview.md} +4 -4
  12. package/.docs/docs/{server/auth → auth}/simple-auth.md +1 -1
  13. package/.docs/docs/{server/auth → auth}/workers.md +2 -2
  14. package/.docs/docs/{capabilities/channels.md → channels.md} +2 -2
  15. package/.docs/docs/{agents → connections}/a2a.md +2 -2
  16. package/.docs/docs/{agents → connections}/acp.md +18 -6
  17. package/.docs/docs/{mcp/overview.md → connections/mcp.md} +1 -1
  18. package/.docs/docs/connections/overview.md +5 -5
  19. package/.docs/docs/{agents → connections}/sdk-agents.md +3 -1
  20. package/.docs/docs/deployment/cloud-providers.md +1 -0
  21. package/.docs/docs/deployment/mastra-server.md +2 -2
  22. package/.docs/docs/deployment/overview.md +2 -1
  23. package/.docs/docs/deployment/sandbox.md +3 -3
  24. package/.docs/docs/deployment/workers.md +4 -4
  25. package/.docs/docs/guides/multi-agent-systems.md +7 -7
  26. package/.docs/docs/guides/streaming.md +1 -1
  27. package/.docs/docs/harness/agent-controller.md +5 -3
  28. package/.docs/docs/{long-running-agents → harness}/background-tasks.md +5 -5
  29. package/.docs/docs/{long-running-agents → harness}/durable-agents.md +18 -2
  30. package/.docs/docs/{long-running-agents → harness}/goals.md +6 -6
  31. package/.docs/docs/harness/overview.md +11 -10
  32. package/.docs/docs/{long-running-agents → harness}/schedules.md +5 -5
  33. package/.docs/docs/{long-running-agents → harness}/signal-providers.md +4 -4
  34. package/.docs/docs/mastra-platform/deploy.md +1 -1
  35. package/.docs/docs/mastra-platform/overview.md +1 -1
  36. package/.docs/docs/mastra-platform/server.md +1 -1
  37. package/.docs/docs/memory/message-history.md +1 -1
  38. package/.docs/docs/memory/overview.md +4 -4
  39. package/.docs/docs/memory/working-memory.md +1 -1
  40. package/.docs/docs/observability/integrations/exporters/mastra-storage.md +1 -1
  41. package/.docs/docs/{workspace → sandbox}/filesystem.md +2 -2
  42. package/.docs/docs/{workspace → sandbox}/lsp.md +3 -3
  43. package/.docs/docs/{workspace/sandbox.md → sandbox/overview.md} +4 -3
  44. package/.docs/docs/{workspace → sandbox}/search.md +2 -2
  45. package/.docs/docs/{workspace → sandbox}/skills.md +5 -5
  46. package/.docs/docs/server/custom-api-routes.md +2 -2
  47. package/.docs/docs/server/mastra-client.md +2 -2
  48. package/.docs/docs/server/{mastra-server.md → overview.md} +3 -3
  49. package/.docs/docs/server/pubsub.md +2 -2
  50. package/.docs/docs/server/server-adapters.md +4 -4
  51. package/.docs/docs/{agents/skills.md → skills.md} +4 -4
  52. package/.docs/docs/{storage/overview.md → storage.md} +2 -1
  53. package/.docs/docs/studio/auth.md +4 -4
  54. package/.docs/docs/studio/overview.md +2 -2
  55. package/.docs/docs/{capabilities/subagents.md → subagents.md} +35 -5
  56. package/.docs/docs/workflows/agents-and-tools.md +1 -1
  57. package/.docs/docs/workflows/control-flow.md +0 -4
  58. package/.docs/docs/workflows/human-in-the-loop.md +0 -4
  59. package/.docs/docs/workflows/overview.md +1 -1
  60. package/.docs/docs/workflows/scheduled-workflows.md +2 -2
  61. package/.docs/docs/workflows/snapshots.md +1 -1
  62. package/.docs/docs/workflows/suspend-and-resume.md +0 -4
  63. package/.docs/integrations/agentic-ui/ai-sdk-ui.md +1 -1
  64. package/.docs/integrations/agentic-ui/copilotkit.md +1 -1
  65. package/.docs/integrations/auth/google.md +2 -2
  66. package/.docs/integrations/auth/workos.md +1 -1
  67. package/.docs/integrations/browsers/agent-browser.md +2 -2
  68. package/.docs/integrations/browsers/browser-viewer.md +6 -6
  69. package/.docs/integrations/browsers/firecrawl.md +1 -1
  70. package/.docs/integrations/browsers/stagehand.md +2 -2
  71. package/.docs/integrations/channels/discord.md +2 -2
  72. package/.docs/integrations/channels/github.md +1 -1
  73. package/.docs/integrations/channels/imessage.md +4 -4
  74. package/.docs/integrations/channels/slack.md +5 -5
  75. package/.docs/integrations/channels/teams.md +2 -2
  76. package/.docs/integrations/channels/telegram.md +2 -2
  77. package/.docs/integrations/channels/whatsapp.md +2 -2
  78. package/.docs/integrations/databases/postgresql.md +1 -0
  79. package/.docs/integrations/deploy/amazon-ec2.md +2 -2
  80. package/.docs/integrations/deploy/aws-lambda.md +3 -3
  81. package/.docs/integrations/deploy/azure-app-services.md +2 -2
  82. package/.docs/integrations/deploy/cloudflare.md +2 -2
  83. package/.docs/integrations/deploy/digital-ocean.md +3 -3
  84. package/.docs/integrations/deploy/kubernetes.md +11 -11
  85. package/.docs/integrations/deploy/netlify.md +3 -3
  86. package/.docs/integrations/deploy/render.md +389 -0
  87. package/.docs/integrations/deploy/vercel.md +2 -2
  88. package/.docs/integrations/file-storage/amazon-s3.md +1 -1
  89. package/.docs/integrations/file-storage/azure-blob.md +1 -1
  90. package/.docs/integrations/file-storage/google-cloud-storage.md +1 -1
  91. package/.docs/integrations/file-storage/mesa.md +2 -2
  92. package/.docs/integrations/file-storage/vercel-files.md +1 -1
  93. package/.docs/integrations/frameworks/astro.md +6 -2
  94. package/.docs/integrations/frameworks/electron.md +1 -1
  95. package/.docs/integrations/frameworks/express.md +1 -1
  96. package/.docs/integrations/frameworks/hono.md +1 -1
  97. package/.docs/integrations/frameworks/nestjs.md +1 -1
  98. package/.docs/integrations/frameworks/next-js.md +6 -2
  99. package/.docs/integrations/frameworks/nuxt.md +1 -1
  100. package/.docs/integrations/frameworks/sveltekit.md +1 -1
  101. package/.docs/integrations/frameworks/vite-react.md +6 -2
  102. package/.docs/integrations/sandboxes/agentcore.md +1 -1
  103. package/.docs/integrations/sandboxes/apple-container.md +1 -1
  104. package/.docs/integrations/sandboxes/cloudflare-sandbox.md +118 -0
  105. package/.docs/integrations/sandboxes/daytona.md +1 -1
  106. package/.docs/integrations/sandboxes/docker.md +4 -3
  107. package/.docs/integrations/sandboxes/e2b.md +1 -1
  108. package/.docs/integrations/sandboxes/modal.md +1 -1
  109. package/.docs/integrations/sandboxes/railway.md +11 -0
  110. package/.docs/integrations.md +4 -0
  111. package/.docs/models/environment-variables.md +8 -2
  112. package/.docs/models/gateways/merge-gateway.md +212 -0
  113. package/.docs/models/gateways/openrouter.md +5 -1
  114. package/.docs/models/gateways/vercel.md +22 -1
  115. package/.docs/models/gateways.md +1 -0
  116. package/.docs/models/index.md +1 -1
  117. package/.docs/models/providers/alibaba-token-plan-cn.md +2 -1
  118. package/.docs/models/providers/alibaba-token-plan.md +2 -1
  119. package/.docs/models/providers/ambient.md +2 -2
  120. package/.docs/models/providers/amd.md +73 -0
  121. package/.docs/models/providers/arcee.md +79 -0
  122. package/.docs/models/providers/baseten.md +1 -1
  123. package/.docs/models/providers/cerebras.md +2 -3
  124. package/.docs/models/providers/chutes.md +2 -1
  125. package/.docs/models/providers/cloudflare-workers-ai.md +3 -2
  126. package/.docs/models/providers/cortecs.md +2 -1
  127. package/.docs/models/providers/crof.md +1 -1
  128. package/.docs/models/providers/crossmodel.md +3 -2
  129. package/.docs/models/providers/deepinfra.md +5 -1
  130. package/.docs/models/providers/digitalocean.md +3 -2
  131. package/.docs/models/providers/edenai.md +19 -5
  132. package/.docs/models/providers/empiriolabs.md +10 -1
  133. package/.docs/models/providers/hetzner.md +6 -8
  134. package/.docs/models/providers/huggingface.md +4 -1
  135. package/.docs/models/providers/hyper.md +9 -8
  136. package/.docs/models/providers/inferx.md +19 -13
  137. package/.docs/models/providers/jalapeno.md +89 -0
  138. package/.docs/models/providers/kilo.md +17 -14
  139. package/.docs/models/providers/kosmik.md +73 -0
  140. package/.docs/models/providers/llmgateway.md +3 -3
  141. package/.docs/models/providers/llmtr.md +35 -10
  142. package/.docs/models/providers/nano-gpt.md +18 -19
  143. package/.docs/models/providers/ofox.md +3 -3
  144. package/.docs/models/providers/opencode-go.md +2 -2
  145. package/.docs/models/providers/requesty.md +3 -3
  146. package/.docs/models/providers/runinfra.md +76 -0
  147. package/.docs/models/providers/sakana.md +3 -2
  148. package/.docs/models/providers/scnet-token-plan.md +85 -0
  149. package/.docs/models/providers/scx-ai.md +76 -0
  150. package/.docs/models/providers/togetherai.md +2 -1
  151. package/.docs/models/providers/umans-ai-coding-plan.md +2 -1
  152. package/.docs/models/providers/umans-ai.md +2 -1
  153. package/.docs/models/providers/vivgrid.md +2 -1
  154. package/.docs/models/providers/wandb.md +2 -1
  155. package/.docs/models/providers/xai.md +2 -1
  156. package/.docs/models/providers.md +7 -2
  157. package/.docs/reference/acp/acp-agent.md +2 -2
  158. package/.docs/reference/acp/create-acp-tool.md +1 -1
  159. package/.docs/reference/agent-controller/agent-controller-class.md +2 -2
  160. package/.docs/reference/agents/agent.md +2 -2
  161. package/.docs/reference/agents/channels.md +2 -2
  162. package/.docs/reference/agents/createSkill.md +2 -2
  163. package/.docs/reference/agents/durable-agent.md +1 -1
  164. package/.docs/reference/agents/generate.md +3 -1
  165. package/.docs/reference/agents/getSkill.md +1 -1
  166. package/.docs/reference/agents/listSkills.md +1 -1
  167. package/.docs/reference/agents/listSuspendedRuns.md +6 -6
  168. package/.docs/reference/agents/listTools.md +2 -2
  169. package/.docs/reference/agents/network.md +3 -1
  170. package/.docs/reference/ai-sdk/chat-route.md +1 -1
  171. package/.docs/reference/ai-sdk/handle-chat-stream.md +1 -1
  172. package/.docs/reference/ai-sdk/handle-network-stream.md +2 -2
  173. package/.docs/reference/ai-sdk/handle-workflow-stream.md +1 -1
  174. package/.docs/reference/ai-sdk/network-route.md +2 -2
  175. package/.docs/reference/ai-sdk/to-ai-sdk-messages.md +1 -1
  176. package/.docs/reference/ai-sdk/to-ai-sdk-stream.md +1 -1
  177. package/.docs/reference/ai-sdk/workflow-route.md +1 -1
  178. package/.docs/reference/auth/fga.md +7 -5
  179. package/.docs/reference/auth/jwt.md +1 -1
  180. package/.docs/reference/browser/agent-browser.md +2 -2
  181. package/.docs/reference/browser/browser-viewer.md +2 -2
  182. package/.docs/reference/browser/firecrawl-browser.md +1 -1
  183. package/.docs/reference/browser/mastra-browser.md +1 -1
  184. package/.docs/reference/browser/stagehand-browser.md +2 -2
  185. package/.docs/reference/build-with-ai.md +2 -2
  186. package/.docs/reference/channels/channel-provider.md +1 -1
  187. package/.docs/reference/channels/slack-provider.md +1 -1
  188. package/.docs/reference/cli/mastra.md +2 -0
  189. package/.docs/reference/client-js/agents.md +24 -4
  190. package/.docs/reference/coding-agent/create-coding-agent.md +142 -13
  191. package/.docs/reference/configuration.md +6 -6
  192. package/.docs/reference/core/getEditor.md +1 -1
  193. package/.docs/reference/core/getMCPServer.md +1 -1
  194. package/.docs/reference/core/getMCPServerById.md +1 -1
  195. package/.docs/reference/core/getTool.md +1 -1
  196. package/.docs/reference/core/getToolById.md +1 -1
  197. package/.docs/reference/core/listMCPServers.md +1 -1
  198. package/.docs/reference/core/listTools.md +1 -1
  199. package/.docs/reference/core/removeWorkspace.md +1 -1
  200. package/.docs/reference/editor/mastra-editor.md +2 -2
  201. package/.docs/reference/editor/prompt-blocks.md +2 -2
  202. package/.docs/reference/editor/tool-provider.md +108 -1
  203. package/.docs/reference/editor/tools.md +1 -1
  204. package/.docs/reference/editor/versioning.md +3 -3
  205. package/.docs/reference/evals/prompt-alignment.md +18 -0
  206. package/.docs/reference/evals/rubric.md +1 -1
  207. package/.docs/reference/file-based-agents/memory.md +2 -2
  208. package/.docs/reference/file-based-agents/server.md +3 -3
  209. package/.docs/reference/file-based-agents/skills.md +1 -1
  210. package/.docs/reference/file-based-agents/storage.md +3 -3
  211. package/.docs/reference/file-based-agents/subagents.md +1 -1
  212. package/.docs/reference/file-based-agents/workspace.md +3 -3
  213. package/.docs/reference/index.md +1 -0
  214. package/.docs/reference/manual-install.md +3 -3
  215. package/.docs/reference/memory/memory-class.md +1 -0
  216. package/.docs/reference/memory/settled.md +57 -0
  217. package/.docs/reference/migrations/network-to-supervisor.md +2 -2
  218. package/.docs/reference/processors/provider-history-compat.md +6 -5
  219. package/.docs/reference/processors/skill-search-processor.md +3 -1
  220. package/.docs/reference/processors/token-limiter-processor.md +4 -0
  221. package/.docs/reference/processors/tool-call-filter.md +7 -7
  222. package/.docs/reference/processors/tool-search-processor.md +1 -1
  223. package/.docs/reference/project-structure.md +1 -1
  224. package/.docs/reference/pubsub/lease-provider.md +3 -3
  225. package/.docs/reference/pubsub/redis-streams.md +1 -1
  226. package/.docs/reference/rag/graph-rag.md +71 -8
  227. package/.docs/reference/rag/retrieval.md +26 -18
  228. package/.docs/reference/schedules/overview.md +1 -1
  229. package/.docs/reference/streaming/ChunkType.md +2 -2
  230. package/.docs/reference/streaming/agents/stream.md +29 -4
  231. package/.docs/reference/streaming/agents/streamUntilIdle.md +1 -1
  232. package/.docs/reference/tools/ask-user-tool.md +1 -1
  233. package/.docs/reference/tools/create-code-mode.md +1 -1
  234. package/.docs/reference/tools/create-tool.md +4 -4
  235. package/.docs/reference/tools/mcp-client.md +2 -0
  236. package/.docs/reference/tools/mcp-server.md +97 -4
  237. package/.docs/reference/tools/submit-plan-tool.md +1 -1
  238. package/.docs/reference/tools/task-tools.md +2 -2
  239. package/.docs/reference/vectors/vectorize.md +12 -2
  240. package/.docs/reference/workers/overview.md +2 -2
  241. package/.docs/reference/workspace/local-filesystem.md +1 -1
  242. package/.docs/reference/workspace/local-sandbox.md +4 -3
  243. package/.docs/reference/workspace/platform-sandbox.md +11 -0
  244. package/.docs/reference/workspace/process-manager.md +20 -4
  245. package/.docs/reference/workspace/sandbox.md +1 -1
  246. package/.docs/reference/workspace/workspace-class.md +5 -5
  247. package/CHANGELOG.md +80 -0
  248. package/package.json +6 -6
  249. package/.docs/models/providers/merge-gateway.md +0 -265
  250. /package/.docs/docs/{server/auth → auth}/composite-auth.md +0 -0
  251. /package/.docs/docs/{server/auth → auth}/jwt.md +0 -0
  252. /package/.docs/docs/{browser/overview.md → browser.md} +0 -0
  253. /package/.docs/docs/{getting-started/develop.md → develop.md} +0 -0
  254. /package/.docs/docs/{long-running-agents → harness}/signals.md +0 -0
  255. /package/.docs/docs/{editor/overview.md → studio/editor.md} +0 -0
@@ -288,7 +288,7 @@ Congratulations on building your Mastra agent with SvelteKit! 🎉
288
288
  From here, you can extend the project with your own tools and logic:
289
289
 
290
290
  - Learn more about [agents](https://mastra.ai/docs/agents/overview)
291
- - Give your agent its own [tools](https://mastra.ai/docs/agents/using-tools)
291
+ - Give your agent its own [tools](https://mastra.ai/docs/agents/tools)
292
292
  - Add human-like [memory](https://mastra.ai/docs/memory/overview) to your agent
293
293
 
294
294
  When you're ready, read more about how Mastra integrates with AI SDK UI and SvelteKit, and how to deploy your agent anywhere:
@@ -196,7 +196,7 @@ yarn add @mastra/ai-sdk@latest @ai-sdk/react ai
196
196
  bun add @mastra/ai-sdk@latest @ai-sdk/react ai
197
197
  ```
198
198
 
199
- Next, initialize AI Elements. When prompted, choose the default options:
199
+ Next, initialize AI Elements. When prompted to select a component library, choose **Radix UI**, then accept the defaults for the remaining prompts:
200
200
 
201
201
  **npm**:
202
202
 
@@ -222,6 +222,10 @@ yarn dlx ai-elements@latest
222
222
  bun x ai-elements@latest
223
223
  ```
224
224
 
225
+ > **Note:** The `ai-elements` command runs `shadcn add` against the AI Elements registry, which currently publishes Radix UI components only. Installing them into a Base UI project produces TypeScript errors, tracked in [vercel/ai-elements#383](https://github.com/vercel/ai-elements/issues/383).
226
+ >
227
+ > The component library prompt only appears when your project has no `components.json`. If you already have one, check that its `style` is a Radix option, such as `new-york` or a `radix-*` style, and not a `base-*` style, before running the command.
228
+
225
229
  This downloads the entire AI Elements UI component library into a `@/components/ai-elements` folder.
226
230
 
227
231
  ## Create a chat route
@@ -418,7 +422,7 @@ Congratulations on building your Mastra agent with React! 🎉
418
422
  From here, you can extend the project with your own tools and logic:
419
423
 
420
424
  - Learn more about [agents](https://mastra.ai/docs/agents/overview)
421
- - Give your agent its own [tools](https://mastra.ai/docs/agents/using-tools)
425
+ - Give your agent its own [tools](https://mastra.ai/docs/agents/tools)
422
426
  - Add human-like [memory](https://mastra.ai/docs/memory/overview) to your agent
423
427
 
424
428
  When you're ready, read more about how Mastra integrates with AI SDK UI and React, and how to deploy your agent anywhere:
@@ -199,5 +199,5 @@ Returns: `Promise<SandboxInfo>`.
199
199
 
200
200
  - [WorkspaceSandbox interface](https://mastra.ai/reference/workspace/sandbox)
201
201
  - [Workspace class](https://mastra.ai/reference/workspace/workspace-class)
202
- - [Sandbox overview](https://mastra.ai/docs/workspace/sandbox)
202
+ - [Sandbox overview](https://mastra.ai/docs/sandbox/overview)
203
203
  - [AWS Bedrock AgentCore Runtime command execution](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/runtime-execute-command.html)
@@ -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
- - [Sandbox](https://mastra.ai/docs/workspace/sandbox)
257
+ - [Sandbox](https://mastra.ai/docs/sandbox/overview)
@@ -0,0 +1,118 @@
1
+ > Discover all available pages from the documentation index: https://mastra.ai/llms.txt
2
+
3
+ # Cloudflare Sandbox
4
+
5
+ `CloudflareSandbox` executes commands and manages files in a remote [Cloudflare Sandbox](https://developers.cloudflare.com/sandbox/) through the [Sandbox Bridge HTTP API](https://developers.cloudflare.com/sandbox/bridge/http-api/).
6
+
7
+ > **Warning:** Deploy and secure a [Sandbox Bridge Worker](https://developers.cloudflare.com/sandbox/bridge/) before using this provider. The bridge can create and delete sandboxes, execute commands, and write files on behalf of its callers.
8
+
9
+ ## Installation
10
+
11
+ **npm**:
12
+
13
+ ```bash
14
+ npm install @mastra/cloudflare-sandbox
15
+ ```
16
+
17
+ **pnpm**:
18
+
19
+ ```bash
20
+ pnpm add @mastra/cloudflare-sandbox
21
+ ```
22
+
23
+ **Yarn**:
24
+
25
+ ```bash
26
+ yarn add @mastra/cloudflare-sandbox
27
+ ```
28
+
29
+ **Bun**:
30
+
31
+ ```bash
32
+ bun add @mastra/cloudflare-sandbox
33
+ ```
34
+
35
+ ## Usage
36
+
37
+ Add `CloudflareSandbox` to a workspace and assign it to an agent:
38
+
39
+ ```typescript
40
+ import { Agent } from '@mastra/core/agent'
41
+ import { Workspace } from '@mastra/core/workspace'
42
+ import { CloudflareSandbox } from '@mastra/cloudflare-sandbox'
43
+
44
+ const workspace = new Workspace({
45
+ sandbox: new CloudflareSandbox({
46
+ baseUrl: process.env.CLOUDFLARE_SANDBOX_BRIDGE_URL!,
47
+ apiToken: process.env.CLOUDFLARE_SANDBOX_API_KEY,
48
+ workingDirectory: '/workspace',
49
+ commandTimeout: 300_000,
50
+ }),
51
+ })
52
+
53
+ export const agent = new Agent({
54
+ id: 'dev-agent',
55
+ name: 'Development agent',
56
+ instructions: 'You are a helpful development assistant.',
57
+ model: 'anthropic/claude-sonnet-4-6',
58
+ workspace,
59
+ })
60
+ ```
61
+
62
+ The provider creates a remote sandbox when the workspace starts. Pass `sandboxId` to reconnect to an existing sandbox instead.
63
+
64
+ ## Execute commands
65
+
66
+ Pass command arguments, environment variables, a working directory, and streaming callbacks through `executeCommand()`. The provider sends the command as an `argv` array, so the bridge handles shell escaping:
67
+
68
+ ```typescript
69
+ const result = await workspace.sandbox?.executeCommand?.('npm', ['test'], {
70
+ cwd: '/workspace/project',
71
+ env: {
72
+ NODE_ENV: 'test',
73
+ },
74
+ onStdout: chunk => process.stdout.write(chunk),
75
+ onStderr: chunk => process.stderr.write(chunk),
76
+ })
77
+ ```
78
+
79
+ ## Write files
80
+
81
+ Relative paths are resolved under `/workspace`. Absolute paths must also resolve within `/workspace`. Each file is sent as its own bridge request, and the bridge caps a single file at 32 MiB.
82
+
83
+ ```typescript
84
+ await workspace.sandbox?.writeFiles?.([
85
+ { path: 'src/index.ts', content: "console.log('hello')\n" },
86
+ { path: '/workspace/package.json', content: JSON.stringify({ type: 'module' }) },
87
+ ])
88
+ ```
89
+
90
+ ## Constructor parameters
91
+
92
+ **baseUrl** (`string`): URL of the deployed Cloudflare Sandbox Bridge Worker.
93
+
94
+ **apiToken** (`string`): Bearer token matching the Worker's SANDBOX\_API\_KEY secret.
95
+
96
+ **sandboxId** (`string`): Existing Cloudflare sandbox ID to reconnect to instead of creating a sandbox.
97
+
98
+ **id** (`string`): Stable Mastra identifier. Defaults to a generated UUID-based value.
99
+
100
+ **name** (`string`): Human-readable sandbox name. (Default: `Cloudflare Sandbox`)
101
+
102
+ **env** (`Record<string, string>`): Environment variables applied to every command.
103
+
104
+ **workingDirectory** (`string`): Working directory applied to every command.
105
+
106
+ **commandTimeout** (`number`): Default command timeout in milliseconds. (Default: `300000`)
107
+
108
+ **instructions** (`string | ((options) => string)`): Custom instructions returned by getInstructions().
109
+
110
+ ## Lifecycle behavior
111
+
112
+ - `start()`: Reconnects to `sandboxId` or creates a remote sandbox.
113
+ - `stop()`: Detaches the Mastra lifecycle without deleting the remote sandbox because the bridge doesn't expose a suspend operation.
114
+ - `destroy()`: Deletes the remote sandbox.
115
+
116
+ ## Limitations
117
+
118
+ The provider supports command execution, streamed output, and file writes. It doesn't currently expose the bridge's bucket mounts, sessions, PTY terminals, or workspace persistence routes, and it doesn't support background process management, stdin, snapshots, or port URLs.
@@ -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
- - [Sandbox](https://mastra.ai/docs/workspace/sandbox)
506
+ - [Sandbox](https://mastra.ai/docs/sandbox/overview)
@@ -135,10 +135,11 @@ const handle = await sandbox.processes.spawn('node server.js', {
135
135
  onStdout: data => console.log(data),
136
136
  })
137
137
 
138
- // Interact with the process
138
+ // Interact with the process and signal EOF
139
139
  console.log(handle.stdout)
140
140
  await handle.sendStdin('input\n')
141
- await handle.kill()
141
+ await handle.closeStdin()
142
+ await handle.wait()
142
143
  ```
143
144
 
144
145
  See [`SandboxProcessManager` reference](https://mastra.ai/reference/workspace/process-manager) for the full API.
@@ -256,4 +257,4 @@ const sandbox = new DockerSandbox({
256
257
  - [WorkspaceSandbox interface](https://mastra.ai/reference/workspace/sandbox)
257
258
  - [LocalSandbox reference](https://mastra.ai/reference/workspace/local-sandbox)
258
259
  - [E2BSandbox reference](https://mastra.ai/integrations/sandboxes/e2b)
259
- - [Sandbox](https://mastra.ai/docs/workspace/sandbox)
260
+ - [Sandbox](https://mastra.ai/docs/sandbox/overview)
@@ -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
- - [Sandbox](https://mastra.ai/docs/workspace/sandbox)
277
+ - [Sandbox](https://mastra.ai/docs/sandbox/overview)
@@ -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
- - [Sandbox](https://mastra.ai/docs/workspace/sandbox)
168
+ - [Sandbox](https://mastra.ai/docs/sandbox/overview)
@@ -141,6 +141,15 @@ const sandbox = new RailwaySandbox({
141
141
 
142
142
  `RailwaySandbox` refreshes the checkpoint shortly before the idle timeout. Recovery restores the latest successful checkpoint. It doesn't restore running processes or filesystem writes made after the last checkpoint.
143
143
 
144
+ Set `seedCheckpointName` to provide a boot-only fallback when `checkpointName` doesn't exist yet. Railway restores `checkpointName` first when both checkpoints exist. Later snapshots write only to `checkpointName`, so each sandbox keeps an independent recovery history.
145
+
146
+ ```typescript
147
+ const sandbox = new RailwaySandbox({
148
+ checkpointName: 'project-session-42',
149
+ seedCheckpointName: 'project-base',
150
+ })
151
+ ```
152
+
144
153
  Call `snapshot()` after a filesystem update to capture the configured checkpoint immediately. It resolves without capturing when `checkpointName` isn't configured or the sandbox isn't running.
145
154
 
146
155
  ```typescript
@@ -202,6 +211,8 @@ const result = await sandbox.executeCommand('cat', ['/tmp/state.txt'])
202
211
 
203
212
  **checkpointName** (`string`): Named Railway checkpoint used to seed new sandboxes and preserve the filesystem before idle teardown. Use a unique stable name for each independent filesystem.
204
213
 
214
+ **seedCheckpointName** (`string`): Boot-only fallback checkpoint used when checkpointName has no stored state. Later snapshots continue writing to checkpointName.
215
+
205
216
  **idleTimeoutMinutes** (`number`): How long the sandbox can sit idle (no exec interaction) before Railway destroys it automatically. The valid range and default depend on your Railway plan.
206
217
 
207
218
  **networkIsolation** (`'ISOLATED' | 'PRIVATE'`): Network access mode. 'ISOLATED' allows outbound internet only; 'PRIVATE' joins the environment's private network. (Default: `'ISOLATED'`)
@@ -36,6 +36,7 @@
36
36
  - [AgentCore](https://mastra.ai/integrations/sandboxes/agentcore)
37
37
  - [Apple Container](https://mastra.ai/integrations/sandboxes/apple-container)
38
38
  - [Blaxel](https://mastra.ai/integrations/sandboxes/blaxel)
39
+ - [Cloudflare Sandbox](https://mastra.ai/integrations/sandboxes/cloudflare-sandbox)
39
40
  - [Daytona](https://mastra.ai/integrations/sandboxes/daytona)
40
41
  - [Docker](https://mastra.ai/integrations/sandboxes/docker)
41
42
  - [E2B](https://mastra.ai/integrations/sandboxes/e2b)
@@ -54,6 +55,7 @@
54
55
  - [Laminar](https://mastra.ai/integrations/observability/laminar)
55
56
  - [Langfuse](https://mastra.ai/integrations/observability/langfuse)
56
57
  - [LangSmith](https://mastra.ai/integrations/observability/langsmith)
58
+ - [Mastra](https://mastra.ai/docs/mastra-platform/observability)
57
59
  - [OpenTelemetry](https://mastra.ai/integrations/observability/opentelemetry)
58
60
  - [PostHog](https://mastra.ai/integrations/observability/posthog)
59
61
  - [Sentry](https://mastra.ai/integrations/observability/sentry)
@@ -70,6 +72,7 @@
70
72
  - [Google Cloud Spanner](https://mastra.ai/integrations/databases/spanner)
71
73
  - [LanceDB](https://mastra.ai/integrations/databases/lancedb)
72
74
  - [libSQL](https://mastra.ai/integrations/databases/libsql)
75
+ - [Mastra](https://mastra.ai/docs/mastra-platform/database)
73
76
  - [MongoDB](https://mastra.ai/integrations/databases/mongodb)
74
77
  - [MSSQL](https://mastra.ai/integrations/databases/mssql)
75
78
  - [Neon Postgres](https://mastra.ai/integrations/databases/neon)
@@ -90,6 +93,7 @@
90
93
  - [Kubernetes](https://mastra.ai/integrations/deploy/kubernetes)
91
94
  - [Mastra](https://mastra.ai/docs/mastra-platform/deploy)
92
95
  - [Netlify](https://mastra.ai/integrations/deploy/netlify)
96
+ - [Render](https://mastra.ai/integrations/deploy/render)
93
97
  - [Temporal](https://mastra.ai/integrations/deploy/temporal)
94
98
  - [Vercel](https://mastra.ai/integrations/deploy/vercel)
95
99
 
@@ -19,8 +19,10 @@ List of required environment variables for each model provider and gateway suppo
19
19
  | [Alibaba Token Plan](https://mastra.ai/models/providers/alibaba-token-plan) | `alibaba-token-plan/*` | `ALIBABA_TOKEN_PLAN_API_KEY` |
20
20
  | [Alibaba Token Plan (China)](https://mastra.ai/models/providers/alibaba-token-plan-cn) | `alibaba-token-plan-cn/*` | `ALIBABA_TOKEN_PLAN_API_KEY` |
21
21
  | [Ambient](https://mastra.ai/models/providers/ambient) | `ambient/*` | `AMBIENT_API_KEY` |
22
+ | [AMD](https://mastra.ai/models/providers/amd) | `amd/*` | `AMD_API_KEY` |
22
23
  | [Anthropic](https://mastra.ai/models/providers/anthropic) | `anthropic/*` | `ANTHROPIC_API_KEY` |
23
24
  | [AnyAPI](https://mastra.ai/models/providers/anyapi) | `anyapi/*` | `ANYAPI_API_KEY` |
25
+ | [Arcee](https://mastra.ai/models/providers/arcee) | `arcee/*` | `ARCEE_API_KEY` |
24
26
  | [Atomic Chat](https://mastra.ai/models/providers/atomic-chat) | `atomic-chat/*` | `ATOMIC_CHAT_API_KEY` |
25
27
  | [Auriko](https://mastra.ai/models/providers/auriko) | `auriko/*` | `AURIKO_API_KEY` |
26
28
  | [Bailing](https://mastra.ai/models/providers/bailing) | `bailing/*` | `BAILING_API_TOKEN` |
@@ -72,10 +74,12 @@ List of required environment variables for each model provider and gateway suppo
72
74
  | [InferX](https://mastra.ai/models/providers/inferx) | `inferx/*` | `INFERX_API_KEY` |
73
75
  | [Infomaniak](https://mastra.ai/models/providers/infomaniak) | `infomaniak/*` | `INFOMANIAK_PRODUCT_ID`, `INFOMANIAK_API_KEY` |
74
76
  | [IO.NET](https://mastra.ai/models/providers/io-net) | `io-net/*` | `IOINTELLIGENCE_API_KEY` |
77
+ | [Jalapeno Cloud](https://mastra.ai/models/providers/jalapeno) | `jalapeno/*` | `JALAPENO_API_KEY` |
75
78
  | [Jiekou.AI](https://mastra.ai/models/providers/jiekou) | `jiekou/*` | `JIEKOU_API_KEY` |
76
79
  | [Kenari](https://mastra.ai/models/providers/kenari) | `kenari/*` | `KENARI_API_KEY` |
77
80
  | [Kilo Gateway](https://mastra.ai/models/providers/kilo) | `kilo/*` | `KILO_API_KEY` |
78
81
  | [Kimi For Coding](https://mastra.ai/models/providers/kimi-for-coding) | `kimi-for-coding/*` | `KIMI_API_KEY` |
82
+ | [Kosmik Compute](https://mastra.ai/models/providers/kosmik) | `kosmik/*` | `KOSMIK_API_KEY` |
79
83
  | [KUAE Cloud Coding Plan](https://mastra.ai/models/providers/kuae-cloud-coding-plan) | `kuae-cloud-coding-plan/*` | `KUAE_API_KEY` |
80
84
  | [Lilac](https://mastra.ai/models/providers/lilac) | `lilac/*` | `LILAC_API_KEY` |
81
85
  | [Llama](https://mastra.ai/models/providers/llama) | `llama/*` | `LLAMA_API_KEY` |
@@ -86,7 +90,6 @@ List of required environment variables for each model provider and gateway suppo
86
90
  | [LucidQuery](https://mastra.ai/models/providers/lucidquery) | `lucidquery/*` | `LUCIDQUERY_API_KEY` |
87
91
  | [Lynkr](https://mastra.ai/models/providers/lynkr) | `lynkr/*` | `LYNKR_API_KEY` |
88
92
  | [Meganova](https://mastra.ai/models/providers/meganova) | `meganova/*` | `MEGANOVA_API_KEY` |
89
- | [Merge Gateway](https://mastra.ai/models/providers/merge-gateway) | `merge-gateway/*` | `MERGE_GATEWAY_API_KEY` |
90
93
  | [Meta](https://mastra.ai/models/providers/meta) | `meta/*` | `META_MODEL_API_KEY` |
91
94
  | [MiniMax (minimax.io)](https://mastra.ai/models/providers/minimax) | `minimax/*` | `MINIMAX_API_KEY` |
92
95
  | [MiniMax (minimaxi.com)](https://mastra.ai/models/providers/minimax-cn) | `minimax-cn/*` | `MINIMAX_API_KEY` |
@@ -127,10 +130,12 @@ List of required environment variables for each model provider and gateway suppo
127
130
  | [Regolo AI](https://mastra.ai/models/providers/regolo-ai) | `regolo-ai/*` | `REGOLO_API_KEY` |
128
131
  | [Requesty](https://mastra.ai/models/providers/requesty) | `requesty/*` | `REQUESTY_API_KEY` |
129
132
  | [routing.run](https://mastra.ai/models/providers/routing-run) | `routing-run/*` | `ROUTING_RUN_API_KEY` |
133
+ | [RunInfra](https://mastra.ai/models/providers/runinfra) | `runinfra/*` | `RUNINFRA_GATEWAY_KEY` |
130
134
  | [Sakana AI](https://mastra.ai/models/providers/sakana) | `sakana/*` | `SAKANA_API_KEY` |
131
135
  | [Sarvam AI](https://mastra.ai/models/providers/sarvam) | `sarvam/*` | `SARVAM_API_KEY` |
132
136
  | [Scaleway](https://mastra.ai/models/providers/scaleway) | `scaleway/*` | `SCALEWAY_API_KEY` |
133
- | [SCX.ai](https://mastra.ai/models/providers/scx) | `scx/*` | `SCX_API_KEY` |
137
+ | [SCNet Token Plan](https://mastra.ai/models/providers/scnet-token-plan) | `scnet-token-plan/*` | `SCNET_API_KEY` |
138
+ | [SCX.ai](https://mastra.ai/models/providers/scx-ai) | `scx-ai/*` | `SCX_API_KEY` |
134
139
  | [SiliconFlow](https://mastra.ai/models/providers/siliconflow) | `siliconflow/*` | `SILICONFLOW_API_KEY` |
135
140
  | [SiliconFlow (China)](https://mastra.ai/models/providers/siliconflow-cn) | `siliconflow-cn/*` | `SILICONFLOW_CN_API_KEY` |
136
141
  | [Snowflake Cortex](https://mastra.ai/models/providers/snowflake-cortex) | `snowflake-cortex/*` | `SNOWFLAKE_ACCOUNT`, `SNOWFLAKE_CORTEX_PAT` |
@@ -174,6 +179,7 @@ List of required environment variables for each model provider and gateway suppo
174
179
  | [Zhipu AI Coding Plan](https://mastra.ai/models/providers/zhipuai-coding-plan) | `zhipuai-coding-plan/*` | `ZHIPU_API_KEY` |
175
180
  | [Azure OpenAI](https://mastra.ai/models/gateways/azure-openai) (Gateway) | `azure-openai/*` | `AZURE_API_KEY`, `AZURE_TENANT_ID`, `AZURE_CLIENT_ID`, `AZURE_CLIENT_SECRET`, `AZURE_SUBSCRIPTION_ID` |
176
181
  | [Mastra](https://mastra.ai/models/gateways/mastra) (Gateway) | `mastra/*` | `MASTRA_GATEWAY_API_KEY` |
182
+ | [Merge Gateway](https://mastra.ai/models/gateways/merge-gateway) (Gateway) | `merge-gateway/*` | `MERGE_GATEWAY_API_KEY` |
177
183
  | [Neon](https://mastra.ai/models/gateways/neon) (Gateway) | `neon/*` | `NEON_AI_GATEWAY_BASE_URL`, `NEON_AI_GATEWAY_TOKEN` |
178
184
  | [Netlify](https://mastra.ai/models/gateways/netlify) (Gateway) | `netlify/*` | `NETLIFY_TOKEN`, `NETLIFY_SITE_ID` |
179
185
  | [OpenRouter](https://mastra.ai/models/gateways/openrouter) (Gateway) | `openrouter/*` | `OPENROUTER_API_KEY` |
@@ -0,0 +1,212 @@
1
+ > Discover all available pages from the documentation index: https://mastra.ai/llms.txt
2
+
3
+ # ![Merge Gateway logo](https://models.dev/logos/merge-gateway.svg)Merge Gateway
4
+
5
+ Merge Gateway aggregates models from multiple providers with enhanced features like rate limiting and failover. Access 174 models through Mastra's model router.
6
+
7
+ Learn more in the [Merge Gateway documentation](https://docs.merge.dev/merge-gateway).
8
+
9
+ ## Usage
10
+
11
+ ```typescript
12
+ import { Agent } from "@mastra/core/agent";
13
+
14
+ const agent = new Agent({
15
+ id: "my-agent",
16
+ name: "My Agent",
17
+ instructions: "You are a helpful assistant",
18
+ model: "merge-gateway/anthropic/claude-3-7-sonnet-20250219"
19
+ });
20
+ ```
21
+
22
+ > **Note:** Mastra uses the OpenAI-compatible `/chat/completions` endpoint. Some provider-specific features may not be available. Check the [Merge Gateway documentation](https://docs.merge.dev/merge-gateway) for details.
23
+
24
+ ## Configuration
25
+
26
+ ```bash
27
+ # Use gateway API key
28
+ MERGE_GATEWAY_API_KEY=your-gateway-key
29
+
30
+ # Or use provider API keys directly
31
+ OPENAI_API_KEY=sk-...
32
+ ANTHROPIC_API_KEY=ant-...
33
+ ```
34
+
35
+ ## Available models
36
+
37
+ | Model |
38
+ | ------------------------------------------------ |
39
+ | `anthropic/claude-3-7-sonnet-20250219` |
40
+ | `anthropic/claude-fable-5` |
41
+ | `anthropic/claude-haiku-4-5-20251001` |
42
+ | `anthropic/claude-opus-4-1-20250805` |
43
+ | `anthropic/claude-opus-4-20250514` |
44
+ | `anthropic/claude-opus-4-5-20251101` |
45
+ | `anthropic/claude-opus-4-6` |
46
+ | `anthropic/claude-opus-4-7` |
47
+ | `anthropic/claude-opus-4-8` |
48
+ | `anthropic/claude-opus-5` |
49
+ | `anthropic/claude-sonnet-4-20250514` |
50
+ | `anthropic/claude-sonnet-4-5-20250929` |
51
+ | `anthropic/claude-sonnet-4-6` |
52
+ | `anthropic/claude-sonnet-5` |
53
+ | `bytedance/dola-seed-2.0-code` |
54
+ | `bytedance/dola-seed-2.0-code-preview` |
55
+ | `bytedance/dola-seed-2.0-lite` |
56
+ | `bytedance/dola-seed-2.0-mini` |
57
+ | `bytedance/dola-seed-2.0-pro` |
58
+ | `cohere/command-a-03-2025` |
59
+ | `cohere/command-r-08-2024` |
60
+ | `cohere/command-r-plus-08-2024` |
61
+ | `cohere/command-r7b-12-2024` |
62
+ | `deepseek/deepseek-r1` |
63
+ | `deepseek/deepseek-v3` |
64
+ | `deepseek/deepseek-v3.1` |
65
+ | `deepseek/deepseek-v3.2` |
66
+ | `deepseek/deepseek-v4-flash` |
67
+ | `deepseek/deepseek-v4-flash-0731` |
68
+ | `deepseek/deepseek-v4-pro` |
69
+ | `deepseek/deepseek-v4-pro-0813` |
70
+ | `google/gemini-2.5-computer-use-preview-10-2025` |
71
+ | `google/gemini-2.5-flash` |
72
+ | `google/gemini-2.5-flash-image` |
73
+ | `google/gemini-2.5-flash-lite` |
74
+ | `google/gemini-2.5-pro` |
75
+ | `google/gemini-3-flash-preview` |
76
+ | `google/gemini-3-pro-image` |
77
+ | `google/gemini-3-pro-preview` |
78
+ | `google/gemini-3.1-flash-image` |
79
+ | `google/gemini-3.1-flash-lite` |
80
+ | `google/gemini-3.1-flash-lite-preview` |
81
+ | `google/gemini-3.1-pro-preview` |
82
+ | `google/gemini-3.1-pro-preview-customtools` |
83
+ | `google/gemini-3.5-flash` |
84
+ | `google/gemini-3.5-flash-lite` |
85
+ | `google/gemini-3.6-flash` |
86
+ | `google/gemini-3.7-flash` |
87
+ | `google/gemini-embedding-001` |
88
+ | `google/gemini-flash-latest` |
89
+ | `google/gemini-flash-lite-latest` |
90
+ | `google/gemma-4-26b-a4b-it` |
91
+ | `google/gemma-4-31b-it` |
92
+ | `meta/llama-3.1-8b-instruct` |
93
+ | `meta/llama-3.3-70b-instruct` |
94
+ | `meta/muse-spark-1.1` |
95
+ | `meta/muse-spark-1.2` |
96
+ | `minimax/minimax-m2` |
97
+ | `minimax/minimax-m2.1` |
98
+ | `minimax/minimax-m2.5` |
99
+ | `minimax/minimax-m2.5-highspeed` |
100
+ | `minimax/minimax-m2.7` |
101
+ | `minimax/minimax-m2.7-highspeed` |
102
+ | `minimax/minimax-m3` |
103
+ | `mistral/codestral-latest` |
104
+ | `mistral/devstral-2512` |
105
+ | `mistral/devstral-medium-2507` |
106
+ | `mistral/devstral-medium-latest` |
107
+ | `mistral/devstral-small-2507` |
108
+ | `mistral/magistral-medium-latest` |
109
+ | `mistral/mistral-large-2411` |
110
+ | `mistral/mistral-large-2512` |
111
+ | `mistral/mistral-large-latest` |
112
+ | `mistral/mistral-medium-2505` |
113
+ | `mistral/mistral-medium-latest` |
114
+ | `mistral/mistral-small-latest` |
115
+ | `mistral/pixtral-large-latest` |
116
+ | `moonshot/kimi-k2.5` |
117
+ | `moonshot/kimi-k2.6` |
118
+ | `moonshot/kimi-k2.7-code` |
119
+ | `moonshot/kimi-k2.7-code-highspeed` |
120
+ | `moonshot/kimi-k3` |
121
+ | `moonshotai/kimi-k2-thinking` |
122
+ | `nvidia/nemotron-3.5-lightning-30b-a3b` |
123
+ | `nvidia/nemotron-nano-9b-v2` |
124
+ | `openai/gpt-3.5-turbo` |
125
+ | `openai/gpt-4` |
126
+ | `openai/gpt-4-turbo` |
127
+ | `openai/gpt-4.1` |
128
+ | `openai/gpt-4.1-mini` |
129
+ | `openai/gpt-4.1-nano` |
130
+ | `openai/gpt-4o` |
131
+ | `openai/gpt-4o-2024-05-13` |
132
+ | `openai/gpt-4o-2024-08-06` |
133
+ | `openai/gpt-4o-2024-11-20` |
134
+ | `openai/gpt-4o-mini` |
135
+ | `openai/gpt-5` |
136
+ | `openai/gpt-5-chat-latest` |
137
+ | `openai/gpt-5-mini` |
138
+ | `openai/gpt-5-nano` |
139
+ | `openai/gpt-5.1` |
140
+ | `openai/gpt-5.1-chat-latest` |
141
+ | `openai/gpt-5.2` |
142
+ | `openai/gpt-5.2-chat-latest` |
143
+ | `openai/gpt-5.3-chat-latest` |
144
+ | `openai/gpt-5.4` |
145
+ | `openai/gpt-5.4-mini` |
146
+ | `openai/gpt-5.4-nano` |
147
+ | `openai/gpt-5.5` |
148
+ | `openai/gpt-5.6-luna` |
149
+ | `openai/gpt-5.6-sol` |
150
+ | `openai/gpt-5.6-terra` |
151
+ | `openai/gpt-oss-120b` |
152
+ | `openai/gpt-oss-20b` |
153
+ | `openai/gpt-oss-safeguard-120b` |
154
+ | `openai/o1` |
155
+ | `openai/o3` |
156
+ | `openai/o3-mini` |
157
+ | `openai/o4-mini` |
158
+ | `qwen/qwen-flash` |
159
+ | `qwen/qwen-plus` |
160
+ | `qwen/qwen3-235b-a22b` |
161
+ | `qwen/qwen3-235b-a22b-instruct-2507` |
162
+ | `qwen/qwen3-30b-a3b` |
163
+ | `qwen/qwen3-32b` |
164
+ | `qwen/qwen3-coder-480b-a35b-instruct` |
165
+ | `qwen/qwen3-coder-flash` |
166
+ | `qwen/qwen3-coder-next` |
167
+ | `qwen/qwen3-coder-plus` |
168
+ | `qwen/qwen3-max` |
169
+ | `qwen/qwen3-next-80b-a3b-instruct` |
170
+ | `qwen/qwen3-next-80b-a3b-thinking` |
171
+ | `qwen/qwen3-vl-235b-a22b-instruct` |
172
+ | `qwen/qwen3-vl-235b-a22b-thinking` |
173
+ | `qwen/qwen3-vl-plus` |
174
+ | `qwen/qwen3.5-122b-a10b` |
175
+ | `qwen/qwen3.5-27b` |
176
+ | `qwen/qwen3.5-35b-a3b` |
177
+ | `qwen/qwen3.5-397b-a17b` |
178
+ | `qwen/qwen3.5-9b` |
179
+ | `qwen/qwen3.5-flash` |
180
+ | `qwen/qwen3.5-plus` |
181
+ | `qwen/qwen3.6-27b` |
182
+ | `qwen/qwen3.6-35b-a3b` |
183
+ | `qwen/qwen3.6-flash` |
184
+ | `qwen/qwen3.6-max-preview` |
185
+ | `qwen/qwen3.6-plus` |
186
+ | `qwen/qwen3.7-max` |
187
+ | `qwen/qwen3.7-plus` |
188
+ | `qwen/qwen3.8-2.4t-a95b` |
189
+ | `qwen/qwen3.8-max` |
190
+ | `sakana/fugu-ultra` |
191
+ | `sakana/sakana-namazu` |
192
+ | `thinkingmachines/inkling` |
193
+ | `writer/palmyra-x4` |
194
+ | `writer/palmyra-x5` |
195
+ | `xai/grok-4.20-0309-non-reasoning` |
196
+ | `xai/grok-4.20-0309-reasoning` |
197
+ | `xai/grok-4.3` |
198
+ | `xai/grok-4.5` |
199
+ | `xai/grok-4.6` |
200
+ | `xai/grok-build-0.1` |
201
+ | `zai/glm-4.5` |
202
+ | `zai/glm-4.5-air` |
203
+ | `zai/glm-4.5v` |
204
+ | `zai/glm-4.6` |
205
+ | `zai/glm-4.7` |
206
+ | `zai/glm-4.7-flash` |
207
+ | `zai/glm-4.7-flashx` |
208
+ | `zai/glm-5` |
209
+ | `zai/glm-5-turbo` |
210
+ | `zai/glm-5.1` |
211
+ | `zai/glm-5.2` |
212
+ | `zai/glm-5.3` |
@@ -2,7 +2,7 @@
2
2
 
3
3
  # ![OpenRouter logo](https://models.dev/logos/openrouter.svg)OpenRouter
4
4
 
5
- OpenRouter aggregates models from multiple providers with enhanced features like rate limiting and failover. Access 349 models through Mastra's model router.
5
+ OpenRouter aggregates models from multiple providers with enhanced features like rate limiting and failover. Access 353 models through Mastra's model router.
6
6
 
7
7
  Learn more in the [OpenRouter documentation](https://openrouter.ai/models).
8
8
 
@@ -106,6 +106,7 @@ ANTHROPIC_API_KEY=ant-...
106
106
  | `deepseek/deepseek-v4-flash-0731` |
107
107
  | `deepseek/deepseek-v4-pro` |
108
108
  | `deepseek/deepseek-v4-pro-0813` |
109
+ | `dots-studio/dots-3-note-preview:free` |
109
110
  | `google/gemini-2.5-flash` |
110
111
  | `google/gemini-2.5-flash-image` |
111
112
  | `google/gemini-2.5-flash-lite` |
@@ -340,6 +341,7 @@ ANTHROPIC_API_KEY=ant-...
340
341
  | `qwen/qwen3.7-max` |
341
342
  | `qwen/qwen3.7-plus` |
342
343
  | `qwen/qwen3.8-2.4t-a95b` |
344
+ | `qwen/qwen3.8-27b` |
343
345
  | `qwen/qwen3.8-max` |
344
346
  | `rekaai/reka-edge` |
345
347
  | `rekaai/reka-flash-3` |
@@ -384,4 +386,6 @@ ANTHROPIC_API_KEY=ant-...
384
386
  | `z-ai/glm-5-turbo` |
385
387
  | `z-ai/glm-5.1` |
386
388
  | `z-ai/glm-5.2` |
389
+ | `z-ai/glm-5.2:free` |
390
+ | `z-ai/glm-5.3` |
387
391
  | `z-ai/glm-5v-turbo` |