{"id":50843013,"url":"https://github.com/matlab/terminal-in-matlab","last_synced_at":"2026-06-14T07:35:51.104Z","repository":{"id":363614384,"uuid":"1251081164","full_name":"matlab/terminal-in-matlab","owner":"matlab","description":"Access system terminal from MATLAB ","archived":false,"fork":false,"pushed_at":"2026-06-09T16:38:46.000Z","size":1539,"stargazers_count":22,"open_issues_count":5,"forks_count":2,"subscribers_count":5,"default_branch":"main","last_synced_at":"2026-06-14T07:35:45.845Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"MATLAB","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/matlab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-27T08:18:34.000Z","updated_at":"2026-06-12T16:14:46.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/matlab/terminal-in-matlab","commit_stats":null,"previous_names":["matlab/terminal-in-matlab"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/matlab/terminal-in-matlab","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matlab%2Fterminal-in-matlab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matlab%2Fterminal-in-matlab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matlab%2Fterminal-in-matlab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matlab%2Fterminal-in-matlab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matlab","download_url":"https://codeload.github.com/matlab/terminal-in-matlab/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matlab%2Fterminal-in-matlab/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34313515,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-14T02:00:07.365Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-14T07:35:47.196Z","updated_at":"2026-06-14T07:35:51.099Z","avatar_url":"https://github.com/matlab.png","language":"MATLAB","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terminal in MATLAB\n\n[![Open in MATLAB Online](https://www.mathworks.com/images/responsive/global/open-in-matlab-online.svg)](https://matlab.mathworks.com/open/github/v1?repo=matlab/terminal-in-matlab\u0026file=toolbox/doc/Install.m) \u0026nbsp; [![Download Latest](https://img.shields.io/github/v/release/matlab/terminal-in-matlab?label=Download%20Latest\u0026logo=github)](../../releases/latest/download/Terminal.mltbx) \u0026nbsp; ![GitHub Downloads](https://img.shields.io/github/downloads/matlab/terminal-in-matlab/total?label=Downloads\u0026logo=github\u0026color=blue)\n\n\nRun a terminal in MATLAB®. Use the terminal to run command-line interface tools such AI coding agents, `git`, and `docker` without leaving the MATLAB desktop.\n\n![Terminal in MATLAB](images/terminal.png)\n\n## Table of Contents\n\n- [Get Started](#get-started)\n- [Set Up AI Agents](#set-up-ai-agents)\n- [Use Terminal in Simulink](#use-terminal-in-simulink)\n- [Additional Terminal Commands](#additional-terminal-commands)\n- [Uninstall](#uninstall)\n- [Licensing](#licensing)\n- [Contact Support](#contact-support)\n\n## Get Started\n\n- You require MATLAB R2024b or later.\n- Download [MATLAB Terminal (GitHub)](../../releases/latest/download/Terminal.mltbx) and install the toolbox in MATLAB:\n  ```matlab\n  matlab.addons.install('Terminal.mltbx')\n  ```\n- Open a terminal in MATLAB:\n  ```matlab\n  % Open a docked terminal\n  t = terminal();\n  ```\n\n### Set Up AI Agents\n\nTo use AI agents in the MATLAB terminal, you can use a wizard which sets up for you:\n\n- an AI agent such as Claude Code, Gemini, or Amp.\n- the [MATLAB MCP Core Server](https://github.com/matlab/matlab-mcp-core-server)\n- skills to help your AI agent use MATLAB and Simulink, from [MATLAB Agentic Toolkit (GitHub)](https://github.com/matlab/matlab-agentic-toolkit) and [Simulink Agentic Toolkit (GitHub)](https://github.com/matlab/simulink-agentic-toolkit)\n\nRun the wizard:\n\n```matlab\n% Interactive wizard (first run)\nt = terminal(Agentic=true);\n```\n\nYou can also programmatically specify your agent and toolkits.\n\n```\nt = terminal(Agent=\"claude\");\nt = terminal(Agent=\"gemini\", Toolkits=[\"matlab\",\"simulink\"]);\n```\n\nTo change your options later on, run `terminal.resetAgentOptions` and re-run interactive wizard.\n\nFor more information about using the AI setup process, see [Using the Terminal AI Setup (GitHub)](/docs/terminal-ai-setup.md).\n\n## Use Terminal in Simulink\n\nDock a terminal directly into the Simulink® editor as a right-side panel. This gives you command-line access alongside your model without switching windows.\n\n![Terminal docked in the Simulink editor](images/simulink-terminal.png)\n\n```matlab\n% Dock terminal in the most recently active Simulink editor\nt = terminal(Place=\"simulink\");\n\n% Target a specific model by name\nt = terminal(Model=\"myController\");\n\n% Customize the panel title\nt = terminal(Place=\"simulink\", Name=\"Build\");\n```\n\nRequirements:\n- Simulink must be installed and a model must be open before running the command.\n- The terminal panel appears in the right dock of the Simulink editor.\n\n## Additional Terminal Commands\n\nYou can use these additional commands with your terminal.\n\n| Description                    | Command                                                                                           |\n| ------------------------------ | ------------------------------------------------------------------------------------------------- |\n| Copy                           | `Ctrl` + `Shift` + `C`                                                                            |\n| Paste                          | `Ctrl` + `Shift` + `V`                                                                            |\n| Update terminal                | terminal.update()                                                                                 |\n| Uninstall terminal             | matlab.addons.uninstall('Terminal')                                                               |\n| Open with a custom title       | `t = terminal(Name=\"Build\");`                                                                     |\n| Open in a floating window      | `t = terminal(WindowStyle=\"normal\");`                                                             |\n| Open with a specific shell     | Linux/macOS: `t = terminal(Shell=\"zsh\");`\u003cbr\u003e\u003cbr\u003eWindows: `t = terminal(Shell=\"powershell.exe\");` |\n| Dock in Simulink editor        | `t = terminal(Place=\"simulink\");`                                                                 |\n| Dock in a specific model       | `t = terminal(Model=\"myModel\");`                                                                  |\n| Query where terminal is docked | `t.Place`                                                                                         |\n| Customize terminal color theme | For instructions, see [Customize Terminal Theme (GitHub)](/docs/customize-terminal-theme.md)      |\n| List all running terminals     | `terminal.list()`                                                                                 |\n| Close all running terminals    | `terminal.closeAll()`                                                                             |\n| Close a single terminal        | `delete(t);` or `exit`                                                                            |\n| Query the shell in use         | `t.Shell`                                                                                         |\n| Check the installed version    | `terminal.version()`                                                                              |\n\n## Uninstall\n\nTo remove Terminal and all artifacts it created:\n\n```matlab\n% 1. Uninstall the toolbox\nmatlab.addons.uninstall('Terminal')\n\n% 2. Remove saved preferences\nif ispref('terminal'), rmpref('terminal'); end\n\n% 3. Remove downloaded agentic toolkits (if you used Agentic=true)\nif ispc, home = getenv('USERPROFILE'); else, home = getenv('HOME'); end\nrmdir(fullfile(home, '.matlab', 'agentic-toolkits'), 's')\n```\n\n## Licensing\n\nThe license is available in the [LICENSE.md](LICENSE.md) file in this GitHub repository.\n\n## Contact Support\n\nMathWorks encourages you to use this repository and provide feedback. To request technical support or submit an enhancement request, [create a GitHub issue](https://github.com/matlab/terminal-in-matlab/issues) or contact [MathWorks Technical Support](https://www.mathworks.com/support/contact_us.html).\n\n---\n\nCopyright 2026 The MathWorks, Inc.\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatlab%2Fterminal-in-matlab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatlab%2Fterminal-in-matlab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatlab%2Fterminal-in-matlab/lists"}