yaroslavyaroslav/OpenAI-sublime-text

First class Sublime Text AI assistant with gpt-5, Opus 4.6, Gemini 3 and ollama support!

What it solves

This plugin brings AI-powered coding assistance directly into the Sublime Text editor, providing a flexible interface for interacting with various Large Language Models (LLMs) without leaving the workflow. It eliminates the need to switch between the editor and a web browser for AI chat or code generation.

How it works

The plugin connects to LLM providers via API. It supports a wide range of services including OpenAI, Anthropic Claude, Google Gemini, and OpenAI-compatible APIs like llama.cpp and Ollama for local LLMs. Users can interact with the AI through a command palette, a dedicated chat panel, or "Phantoms"—inline overlays that allow for quick code replacement or appending of AI responses.

Who it’s for

Developers using Sublime Text who want integrated AI assistance for debugging, code generation, and documentation, whether using cloud-based APIs or locally hosted models.

Highlights

  • Multi-Provider Support: Compatible with OpenAI, Claude, Gemini, and local servers like Ollama and llama.cpp.
  • Context Management: Ability to mark specific files or parts of files as context to be sent with the prompt.
  • Integrated Diagnostics: Commands to automatically include build or LSP (Language Server Protocol) output for faster debugging.
  • Phantom Mode: Non-disruptive inline responses that can be used to replace or append text directly in the editor.
  • Project-Specific Settings: Separate chat histories and assistant configurations for different projects.
  • Coded-Language Highlighting: Markdown syntax highlighting within the chat mode.

Related

  • Project
  • Project
  • Project
  • Project
  • Project