feng661138k downloadsOpen your vault in a new terminal window or launch Claude Code, Codex CLI, or Gemini CLI directly from a terminal.
Open your Obsidian vault in a terminal, or launch Claude Code, Codex, Gemini CLI, and other coding agents inside it, directly from the command palette.
Git: commit and push and Git: pull directly from the vault root.In Obsidian, go to Settings → Community plugins → Browse, search for Open in Terminal, and click Install, then Enable. You can also install it from the plugin page by clicking Add to Obsidian.
| Command | What it does |
|---|---|
| Open in terminal | Opens your terminal at the working directory |
| Open in Claude Code | Runs claude |
| Open in Codex cli | Runs codex |
| Open in GitHub Copilot | Runs copilot |
| Open in Cursor cli | Runs agent |
| Open in Gemini cli | Runs gemini |
| Open in OpenCode | Runs opencode |
| Git: commit and push | Runs git add . && git commit -m "<default message>" && git push |
| Git: pull | Runs git pull |
Except for Open in terminal, all commands remain disabled until enabled in settings. The corresponding CLI tools must be installed on your system.
Terminal or iTerm on macOS, powershell or cmd.exe on Windows, or gnome-terminal or alacritty on Linux. Leave blank to use the platform default. Do not include command-line arguments.update) and toggle switches for Git commands..command script in a login shell; other terminal emulators must support opening .command files.-e flag work out of the box.The plugin never bypasses CLI tool confirmation prompts or permission checks. When passing a note path into an agent prompt, the agent may begin processing that note immediately upon launch.
This plugin is isDesktopOnly: true and needs two desktop capabilities that automated review may flag. Both are required for the product to work; they are scoped as follows.
child_process)Commands are started with Node spawn and shell: false. The executable is one of:
claude, codex, copilot, agent, gemini, or opencode;git probe (git rev-parse) used only to detect whether the vault is a Git repository.The working directory is the vault root, or — when enabled — the folder of the active note after resolving the path and confirming it still lies inside the vault. Paths that would escape the vault fall back to the vault root.
fs)On macOS and Windows the plugin writes a short-lived launch script (.command / .ps1, mode 0700) under a fresh directory in the OS temp folder, then deletes that directory after launch (or on failure). This is outside the vault because the system terminal APIs need a real script path; the Obsidian Vault API cannot substitute for it.
The plugin does not:
fs;See also Privacy below, and Obsidian’s Developer policies — Disclosures for vault-external file access.
This desktop-only plugin launches programs on your local machine: it opens your terminal emulator and executes the commands you configure. On macOS and Windows, it writes a temporary script outside the vault and deletes it after launch; on Windows, that script runs under a process-scoped execution policy without changing system-wide execution policies. Git: commit and push stages all files under the vault root before committing.
The plugin does not transmit data over the network. Network activity depends entirely on the commands and coding agents you choose to run.
Built by chenfeng. I also created File Ignore to keep non-note directories like node_modules out of Obsidian's index, and Command Reopen, a focused Mac utility that restores minimized windows with Cmd+Tab. If you find this plugin helpful, you can buy me a coffee.