AI on your own computer
Use the editor's AI chat with a model on your laptop (Ollama, LM Studio, llama.cpp) or inside your browser. Your messages never reach our servers, nothing is charged, on every plan.
The editor’s AI chat can use a model that runs on your own machine instead of ours. Your messages and the AI’s answers go only between your browser and that model. Nothing is charged, and it works on every plan, Free included.
In the editor, open AI Chat and pick the AI in the menu at the top:
- This computer (Ollama, LM Studio): a model server on your laptop or in your network.
- In this browser (WebGPU, experimental): a small model that runs inside the browser tab.
What still reaches us
- The system message. The browser asks our server for the instructions and the reference for your project’s kind, made from your project’s files (which we hold anyway). Your message is not part of that request.
- A test build. For instant Python apps (PyLevate), the code the AI proposes is test-built before it is applied, the same check the hosted AI gets. Only the code goes, not the chat.
- Your changes. Applied files are saved to your project as usual.
The chat itself is kept only in your browser. New chat clears it.
A model on this computer
Any server that speaks the OpenAI chat API works. The page calls it directly, so it must allow requests from this site (CORS).
Ollama
OLLAMA_ORIGINS=https://app.pycorner.dev OLLAMA_CONTEXT_LENGTH=8192 ollama serve
ollama pull qwen2.5-coder:7b
On Windows and macOS, set OLLAMA_ORIGINS and OLLAMA_CONTEXT_LENGTH as environment variables
and restart Ollama. The chat shows the exact line for the address you use.
LM Studio: in the Developer tab, turn on Enable CORS, load a model and start the server.
llama.cpp: llama-server -m model.gguf --port 8080 -c 8192.
Then press ⚙ next to the model menu to pick the server (Ollama, LM Studio, llama.cpp or any address; in Chrome and Edge also another machine in your network) and how much context the model takes. Give the model at least 8K tokens: the reference for your project and your files need room.
- Chrome and Edge ask once whether this site may reach devices on your network: allow it.
- Safari does not let a website reach your computer; use Chrome, Edge or Firefox.
Coding models from 7B upwards give useful changes. Smaller ones are fine for questions and small fixes.
A model in your browser
On a computer with a recent graphics card and a browser with WebGPU (Chrome, Edge, and Safari 26), a model runs inside the tab.
| Model | Graphics memory | |
|---|---|---|
| Small | about 1.6 GB | quick, simple changes |
| Medium | about 2.5 GB | a good start |
| Large | about 5.1 GB | best, needs a strong graphics card |
The first use downloads the model from Hugging Face; then the browser keeps it. Nothing is installed. These models are small: expect them to help with questions and small changes rather than whole apps.
Turning it off
Self-hosted: set AI_LOCAL_ENABLED=false in .env to remove the option.