Cortex

# Cortex **A local-first AI workspace for Windows.** Chat with models on your own hardware, keep every conversation on your PC, and let an opt-in agent work on a copy of your project. Code runs and files change only after you approve them. [![Quality](https://github.com/dovvnloading/Cortex/actions/workflows/quality.yml/badge.svg?branch=main)](https://github.com/dovvnloading/Cortex/actions/workflows/quality.yml) [![License: MIT](https://img.shields.io/badge/license-MIT-e6703e)](LICENSE) ![Windows 10 and 11](https://img.shields.io/badge/Windows-10%20%7C%2011-2b2b2f) [Get started](#get-started) · [Tour](#a-short-tour) · [User guide](/Cortex/docs/user-guide.html) · [Security](/Cortex/SECURITY.html)

A question about Excel CSV exports is typed into Cortex. The answer streams in with a highlighted Python block, then the code is copied and the fork control is shown.

Why Cortex

A short tour

These recordings are the real Cortex interface. The library and chats come from a demo workspace, and the model replies are scripted, so no model ran while they were made. Agent mode, its work copy, the approvals and the code interpreter are Cortex’s own.

Keyboard first

Open any chat by name, then switch the theme without touching the mouse.

The command palette opens with Ctrl+K, a search for "postgres" opens that chat, and a second search changes the theme from dark to light.

Models and parameters

Choose a model from the composer and tune sampling and the context window for one chat without changing your defaults. Settings lists each installed model’s size, quantization and context length.

The composer's model picker lists four local models with their sizes. The chat parameters popover switches to the Precise style and a 16K context window, then Settings opens on the installed models.

Code runs only when you allow it

When a local model wants to compute something exactly, it proposes a program in a restricted subset of Python and states the access it needs. You read the source, allow it once, and Cortex’s restricted interpreter prints the result.

The task tray shows a loan calculation waiting for review. The generated source is opened, Allow once is chosen, and the tray reports the monthly payment and total interest.

Agent mode

Give Agent mode a goal and a project folder. It reads the project in a separate copy, pauses before each edit to show exactly what will change, and leaves the result for you to review and accept.

Agent mode is given a goal and a project folder and started in Ask mode. It asks to allow a one-line encoding change, shows the diff in review, and the change is accepted into the project.

Get started

Cortex runs from source on Windows 10 or later. The published v1.0.0 release is the earlier Qt app.

Install Git, Python 3.11 or newer, Node.js 22 LTS or 24 LTS with npm, and the Microsoft Edge WebView2 Runtime. Then, in PowerShell:

git clone https://github.com/dovvnloading/Cortex.git
cd Cortex
python -m venv .venv
.\.venv\Scripts\python.exe -m pip install -r requirements.txt
.\.venv\Scripts\python.exe main.py

The first launch installs the frontend dependencies, builds the interface and opens the desktop window. Choose a model in the message composer.

For a first local chat with Ollama, install a model, then choose Rescan in the composer’s model picker:

ollama pull qwen3:8b

Choose where the model runs

Model source How to connect
Ollama Start Ollama on your PC. Cortex finds the models it serves at 127.0.0.1:11434.
GGUF file Choose a models folder, or download a GGUF, under Settings → System. Cortex manages the llama.cpp runtime. GGUF download notes
Cloud provider Settings → AI Model → Cloud providers lists your provider’s environment variables. Set them, restart Cortex and select a model. Provider setup

To use Agent mode, turn on Enable Agent mode in Settings → General, save, and open Agent mode from the top bar. Start with Plan only for a read-through before you allow edits. Running Agent on a project

Privacy and safety

Security and execution details

Develop

Read the agent operating contract and the contributing guide first. The quick local gates run with:

./scripts/check.ps1

The tour above is recorded, not hand-made. With a built frontend, ./tools/screenshots/tour.ps1 replays every scene against the demo workspace and rewrites the GIFs in .github/images.

Project resources

User guide · Contributing · Change log · Security policy · MIT license