claudian README

The project's README from github.com/YishenTu/claudian. As one markdown file: README.md.

Claudian

Claudian on Trendshift GitHub stars Obsidian downloads GitHub release License

Preview

An Obsidian plugin that embeds AI coding agents (Claude Code, Codex, Grok, Opencode, Pi, and more to come) in your vault. Your vault becomes the agent's working directory — file read/write, search, bash, and multi-step workflows all work out of the box. Visit claudian.md to learn more.

Features & Usage

Open the chat sidebar from the ribbon icon or command palette. Select text and use the shortcut for inline editing. Everything works like your familiar coding agent, Claude Code, Codex, Grok, Opencode, and Pi — talk to the agent, and it reads, writes, edits, and searches files in your vault.

Inline Edit — Select text or start at the cursor position + hotkey to edit directly in notes with word-level diff preview.

Slash Commands & Skills — Type / or $ for reusable prompt templates or Skills from user- and vault-level scopes.

@mention — Type @ to reference vault files, folders, and Collab member changes. Type # to reference Collab tickets.

Instruction Mode (/instruction) — Refined custom instructions added from the chat input.

MCP Servers — Connect external tools through each coding agent's native CLI-managed MCP configuration.

Tabs & Session Management — Use multiple tabs in single-panel mode or a persistent session manager beside the chat in dual-pane mode.

Collab Mode (Experimental) — Collaborate on shared projects with other Claudian users. Learn more.

Requirements

Installation

  1. Open Obsidian → Settings → Community plugins → Browse
  2. Search for "Claudian" and click Install
  3. Enable the plugin

Or install directly from the community plugin page.

Plugin size and Obsidian Sync

Despite considerable effort to reduce the bundle size, keeping it below 5 MB is no longer practical with the latest Claude Agent SDK. The Obsidian community plugin page may therefore display a large-plugin warning, and Obsidian's official Sync service cannot sync the main plugin file because it supports only files smaller than 5 MB.

If you use Obsidian Sync across multiple desktop devices, install and update Claudian separately on each device instead of relying on Sync to copy the plugin files.

From source (development)

  1. Clone this repository into your vault's plugins folder:

    cd /path/to/vault/.obsidian/plugins
    git clone https://github.com/YishenTu/claudian.git
    cd claudian
    
  2. Install dependencies and build:

    npm install
    npm run build
    
  3. Enable the plugin in Obsidian:

    • Settings → Community plugins → Enable "Claudian"

Development

# Watch mode
npm run dev

# Production build
npm run build

Privacy & Data Use

Troubleshooting

The following sections use Claude Code as an example.

Provider CLI not found

If Claudian cannot auto-detect a provider CLI, verify that the CLI is installed and available to GUI applications through PATH. Typical errors include spawn claude ENOENT and Claude CLI not found. This issue is common with Node version managers (nvm, fnm, volta).

Leave the CLI path setting empty first so Claudian can auto-detect the CLI. If auto-detection fails, find the executable path and set it in Settings → Advanced → Claude CLI path.

Platform Command Example Path
macOS/Linux which claude /Users/you/.volta/bin/claude
Windows (native) where.exe claude C:\Users\you\AppData\Local\Claude\claude.exe
Windows (npm) npm root -g {root}\@anthropic-ai\claude-code\cli-wrapper.cjs

Note: On Windows, avoid .cmd and .ps1 wrappers. Use claude.exe for native installs, or cli-wrapper.cjs for package-manager installs. cli.js is only a legacy fallback for older Claude Code npm packages.

Alternative: Add your Node.js bin directory to PATH in Settings → Environment → Custom variables.

npm CLI and Node.js not in the same directory

When using an npm-installed provider CLI, make sure its executable and Node.js are available from the same environment. Check their paths:

dirname $(which claude)
dirname $(which node)

If the paths differ, GUI apps like Obsidian may not find Node.js.

Either:

  1. Install the native binary (recommended).
  2. Add the Node.js path in Settings → Environment: PATH=/path/to/node/bin.

More help

For provider-specific installation and configuration guidance, refer to the provider documentation linked in the Requirements section. If you have a feature request or run into a bug, please submit a GitHub issue.

Architecture

src/
├── main.ts                      # Plugin entry point
├── app/                         # Application services, storage, and lazy Collab infrastructure
├── core/                        # Provider-neutral runtime, registry, and type contracts
│   ├── runtime/                 # ChatRuntime interface and approval types
│   ├── providers/               # Provider registry and workspace services
│   ├── auxiliary/               # Shared provider auxiliary services
│   ├── bootstrap/               # Plugin bootstrap wiring
│   ├── security/                # Approval utilities
│   └── ...                      # commands, prompt, storage, tools, types
├── providers/
│   ├── claude/                  # Claude SDK adaptor, prompt encoding, storage, MCP, plugins
│   ├── codex/                   # Codex app-server adaptor, JSON-RPC transport, JSONL history
│   ├── grok/                    # Grok Build ACP adaptor, native history, models, and tools
│   ├── opencode/                # Opencode adaptor
│   ├── pi/                      # Pi RPC adaptor, model discovery, JSONL history
│   └── acp/                     # Agent Client Protocol shared transport
├── features/
│   ├── chat/                    # Sidebar chat: tabs, controllers, renderers
│   ├── collab/                  # Collab sidebar, review, conflict, and access UI
│   ├── inline-edit/             # Inline edit modal and provider-backed edit services
│   └── settings/                # Settings shell with provider tabs
├── shared/                      # Reusable UI components and modals
├── i18n/                        # Internationalization (10 locales)
├── types/                       # Shared ambient types
├── utils/                       # Cross-cutting utilities
└── style/                       # Modular CSS

Contributing

Issues and focused pull requests are welcome. Issues are the preferred starting point: describe the problem, reproduction steps, and environment clearly so it can be investigated.

Before opening a pull request, please read the contribution guide. Pull requests must explain the problem, the proposed solution, why the approach is appropriate, and how the change was validated. Pull requests that add a new provider are not accepted; the guide explains this maintenance and product-quality boundary in detail.

Star History

Star History Chart

Sponsorship

Kimi (Moonshot AI)

Kimi (Moonshot AI)

Thanks to Kimi (Moonshot AI), our Open Source Friend, for supporting Claudian! With 2.8T parameters, native vision, and a 1-million-token context window, Kimi K3 delivers frontier performance across long-horizon coding, knowledge work, and reasoning.

New users receive bonus API credits equal to 10% of their first successful top-up. Use the discount link for the CN or Global platform. This offer ends September 30, 2026. Claudian receives no affiliate commission from these links.

Ke Holdings Inc. (BEIKE)

MOMA

Claudian is proudly sponsored by Ke Holdings Inc. (BEIKE) and the MOMA team. Their support helps Claudian continue to improve through ongoing development and maintenance.

Want to support Claudian or appear here? Contact me: [email protected].

License

Licensed under the MIT License.

claudian (YishenTu/claudian)

Searching Database…

15.7K ·GitHub
这是什么?Claudian 是一个 Obsidian 插件,可以把 AI 编程代理(Claude Code、Codex、Grok、Opencode、Pi)嵌入你的库中,让库成为代理的工作目录,用于读写文件、搜索以及执行 bash 命令。
它是独立应用,还是需要先打开 Obsidian?它是 Obsidian 插件,不是独立应用,运行在 Obsidian 桌面端内,并调用你已经安装好的外部编程代理命令行工具(CLI)。
如何安装 Claudian?在 Obsidian 的社区插件浏览页面搜索 'Claudian',点击安装,然后启用即可;也可以把仓库克隆到你的库的插件文件夹中,从源代码自行构建。
我需要先安装 Claude Code 或其他命令行工具吗?需要。至少要安装一个代理工具(Claude Code CLI、Codex CLI、Grok Build、OpenCode 或 Pi),还需要兼容的订阅或 API 服务商,例如 OpenRouter、Kimi、GLM 或 DeepSeek,并且 Obsidian 版本需为 v1.13.0 及以上。
安装时有哪些需要注意的坑吗?由于 Claude Agent SDK 的存在,插件包现在超过 5 MB,因此 Obsidian 官方同步服务无法同步它,你需要在每台设备上手动安装和更新。如果服务商的 CLI 不在 GUI 应用可识别的 PATH 中,Windows 上的 CLI 自动检测也可能失败。
Claudian 能在 Obsidian 手机版上使用,还是只能在电脑版使用?仅支持桌面端,包括 macOS、Linux 和 Windows。不支持手机端,此外协作模式还需要 Git。
使用 Claudian 时,我的库数据会被发送到哪里?你输入的内容、附加的文件、图片以及工具调用输出,会被发送到你所选的服务商(Anthropic、OpenAI、xAI,或 OpenCode/Pi 配置的后端);插件本身不进行任何遥测。
什么是协作模式?这是一项实验性功能,允许多名 Claudian 用户共同处理同一个共享项目。基于 Git 的项目数据和协调元数据通过本地网络在队友的设备之间直接同步,不经过任何 Claudian 云服务。
内联编辑(Inline Edit)有什么作用?选中文本或将光标置于某处,然后触发快捷键,即可让代理直接编辑你的笔记;在应用更改之前,会先显示逐词差异预览。
我能把 MCP 服务器连接到 Claudian 吗?可以。MCP 服务器需要通过各编程代理自身的 CLI 原生 MCP 配置进行设置,而不是通过 Claudian 中单独的设置项。
为什么维护者不接受添加新代理服务商的 PR?贡献指南明确将此作为维护和产品质量的边界,因此新的服务商集成不会以社区拉取请求的形式被接受。
Creator
YishenTu
Size
33 MB
Stars
15.7K
Age
10mo
Commits · 90 Days