# Mastra Factory

> Teams customizing their workflow and sharing a session, in Slack or on the web

- Family: Open platforms
- Access: self-install
- Pricing: Factory: $0 license, open source. Optional hosting on Mastra platform: Free ($0), Starter ($25/month), Team ($250/month), Enterprise (custom quote).
- License: Core under Apache-2.0. The ee/ directories fall under the Enterprise license for production use.
- Origin: United States / community
- Status: Open source project, before version 1.0. Runs on the Mastra platform by default, or self-hosted.
- Official site: https://mastra.ai/factory
- Trust center: https://trust.mastra.ai/

- Web page: https://sdlc.edebost.com/en/agents/mastra/

## How it works

Mastra Factory installs as a project. One command creates the server, its UI and its API. You run it locally, then deploy it on your infrastructure or on Mastra platform. Mastra Code runs each task in a separate sandbox. An agent can open a secondary session, delegate work and receive its report.

## Plans

- **Mastra Factory, open source**: $0 license (Self-install project). Factory server, interface and API. Core under Apache-2.0.
- **Mastra platform Free**: $0/month (Workspace/month). 100 GB-h RAM, 40 vCPU-h, 100,000 events, 5 connections, 1 GB egress, 15-day traces
- **Mastra platform Starter**: $25/month (Workspace/month). 360 GB-h RAM, 100 vCPU-h, 250,000 events, 10 connections, 10 GB egress, 60-day traces
- **Mastra platform Team**: $250/month (Workspace/month). 3,600 GB-h RAM, 400 vCPU-h, 10M events, 50 connections, 100 GB egress, 180-day traces
- **Mastra platform Enterprise**: Custom quote (Workspace / contract). Custom allowances, connections and retention.

## Europe and data

Server and data in the EU; sandbox region unpublished

## Watch points

You have to install, configure, and operate the project. Budget for models, hosting, and operations. The documentation does not show how to replace Mastra Code with Claude Code or Codex.

## Criteria

Ratings: Yes = 2, Partial = 1, No = 0, not documented = empty. Every answer has a source. Performance is not measured.

| Criterion | Answer | Detail | Source |
|---|---|---|---|
| Managed cloud execution | Yes | On Mastra Platform, Factory can use managed hosting, sign-in, storage and sandboxes. The sandbox runs the agent’s commands in a VM. | https://factory.mastra.ai/what-is-factory |
| Parallel agents | Yes | Several sessions can run their agents at the same time, each in its own sandbox. | https://mastra.ai/factory |
| Agent coordination | Yes | A session can start side work, receive reports, send instructions and follow another card. | https://factory.mastra.ai/using/messaging |
| Multiplayer session | Yes | Any organization member can continue a shared session, including approving an action on Work and Review cards. Private conversations stay limited to their owner. | https://factory.mastra.ai/using/sessions |
| Native coding harness | Yes | Each session runs a coding agent built on Mastra Code: it investigates the issue, plans, implements and opens a PR, which a review session then checks. | https://factory.mastra.ai/what-is-factory |
| Run Claude Code | No | Factory sessions use the Mastra Code harness. Factory does not offer Claude Code as a session harness. | https://factory.mastra.ai/what-is-factory |
| Run Codex | No | Factory sessions use the Mastra Code harness. Factory does not offer Codex as a session harness. | https://factory.mastra.ai/what-is-factory |
| SSO | Partial | Mastra Platform reserves single sign-on for Enterprise. That plan also includes RBAC and audit logs. | https://mastra.ai/pricing |
| Public team pricing | Yes | Factory is free and open. The public prices, $0, $25 and $250 per month, are for Mastra platform, the optional hosting. | https://mastra.ai/pricing |
| Inference in Europe | Partial | For inference in Europe, configure a European OpenAI-compatible endpoint in Factory, such as your own model server. | https://factory.mastra.ai/configure/models |
| GitHub Enterprise Cloud with residency | No | The built-in GitHub integration clones from github.com and creates Octokit clients with no custom API URL. It does not support ghe.com. | https://github.com/mastra-ai/mastra/blob/main/mastracode/factory/src/integrations/github/integration.ts |
| GitLab Dedicated | Not documented | The instance URL is configurable. There is no established path for GitLab Dedicated in Europe. | https://factory.mastra.ai/configure/gitlab |
| Runs on your infrastructure | Yes | A fully self-hosted deployment is documented: your own server, auth, storage and sandbox provider, including LocalSandbox. | https://factory.mastra.ai/deployment |
| Open license | Yes | The Factory package is Apache-2.0. Features shipped in ee/ directories fall under the Mastra Enterprise license. | https://github.com/mastra-ai/mastra/blob/main/mastracode/factory/package.json |
| GitHub.com | Yes | With the GitHub App, Factory works on authorized private repositories, opens PRs and acts on feedback. | https://factory.mastra.ai/configure/github |
| GitLab.com | Yes | Factory syncs issues, clones the project, pushes branches and manages MRs. | https://factory.mastra.ai/configure/gitlab |
| GitHub Enterprise Server | No | The built-in GitHub integration clones from github.com and creates Octokit clients with no custom API URL. It does not support GitHub Enterprise Server. | https://github.com/mastra-ai/mastra/blob/main/mastracode/factory/src/integrations/github/integration.ts |
| GitLab Self-Managed | Yes | For direct setup, the docs cover a custom HTTPS URL, a personal or group token, and direct webhooks. | https://factory.mastra.ai/configure/gitlab |
| Bitbucket Cloud | No | Bitbucket Cloud is not supported: the documented Git hosts are GitHub and GitLab. | https://factory.mastra.ai/ |
| Azure Repos (Azure DevOps Services) | No | Azure Repos does not appear in the list of Git hosts, which covers GitHub and GitLab. | https://factory.mastra.ai/ |
| Work across multiple repositories | Yes | A Factory session can preload several repositories under one working directory and run setup steps that span them. | https://factory.mastra.ai/configure/sandboxes |
| Steer from Slack | Yes | A mention or direct message starts a session, and thread replies continue it. Channel threads are shared by default. | https://factory.mastra.ai/configure/slack |
| Steer from Microsoft Teams | No | You use Factory from a web or mobile browser, or through Slack. Microsoft Teams isn’t among the channels. | https://factory.mastra.ai/what-is-factory |
| Work from Jira | Yes | Jira Cloud tickets are routed to a Factory and its board. Rules react to tickets that are done or canceled. | https://factory.mastra.ai/configure/jira |
| Work from Linear | Yes | Issues from selected Linear projects and teams are routed to the assigned Factory. | https://factory.mastra.ai/configure/linear |
| Events and webhooks | Yes | Factory receives GitLab issue, comment, MR and push events, directly or through the platform. | https://factory.mastra.ai/configure/gitlab |
| Scheduled tasks | No | Factory can schedule environment template rebuilds. Those rebuilds prepare sandboxes without starting coding tasks. | https://factory.mastra.ai/configure/sandboxes |
| Runs the project’s tests | Yes | The agent runs the repository’s test, lint and build commands in its session environment. | https://factory.mastra.ai/configure/sandboxes |
| Code review by an agent | Yes | PR or MR review in a dedicated session. A new review can be started after a push. | https://factory.mastra.ai/using/reviews |
| Fix after a CI failure | Partial | A failed CI check does not wake a Factory session. The team can reopen the session and ask the agent to investigate or fix it. | https://factory.mastra.ai/using/sessions |
| Bring your own key | Yes | Provider API key at the personal or organization level. | https://factory.mastra.ai/configure/models |
| MCP tools for the agent | No | Adding an external MCP server for agents requires MCPClient code in the Factory server. Factory’s own MCP endpoint is for external clients. | https://github.com/mastra-ai/mastra/blob/main/mastracode/factory/README.md |
| Launch tasks through the API | Yes | Factory’s API can create work items, start or continue sessions, and handle approvals. Authentication is configured on the Factory server. | https://github.com/mastra-ai/mastra/blob/main/mastracode/factory/README.md |
| OpenTelemetry export | Partial | Factory runs on a Mastra instance, whose OpenTelemetry exporter sends traces and logs. You install and configure it in the project. | https://mastra.ai/integrations/observability/opentelemetry |
| Storage in Europe | Yes | In the eu region, environment databases run in Frankfurt with Neon or in Ireland with Turso. Traces and logs are ingested in Amsterdam. | https://mastra.ai/docs/mastra-platform/deploy/regions |
| Compute in Europe | Partial | When self-hosted, the local sandbox runs commands on your server, which you can place in Europe. The location of all managed VMs is not documented. | https://factory.mastra.ai/configure/sandboxes |
| Bring your own inference | Yes | A custom provider accepts any OpenAI-compatible base URL, such as a self-hosted model server, at personal or organization level. | https://factory.mastra.ai/configure/models#add-a-custom-provider |

## Sources

- [Mastra Factory \| Product documentation](https://factory.mastra.ai/)
- [Mastra Factory \| Architecture, engines and deployments](https://factory.mastra.ai/what-is-factory)
- [Mastra Factory: from issue to production \| Mastra](https://mastra.ai/factory)
- [Mastra Factory \| Session and approval permissions](https://factory.mastra.ai/using/sessions)
- [Mastra Factory \| Delegation and cross-session messages](https://factory.mastra.ai/using/messaging)
- [Mastra Factory \| GitLab.com](https://factory.mastra.ai/configure/gitlab)
- [Mastra Factory \| GitHub App, branches and PRs](https://factory.mastra.ai/configure/github)
- [Mastra Factory \| Jira Cloud](https://factory.mastra.ai/configure/jira)
- [Mastra Factory \| Importing and routing Linear issues](https://factory.mastra.ai/configure/linear)
- [Mastra Factory \| Slack, direct messages and channels](https://factory.mastra.ai/configure/slack)
- [Mastra Factory \| Models and personal or shared keys](https://factory.mastra.ai/configure/models)
- [Mastra Factory \| Configuration API and model providers](https://factory.mastra.ai/reference/mastra-factory-api)
- [Mastra Factory \| Integrating MCP tools and driving tasks through the API](https://github.com/mastra-ai/mastra/blob/main/mastracode/factory/README.md)
- [Mastra Factory \| Mastra Framework \| SDK adapters and subagents](https://mastra.ai/blog/introducing-sdk-subagents)
- [Mastra Factory \| Mastra Platform \| Regional scope of the server, storage and traces](https://mastra.ai/blog/introducing-eu-us-regions-for-mastra-platform)
- [Mastra Factory \| Cloud or self-hosted deployment](https://factory.mastra.ai/deployment)
- [Mastra Factory \| Sandboxes and repository tests](https://factory.mastra.ai/configure/sandboxes)
- [Mastra Factory \| Reviewing and tracking changes](https://factory.mastra.ai/using/reviews)
- [Mastra Factory \| Mastra \| Repository licenses and ee/ exceptions](https://github.com/mastra-ai/mastra#licensing)
- [Pricing \| Mastra](https://mastra.ai/pricing)
