{
 "schema_version": 1,
 "generated": "2026-10-31",
 "id": "mastra-ai-mastra--start-a-mastra-agent-project",
 "repo": "mastra-ai/mastra",
 "repo_url": "https://github.com/mastra-ai/mastra",
 "repo_slug": "mastra-ai-mastra",
 "title": "Start a TypeScript agent project with Mastra Studio",
 "page_title": "How to start a TypeScript agent project with Mastra Studio with Mastra",
 "summary": "Scaffold a Mastra project with one command and build and test agents in Mastra Studio.",
 "who": "A JavaScript developer who wants to try agents without leaving the TypeScript stack.",
 "problem": "Most agent frameworks are Python-first, which leaves TypeScript teams wiring things together themselves.",
 "outcome": "A new Mastra project with a dev server and Mastra Studio at localhost:4111 for testing agents, workflows and tools.",
 "steps": [
  "Run `npm create mastra@latest` and follow the prompts",
  "Choose a project name and a provider such as openai, anthropic, google or xai",
  "Enter the project directory and start the dev server",
  "Open Mastra Studio at http://localhost:4111 to build, test and manage agents, workflows and tools",
  "Use the templates and course from the docs if you are new to agents"
 ],
 "agent_prompt": "Create a new Mastra project with npm create mastra@latest using <provider>, start the dev server, and build an agent in it that <describe job>. Test it in Mastra Studio and show me the result.",
 "agents": [
  "claude-code",
  "codex",
  "cursor"
 ],
 "difficulty": "Beginner",
 "time": "20 minutes",
 "basis": "readme",
 "caveat": "Code in any ee/ directory is under the Mastra Enterprise License and needs a license for production use.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "typescript",
 "requirements": [
  "Node.js and npm",
  "An API key for a provider such as OpenAI, Anthropic, Google or xAI",
  "Optional: storage for suspend and resume and memory"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/mastra-ai-mastra/start-a-mastra-agent-project/",
 "md": "https://dedupedai.com/use-cases/mastra-ai-mastra/start-a-mastra-agent-project/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/mastra-ai-mastra--start-a-mastra-agent-project.json",
 "api_version": "v1"
}
