OpenAI-compatible AI chat pane for Spyder 6
Project description
Spyder IDE AI Chat Plugin
An OpenAI-compatible AI chat panel for Spyder 6.x.
Connect to OpenAI, Groq, Ollama, LM Studio, or any server that
exposes an OpenAI-compatible /v1/chat/completions endpoint — all from inside
your IDE, without switching windows.
© 2026 Maciej Piecko — MIT License
Features
| Feature | Details | |
|---|---|---|
| 🗨️ | Chat panel | Scrollable conversation with colour-coded user / assistant messages |
| ⚡ | Streaming | Token-by-token streaming so you see the reply as it is generated |
| 🔁 | Model selector | Dropdown populated live from the API — switch models instantly |
| 🔧 | Any provider | OpenAI cloud, Groq, Ollama, LM Studio, or any OpenAI-compatible server |
| 🔑 | Optional API key | Leave blank for local models that need no authentication |
| 🧠 | System prompt | Optional field to set the assistant's persona or task context |
| ⏹ | Stop | Cancel a streaming reply at any time |
| 🗑 | New Chat | Start a fresh conversation; the current one is saved automatically |
| 📋 | Chat history | Browse, load, and delete saved chats; active chat highlighted in green |
| 📎 | File context | Attach whole files or selected text from the editor as context |
| 🖊️ | Markdown rendering | Headings, bold, italic, tables, code blocks, blockquotes, links, strikethrough |
| 🗂 | Nested lists | Arbitrarily deep bullet & numbered lists, mixed types at any level, blank-line-separated |
| 🧠 | Thinking blocks | <think> tags rendered as a collapsible thinking box (DeepSeek-R1, QwQ, …) |
| 📋 | Copy to editor | Insert any code block or full response at the cursor in the active file |
| ↔ | Horizontal scroll | Wide code blocks scroll horizontally instead of wrapping |
| ⚙ | Settings | Tabbed dialog: API connection, per-element font sizes, history saving options |
Requirements
- Python ≥ 3.9
- Spyder ≥ 6.0
- No additional Python packages — HTTP via
urllib(stdlib), UI via Qt (bundled with Spyder)
Installation
From PyPI
pip install spyder-ai-chat
From source / development build
# Unzip the release archive or clone the repository, then:
cd spyder_ai_chat
pip install -e .
Important: install into the same Python environment that Spyder uses.
If you launched Spyder from a conda environment, activate that environment first.
After installation, restart Spyder.
The panel appears automatically. If it is not visible, go to
Window → Panes → AI Chat.
Quick start
- Open Settings (⚙ button in the panel toolbar).
- On the Connection tab, enter your API base URL and key:
- OpenAI:
https://api.openai.com/v1+ yoursk-…key - Groq:
https://api.groq.com/openai/v1+ yourgsk_…key - Ollama (local):
http://localhost:11434/v1— leave the key blank
- OpenAI:
- Click ⟳ to load the model list and pick a model.
- Type a message and press Ctrl+Enter or click Send.
License
MIT — see the LICENSE file included in the package.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file spyder_ai_chat-0.1.7.tar.gz.
File metadata
- Download URL: spyder_ai_chat-0.1.7.tar.gz
- Upload date:
- Size: 32.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db3cf284a952ddf073675ab467075785e8deaec78bee1b92752be54721a4b87f
|
|
| MD5 |
7dfc8ee4d5226699dd7c8712bd55d901
|
|
| BLAKE2b-256 |
bb717ec33e84669d42a347b3157b04e78cefa196a177d0c60949b7aa385bb12b
|
File details
Details for the file spyder_ai_chat-0.1.7-py3-none-any.whl.
File metadata
- Download URL: spyder_ai_chat-0.1.7-py3-none-any.whl
- Upload date:
- Size: 29.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07bd3e7702d2dbb163923f00c1749f0138cef21507278516afedb73fb88d9fb1
|
|
| MD5 |
995e3dae95f06fda53301cdb050e71bc
|
|
| BLAKE2b-256 |
98b02be19fde85c25812eb5f2b0edf2fbf2cac8314af22648891b75250928911
|