You will install Ollama to serve models on your own machine, then add Twinny for inline autocomplete and Cline as the coding agent. It suits developers who want offline help without API bills. A machine with enough RAM and disk space is the main requirement.
YouTube video: These Free AI Tools Turn Your PC Into A Local Coding Powerhouse
Captions are available. Use CC in the YouTube player.
Choose a chapter (7)
- Video length
- 14 min 54 s
- Time to do it
- 1 hour
- Difficulty
- Medium
- Steps
- 9
What you need
Steps
Install Ollama from its official site and start it. It runs the models on your machine and answers on a local port.
Pull a coding model with the ollama pull command. A 30B coding model is a 19 GB download, so check your free disk space first.
Check the context window setting. Ollama defaults to a 4000-token context on GPUs with under 24 GB, which is low for coding tools.
Install the Twinny extension in VS Code and point it at your local Ollama server. It gives inline completion with no telemetry.
Start with a small base model under a gigabyte for autocomplete. It keeps memory use low on a modest machine.
Install the Cline extension and connect it to Ollama. This is the agent that explores your repository and plans fixes.
Keep approval on for each file edit and terminal command. Only switch on auto-approve once you trust the agent.
Add Serena so the agent can query language servers and find every caller of a function.
Add Microsoft's Playwright MCP so the model can open a browser and read the page as structured text.
Tips and common mistakes
On a modest machine, get autocomplete working first and add the full agent loop later.
A 30B model needs a lot of memory, so a smaller model may be the better daily driver.
Review every terminal command the agent proposes before you approve it.
Keep a paid cloud agent in mind for heavy work if local speed is not enough.
Questions
Do I need an API key or internet connection?
No. Ollama serves the models on your own hardware, so the tools run offline with no API bill.
Why is the context window so small?
Ollama defaults to a 4000-token context on GPUs with under 24 GB, which is below what coding tools often suggest. Raise it if your hardware allows.
Can I run the full agent loop on a low-end PC?
It may be slow. Start with autocomplete using a model under a gigabyte, then try the agent loop when you have more memory.
The notes are drafted automatically from video details and general task knowledge. How the guide was prepared
Report a correction


