This guide gets you from zero to a working Cortex instance in 5 minutes.
curl -sSf https://raw.githubusercontent.com/MikeSquared-Agency/cortex/main/install.sh | shThe script detects your OS and architecture, downloads the right binary, and places it in ~/.local/bin/ (or /usr/local/bin/ if run as root). No Rust toolchain, no protoc, no system dependencies required.
cargo install cortex-memorydocker pull mikesquared/cortex:latestDownload a pre-built binary from the latest release:
| Platform | Architecture | File |
|---|---|---|
| Linux | x86_64 | cortex-linux-x86_64.tar.gz |
| Linux | arm64 | cortex-linux-arm64.tar.gz |
| macOS | x86_64 | cortex-macos-x86_64.tar.gz |
| macOS | arm64 (M1+) | cortex-macos-arm64.tar.gz |
Extract and place the cortex binary somewhere on your $PATH.
mkdir my-project && cd my-project
cortex initAnswer the prompts — the defaults work fine for getting started.
cortex serve
# Cortex is now running at localhost:9090 (gRPC) and localhost:9091 (HTTP)cortex node create \
--kind fact \
--title "The API uses JWT authentication" \
--importance 0.7cortex search "authentication"
# 1. 0.94 fact The API uses JWT authentication [id: abc123]cortex briefing my-agentOpen http://localhost:9091/viz in your browser to see a live force-directed visualisation of your knowledge graph.
cortex prompt migrate prompts.jsonWhere prompts.json contains:
[
{
"slug": "helpful-assistant",
"type": "system",
"branch": "main",
"sections": {
"identity": "You are a helpful assistant.",
"constraints": "Be concise and accurate."
},
"metadata": {},
"tags": ["assistant"]
}
]Or create prompts via the HTTP API:
curl -X POST http://localhost:9091/prompts \
-H "Content-Type: application/json" \
-d '{
"slug": "helpful-assistant",
"type": "system",
"sections": { "identity": "You are a helpful assistant." }
}'# Create an agent node
cortex node create --kind agent --title "my-agent"
# Bind the prompt
cortex agent bind my-agent helpful-assistant --weight 1.0
# Verify the binding
cortex agent show my-agent# Ask Cortex which variant to use right now
cortex agent select my-agent --task-type coding --sentiment 0.7
# After the interaction, record how it went
cortex agent observe my-agent \
--variant-id UUID --variant-slug helpful-assistant \
--sentiment-score 0.8 --task-outcome successCortex updates the edge weight using an exponential moving average, so good prompts rise and bad ones fade — automatically.