@mastra/mcp-docs-server 1.2.17-alpha.9 → 1.2.18-alpha.1
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.
- package/.docs/course/02-agent-tools-mcp/32-conclusion.md +1 -1
- package/.docs/docs/agents/code-mode.md +3 -3
- package/.docs/docs/agents/guardrails.md +1 -1
- package/.docs/docs/agents/{agent-approval.md → human-in-the-loop.md} +5 -5
- package/.docs/docs/agents/networks.md +3 -3
- package/.docs/docs/agents/overview.md +7 -7
- package/.docs/docs/agents/processors.md +3 -3
- package/.docs/docs/agents/{using-tools.md → tools.md} +7 -7
- package/.docs/docs/{server/auth → auth}/custom-auth-provider.md +1 -1
- package/.docs/docs/{server/auth → auth}/fga.md +27 -1
- package/.docs/docs/{server/auth.md → auth/overview.md} +4 -4
- package/.docs/docs/{server/auth → auth}/simple-auth.md +1 -1
- package/.docs/docs/{server/auth → auth}/workers.md +2 -2
- package/.docs/docs/{capabilities/channels.md → channels.md} +2 -2
- package/.docs/docs/{agents → connections}/a2a.md +2 -2
- package/.docs/docs/{agents → connections}/acp.md +18 -6
- package/.docs/docs/{mcp/overview.md → connections/mcp.md} +1 -1
- package/.docs/docs/connections/overview.md +5 -5
- package/.docs/docs/{agents → connections}/sdk-agents.md +3 -1
- package/.docs/docs/deployment/cloud-providers.md +1 -0
- package/.docs/docs/deployment/mastra-server.md +2 -2
- package/.docs/docs/deployment/overview.md +2 -1
- package/.docs/docs/deployment/sandbox.md +3 -3
- package/.docs/docs/deployment/workers.md +4 -4
- package/.docs/docs/guides/context-engineering.md +297 -0
- package/.docs/docs/guides/multi-agent-systems.md +7 -7
- package/.docs/docs/guides/streaming.md +1 -1
- package/.docs/docs/harness/agent-controller.md +5 -3
- package/.docs/docs/{long-running-agents → harness}/background-tasks.md +5 -5
- package/.docs/docs/{long-running-agents → harness}/durable-agents.md +18 -2
- package/.docs/docs/{long-running-agents → harness}/goals.md +6 -6
- package/.docs/docs/harness/overview.md +11 -10
- package/.docs/docs/{long-running-agents → harness}/schedules.md +5 -5
- package/.docs/docs/{long-running-agents → harness}/signal-providers.md +4 -4
- package/.docs/docs/mastra-platform/deploy.md +1 -1
- package/.docs/docs/mastra-platform/overview.md +1 -1
- package/.docs/docs/mastra-platform/server.md +1 -1
- package/.docs/docs/memory/message-history.md +1 -1
- package/.docs/docs/memory/overview.md +4 -4
- package/.docs/docs/memory/working-memory.md +1 -1
- package/.docs/docs/observability/integrations/exporters/mastra-storage.md +1 -1
- package/.docs/docs/{workspace → sandbox}/filesystem.md +2 -2
- package/.docs/docs/{workspace → sandbox}/lsp.md +3 -3
- package/.docs/docs/{workspace/sandbox.md → sandbox/overview.md} +4 -3
- package/.docs/docs/{workspace → sandbox}/search.md +2 -2
- package/.docs/docs/{workspace → sandbox}/skills.md +5 -5
- package/.docs/docs/server/custom-api-routes.md +2 -2
- package/.docs/docs/server/mastra-client.md +2 -2
- package/.docs/docs/server/{mastra-server.md → overview.md} +3 -3
- package/.docs/docs/server/pubsub.md +2 -2
- package/.docs/docs/server/server-adapters.md +4 -4
- package/.docs/docs/{agents/skills.md → skills.md} +4 -4
- package/.docs/docs/{storage/overview.md → storage.md} +2 -1
- package/.docs/docs/studio/auth.md +4 -4
- package/.docs/docs/studio/overview.md +2 -2
- package/.docs/docs/{capabilities/subagents.md → subagents.md} +35 -5
- package/.docs/docs/workflows/agents-and-tools.md +1 -1
- package/.docs/docs/workflows/control-flow.md +0 -4
- package/.docs/docs/workflows/human-in-the-loop.md +0 -4
- package/.docs/docs/workflows/overview.md +1 -1
- package/.docs/docs/workflows/scheduled-workflows.md +2 -2
- package/.docs/docs/workflows/snapshots.md +1 -1
- package/.docs/docs/workflows/suspend-and-resume.md +0 -4
- package/.docs/integrations/agentic-ui/ai-sdk-ui.md +1 -1
- package/.docs/integrations/agentic-ui/copilotkit.md +1 -1
- package/.docs/integrations/auth/google.md +2 -2
- package/.docs/integrations/auth/workos.md +1 -1
- package/.docs/integrations/browsers/agent-browser.md +2 -2
- package/.docs/integrations/browsers/browser-viewer.md +6 -6
- package/.docs/integrations/browsers/firecrawl.md +1 -1
- package/.docs/integrations/browsers/stagehand.md +2 -2
- package/.docs/integrations/channels/discord.md +2 -2
- package/.docs/integrations/channels/github.md +1 -1
- package/.docs/integrations/channels/imessage.md +4 -4
- package/.docs/integrations/channels/slack.md +5 -5
- package/.docs/integrations/channels/teams.md +2 -2
- package/.docs/integrations/channels/telegram.md +2 -2
- package/.docs/integrations/channels/whatsapp.md +2 -2
- package/.docs/integrations/databases/postgresql.md +1 -0
- package/.docs/integrations/deploy/amazon-ec2.md +2 -2
- package/.docs/integrations/deploy/aws-lambda.md +3 -3
- package/.docs/integrations/deploy/azure-app-services.md +2 -2
- package/.docs/integrations/deploy/cloudflare.md +2 -2
- package/.docs/integrations/deploy/digital-ocean.md +3 -3
- package/.docs/integrations/deploy/kubernetes.md +11 -11
- package/.docs/integrations/deploy/netlify.md +3 -3
- package/.docs/integrations/deploy/render.md +389 -0
- package/.docs/integrations/deploy/vercel.md +2 -2
- package/.docs/integrations/file-storage/amazon-s3.md +1 -1
- package/.docs/integrations/file-storage/azure-blob.md +1 -1
- package/.docs/integrations/file-storage/google-cloud-storage.md +1 -1
- package/.docs/integrations/file-storage/mesa.md +2 -2
- package/.docs/integrations/file-storage/vercel-files.md +1 -1
- package/.docs/integrations/frameworks/astro.md +6 -2
- package/.docs/integrations/frameworks/electron.md +1 -1
- package/.docs/integrations/frameworks/express.md +1 -1
- package/.docs/integrations/frameworks/hono.md +1 -1
- package/.docs/integrations/frameworks/nestjs.md +1 -1
- package/.docs/integrations/frameworks/next-js.md +6 -2
- package/.docs/integrations/frameworks/nuxt.md +1 -1
- package/.docs/integrations/frameworks/sveltekit.md +1 -1
- package/.docs/integrations/frameworks/vite-react.md +6 -2
- package/.docs/integrations/sandboxes/agentcore.md +1 -1
- package/.docs/integrations/sandboxes/apple-container.md +1 -1
- package/.docs/integrations/sandboxes/cloudflare-sandbox.md +118 -0
- package/.docs/integrations/sandboxes/daytona.md +1 -1
- package/.docs/integrations/sandboxes/docker.md +4 -3
- package/.docs/integrations/sandboxes/e2b.md +1 -1
- package/.docs/integrations/sandboxes/modal.md +1 -1
- package/.docs/integrations/sandboxes/railway.md +11 -0
- package/.docs/integrations.md +4 -0
- package/.docs/models/environment-variables.md +9 -2
- package/.docs/models/gateways/merge-gateway.md +212 -0
- package/.docs/models/gateways/openrouter.md +3 -1
- package/.docs/models/gateways/vercel.md +22 -1
- package/.docs/models/gateways.md +1 -0
- package/.docs/models/index.md +1 -1
- package/.docs/models/providers/alibaba-token-plan-cn.md +2 -1
- package/.docs/models/providers/alibaba-token-plan.md +2 -1
- package/.docs/models/providers/ambient.md +2 -2
- package/.docs/models/providers/amd.md +73 -0
- package/.docs/models/providers/arcee.md +79 -0
- package/.docs/models/providers/baseten.md +1 -1
- package/.docs/models/providers/cerebras.md +2 -3
- package/.docs/models/providers/chutes.md +2 -1
- package/.docs/models/providers/cloudflare-workers-ai.md +3 -2
- package/.docs/models/providers/cortecs.md +2 -1
- package/.docs/models/providers/crof.md +1 -1
- package/.docs/models/providers/crossmodel.md +3 -2
- package/.docs/models/providers/deepinfra.md +5 -1
- package/.docs/models/providers/digitalocean.md +3 -2
- package/.docs/models/providers/echo.md +73 -0
- package/.docs/models/providers/edenai.md +26 -11
- package/.docs/models/providers/empiriolabs.md +11 -1
- package/.docs/models/providers/hetzner.md +6 -8
- package/.docs/models/providers/huggingface.md +4 -1
- package/.docs/models/providers/hyper.md +8 -7
- package/.docs/models/providers/inferx.md +19 -13
- package/.docs/models/providers/jalapeno.md +89 -0
- package/.docs/models/providers/kilo.md +12 -11
- package/.docs/models/providers/kosmik.md +73 -0
- package/.docs/models/providers/llmgateway.md +3 -3
- package/.docs/models/providers/llmtr.md +35 -10
- package/.docs/models/providers/nano-gpt.md +13 -17
- package/.docs/models/providers/ofox.md +8 -4
- package/.docs/models/providers/opencode-go.md +23 -22
- package/.docs/models/providers/requesty.md +143 -53
- package/.docs/models/providers/runinfra.md +76 -0
- package/.docs/models/providers/sakana.md +3 -2
- package/.docs/models/providers/scnet-token-plan.md +85 -0
- package/.docs/models/providers/scx-ai.md +76 -0
- package/.docs/models/providers/togetherai.md +2 -1
- package/.docs/models/providers/umans-ai-coding-plan.md +2 -1
- package/.docs/models/providers/umans-ai.md +2 -1
- package/.docs/models/providers/vivgrid.md +2 -1
- package/.docs/models/providers/wandb.md +2 -1
- package/.docs/models/providers/xai.md +2 -1
- package/.docs/models/providers.md +8 -2
- package/.docs/reference/acp/acp-agent.md +2 -2
- package/.docs/reference/acp/create-acp-tool.md +1 -1
- package/.docs/reference/agent-controller/agent-controller-class.md +2 -2
- package/.docs/reference/agents/agent.md +2 -2
- package/.docs/reference/agents/channels.md +2 -2
- package/.docs/reference/agents/createSkill.md +2 -2
- package/.docs/reference/agents/durable-agent.md +1 -1
- package/.docs/reference/agents/generate.md +3 -1
- package/.docs/reference/agents/getSkill.md +1 -1
- package/.docs/reference/agents/listSkills.md +1 -1
- package/.docs/reference/agents/listSuspendedRuns.md +6 -6
- package/.docs/reference/agents/listTools.md +2 -2
- package/.docs/reference/agents/network.md +3 -1
- package/.docs/reference/ai-sdk/chat-route.md +1 -1
- package/.docs/reference/ai-sdk/handle-chat-stream.md +1 -1
- package/.docs/reference/ai-sdk/handle-network-stream.md +2 -2
- package/.docs/reference/ai-sdk/handle-workflow-stream.md +1 -1
- package/.docs/reference/ai-sdk/network-route.md +2 -2
- package/.docs/reference/ai-sdk/to-ai-sdk-messages.md +1 -1
- package/.docs/reference/ai-sdk/to-ai-sdk-stream.md +1 -1
- package/.docs/reference/ai-sdk/workflow-route.md +1 -1
- package/.docs/reference/auth/fga.md +7 -5
- package/.docs/reference/auth/jwt.md +1 -1
- package/.docs/reference/browser/agent-browser.md +2 -2
- package/.docs/reference/browser/browser-viewer.md +2 -2
- package/.docs/reference/browser/firecrawl-browser.md +1 -1
- package/.docs/reference/browser/mastra-browser.md +1 -1
- package/.docs/reference/browser/stagehand-browser.md +2 -2
- package/.docs/reference/build-with-ai.md +2 -2
- package/.docs/reference/channels/channel-provider.md +1 -1
- package/.docs/reference/channels/slack-provider.md +1 -1
- package/.docs/reference/cli/mastra.md +2 -0
- package/.docs/reference/client-js/agents.md +24 -4
- package/.docs/reference/coding-agent/create-coding-agent.md +142 -13
- package/.docs/reference/configuration.md +6 -6
- package/.docs/reference/core/getEditor.md +1 -1
- package/.docs/reference/core/getMCPServer.md +1 -1
- package/.docs/reference/core/getMCPServerById.md +1 -1
- package/.docs/reference/core/getTool.md +1 -1
- package/.docs/reference/core/getToolById.md +1 -1
- package/.docs/reference/core/listMCPServers.md +1 -1
- package/.docs/reference/core/listTools.md +1 -1
- package/.docs/reference/core/removeWorkspace.md +1 -1
- package/.docs/reference/editor/mastra-editor.md +2 -2
- package/.docs/reference/editor/prompt-blocks.md +2 -2
- package/.docs/reference/editor/tool-provider.md +108 -1
- package/.docs/reference/editor/tools.md +1 -1
- package/.docs/reference/editor/versioning.md +3 -3
- package/.docs/reference/evals/prompt-alignment.md +18 -0
- package/.docs/reference/evals/rubric.md +1 -1
- package/.docs/reference/file-based-agents/memory.md +2 -2
- package/.docs/reference/file-based-agents/server.md +3 -3
- package/.docs/reference/file-based-agents/skills.md +1 -1
- package/.docs/reference/file-based-agents/storage.md +3 -3
- package/.docs/reference/file-based-agents/subagents.md +1 -1
- package/.docs/reference/file-based-agents/workspace.md +3 -3
- package/.docs/reference/index.md +1 -0
- package/.docs/reference/manual-install.md +3 -3
- package/.docs/reference/memory/memory-class.md +1 -0
- package/.docs/reference/memory/settled.md +57 -0
- package/.docs/reference/migrations/network-to-supervisor.md +2 -2
- package/.docs/reference/processors/provider-history-compat.md +6 -5
- package/.docs/reference/processors/skill-search-processor.md +3 -1
- package/.docs/reference/processors/token-limiter-processor.md +4 -0
- package/.docs/reference/processors/tool-call-filter.md +7 -7
- package/.docs/reference/processors/tool-search-processor.md +1 -1
- package/.docs/reference/project-structure.md +1 -1
- package/.docs/reference/pubsub/lease-provider.md +3 -3
- package/.docs/reference/pubsub/redis-streams.md +1 -1
- package/.docs/reference/rag/graph-rag.md +71 -8
- package/.docs/reference/rag/retrieval.md +26 -18
- package/.docs/reference/schedules/overview.md +1 -1
- package/.docs/reference/streaming/ChunkType.md +2 -2
- package/.docs/reference/streaming/agents/stream.md +29 -4
- package/.docs/reference/streaming/agents/streamUntilIdle.md +1 -1
- package/.docs/reference/tools/ask-user-tool.md +1 -1
- package/.docs/reference/tools/create-code-mode.md +1 -1
- package/.docs/reference/tools/create-tool.md +4 -4
- package/.docs/reference/tools/mcp-client.md +2 -0
- package/.docs/reference/tools/mcp-server.md +97 -4
- package/.docs/reference/tools/submit-plan-tool.md +1 -1
- package/.docs/reference/tools/task-tools.md +2 -2
- package/.docs/reference/vectors/vectorize.md +12 -2
- package/.docs/reference/workers/overview.md +2 -2
- package/.docs/reference/workflows/run-methods/resume.md +21 -0
- package/.docs/reference/workspace/local-filesystem.md +1 -1
- package/.docs/reference/workspace/local-sandbox.md +4 -3
- package/.docs/reference/workspace/platform-sandbox.md +11 -0
- package/.docs/reference/workspace/process-manager.md +20 -4
- package/.docs/reference/workspace/sandbox.md +1 -1
- package/.docs/reference/workspace/workspace-class.md +5 -5
- package/CHANGELOG.md +81 -0
- package/package.json +6 -6
- package/.docs/models/providers/merge-gateway.md +0 -265
- /package/.docs/docs/{server/auth → auth}/composite-auth.md +0 -0
- /package/.docs/docs/{server/auth → auth}/jwt.md +0 -0
- /package/.docs/docs/{browser/overview.md → browser.md} +0 -0
- /package/.docs/docs/{getting-started/develop.md → develop.md} +0 -0
- /package/.docs/docs/{long-running-agents → harness}/signals.md +0 -0
- /package/.docs/docs/{editor/overview.md → studio/editor.md} +0 -0
|
@@ -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/
|
|
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.
|
|
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/
|
|
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/
|
|
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/
|
|
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'`)
|
package/.docs/integrations.md
CHANGED
|
@@ -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` |
|
|
@@ -48,6 +50,7 @@ List of required environment variables for each model provider and gateway suppo
|
|
|
48
50
|
| [DigitalOcean](https://mastra.ai/models/providers/digitalocean) | `digitalocean/*` | `DIGITALOCEAN_ACCESS_TOKEN` |
|
|
49
51
|
| [DInference](https://mastra.ai/models/providers/dinference) | `dinference/*` | `DINFERENCE_API_KEY` |
|
|
50
52
|
| [EBCloud](https://mastra.ai/models/providers/ebcloud) | `ebcloud/*` | `EBCLOUD_API_KEY` |
|
|
53
|
+
| [Echo](https://mastra.ai/models/providers/echo) | `echo/*` | `ECHO_API_KEY` |
|
|
51
54
|
| [Eden AI](https://mastra.ai/models/providers/edenai) | `edenai/*` | `EDENAI_API_KEY` |
|
|
52
55
|
| [EmpirioLabs AI](https://mastra.ai/models/providers/empiriolabs) | `empiriolabs/*` | `EMPIRIOLABS_API_KEY` |
|
|
53
56
|
| [evroc](https://mastra.ai/models/providers/evroc) | `evroc/*` | `EVROC_API_KEY` |
|
|
@@ -72,10 +75,12 @@ List of required environment variables for each model provider and gateway suppo
|
|
|
72
75
|
| [InferX](https://mastra.ai/models/providers/inferx) | `inferx/*` | `INFERX_API_KEY` |
|
|
73
76
|
| [Infomaniak](https://mastra.ai/models/providers/infomaniak) | `infomaniak/*` | `INFOMANIAK_PRODUCT_ID`, `INFOMANIAK_API_KEY` |
|
|
74
77
|
| [IO.NET](https://mastra.ai/models/providers/io-net) | `io-net/*` | `IOINTELLIGENCE_API_KEY` |
|
|
78
|
+
| [Jalapeno Cloud](https://mastra.ai/models/providers/jalapeno) | `jalapeno/*` | `JALAPENO_API_KEY` |
|
|
75
79
|
| [Jiekou.AI](https://mastra.ai/models/providers/jiekou) | `jiekou/*` | `JIEKOU_API_KEY` |
|
|
76
80
|
| [Kenari](https://mastra.ai/models/providers/kenari) | `kenari/*` | `KENARI_API_KEY` |
|
|
77
81
|
| [Kilo Gateway](https://mastra.ai/models/providers/kilo) | `kilo/*` | `KILO_API_KEY` |
|
|
78
82
|
| [Kimi For Coding](https://mastra.ai/models/providers/kimi-for-coding) | `kimi-for-coding/*` | `KIMI_API_KEY` |
|
|
83
|
+
| [Kosmik Compute](https://mastra.ai/models/providers/kosmik) | `kosmik/*` | `KOSMIK_API_KEY` |
|
|
79
84
|
| [KUAE Cloud Coding Plan](https://mastra.ai/models/providers/kuae-cloud-coding-plan) | `kuae-cloud-coding-plan/*` | `KUAE_API_KEY` |
|
|
80
85
|
| [Lilac](https://mastra.ai/models/providers/lilac) | `lilac/*` | `LILAC_API_KEY` |
|
|
81
86
|
| [Llama](https://mastra.ai/models/providers/llama) | `llama/*` | `LLAMA_API_KEY` |
|
|
@@ -86,7 +91,6 @@ List of required environment variables for each model provider and gateway suppo
|
|
|
86
91
|
| [LucidQuery](https://mastra.ai/models/providers/lucidquery) | `lucidquery/*` | `LUCIDQUERY_API_KEY` |
|
|
87
92
|
| [Lynkr](https://mastra.ai/models/providers/lynkr) | `lynkr/*` | `LYNKR_API_KEY` |
|
|
88
93
|
| [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
94
|
| [Meta](https://mastra.ai/models/providers/meta) | `meta/*` | `META_MODEL_API_KEY` |
|
|
91
95
|
| [MiniMax (minimax.io)](https://mastra.ai/models/providers/minimax) | `minimax/*` | `MINIMAX_API_KEY` |
|
|
92
96
|
| [MiniMax (minimaxi.com)](https://mastra.ai/models/providers/minimax-cn) | `minimax-cn/*` | `MINIMAX_API_KEY` |
|
|
@@ -127,10 +131,12 @@ List of required environment variables for each model provider and gateway suppo
|
|
|
127
131
|
| [Regolo AI](https://mastra.ai/models/providers/regolo-ai) | `regolo-ai/*` | `REGOLO_API_KEY` |
|
|
128
132
|
| [Requesty](https://mastra.ai/models/providers/requesty) | `requesty/*` | `REQUESTY_API_KEY` |
|
|
129
133
|
| [routing.run](https://mastra.ai/models/providers/routing-run) | `routing-run/*` | `ROUTING_RUN_API_KEY` |
|
|
134
|
+
| [RunInfra](https://mastra.ai/models/providers/runinfra) | `runinfra/*` | `RUNINFRA_GATEWAY_KEY` |
|
|
130
135
|
| [Sakana AI](https://mastra.ai/models/providers/sakana) | `sakana/*` | `SAKANA_API_KEY` |
|
|
131
136
|
| [Sarvam AI](https://mastra.ai/models/providers/sarvam) | `sarvam/*` | `SARVAM_API_KEY` |
|
|
132
137
|
| [Scaleway](https://mastra.ai/models/providers/scaleway) | `scaleway/*` | `SCALEWAY_API_KEY` |
|
|
133
|
-
| [
|
|
138
|
+
| [SCNet Token Plan](https://mastra.ai/models/providers/scnet-token-plan) | `scnet-token-plan/*` | `SCNET_API_KEY` |
|
|
139
|
+
| [SCX.ai](https://mastra.ai/models/providers/scx-ai) | `scx-ai/*` | `SCX_API_KEY` |
|
|
134
140
|
| [SiliconFlow](https://mastra.ai/models/providers/siliconflow) | `siliconflow/*` | `SILICONFLOW_API_KEY` |
|
|
135
141
|
| [SiliconFlow (China)](https://mastra.ai/models/providers/siliconflow-cn) | `siliconflow-cn/*` | `SILICONFLOW_CN_API_KEY` |
|
|
136
142
|
| [Snowflake Cortex](https://mastra.ai/models/providers/snowflake-cortex) | `snowflake-cortex/*` | `SNOWFLAKE_ACCOUNT`, `SNOWFLAKE_CORTEX_PAT` |
|
|
@@ -174,6 +180,7 @@ List of required environment variables for each model provider and gateway suppo
|
|
|
174
180
|
| [Zhipu AI Coding Plan](https://mastra.ai/models/providers/zhipuai-coding-plan) | `zhipuai-coding-plan/*` | `ZHIPU_API_KEY` |
|
|
175
181
|
| [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
182
|
| [Mastra](https://mastra.ai/models/gateways/mastra) (Gateway) | `mastra/*` | `MASTRA_GATEWAY_API_KEY` |
|
|
183
|
+
| [Merge Gateway](https://mastra.ai/models/gateways/merge-gateway) (Gateway) | `merge-gateway/*` | `MERGE_GATEWAY_API_KEY` |
|
|
177
184
|
| [Neon](https://mastra.ai/models/gateways/neon) (Gateway) | `neon/*` | `NEON_AI_GATEWAY_BASE_URL`, `NEON_AI_GATEWAY_TOKEN` |
|
|
178
185
|
| [Netlify](https://mastra.ai/models/gateways/netlify) (Gateway) | `netlify/*` | `NETLIFY_TOKEN`, `NETLIFY_SITE_ID` |
|
|
179
186
|
| [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
|
|
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
|
|
4
4
|
|
|
5
|
-
OpenRouter aggregates models from multiple providers with enhanced features like rate limiting and failover. Access
|
|
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
|
|
|
@@ -386,4 +386,6 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
386
386
|
| `z-ai/glm-5-turbo` |
|
|
387
387
|
| `z-ai/glm-5.1` |
|
|
388
388
|
| `z-ai/glm-5.2` |
|
|
389
|
+
| `z-ai/glm-5.2:free` |
|
|
390
|
+
| `z-ai/glm-5.3` |
|
|
389
391
|
| `z-ai/glm-5v-turbo` |
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Vercel
|
|
4
4
|
|
|
5
|
-
Vercel aggregates models from multiple providers with enhanced features like rate limiting and failover. Access
|
|
5
|
+
Vercel aggregates models from multiple providers with enhanced features like rate limiting and failover. Access 348 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
|
|
|
@@ -65,6 +65,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
65
65
|
| `alibaba/qwen3.7-max` |
|
|
66
66
|
| `alibaba/qwen3.7-plus` |
|
|
67
67
|
| `alibaba/qwen3.8-2.4t-a95b` |
|
|
68
|
+
| `alibaba/qwen3.8-27b` |
|
|
68
69
|
| `alibaba/qwen3.8-max` |
|
|
69
70
|
| `alibaba/wan-v2.5-t2v-preview` |
|
|
70
71
|
| `alibaba/wan-v2.6-i2v` |
|
|
@@ -231,40 +232,57 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
231
232
|
| `nvidia/nemotron-3-nano-30b-a3b` |
|
|
232
233
|
| `nvidia/nemotron-3-super-120b-a12b` |
|
|
233
234
|
| `nvidia/nemotron-3-ultra-550b-a55b` |
|
|
235
|
+
| `nvidia/nemotron-3.5-lightning` |
|
|
234
236
|
| `nvidia/nemotron-nano-12b-v2-vl` |
|
|
235
237
|
| `nvidia/nemotron-nano-9b-v2` |
|
|
236
238
|
| `openai/gpt-3.5-turbo` |
|
|
237
239
|
| `openai/gpt-4-turbo` |
|
|
238
240
|
| `openai/gpt-4.1` |
|
|
241
|
+
| `openai/gpt-4.1-fast` |
|
|
239
242
|
| `openai/gpt-4.1-mini` |
|
|
243
|
+
| `openai/gpt-4.1-mini-fast` |
|
|
240
244
|
| `openai/gpt-4.1-nano` |
|
|
245
|
+
| `openai/gpt-4.1-nano-fast` |
|
|
241
246
|
| `openai/gpt-4o` |
|
|
247
|
+
| `openai/gpt-4o-fast` |
|
|
242
248
|
| `openai/gpt-4o-mini` |
|
|
249
|
+
| `openai/gpt-4o-mini-fast` |
|
|
243
250
|
| `openai/gpt-4o-mini-search-preview` |
|
|
244
251
|
| `openai/gpt-4o-mini-transcribe` |
|
|
245
252
|
| `openai/gpt-4o-transcribe` |
|
|
246
253
|
| `openai/gpt-5` |
|
|
247
254
|
| `openai/gpt-5-codex` |
|
|
255
|
+
| `openai/gpt-5-fast` |
|
|
248
256
|
| `openai/gpt-5-mini` |
|
|
257
|
+
| `openai/gpt-5-mini-fast` |
|
|
249
258
|
| `openai/gpt-5-nano` |
|
|
250
259
|
| `openai/gpt-5-pro` |
|
|
251
260
|
| `openai/gpt-5.1-codex` |
|
|
252
261
|
| `openai/gpt-5.1-codex-max` |
|
|
253
262
|
| `openai/gpt-5.1-codex-mini` |
|
|
254
263
|
| `openai/gpt-5.1-thinking` |
|
|
264
|
+
| `openai/gpt-5.1-thinking-fast` |
|
|
255
265
|
| `openai/gpt-5.2` |
|
|
256
266
|
| `openai/gpt-5.2-codex` |
|
|
267
|
+
| `openai/gpt-5.2-fast` |
|
|
257
268
|
| `openai/gpt-5.2-pro` |
|
|
258
269
|
| `openai/gpt-5.3-codex` |
|
|
270
|
+
| `openai/gpt-5.3-codex-fast` |
|
|
259
271
|
| `openai/gpt-5.4` |
|
|
272
|
+
| `openai/gpt-5.4-fast` |
|
|
260
273
|
| `openai/gpt-5.4-mini` |
|
|
274
|
+
| `openai/gpt-5.4-mini-fast` |
|
|
261
275
|
| `openai/gpt-5.4-nano` |
|
|
262
276
|
| `openai/gpt-5.4-pro` |
|
|
263
277
|
| `openai/gpt-5.5` |
|
|
278
|
+
| `openai/gpt-5.5-fast` |
|
|
264
279
|
| `openai/gpt-5.5-pro` |
|
|
265
280
|
| `openai/gpt-5.6-luna` |
|
|
281
|
+
| `openai/gpt-5.6-luna-fast` |
|
|
266
282
|
| `openai/gpt-5.6-sol` |
|
|
283
|
+
| `openai/gpt-5.6-sol-fast` |
|
|
267
284
|
| `openai/gpt-5.6-terra` |
|
|
285
|
+
| `openai/gpt-5.6-terra-fast` |
|
|
268
286
|
| `openai/gpt-image-1` |
|
|
269
287
|
| `openai/gpt-image-1-mini` |
|
|
270
288
|
| `openai/gpt-image-1.5` |
|
|
@@ -280,9 +298,11 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
280
298
|
| `openai/o1` |
|
|
281
299
|
| `openai/o3` |
|
|
282
300
|
| `openai/o3-deep-research` |
|
|
301
|
+
| `openai/o3-fast` |
|
|
283
302
|
| `openai/o3-mini` |
|
|
284
303
|
| `openai/o3-pro` |
|
|
285
304
|
| `openai/o4-mini` |
|
|
305
|
+
| `openai/o4-mini-fast` |
|
|
286
306
|
| `openai/text-embedding-3-large` |
|
|
287
307
|
| `openai/text-embedding-3-small` |
|
|
288
308
|
| `openai/text-embedding-ada-002` |
|
|
@@ -362,4 +382,5 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
362
382
|
| `zai/glm-5.1` |
|
|
363
383
|
| `zai/glm-5.2` |
|
|
364
384
|
| `zai/glm-5.2-fast` |
|
|
385
|
+
| `zai/glm-5.3` |
|
|
365
386
|
| `zai/glm-5v-turbo` |
|
package/.docs/models/gateways.md
CHANGED
|
@@ -12,6 +12,7 @@ Create custom gateways for private LLM deployments or specialized provider integ
|
|
|
12
12
|
|
|
13
13
|
- [Azure OpenAI](https://mastra.ai/models/gateways/azure-openai)
|
|
14
14
|
- [Mastra](https://mastra.ai/models/gateways/mastra)
|
|
15
|
+
- [Merge Gateway](https://mastra.ai/models/gateways/merge-gateway)
|
|
15
16
|
- [Neon](https://mastra.ai/models/gateways/neon)
|
|
16
17
|
- [Netlify](https://mastra.ai/models/gateways/netlify)
|
|
17
18
|
- [OpenRouter](https://mastra.ai/models/gateways/openrouter)
|
package/.docs/models/index.md
CHANGED
|
@@ -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
|
|
5
|
+
Mastra provides a unified interface for working with LLMs across multiple providers, giving you access to 6202 models from 179 providers through a single API.
|
|
6
6
|
|
|
7
7
|
## Features
|
|
8
8
|
|