Keep the project decisions when you change models. Mr. Code is an open-source terminal coding agent for macOS, Linux, and Windows. Bring a hosted or local model, lock the requirements for your project, and pick up the work from a saved session.
Releases · User guide · Issues · MIT license
- Lock the blueprint.
/locksnapshots project requirements, design, and tasks. Coding and review get the same snapshot and project instructions. - Choose the model for the job. Use a tool-capable model for coding. Set a second model for
/reviewwhen you want an independent read-only check against the blueprint, Git diff, and recorded command results. - See what changed and what ran. Inspect the diff and exit codes, undo a direct file edit, or resume a local session after stopping a turn.
- Bring your tools. Discover existing skills and MCP servers, then choose what to activate or connect.
Release archives cover macOS, Linux, and Windows on arm64 and x64. The installers verify the published SHA-256 checksum and check that the executable starts before replacing it.
macOS and Linux · Requires curl, tar, and sha256sum or shasum.
installer=$(curl -fsSL https://raw.githubusercontent.com/CULTUREYES-stack/mr-code/main/scripts/install.sh) &&
sh -c "$installer"The default location is ~/.local/bin/mrcode. Follow the installer’s PATH instructions if mrcode is unavailable. Run mrcode update from outside Mr. Code. If an older version does not recognize that command, repeat the install command.
Windows · Run in PowerShell and close Mr. Code before updating.
$installer = Invoke-RestMethod 'https://raw.githubusercontent.com/CULTUREYES-stack/mr-code/main/scripts/install.ps1'
& ([ScriptBlock]::Create($installer))The default location is $HOME\.local\bin\mrcode.exe. Add its directory to your user PATH and open a new terminal if needed. Repeat the PowerShell command to update.
Run mrcode --version to verify the installed binary. The terminal footer shows newer stable releases and points to /update. Inside Mr. Code, /update checks immediately and shows the install step for your platform. Updates preserve saved sessions, provider settings, credentials, and project files. Set MRCODE_INSTALL_DIR for a custom directory or MRCODE_VERSION to install a particular release. You can inspect the installers in scripts before running them.
- Run
mrcodefrom your project directory and enter/model. - Choose OpenRouter, OpenAI, Ollama, or a custom OpenAI-compatible endpoint. OpenRouter opens its public catalog first and prompts for an API key when you select a model. Ollama uses its local catalog.
- Search by model name or ID, then select a model with streaming tool-call support. The picker shows input and output prices per million tokens when the provider reports them.
- Use
/rememberto store a key in your operating system credential store. The project keeps its selected provider and model across launches.
Mr. Code is free to use. Hosted model providers bill usage separately. Model requests send relevant project context and conversation to the selected endpoint. Choose a local Ollama model if you want that traffic to stay on your machine.
/lock
Inspect this project and implement the next task in the blueprint.
/diff
/proof
/model review YOUR-REVIEW-MODEL-ID
/review
/lock snapshots REQUIREMENTS.md, DESIGN.md, and TASKS.md. For a single file, use /lock path/to/blueprint.md. /review uses the configured review model on the active provider. Use /model review default to use your coding model for both. Switching endpoints clears the review selection.
Mr. Code opens in a full-screen terminal view and restores your shell when you exit. Type / to browse commands. Use PgUp/PgDn to scroll, Ctrl+L to redraw and jump to the latest output, and Ctrl+O to expand tool output. Esc cancels a turn. Use /quit to exit, or press Ctrl+C again if cancellation stalls. Relaunch with mrcode -c to resume, or pass --inline for native scrollback.
| Setting | Purpose |
|---|---|
MR_CODE_BASE_URL |
Chat Completions API base URL. Defaults to OpenAI for a new project. |
MR_CODE_MODEL |
Model ID to use at startup. |
MR_CODE_API_KEY |
API key for the configured endpoint. OPENROUTER_API_KEY also works with OpenRouter. |
OPENAI_BASE_URL, OPENAI_MODEL, OPENAI_API_KEY |
OpenAI-compatible environment fallbacks. |
Credentials can come from the environment or the OS credential store. Linux credential storage requires secret-tool and an active Secret Service. Windows uses user-scoped DPAPI and macOS uses Keychain. /status shows the active connection, model choices, usage reported by the provider, and version.
File writes and shell commands ask for approval by default. Approved host commands run with your user account's permissions. On macOS or Linux, --sandbox-image=IMAGE runs shell commands in an existing local Docker image with the project mounted and networking disabled. --trusted enables direct project edits and removes prompts for sandboxed shell commands for that launch. See the user guide for file recovery, handoffs, skills, and MCP.
Created and maintained by Mohamed Al Hajeri - CULTUREYES. Released under the MIT License. If it helps you ship, star the repository. For bugs, include your version, operating system, provider type, and steps to reproduce in a GitHub issue. Omit API keys, source you cannot share, and private tool output.