Opencodian is an Obsidian plugin that embeds OpenCode as a sidebar chat interface. By treating your Obsidian vault as the working directory, it provides full agentic capabilities, including file reading/writing, bash command execution, and complex multi-step workflows.
Note: This project is in early, active development. Bugs are to be expected. Issues and Pull Requests are highly welcome!
Before using Opencodian, you must have OpenCode installed on your system. Follow the OpenCode installation guide to set it up.
- Embedded AI Agent: Integrate OpenCode directly into your Obsidian sidebar.
- Vault Context: The agent operates with your vault as its working directory.
- Agentic Capabilities: Supports file operations, terminal commands, and autonomous workflows.
- Custom system prompts
- MCP server integration
- Subscription-aware model selection
- Cross-conversation memory
- Download the latest release from the Releases page.
- Navigate to your Obsidian vault's plugin directory:
<YourVaultPath>/.obsidian/plugins/. - Create a new folder named
opencodian. - Extract the downloaded files (
main.js,manifest.json,styles.css) into this new folder. - Restart Obsidian or reload plugins.
- Enable "Opencodian" in Settings > Community plugins.
- Clone this repository.
- Install dependencies:
npm install
- Build the plugin:
npm run build
- Copy
main.js,manifest.json, andstyles.cssto your vault's plugin folder:<YourVaultPath>/.obsidian/plugins/opencodian/. - Enable the plugin in Obsidian settings.
- Build:
npm run build - Dev Mode:
npm run dev - Lint:
npm run lint
Special thanks to: