DEV Community

Running Local AI (Self-hosted) Coding Assistants in VS Code with Ollama and GitHub Copilot (opens in new tab)

Covers OllamaDiscussed on DEV

Introduction GitHub Copilot now supports Bring Your Own Key (BYOK), allowing developers to connect local or self-hosted AI models directly into VS Code. This means you can run coding assistants locally using tools like Ollama without sending prompts to external providers. Architecture Step 0 - Prerequisites Step 1 - Install Ollama Step 2 - Pull a Model Step 3 - Test the Model Step 4 - Confirm API Endpoint Step 5 - Configure VS Code Step 6 - Select Your Model Step 7 - Remote Access (Optional) ...

Read the original article
Sign in to keep reading the full article.

Keyboard Shortcuts

Navigation

Next / previous post
j/k
Open post
oorEnter
Preview post
v

Post Actions

Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Save / unsave
s

Recommendations

Add interest / feed
Enter
Not interested
x

Go to

Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Discover
gb
Search
/

General

Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help