chenfeng40k 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, straight from the command palette.
Install in Obsidian · Plugin page · Changelog
Your vault is a folder of Markdown files, which is exactly what coding agents and Git work best with. Getting there normally means opening a terminal, finding the vault path and typing cd. This plugin turns that into one command, and it can hand the note you are looking at to the agent.
Git: commit and push and Git: pull run from the vault root.Cmd/Ctrl+P and run Open in terminal.If this saves you a few
cds a day, a ⭐ on GitHub is the easiest way to help other Obsidian users find it.
Community plugins (recommended) In Obsidian, open Settings → Community plugins → Browse, search for Open in Terminal, click Install, then Enable. Or open the plugin page and click Add to Obsidian.
Manual
main.js and manifest.json from the latest release.<your vault>/.obsidian/plugins/open-in-terminal/.Beta versions (BRAT)
Install BRAT, choose Add beta plugin, and enter Feng6611/Obsidian-open-in-Teminal.
Requires Obsidian 1.5.0 or later, desktop only. Agent and Git commands need the matching CLI (claude, codex, git, …) installed on your system.
| 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, every command stays off until you enable it in settings.
Terminal or iTerm on macOS, powershell or cmd.exe on Windows, gnome-terminal or alacritty on Linux. Leave blank for the platform default. Do not include command-line arguments.update by default) and toggles for the Git commands..command script in a login shell; other terminal emulators must be able to open .command files.-e flag work out of the box.I don't see "Open in Claude Code" in the command palette. Agent and Git commands are off by default. Turn them on in Settings → Open in Terminal.
The agent command opens a terminal but nothing runs.
The CLI must be installed and on your login shell's PATH. Run claude --version (or the matching command) in a normal terminal first.
Does the plugin send my notes anywhere? No. The plugin makes no network requests of its own. Only an optional note path, never note contents, can be passed to an agent prompt. Whatever the agent or CLI does after launch is up to that tool.
Does it skip the agent's permission prompts? No. The plugin never bypasses CLI confirmation prompts or permission checks.
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 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 runs 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 policies. Git: commit and push stages all files under the vault root before committing.
Open in Terminal is free and MIT-licensed. If it's part of your daily workflow:
Built by chenfeng.
node_modules, build output and other non-note folders out of Obsidian's index.