Quick Start
This takes you from a clone to an agent answering in the console, all on your machine.
Prerequisites
Section titled “Prerequisites”- Node.js 22 (the repository pins it in
.nvmrc) and git. - Nothing else for the local runtime: Cortex downloads
uv, Python 3.12 and OpenTofu itself. - A model to call. The new-agent form defaults to Ollama on
http://localhost:11434; any OpenAI-compatible endpoint works too.
Run Cortex
Section titled “Run Cortex”git clone https://github.com/monaccode/astromesh-cortex.gitcd astromesh-cortexnpm installnpm run dev # Electron with hot reloadnpm run build compiles the app into out/ and npm test runs the test suite.
Your first agent
Section titled “Your first agent”-
Create a workspace. On the Welcome page choose New Workspace…, pick a folder and a name. Cortex writes
.cortex/workspace.json(commit it) and.cortex/local.json, which it adds to.gitignore. Open Folder… turns an existing folder into a workspace. -
Install the local runtime. Open the Runtime panel in the activity bar and click Install & Start. Cortex downloads
uv, installs Python 3.12, creates a virtual environment, installsastromesh[mesh],astromesh-cliandastromesh-orbit[gcp], downloads OpenTofu, checks the import, and starts the runtime on127.0.0.1:8000. It needs no Python of your own. -
Point Cortex at it. In Settings → Runtime Connections, add a connection of type
localwith URLhttp://localhost:8000and click it to make it active. The status bar turns green. -
Create an agent. In Agents, choose New Agent → Blank Agent, fill in a name and a model, and create it. It opens in the YAML editor. From Template… builds one from the runtime’s templates instead.
-
Deploy it. Click Deploy in the editor toolbar. The agent’s status turns
deployed. -
Talk to it. Click Test. The console opens on the right; send a message and watch the tool calls and the model’s reasoning arrive live. Click View Trace on an answer to see every span.
Next steps
Section titled “Next steps”- Authoring Agents — the visual builder, tools and RAG
- Console & Traces — everything the console shows
- Runtimes & GCP — the same agent on Cloud Run
- Nexus Mode — publish it on a hub