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:

What still reaches us

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.

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.

ModelGraphics memory
Smallabout 1.6 GBquick, simple changes
Mediumabout 2.5 GBa good start
Largeabout 5.1 GBbest, 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.