Use Github Copilot in the Obsidian editor. This plugin is a bridge between the Obsidian editor and the Github Copilot service.
- 🤖 Get inline suggestion as you type using Github Copilot service
- 💬 Use the Github Copilot Chat service to ask questions about your notes
- A Github Copilot subscription (https://copilot.github.com/)
- Network connection to send and receive data from the Github Copilot service
- Install the plugin via the Obsidian community plugins browser.
- Activate the plugin in the settings. Make sure to configure any necessary options.
- Node.js 18 or later
- Once installed, go to the plugin settings and enter the path to the Node +18 binary. You can find it by running
which node
in your terminal. - Either
- A modal will appear asking you to sign in to Copilot. Follow the instructions to sign in.
- Or, you will receive a notice saying that Copilot is ready to use. (This will happen if you have already signed in to Copilot in the past in IDEs)
Note
If you install the plugin by cloning it or downloading the release files from Github, you will need to name the plugin folder github-copilot
for the plugin to work.
- Open a note in Obsidian.
- Write something in the editor.
- After a small pause, Copilot will suggest completions for your text.
- Press
Tab
to accept a suggestion orEsc
to dismiss it.
- Use Github Copilot in the Obsidian editor
- Configure the suggestion generation delay
- Configure your bindings to accept, dismiss, trigger or partially accept suggestions
- Configure if you want to see automatic suggestions or only trigger them manually
- Configure if you want to see suggestion only in code blocks or in the whole note
- Exclude folders and files from the suggestion generation
- If you installed Obsidian with Flatpak, you might need to use NVM to handle Node.js versions as the default binary path is not accessible in the Flatpak sandbox. See this issue for more information.
- "Tab" completion can be buggy in some cases (e.g. in bullet points in LateX Math mode for example). It depends on plugin priority over the keybindings. See this issue for more information.
example-chat.mov
- Once installed, you can find the Github Copilot Chat in the right sidebar of Obsidian.
- It should ask you to sign in to Github Copilot. Follow the instructions to sign in.
- Open the Github Copilot Chat in the right sidebar.
- Choose a model to use (e.g.
gpt-4
orclaude 3.7
). - Ask a question and like a note like you would do in the obsidian editor (e.g.
Can you summarize this note [[my note]]?
).
- Use Github Copilot Chat in the Obsidian editor
- Choose the model to use between all models available in the Github Copilot Chat service
- Implement a chat history
- Link notes with [[double bracket syntax]] in the chat
- Configure a custom prompt as a system message in the settings
- Let the user choose the default behavior of the enter key (send message or add a new line)
- Stream the response from the API
- Waiting for requestUrl to implement Streaming : https://forum.obsidian.md/t/support-streaming-the-request-and-requesturl-response-body/87381