Main Menu
  • Tools
  • Developers
  • Topics
  • Discussions
  • News
  • Blogs
  • Builds
  • Contests
  • Compare
Create
    EveryDev.ai
    Sign inSubscribe
    Home
    Tools

    1,958+ AI tools

    • New
    • Trending
    • Featured
    • Compare
    Categories
    • Agents1038
    • Coding971
    • Infrastructure415
    • Marketing398
    • Design335
    • Projects313
    • Analytics299
    • Research290
    • Testing183
    • Integration167
    • Data163
    • Security156
    • MCP145
    • Learning135
    • Communication120
    • Extensions114
    • Prompts110
    • Commerce106
    • Voice102
    • DevOps84
    • Web71
    • Finance18
    1. Home
    2. Tools
    3. Mastra Code
    Mastra Code icon

    Mastra Code

    AI Coding Assistants

    Mastra Code is a terminal-based AI coding agent that connects to 70+ AI models and provides tools for reading, searching, editing, and executing code directly in your terminal.

    Visit Website

    At a Glance

    Pricing
    Free

    Free to install and use via npm. Bring your own API keys for AI providers.

    Engagement

    Available On

    Linux
    macOS
    Windows
    API
    SDK

    Resources

    WebsiteDocsGitHubllms.txt

    Topics

    AI Coding AssistantsCommand Line AssistantsAgent Frameworks

    Alternatives

    Pi Coding AgentMistral Vibe CLImini-SWE-agent
    Developer
    MastraSan Francisco, CAEst. 2024$13M raised

    Listed Feb 2026

    About Mastra Code

    Mastra Code is a terminal-based AI coding agent built on Mastra's Harness, Agent, and Memory primitives. It runs in your terminal, connects to 70+ AI models, and provides built-in tools for reading, searching, editing, and executing code. The tool supports multiple operational modes, persistent conversation threads, MCP server integration, and full programmatic extensibility via its createMastraCode() API.

    • Build, Plan, and Fast Modes: Switch between modes to match your workflow — Build for active coding, Plan for architecture analysis, and Fast for quick lookups with minimal latency.
    • 70+ AI Model Support: Connect to models from Anthropic, OpenAI, Google, and other providers; switch models mid-conversation using the /models slash command.
    • Built-in Coding Tools: File viewing, editing, searching, shell command execution, and web search are all available out of the box.
    • MCP Server Integration: Configure and connect to Model Context Protocol servers for extended tool capabilities within your project.
    • Persistent Thread Management: Project-scoped conversation threads are stored via LibSQL, preserving message history and token usage across sessions.
    • Observational Memory: Background observer and reflector models automatically summarize and reflect on long conversations to maintain context.
    • Custom Modes and Tools: Extend Mastra Code programmatically by defining custom modes, tools, subagents, and storage backends using the createMastraCode() factory function.
    • Permission Controls: Fine-grained per-category and per-tool approval policies let you control which operations require confirmation (read, edit, execute, MCP).
    • Slash Commands: Manage sessions, switch models, view token costs, authenticate with providers, and more using built-in / commands.
    • Remote Storage Support: Connect to remote LibSQL (Turso) or PostgreSQL databases for shared or cloud-backed thread persistence.
    • Embeddable API: Use createMastraCode() and MastraTUI to embed the agent in custom applications or build entirely new TUI experiences.

    To get started, install globally with npm install -g mastracode, navigate to your project directory, run mastracode, and set an API key for your preferred AI provider.

    Mastra Code - 1

    Community Discussions

    Be the first to start a conversation about Mastra Code

    Share your experience with Mastra Code, ask questions, or help others learn from your insights.

    Pricing

    FREE

    Open Source

    Free to install and use via npm. Bring your own API keys for AI providers.

    • Terminal-based AI coding agent
    • 70+ AI model support
    • Build, Plan, and Fast modes
    • File reading, editing, searching tools
    • Shell command execution

    Capabilities

    Key Features

    • Terminal-based AI coding agent
    • Supports 70+ AI models
    • Build, Plan, and Fast modes
    • File reading, editing, and searching tools
    • Shell command execution
    • Web search tool
    • MCP server integration
    • Project-scoped thread persistence
    • Observational memory with background summarization
    • Custom modes, tools, and subagents
    • Permission rules per tool category
    • Remote LibSQL and PostgreSQL storage
    • OAuth authentication for providers
    • Slash commands for session management
    • Embeddable via createMastraCode() API
    • Custom TUI via MastraTUI class
    • AST-based smart editing
    • Token usage tracking

    Integrations

    Anthropic Claude
    OpenAI
    Google Gemini
    LibSQL
    Turso
    PostgreSQL
    MCP servers
    Mastra Harness
    Mastra Agent
    Mastra Memory
    API Available
    View Docs

    Reviews & Ratings

    No ratings yet

    Be the first to rate Mastra Code and help others make informed decisions.

    Developer

    Mastra

    Mastra builds a TypeScript-native AI framework and cloud platform that helps developers prototype and productionize agents and workflows. The team ships a developer SDK, CLI, templates, and a cloud product with observability and tracing. The company focuses on developer ergonomics, unified provider access, and durable workflows for real-world AI applications.

    Founded 2024
    San Francisco, CA
    $13M raised
    20 employees

    Used by

    SoftBank
    Adobe
    PayPal
    Replit
    +18 more
    Read more about Mastra
    WebsiteGitHubX / Twitter
    2 tools in directory

    Similar Tools

    Pi Coding Agent icon

    Pi Coding Agent

    A minimal terminal coding harness that adapts to your workflows with TypeScript extensions, skills, prompt templates, and themes.

    Mistral Vibe CLI icon

    Mistral Vibe CLI

    Open-source command-line coding assistant powered by Devstral models for terminal-based agentic coding, file manipulation, and codebase exploration.

    mini-SWE-agent icon

    mini-SWE-agent

    100-line Python coding agent with CLI/TUI that fixes GitHub issues and automates repo tasks. Model-agnostic via LiteLLM, sandboxable (Docker/Podman/Bubblewrap), with an Inspector to browse trajectories.

    Browse all tools

    Related Topics

    AI Coding Assistants

    AI tools that help write, edit, and understand code with intelligent suggestions.

    367 tools

    Command Line Assistants

    AI-powered command-line assistants that help developers navigate, search, and execute terminal commands with intelligent suggestions and context awareness.

    112 tools

    Agent Frameworks

    Tools and platforms for building and deploying custom AI agents.

    181 tools
    Browse all topics
    Back to all tools
    Explore AI Tools
    • AI Coding Assistants
    • Agent Frameworks
    • MCP Servers
    • AI Prompt Tools
    • Vibe Coding Tools
    • AI Design Tools
    • AI Database Tools
    • AI Website Builders
    • AI Testing Tools
    • LLM Evaluations
    Follow Us
    • X / Twitter
    • LinkedIn
    • Reddit
    • Discord
    • Threads
    • Bluesky
    • Mastodon
    • YouTube
    • GitHub
    • Instagram
    Get Started
    • About
    • Editorial Standards
    • Corrections & Disclosures
    • Community Guidelines
    • Advertise
    • Contact Us
    • Newsletter
    • Submit a Tool
    • Start a Discussion
    • Write A Blog
    • Share A Build
    • Terms of Service
    • Privacy Policy
    Explore with AI
    • ChatGPT
    • Gemini
    • Claude
    • Grok
    • Perplexity
    Agent Experience
    • llms.txt
    Theme
    With AI, Everyone is a Dev. EveryDev.ai © 2026
    33views
    Discussions