Visitors

AI Sidebar

AI Sidebar

Download

# SideBar Assistant

SideBar Assistant is a frameless, always-on-top sidebar application built with PySide6. It integrates a smart “assistant” chat interface (powered by an Open WebUI backend), Google web search, YouTube transcript extraction, local notes, clipboard history, process monitoring, and optional peer-to-peer synchronization with end-to--end encryption.

---

## Features

- **Auto-hiding Sidebar**

The window docks to the right edge of the screen and auto-hides when the mouse moves away, making it available on demand without cluttering your workspace. citeturn1file1

- **Clipboard History**

Monitors your clipboard and keeps up to 30 items; navigate, search, and re-paste previous entries. citeturn1file4

- **Notes Pane**

A simple notepad for quick text notes. Notes are auto-saved every 5 seconds when modified. citeturn1file4

- **Process Monitor**

Displays a live list of running processes and highlights critical system processes. citeturn1file8

- **Assistant Chat Widget**

- **Open WebUI Integration**: Connect to a locally running Open WebUI endpoint, fetch available models, and stream chat completions. citeturn1file15

- **Web Search**: Query the Google Custom Search API (requires API key and CX) and embed results into the chat. citeturn1file7

- **YouTube Transcripts**: Detect YouTube links in your prompt, fetch transcripts via the YouTube Transcript API (Korean first, then English fallback), and include them in the conversation. citeturn1file7

- **File Uploads**: Drag-and-drop or browse to upload text (txt, md, csv, code), images, and other binaries; content is encoded and appended to the prompt. citeturn1file6

- **P2P Synchronization (Experimental)**

- Peer-to-peer sharing of notes, clipboard, or other data with optional AES-GCM encryption using PBKDF2-derived keys.

- Salt-exchange and mutual authentication protocol ensure secure key negotiation.

- Manage peers (IP:port), toggle encryption, and set credentials in Settings. citeturn1file4

- **Configurable Settings**

All features are customizable via a unified Settings dialog:

- Notes directory

- P2P sync (enable/disable, encryption toggle, username/password, peer list)

- Open WebUI endpoint, API key, and model selection

- Google Search API key and Custom Search Engine ID

- Window behavior (auto-hide, always-on-top) citeturn1file15

- **Robust Logging**

Logs are written to a rotating file (5 MB max, 5 backups) under `log/`; debug, info, warning, and error events are captured. citeturn1file8

---

## Installation

1. **Clone the repository**

```bash

git clone https://github.com/ULTRAKKK1004/AI_Sidebar.git

cd AI_Sidebar

```

2. **Create a virtual environment & install dependencies**

```bash

python3 -m venv venv

source venv/bin/activate # Windows: venv\Scripts\activate

pip install --upgrade pip

pip install -r requirements.txt

```

3. **Configure Settings**

- Run the app once to generate default config and notes directory.

- Open Settings (tray icon ➔ Settings) to enter your API keys, WebUI endpoint, and P2P peers.

---

## Usage

```bash

python AI_Sidebar.py

```

- The app will appear as a thin sidebar on the right.

- Hover near the right edge to reveal, move away to hide (if auto-hide is enabled).

- Use the tabs to switch between Clipboard, Processes, Notes, and Assistant.


## Configuration

Launch Settings from the system tray menu:

1. **General**

- **Notes Directory**: Location where your notes are stored.

2. **P2P Synchronization**

- Enable or disable P2P.

- Toggle encryption (AES-GCM).

- Set Username & Password (used for key derivation).

- Specify Listen Port and peer addresses (IP:port).

3. **Open WebUI, OPEN AI Assistant**

- **Endpoint URL**: e.g. `http://localhost:8080`

- **API Key** (if your WebUI instance requires authentication)

- **Model**: Fetch and select from available models on the WebUI server.

4. **Google Search API**

- **Google API Key**

- **Custom Search Engine ID (CX)**

5. **Window**

- Auto-hide toggle

- Always-on-top toggle

---

## Project Structure

- **`AI_Sidebar.py`**: Single-file application containing all logic: GUI, P2P manager, WebUI worker, and helper functions.

- **`log/`**: Directory for rotating application logs.

- **`Notes/`**: Default directory under your OS’s AppData for saving notes.

---

## License

This project is released under the MIT License. Feel free to fork and modify!

Read more

로스앤젤레스 공원에 연방 요원 다수 배치

로스앤젤레스 공원에 연방 요원 다수 배치

로스앤젤레스 공원에 연방 요원 다수 배치 로스앤젤레스 이민자 지역에 연방 요원들이 대거 출동했다 로스앤젤레스의 한 이민자 커뮤니티 공원에 다수의 연방 요원들이 출동하여 주민들과의 긴장이 고조되고 있다. 주요 내용 * 연방 요원들이 로스앤젤레스의 한 공원에 많게는 수십 명 출동했다. * 출동한 요원들은 이민자 커뮤니티와 관련된 조사를 진행 중이다. * 주민들은 요원들의 과도한 군사적 존재에

By King
텍사스 홍수 사망자 수 104명 넘어, 책임 요구 증가

텍사스 홍수 사망자 수 104명 넘어, 책임 요구 증가

텍사스 홍수 사망자 수 104명 넘어, 책임 요구 증가 텍사스에서 홍수로 인한 피해와 사망자 발생 텍사스의 케르빌에서 발생한 홍수로 인해 현재까지 104명이 사망했으며, 지역사회에서 책임 요구가 커지고 있습니다. 주요 내용 * 케르빌의 과달루페 강에서 대규모 홍수가 발생하고, 강의 수위가 30피트 이상 상승했습니다. * 신속한 구조작업이 진행되고 있으며, 이 과정에서 여러 생존자가 발견되고

By King
미 의회의 AI 규제: 소비자 보호와 주 정부의 자율성 승리

미 의회의 AI 규제: 소비자 보호와 주 정부의 자율성 승리

미국 의회, AI 규제에 대한 중요한 결정 최근 미국 상원은 인공지능(AI) 관련 중요한 결정을 내렸습니다. 트럼프 대통령이 추진했던 AI 규제 모라토리엄 조항을 삭제하며, 소비자와 아동의 안전을 최우선으로 고려했습니다. 주요 변화 * 각 주 정부의 AI 규제 권한 확보 * 10년간 AI 인프라 예산 관련 제한 철폐 * 소비자 보호에 중점 하원 공화당의

By King
호주 정부, 중국의 AI 협력 제안에 신중한 태도

호주 정부, 중국의 AI 협력 제안에 신중한 태도

중국의 AI 협력 제안, 알보니지 총리의 모호한 대응 최근 앤서니 알보니지 호주 총리가 중국의 AI 협력 제안에 대해 조심스러운 입장을 보이고 있습니다. 상하이, 베이징, 청두 방문을 앞두고 있는 알보니지 총리는 중국의 자유무역협정 AI 분야 포함 제안에 대해 명확한 입장을 피하고 있습니다. 신중한 대응의 이유 기자들의 질문에 "우리는 우리의 정책을

By King