Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>PyLume AINew to Visual Studio Code? Get it now.
PyLume AI

PyLume AI

Amine Amine

|
2 installs
| (0) | Free
Lightweight AI inline completions for Python using your OpenAI API key. No browser login or OAuth.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

PyLume AI

PyLume AI is a very small VS Code extension that provides Python code completions as native inline ghost text. Press Tab to accept a suggestion.

It connects directly from the VS Code extension host to the OpenAI Responses API. It has no login button, browser sign-in, OAuth callback, MFA flow, webview, telemetry, external backend, Docker, or local model dependency.

Install

From a terminal:

code --install-extension pylume-ai.vsix

Or in VS Code:

  1. Open Extensions.
  2. Select … in the Extensions view.
  3. Choose Install from VSIX….
  4. Select pylume-ai.vsix.

The target computer does not need Node.js or npm after the VSIX is installed.

One-time setup

  1. Open the Command Palette with Ctrl+Shift+P.
  2. Run PyLume AI: Set API Key.
  3. Paste your OpenAI API key and press Enter.
  4. Open a .py file and start coding.

The key is stored with VS Code SecretStorage and reused automatically. You only need to enter it again if you remove, revoke, or replace it.

An OpenAI API key and API billing/credits are required. A ChatGPT subscription does not automatically include OpenAI API usage.

Commands

  • PyLume AI: Set API Key
  • PyLume AI: Remove API Key
  • PyLume AI: Test Connection
  • PyLume AI: Enable
  • PyLume AI: Disable
  • PyLume AI: Toggle
  • PyLume AI: Trigger Completion
  • PyLume AI: Show Status

There are deliberately no login or sign-in commands.

Settings

Setting Default Purpose
pylumeAI.enabled true Enables Python inline completions.
pylumeAI.model gpt-5.6-luna Selects the OpenAI model.
pylumeAI.debounceMs 350 Waits after typing to reduce requests.
pylumeAI.maxContextLines 150 Limits lines before the cursor.
pylumeAI.maxCompletionTokens 200 Limits completion length and cost.
pylumeAI.temperature 0.1 Keeps results predictable.
pylumeAI.enableProjectContext false Optionally includes short excerpts from up to two other open Python files.
pylumeAI.requestTimeoutMs 10000 Cancels slow requests.

Privacy and network behavior

  • Only Python context near the cursor is sent by default: up to 150 lines before it and 40 lines after it.
  • Project-wide indexing is not used.
  • Optional project context is off by default and, when enabled, only samples up to two already-open Python files.
  • Common secret filenames are excluded and likely inline secrets are redacted.
  • The API key is never stored in settings, source code, Git, logs, or the VSIX.
  • Runtime requests go directly to https://api.openai.com/v1/responses.

If the laptop uses an allowlist, permit the VS Code extension host to reach api.openai.com over HTTPS.

Build from source

npm install
npm test
npm run package

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft