Skip to main content

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

  1. Open Settings (⚙ button in the panel toolbar).
  2. On the Connection tab, enter your API base URL and key:
    • OpenAI: https://api.openai.com/v1 + your sk-… key
    • Groq: https://api.groq.com/openai/v1 + your gsk_… key
    • Ollama (local): http://localhost:11434/v1 — leave the key blank
  3. Click to load the model list and pick a model.
  4. Type a message and press Ctrl+Enter or click Send.

License

MIT — see the LICENSE file included in the package.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spyder_ai_chat-0.1.7.tar.gz (32.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spyder_ai_chat-0.1.7-py3-none-any.whl (29.9 kB view details)

Uploaded Python 3

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

Hashes for spyder_ai_chat-0.1.7.tar.gz
Algorithm Hash digest
SHA256 db3cf284a952ddf073675ab467075785e8deaec78bee1b92752be54721a4b87f
MD5 7dfc8ee4d5226699dd7c8712bd55d901
BLAKE2b-256 bb717ec33e84669d42a347b3157b04e78cefa196a177d0c60949b7aa385bb12b

See more details on using hashes here.

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

Hashes for spyder_ai_chat-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 07bd3e7702d2dbb163923f00c1749f0138cef21507278516afedb73fb88d9fb1
MD5 995e3dae95f06fda53301cdb050e71bc
BLAKE2b-256 98b02be19fde85c25812eb5f2b0edf2fbf2cac8314af22648891b75250928911

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page