Delta Code
Offline-first VS Code extension for AI coding against Delta or any OpenAI-compatible API. Set a base URL, paste an API key from Delta Desktop, pick a model, chat with streaming, and apply file edits from fenced code blocks.
Requirements
- VS Code 1.85+
- Delta Desktop (or any OpenAI-compatible host)
- Default local API:
http://127.0.0.1:8081/v1
Delta exposes:
| Method |
Path |
Purpose |
GET |
/v1/models |
List models |
POST |
/v1/chat/completions |
Chat (streaming supported) |
POST |
/v1/completions |
Text completions |
POST |
/v1/embeddings |
Embeddings |
API key (Delta Desktop)
- Open Delta Desktop and create an API key (API / keys section).
- In VS Code, open the Delta Code chat panel.
- Paste the key → Save key (stored in VS Code SecretStorage, never in
settings.json).
- Click Fetch models.
You can also use Command Palette → Delta Code: Set API Key.
Requests send Authorization: Bearer <key>. If Delta returns 401/403, the extension prompts you to create or fix the key in Delta Desktop.
Develop / run
npm install
npm run build
Then press F5 (Run Extension) to open an Extension Development Host, or:
# optional live check against Delta (API key from Delta Desktop)
DELTA_API_KEY=your_key node scripts/verify.mjs
Open Settings and search for Delta Code, or set:
| Setting |
Default |
Notes |
deltaCode.baseUrl |
http://127.0.0.1:8081/v1 |
Any OpenAI-compatible root |
deltaCode.model |
(empty) |
Filled after Fetch models |
deltaCode.chatMode |
chat |
chat or agent (tool calling) |
deltaCode.requestTimeoutMs |
600000 |
10 minutes for slow local models |
deltaCode.systemPrompt |
(coding assistant) |
Sent as the system message |
Other OpenAI-compatible hosts work the same way — point deltaCode.baseUrl at e.g. Ollama (http://127.0.0.1:11434/v1) or your own gateway and paste that host’s key if required.
Use
- Open the Delta Code activity bar icon → Chat.
- Open Settings (gear) → Providers. Use a preset (Delta Local / Ollama / LM Studio / OpenAI), or Add provider with a custom name + base URL. Paste your API key, Save, then Fetch models.
- Pick a model from the composer chip, toggle Chat / Agent mode, or use Settings → Models.
- Chat across sessions: + new session, ↻ history / recent list on the welcome screen.
- In Agent mode the model can call tools (
read_file, list_dir, search_files, write_file with approval).
- When the assistant returns a fenced block with a path, use Apply / Preview (only shown when applyable blocks exist):
```ts path=src/example.ts
export function greet() {
return "hello";
}
```
Also accepted: ```ts src/example.ts `` or a first-line comment // file: src/example.ts.
Offline guarantees
- No telemetry or analytics endpoints
- Webview has no CDN scripts — UI is bundled in the extension
- Runtime network traffic goes only to your configured
baseUrl
- API keys stay in SecretStorage on the machine
Commands
- Delta Code: Open Chat
- Delta Code: Set API Key / Clear API Key
- Delta Code: Fetch Models
- Delta Code: New Chat
Roadmap
- Terminal tool + richer approvals / auto-approve settings
- Display and autocomplete settings panes as capabilities land