Skip to content

Latest commit

 

History

History
134 lines (92 loc) · 4.47 KB

File metadata and controls

134 lines (92 loc) · 4.47 KB

Getting Started

This guide walks through installing Selfcoder, connecting a local or self-hosted model backend, and sending your first message from VS Code.

Requirements

You need:

  • VS Code 1.100.0 or newer.
  • Selfcoder installed from the latest release package.
  • One supported model backend:
    • LM Studio, or
    • Ollama, or
    • an OpenAI Chat Completions-compatible server such as vLLM or llama.cpp
  • At least one chat-capable model available in the selected backend.

Install Selfcoder

Selfcoder releases are published on the Visual Studio Marketplace.

  1. Open VS Code.
  2. Open the Extensions view.
  3. Search for "Selfcoder" and install the extension published by "Coderoom".
  4. Reload VS Code if prompted.

After installation, Selfcoder appears in the VS Code activity bar.

Option A: Use LM Studio

LM Studio is a friendly way to download, manage, and serve local models.

  1. Install LM Studio.
  2. Download a chat or coding model.
  3. Start the local server in LM Studio.
  4. Confirm that the server is using the default endpoint:
http://localhost:1234
  1. In VS Code, open Settings and search for Selfcoder.
  2. Set Selfcoder.backend to LMStudio.
  3. Keep Selfcoder.backendAddress as http://localhost:1234, unless your LM Studio server uses a custom address.

Option B: Use Ollama

Ollama is a local model runtime with a CLI-focused workflow.

  1. Install Ollama.
  2. Pull a chat or coding model. For example:
ollama pull qwen2.5-coder:7b
  1. Make sure Ollama is running.
  2. Confirm that the default endpoint is available:
http://localhost:11434
  1. In VS Code, open Settings and search for Selfcoder.
  2. Set Selfcoder.backend to Ollama.
  3. Keep Selfcoder.backendAddress as http://localhost:11434, unless your Ollama server uses a custom address.

Option C: Use vLLM, llama.cpp, Or Another Compatible Server

Selfcoder can connect directly to a server that implements OpenAI-style model discovery and streaming Chat Completions.

  1. Start the server with a chat model. Common local roots are:
vLLM:      http://localhost:8000
llama.cpp: http://localhost:8080
  1. Verify that the server exposes both GET /v1/models and streaming POST /v1/chat/completions.
  2. In VS Code, open Settings and search for Selfcoder.
  3. Set Selfcoder.backend to OpenAICompatible.
  4. Set Selfcoder.backendAddress to the server root or its /v1 base URL. Selfcoder accepts both http://localhost:8000 and http://localhost:8000/v1 and appends the route itself.
  5. If the server requires bearer authentication, enter its token in Selfcoder.backendAuthorizationToken. Otherwise, leave the setting empty.
  6. Reconnect Selfcoder and select a model from the server.

Do not enter a full route such as /v1/models. Plan, Agent, and VS Code native tool flows also require the served model and chat template to support OpenAI-style tool calls.

Send Your First Message

  1. Open a project in VS Code.
  2. Open the Selfcoder view from the activity bar.
  3. Choose your backend and model from the Selfcoder controls.
  4. Open a source file.
  5. Ask a focused question, such as:
Explain what this file does and point out any risky areas.

Selfcoder streams the answer from your selected model.

When you are ready to explore beyond a normal chat response, use the composer selector:

  • Plan actively reads and searches the repository while enforcing a no-edit, no-terminal boundary.
  • Agent can implement and verify changes according to your permission setting.

Plan and Agent require an open workspace and a tool-capable model. On their first use, Selfcoder downloads and verifies its managed OpenCode runtime.

Good First Prompts

Try prompts that give the model a clear task:

Explain the selected function.
Find a simpler way to structure this code.
Review the current git diff for possible regressions.
Write tests for the behavior in the active file.

Next Steps