SkillAgentSearch skills...

Cortex.cpp

Local AI API Platform

Install / Use

/learn @janhq/Cortex.cpp
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

<div style="border: 2px solid #f44336; background-color: #fff3f3; padding: 16px; border-radius: 6px; margin-bottom: 20px;"> <h2>🚨 Archived Repository Notice</h2> <p><strong>This repository is no longer actively maintained.</strong></p> <p>Development has moved to <a href="https://github.com/menloresearch/llama.cpp"><strong>menloresearch/llama.cpp</strong></a>.</p> <p>Please contribute directly to <code>llama.cpp</code> moving forward.</p> </div>

Cortex

<p align="center"> <img width="1280" alt="Cortex.cpp Banner" src="./assets/cortex-banner.png"> </p> <p align="center"> <img alt="GitHub commit activity" src="https://img.shields.io/github/commit-activity/m/menloresearch/cortex.cpp"/> <img alt="Github Last Commit" src="https://img.shields.io/github/last-commit/menloresearch/cortex.cpp"/> <img alt="Github Contributors" src="https://img.shields.io/github/contributors/menloresearch/cortex.cpp"/> <img alt="Discord" src="https://img.shields.io/discord/1107178041848909847?label=discord"/> </p> <p align="center"> <a href="https://cortex.so/docs/">Docs</a> • <a href="https://cortex.so/api-reference">API Reference</a> • <a href="https://github.com/menloresearch/cortex.cpp/releases">Changelog</a> • <a href="https://github.com/menloresearch/cortex.cpp/issues">Issues</a> • <a href="https://discord.gg/AsJ8krTT3N">Community</a> </p>

Under Active Development - Expect rapid improvements!

Cortex is the open-source brain for robots: vision, speech, language, tabular, and action -- the cloud is optional.

Installation

| Platform | Installer | |----------|-----------| | Windows | cortex.exe | | macOS | cortex.pkg | | Linux (Debian) | cortex.deb |

All other Linux distributions:

curl -s https://raw.githubusercontent.com/menloresearch/cortex/main/engine/templates/linux/install.sh | sudo bash

Start the Server

cortex start
Set log level to INFO
Host: 127.0.0.1 Port: 39281
Server started
API Documentation available at: http://127.0.0.1:39281

Full API docs.

Download Models

You can download models from the huggingface model hub using the cortex pull command:

cortex pull llama3.2
Downloaded models:
    llama3.1:8b-gguf-q4-km
    llama3.2:3b-gguf-q2-k

Available to download:
    1. llama3:8b-gguf
    2. llama3:8b-gguf-q2-k
    3. llama3:8b-gguf-q3-kl
    4. ...

Select a model (1-21):

Run Models

cortex run llama3.2
In order to exit, type `exit()`
>

You can also run it in detached mode, meaning, you can run it in the background and can use the model via the API:

cortex run -d llama3.2:3b-gguf-q2-k

Manage resources

cortex ps            # View active models
cortex stop          # Shutdown server

Why Cortex.cpp?

Local AI platform for running AI models with:

  • Multi-Engine Support - Start with llama.cpp or add your own
  • Hardware Optimized - Automatic GPU detection (NVIDIA/AMD/Intel)
  • OpenAI-Compatible API - Tools, Runs, and Multi-modal coming soon

Featured Models

| Model | Command | Min RAM | |----------------|---------------------------|---------| | Llama 3 8B | cortex run llama3.1 | 8GB | | Phi-4 | cortex run phi-4 | 8GB | | Mistral | cortex run mistral | 4GB | | Gemma 2B | cortex run gemma2 | 6GB |

View all supported models →

Advanced Features

See table below for the binaries with the nightly builds.

# Multiple quantizations
cortex-nightly pull llama3.2  # Choose from several quantization options
# Engine management (nightly)
cortex-nightly engines install llama-cpp -m
# Hardware control
cortex-nightly hardware detect
cortex-nightly hardware activate

Need Help?


For Contributors

Development Builds

| Version | Windows | macOS | Linux | |-----------|---------|-------|-------| | Stable | exe | pkg | deb | | Beta | exe | pkg | deb | | Nightly | exe | pkg | deb |

Build from Source

See BUILDING.md

Uninstall Cortex

Windows

  1. Open the Windows Control Panel.
  2. Navigate to Add or Remove Programs.
  3. Search for cortexcpp and double click to uninstall. (for beta and nightly builds, search for cortexcpp-beta and cortexcpp-nightly respectively)

MacOs/Linux

Run the uninstaller script:

sudo cortex-uninstall.sh

The script to uninstall Cortex comes with the binary and was added to the /usr/local/bin/ directory. The script is named cortex-uninstall.sh for stable builds, cortex-beta-uninstall.sh for beta builds and cortex-nightly-uninstall.sh for nightly builds.

Contact Support

View on GitHub
GitHub Stars2.8k
CategoryDevelopment
Updated1d ago
Forks181

Languages

C++

Security Score

100/100

Audited on Apr 1, 2026

No findings