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 12 providers — OpenAI, Groq, Mistral, DeepSeek, Together AI, Fireworks AI, OpenRouter, Azure OpenAI, Ollama, LM Studio, vLLM, or any custom OpenAI-compatible endpoint — all from inside your IDE, without switching windows.
© 2026 Maciej Piecko — MIT License
What's new in 0.2.1
- Slash-command aliases — type
/in the input to open a picker dropdown; commands expand to full prompt text before being sent (e.g./tests→ full unit test generation prompt) - 5 built-in commands out of the box:
/tests,/simplify,/fix,/explain,/doc— fully editable and extensible in Settings → / Commands - Command highlighting in the input field and in sent chat bubbles; original expansion preserved in chat history even if commands are later edited
- Smarter chat history previews for command messages: shows
/explain — utils.pyor/explain — user textinstead of just/explain - LM Studio API key now configurable (optional — for setups with auth enabled)
- Connection tab improvements: two info labels, separator, and "Configure active provider:" label
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 |
| 🔧 | 12 providers | OpenAI, Groq, Mistral, DeepSeek, Together, Fireworks, OpenRouter, Azure, Ollama, LM Studio, vLLM, Custom |
| ⚙ | Inference params | Per-chat hyperparameters popup — provider-aware, resets on New Chat |
| 🔑 | Optional API key | Leave blank for local models that need no authentication |
| 🧠 | System prompt | Custom prompt field, or select from a saved prompts library |
| 💬 | Saved system prompts | Define reusable prompts; manage via Settings → System Prompts tab |
| ⏹ | Stop | Cancel a streaming reply at any time |
| 🗑 | New Chat | Start a fresh conversation; current one 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 |
| 🧠 | Thinking blocks | <think> tags rendered as a collapsible scrollable box (DeepSeek-R1, QwQ, …) |
| 📋 | Copy to editor | Insert any code block or full response at the cursor in the active file |
| 🗑 | Delete exchange | Remove any exchange with a 3-second undo window |
| 🔄 | Regenerate | Re-run the last assistant response with one click |
| ↔ | Horizontal scroll | Wide code blocks scroll horizontally instead of clipping |
| ⚙ | Settings | Tabbed dialog: provider, font sizes, history options, system prompts, slash commands |
| / | Commands | Slash-command aliases with picker dropdown; expand to full prompts before sending |
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
Clone the source code from the repository:
https://sourceforge.net/p/spyder-ai-chat-plugin/code/ci/master/tree/
Then install in editable mode:
cd spyder_ai_chat
pip install -e .
Important: install into the same Python environment that Spyder uses.
After installation, restart Spyder. The panel appears automatically.
If not visible: Window → Panes → AI Chat.
Quick start
- Open Settings (⚙ button in the panel toolbar).
- On the Connection tab, select your Provider from the dropdown.
- Fill in the API URL and key as needed (pre-filled for known providers).
- 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.2.1.tar.gz.
File metadata
- Download URL: spyder_ai_chat-0.2.1.tar.gz
- Upload date:
- Size: 57.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 |
48e09ff4d0faf09f2f30313b98b0d56fdd2261ac5a7186439cf8a650df869d15
|
|
| MD5 |
24052aea1ffd37c0a41d1096dd209d57
|
|
| BLAKE2b-256 |
b1843df313bf19c03276eb70ca9cfe22bf63f2e36fd499224f3cbbab66e818d6
|
File details
Details for the file spyder_ai_chat-0.2.1-py3-none-any.whl.
File metadata
- Download URL: spyder_ai_chat-0.2.1-py3-none-any.whl
- Upload date:
- Size: 54.0 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 |
a9f3a0fb37b5b03cdbed767b04c4e250f482636978950da8a83b200cbb1ac480
|
|
| MD5 |
f4e809fc0c147e3316d6fd3568c21a5c
|
|
| BLAKE2b-256 |
37945e571bdc06e5a5315daabe52a76e7e47b7a3fb18981438e4870094f90b81
|