![obsidian-chat-cbt-plugin](/statics/github-mark.png)
obsidian-chat-cbt-plugin
AI-powered journaling plugin for your Obsidian notes, inspired by cognitive behavioral therapy
Stars: 191
![screenshot](/screenshots_githubs/clairefro-obsidian-chat-cbt-plugin.jpg)
ChatCBT is an AI-powered journaling assistant for Obsidian, inspired by cognitive behavioral therapy (CBT). It helps users reframe negative thoughts and rewire reactions to distressful situations. The tool provides kind and objective responses to uncover negative thinking patterns, store conversations privately, and summarize reframed thoughts. Users can choose between a cloud-based AI service (OpenAI) or a local and private service (Ollama) for handling data. ChatCBT is not a replacement for therapy but serves as a journaling assistant to help users gain perspective on their problems.
README:
An AI-powered journaling assistant for Obsidian, inspired by cognitive behavioral therapy (CBT).
ChatCBT is a journaling assistant that prods you to reframe negative thoughts and rewire your reactions to distressful situations (*disclaimer).
- Available any time of day or night
- Get kind and objective responses to help yourself uncover negative thinking patterns and see situations from other angles to help you move forward
- Conversations are stored privately in local files on your computer
- Automatically summarize your reframed thoughts in a table to inspire affirmations.
- Choose how your data is handled: use either a cloud-based AI service (OpenAI), or a 100% local and private service (Ollama).
- Less than two cents per journal session if using OpenAI, or FREE if using Ollama
You can keep your local conversations and affirmations as a diary, or even share them with a therapist.
To get started using ChatCBT, you need to configure an AI platform connection from the ChatCBT plugin settings menu.
You have two options:
- OpenAI - a paid cloud service
- Ollama - a free local service
OpenAI is recommended for conversation quality and speed, with the cavaet that it is a paid service, and that your messages are sent to OpenAI. See OpenAI's data privacy policy.
ChatCBT defaults to the following models for each platform mode. You can manually override the model in the ChatCBT settings. See available OpenAI models (note that some are more costly than others) and Ollama models.
Platform | Default model | Cost | Hosting | Speed | Quality |
---|---|---|---|---|---|
OpenAI (recommended) | gpt-40-mini |
Paid (cheap) | Cloud | Fast ⚡ | Excellent |
Ollama | mistral |
Free | Local (private) | OK | Great |
OpenAI provides cloud based AI solutions, including the models that power ChatGPT.
While use of OpenAI costs money, it is cheap (as of Mar 2024). Chat sessions with ChatCBT cost less than a few cents.
To use OpenAI with ChatCBT:
- Create an OpenAI account
- Add a payment method to your account, and add a small credit (ex: $10 = roughly 500 ChatCBT sessions!)
- Generate an API Key here and copy it to your clipboard
- Set your OpenAI API Key in ChatCBT plugin settings
- Ensure "Ollama mode" is disabled in ChatCBT plugin settings
Treat your OpenAI API Keys like a password - do not share this publicly. For your safety, your OpenAI API key is encrypted when saving settings.
Note: With the OpenAI option enabled, your messages will be sent to OpenAI. See OpenAI's data privacy policy. To minimize chances of your messages being associated with you personally, I crafted the prompt to respond to a "fictional client" such that it looks like you are creating fake scenarios. As you can guess, this is not foolproof. Try to stick to your emotions, and avoid disclosing any sensitive personal info like real names of people or your home address.
If you prefer to use a different OpenAI model, you can specify in the plugin settings.
Ollama is a client that allows you to easily run powerful open source LLM models locally on your machine for free.
Requires Ollama v0.1.24 or higher
System requirements
- Available for:
- MacOS Big Sur or later
- Linux
- (Windows coming soon, check their site)
- 4.5GB of storage
- Ollama: 500 MB
- Mistral model: 4GB
- At least 8GB of RAM, ideally
- download ollama (Get Ollama v0.1.24 or higher)
- download
mistral
model: in terminal, runollama pull mistral
- Start local server: in terminal, run
OLLAMA_ORIGINS="*" OLLAMA_HOST="0.0.0.0:11434" ollama serve
- Ensure "Ollama mode" is enabled in ChatCBT settings
This will start a local server that hosts your Ollama instance locally on your computer from port 11434
. You can change the port if you like by editing the OLLAMA_HOST
property in step 3 - just be sure to also update the Ollama URL
in the ChatCBT plugin settings too. The OLLAMA_ORIGINS='*'
allows Obsidian to talk to Ollama.
If you prefer to use a different Ollama model, you can specify in the plugin settings.
- Start a new note
- Type what's bothering you
- Run "Chat" from ChatCBT
- Chat with ChatGPT by adding your responses at the bottom of the file
- Keep chatting to start reframing your negative thoughts
- Once you are ready to sum up your conversation, run "Summarize" to create a table outlining your reframed thoughts
You can run the "Chat" and "Summarize" commands from the left ribbon menu or the command pallette.
Ribbon menu
Command pallete (cmd
+ p
> search "chat...")
You can install and enable ChatCBT in developer mode via these steps:
- In Obsidian, make sure you have enabled Community Plugins
- In your terminal, navigate to the Obsidian vault (directory) on your computer where you'd like to use ChatCBT
cd .obsidian
-
cd plugins
(ifplugins
directory doesn't exist, create one:mkdir plugins
, thencd plugins
) git clone [email protected]:clairefro/obsidian-chat-cbt-plugin.git
- Install dependences:
npm i
- Run plugin
npm run dev
- Navigate back to Obsidian settings, add ChatCBT plugin and enable it
- Follow setup instructions below
ChatCBT is not a replacement for actual therapy or human interaction. Instead, ChatCBT should be thought of as a journaling assistant, similar to an interactive worksheet. It is a bot that responds with objective questions to your writing help you get out of your head and see your problems from other angles.
While the bot draws inspiration from general cognitive-behavioral therapy methods, it has not undergone review or approval by licensed therapists. Though I have personally found ChatCBT useful in managing negative thoughts, it's important to note that this bot was built by someone without domain expertise in pyschology. Also note that AI generates unpredictable responses. You are responsible for deciding whether or not this tool is useful for you. Conisder seeking help from a professional therapist.
You can see the prompts that the bot uses to generate responses here: chat and summarize.
I'm happy to hear about any issues you encounter with the bot in the Issues tab, or through a DM to @clairefroe
on Twitter/X.
For Tasks:
Click tags to check more tools for each tasksFor Jobs:
Alternative AI tools for obsidian-chat-cbt-plugin
Similar Open Source Tools
![obsidian-chat-cbt-plugin Screenshot](/screenshots_githubs/clairefro-obsidian-chat-cbt-plugin.jpg)
obsidian-chat-cbt-plugin
ChatCBT is an AI-powered journaling assistant for Obsidian, inspired by cognitive behavioral therapy (CBT). It helps users reframe negative thoughts and rewire reactions to distressful situations. The tool provides kind and objective responses to uncover negative thinking patterns, store conversations privately, and summarize reframed thoughts. Users can choose between a cloud-based AI service (OpenAI) or a local and private service (Ollama) for handling data. ChatCBT is not a replacement for therapy but serves as a journaling assistant to help users gain perspective on their problems.
![vanna Screenshot](/screenshots_githubs/vanna-ai-vanna.jpg)
vanna
Vanna is an open-source Python framework for SQL generation and related functionality. It uses Retrieval-Augmented Generation (RAG) to train a model on your data, which can then be used to ask questions and get back SQL queries. Vanna is designed to be portable across different LLMs and vector databases, and it supports any SQL database. It is also secure and private, as your database contents are never sent to the LLM or the vector database.
![SalesGPT Screenshot](/screenshots_githubs/filip-michalsky-SalesGPT.jpg)
SalesGPT
SalesGPT is an open-source AI agent designed for sales, utilizing context-awareness and LLMs to work across various communication channels like voice, email, and texting. It aims to enhance sales conversations by understanding the stage of the conversation and providing tools like product knowledge base to reduce errors. The agent can autonomously generate payment links, handle objections, and close sales. It also offers features like automated email communication, meeting scheduling, and integration with various LLMs for customization. SalesGPT is optimized for low latency in voice channels and ensures human supervision where necessary. The tool provides enterprise-grade security and supports LangSmith tracing for monitoring and evaluation of intelligent agents built on LLM frameworks.
![langdrive Screenshot](/screenshots_githubs/addy-ai-langdrive.jpg)
langdrive
LangDrive is an open-source AI library that simplifies training, deploying, and querying open-source large language models (LLMs) using private data. It supports data ingestion, fine-tuning, and deployment via a command-line interface, YAML file, or API, with a quick, easy setup. Users can build AI applications such as question/answering systems, chatbots, AI agents, and content generators. The library provides features like data connectors for ingestion, fine-tuning of LLMs, deployment to Hugging Face hub, inference querying, data utilities for CRUD operations, and APIs for model access. LangDrive is designed to streamline the process of working with LLMs and making AI development more accessible.
![pathway Screenshot](/screenshots_githubs/pathwaycom-pathway.jpg)
pathway
Pathway is a Python data processing framework for analytics and AI pipelines over data streams. It's the ideal solution for real-time processing use cases like streaming ETL or RAG pipelines for unstructured data. Pathway comes with an **easy-to-use Python API** , allowing you to seamlessly integrate your favorite Python ML libraries. Pathway code is versatile and robust: **you can use it in both development and production environments, handling both batch and streaming data effectively**. The same code can be used for local development, CI/CD tests, running batch jobs, handling stream replays, and processing data streams. Pathway is powered by a **scalable Rust engine** based on Differential Dataflow and performs incremental computation. Your Pathway code, despite being written in Python, is run by the Rust engine, enabling multithreading, multiprocessing, and distributed computations. All the pipeline is kept in memory and can be easily deployed with **Docker and Kubernetes**. You can install Pathway with pip: `pip install -U pathway` For any questions, you will find the community and team behind the project on Discord.
![CyberScraper-2077 Screenshot](/screenshots_githubs/itsOwen-CyberScraper-2077.jpg)
CyberScraper-2077
CyberScraper 2077 is an advanced web scraping tool powered by AI, designed to extract data from websites with precision and style. It offers a user-friendly interface, supports multiple data export formats, operates in stealth mode to avoid detection, and promises lightning-fast scraping. The tool respects ethical scraping practices, including robots.txt and site policies. With upcoming features like proxy support and page navigation, CyberScraper 2077 is a futuristic solution for data extraction in the digital realm.
![promptflow Screenshot](/screenshots_githubs/microsoft-promptflow.jpg)
promptflow
**Prompt flow** is a suite of development tools designed to streamline the end-to-end development cycle of LLM-based AI applications, from ideation, prototyping, testing, evaluation to production deployment and monitoring. It makes prompt engineering much easier and enables you to build LLM apps with production quality.
![civitai Screenshot](/screenshots_githubs/civitai-civitai.jpg)
civitai
Civitai is a platform where people can share their stable diffusion models (textual inversions, hypernetworks, aesthetic gradients, VAEs, and any other crazy stuff people do to customize their AI generations), collaborate with others to improve them, and learn from each other's work. The platform allows users to create an account, upload their models, and browse models that have been shared by others. Users can also leave comments and feedback on each other's models to facilitate collaboration and knowledge sharing.
![Kohaku-NAI Screenshot](/screenshots_githubs/KohakuBlueleaf-Kohaku-NAI.jpg)
Kohaku-NAI
Kohaku-NAI is a simple Novel-AI client with utilities like a generation server, saving images automatically, account pool, and an auth system. It also includes a standalone client, a DC bot based on the generation server, and a stable-diffusion-webui extension. Users can use it to generate images with NAI API within sd-webui, as a standalone client, gen server, or DC bot. The project aims to add features like QoS system, better client, random prompts, and fetch account info in the future.
![open-source-slack-ai Screenshot](/screenshots_githubs/meetbryce-open-source-slack-ai.jpg)
open-source-slack-ai
This repository provides a ready-to-run basic Slack AI solution that allows users to summarize threads and channels using OpenAI. Users can generate thread summaries, channel overviews, channel summaries since a specific time, and full channel summaries. The tool is powered by GPT-3.5-Turbo and an ensemble of NLP models. It requires Python 3.8 or higher, an OpenAI API key, Slack App with associated API tokens, Poetry package manager, and ngrok for local development. Users can customize channel and thread summaries, run tests with coverage using pytest, and contribute to the project for future enhancements.
![crawlee-python Screenshot](/screenshots_githubs/apify-crawlee-python.jpg)
crawlee-python
Crawlee-python is a web scraping and browser automation library that covers crawling and scraping end-to-end, helping users build reliable scrapers fast. It allows users to crawl the web for links, scrape data, and store it in machine-readable formats without worrying about technical details. With rich configuration options, users can customize almost any aspect of Crawlee to suit their project's needs.
![azure-search-openai-javascript Screenshot](/screenshots_githubs/Azure-Samples-azure-search-openai-javascript.jpg)
azure-search-openai-javascript
This sample demonstrates a few approaches for creating ChatGPT-like experiences over your own data using the Retrieval Augmented Generation pattern. It uses Azure OpenAI Service to access the ChatGPT model (gpt-35-turbo), and Azure AI Search for data indexing and retrieval.
![tribe Screenshot](/screenshots_githubs/StreetLamb-tribe.jpg)
tribe
Tribe AI is a low code tool designed to rapidly build and coordinate multi-agent teams. It leverages the langgraph framework to customize and coordinate teams of agents, allowing tasks to be split among agents with different strengths for faster and better problem-solving. The tool supports persistent conversations, observability, tool calling, human-in-the-loop functionality, easy deployment with Docker, and multi-tenancy for managing multiple users and teams.
![litlytics Screenshot](/screenshots_githubs/yamalight-litlytics.jpg)
litlytics
LitLytics is an affordable analytics platform leveraging LLMs for automated data analysis. It simplifies analytics for teams without data scientists, generates custom pipelines, and allows customization. Cost-efficient with low data processing costs. Scalable and flexible, works with CSV, PDF, and plain text data formats.
![deepeval Screenshot](/screenshots_githubs/confident-ai-deepeval.jpg)
deepeval
DeepEval is a simple-to-use, open-source LLM evaluation framework specialized for unit testing LLM outputs. It incorporates various metrics such as G-Eval, hallucination, answer relevancy, RAGAS, etc., and runs locally on your machine for evaluation. It provides a wide range of ready-to-use evaluation metrics, allows for creating custom metrics, integrates with any CI/CD environment, and enables benchmarking LLMs on popular benchmarks. DeepEval is designed for evaluating RAG and fine-tuning applications, helping users optimize hyperparameters, prevent prompt drifting, and transition from OpenAI to hosting their own Llama2 with confidence.
![classifai Screenshot](/screenshots_githubs/10up-classifai.jpg)
classifai
Supercharge WordPress Content Workflows and Engagement with Artificial Intelligence. Tap into leading cloud-based services like OpenAI, Microsoft Azure AI, Google Gemini and IBM Watson to augment your WordPress-powered websites. Publish content faster while improving SEO performance and increasing audience engagement. ClassifAI integrates Artificial Intelligence and Machine Learning technologies to lighten your workload and eliminate tedious tasks, giving you more time to create original content that matters.
For similar tasks
![obsidian-chat-cbt-plugin Screenshot](/screenshots_githubs/clairefro-obsidian-chat-cbt-plugin.jpg)
obsidian-chat-cbt-plugin
ChatCBT is an AI-powered journaling assistant for Obsidian, inspired by cognitive behavioral therapy (CBT). It helps users reframe negative thoughts and rewire reactions to distressful situations. The tool provides kind and objective responses to uncover negative thinking patterns, store conversations privately, and summarize reframed thoughts. Users can choose between a cloud-based AI service (OpenAI) or a local and private service (Ollama) for handling data. ChatCBT is not a replacement for therapy but serves as a journaling assistant to help users gain perspective on their problems.
![GeminiChatUp Screenshot](/screenshots_githubs/loo-y-GeminiChatUp.jpg)
GeminiChatUp
Gemini ChatUp is a chat application utilizing the Google GeminiPro API Key. It supports responsive layout and can store multiple sets of conversations with customizable parameters for each set. Users can log in with a test account or provide their own API Key to deploy the feature. The application also offers user authentication through Edge config in Vercel, allowing users to add usernames and passwords in JSON format. Local deployment is possible by installing dependencies, setting up environment variables, and running the application locally.
For similar jobs
![EmoLLM Screenshot](/screenshots_githubs/SmartFlowAI-EmoLLM.jpg)
EmoLLM
EmoLLM is a series of large-scale psychological health counseling models that can support **understanding-supporting-helping users** in the psychological health counseling chain, which is fine-tuned from `LLM` instructions. Welcome everyone to star~⭐⭐. The currently open source `LLM` fine-tuning configurations are as follows:
![MindChat Screenshot](/screenshots_githubs/X-D-Lab-MindChat.jpg)
MindChat
MindChat is a psychological large language model designed to help individuals relieve psychological stress and solve mental confusion, ultimately improving mental health. It aims to provide a relaxed and open conversation environment for users to build trust and understanding. MindChat offers privacy, warmth, safety, timely, and convenient conversation settings to help users overcome difficulties and challenges, achieve self-growth, and development. The tool is suitable for both work and personal life scenarios, providing comprehensive psychological support and therapeutic assistance to users while strictly protecting user privacy. It combines psychological knowledge with artificial intelligence technology to contribute to a healthier, more inclusive, and equal society.
![PsyDI Screenshot](/screenshots_githubs/opendilab-PsyDI.jpg)
PsyDI
PsyDI is a multi-modal and interactive chatbot designed for psychological assessments. It aims to explore users' cognitive styles through interactive analysis of their inputs, ultimately determining their Myers-Briggs Type Indicator (MBTI). The chatbot offers customized feedback and detailed analysis for each user, with upcoming features such as an MBTI gallery. Users can access PsyDI directly online to begin their journey of self-discovery.
![obsidian-chat-cbt-plugin Screenshot](/screenshots_githubs/clairefro-obsidian-chat-cbt-plugin.jpg)
obsidian-chat-cbt-plugin
ChatCBT is an AI-powered journaling assistant for Obsidian, inspired by cognitive behavioral therapy (CBT). It helps users reframe negative thoughts and rewire reactions to distressful situations. The tool provides kind and objective responses to uncover negative thinking patterns, store conversations privately, and summarize reframed thoughts. Users can choose between a cloud-based AI service (OpenAI) or a local and private service (Ollama) for handling data. ChatCBT is not a replacement for therapy but serves as a journaling assistant to help users gain perspective on their problems.
![awesome-llm-role-playing-with-persona Screenshot](/screenshots_githubs/Neph0s-awesome-llm-role-playing-with-persona.jpg)
awesome-llm-role-playing-with-persona
Awesome-llm-role-playing-with-persona is a curated list of resources for large language models for role-playing with assigned personas. It includes papers and resources related to persona-based dialogue systems, personalized response generation, psychology of LLMs, biases in LLMs, and more. The repository aims to provide a comprehensive collection of research papers and tools for exploring role-playing abilities of large language models in various contexts.
![devil.ai_public Screenshot](/screenshots_githubs/Committing-devil.ai_public.jpg)
devil.ai_public
Devil.ai is a repository containing logic and data files for determining personality results. It includes classes for extended logic and calculation data related to MBTI personality types. The repository is licensed under MIT.