Skip to content

M31A is an open-source, MIT-licensed agentic coding terminal built by Eshan Roy and powered by NVIDIA NIM models through an OpenAI-compatible runtime. It runs in your terminal, works directly in your workspace, and gives you precise control over what the agent is allowed to read, change, and run.

M31A is version 0.2.0 and requires Node.js 20 or newer.

What M31A does ​

  • Explores and edits code. The agent can list directories, read files, search with ripgrep, apply patches, write files, and run shell commands.
  • Remembers your workspace. Project instructions in M31A.md, session records, checkpoints, and context compression keep long-running work coherent.
  • Runs safely. Folder trust, four approval modes, a policy engine, macOS Seatbelt profiles, and container sandboxes constrain the agent's actions.
  • Extends cleanly. Model Context Protocol (MCP) servers, agent skills, hooks, extensions, an ACP bridge, a background hub, scheduled runs, and chat connectors can all be layered onto the core runtime.
  • Works interactively or headlessly. Use the Ink-based TUI for exploratory work or -p/--prompt with text, json, or stream-json output in scripts.

At a glance ​

bash
# Run without installing
npx m31a

# Install globally
npm install -g m31a

# Authenticate (or use /auth inside the app)
export NVIDIA_API_KEY="nvapi-..."
m31a

# Ask a one-shot question
m31a -p "Explain the architecture of this codebase"

How the project is organized ​

M31A is a TypeScript monorepo using npm workspaces:

PackageRole
@m31a/cliTerminal UI, CLI parsing, command palette, ACP server, workflows
@m31a/coreAgent loop, NVIDIA NIM client, tools, policies, and services
@m31a/genaiStructural model request and response types
@m31a/devtoolsIntegrated developer tools inspector
@m31a/test-utilsShared test utilities and test harness

See Architecture for the runtime flow, build pipeline, and directory layout.

Documentation map ​

  • Installation — install from npm, GitHub Releases, standalone binaries, or source.
  • Authentication — configure your NVIDIA NIM API key and custom providers.
  • Quickstart — your first session, from trust prompt to committed change.
  • Concepts — how the agent loop, context, tools, policies, sessions, and model resolution actually work.
  • Tutorials — hands-on projects: skills, hooks, MCP servers, extensions, worktrees, custom providers, and CI automation.
  • User guide — slash commands, keybindings, settings, tools, sessions, and headless mode.
  • Extending M31A — MCP, skills, hooks, extensions, ACP, hub, scheduling, and connectors.
  • Security — trust, approval modes, and sandbox profiles.
  • Reference — complete CLI, settings, and environment variable reference.
  • Contributing — build, test, and documentation workflows.

Next steps ​

  1. Install M31A.
  2. Set up authentication.
  3. Follow the quickstart.

Built with VitePress. Powered by NVIDIA NIM.