This guide walks through installing Selfcoder, connecting a local or self-hosted model backend, and sending your first message from VS Code.
You need:
- VS Code
1.100.0or newer. - Selfcoder installed from the latest release package.
- One supported model backend:
- At least one chat-capable model available in the selected backend.
Selfcoder releases are published on the Visual Studio Marketplace.
- Open VS Code.
- Open the Extensions view.
- Search for "Selfcoder" and install the extension published by "Coderoom".
- Reload VS Code if prompted.
After installation, Selfcoder appears in the VS Code activity bar.
LM Studio is a friendly way to download, manage, and serve local models.
- Install LM Studio.
- Download a chat or coding model.
- Start the local server in LM Studio.
- Confirm that the server is using the default endpoint:
http://localhost:1234
- In VS Code, open Settings and search for
Selfcoder. - Set
Selfcoder.backendtoLMStudio. - Keep
Selfcoder.backendAddressashttp://localhost:1234, unless your LM Studio server uses a custom address.
Ollama is a local model runtime with a CLI-focused workflow.
- Install Ollama.
- Pull a chat or coding model. For example:
ollama pull qwen2.5-coder:7b- Make sure Ollama is running.
- Confirm that the default endpoint is available:
http://localhost:11434
- In VS Code, open Settings and search for
Selfcoder. - Set
Selfcoder.backendtoOllama. - Keep
Selfcoder.backendAddressashttp://localhost:11434, unless your Ollama server uses a custom address.
Selfcoder can connect directly to a server that implements OpenAI-style model discovery and streaming Chat Completions.
- Start the server with a chat model. Common local roots are:
vLLM: http://localhost:8000
llama.cpp: http://localhost:8080
- Verify that the server exposes both
GET /v1/modelsand streamingPOST /v1/chat/completions. - In VS Code, open Settings and search for
Selfcoder. - Set
Selfcoder.backendtoOpenAICompatible. - Set
Selfcoder.backendAddressto the server root or its/v1base URL. Selfcoder accepts bothhttp://localhost:8000andhttp://localhost:8000/v1and appends the route itself. - If the server requires bearer authentication, enter its token in
Selfcoder.backendAuthorizationToken. Otherwise, leave the setting empty. - 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.
- Open a project in VS Code.
- Open the Selfcoder view from the activity bar.
- Choose your backend and model from the Selfcoder controls.
- Open a source file.
- 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.
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.
- Learn the main product surfaces in Core Workflows.
- Learn the read-only investigation workflow in Plan Mode.
- Learn how Selfcoder gathers context in Context and Attachments.
- Tune models and backend settings in Models and Backends.