An AI-powered package manager that understands what you actually want to install.
Explore the docs Β»
View Demo
Β·
Report Bug
Β·
Request Feature
Table of Contents
Stop memorizing package names. Just tell Cortex what you want.
$ cortex install "full ML stack for my RTX 4090"
π Detected: NVIDIA RTX 4090 (24GB VRAM)
π¦ Installing: CUDA 12.3, cuDNN, PyTorch 2.1, TensorFlow...
β‘ Optimized for your GPU
β
Done in 4m 23sHere's why Cortex exists:
- Natural language β Say "install docker" not
apt install docker.io docker-compose docker-buildx - Hardware-aware β Automatically detects your GPU, CPU, and RAM to optimize installations
- Safe by default β Every command shows a preview before execution. Nothing runs without your approval.
- Undo mistakes β Full transaction history with rollback capability
Cortex wraps apt/dpkg with an AI layer that translates intent into action, while keeping you in control.
Get Cortex running on your Debian/Ubuntu system in under 2 minutes.
- Ubuntu 22.04+ or Debian 11+
- Python 3.11+
- An Anthropic API key (get one here)
One-liner install (coming soon):
curl -fsSL https://cortexlinux.com/install.sh | bashManual install:
-
Clone the repo
git clone https://github.com/cortexlinux/cortex.git cd cortex -
Create virtual environment
python3 -m venv venv source venv/bin/activate -
Install dependencies
pip install -e . -
Set your API key
export ANTHROPIC_API_KEY='your-api-key-here'
-
Run Cortex
cortex install docker
# See Cortex in action (no API key needed)
cortex demo
# Configure your API key interactively
cortex wizard
# Check system status
cortex status# Preview what would be installed
cortex install docker
# Actually execute the installation
cortex install docker --execute
# Natural language works too
cortex install "web development tools" --execute# See what would happen without executing
cortex install tensorflow --dry-run# View what Cortex has done
cortex history
# Show details for specific installation
cortex history <id>
# Rollback an installation
cortex rollback <id># Show verbose output
cortex -v install nginxFor more examples, please refer to the Documentation
| Feature | Description |
|---|---|
| Dry-run mode | Preview all commands before execution |
| Transaction log | Every operation is recorded with undo capability |
| Firejail sandbox | Optional sandboxing for untrusted packages |
| Confirmation prompts | Nothing executes without explicit approval |
| Rollback support | Integration with Timeshift/Snapper snapshots |
- Natural language to apt translation
- Dry-run mode (preview commands before execution)
- Firejail sandboxing with security controls
- Transaction history with rollback
- Rich terminal UI with CX branding
- Interactive setup wizard (
cortex wizard) - Local LLM fallback (Ollama support)
- Multi-provider support (Claude, GPT-4, Ollama)
- Input validation and security checks
- System status command (
cortex status)
- Hardware detection (GPU, CPU, RAM)
- Interactive fuzzy search (fzf integration)
- One-liner install script
- Offline mode with semantic caching
- System snapshot integration (Timeshift/Snapper)
- Web dashboard
- Package dependency visualization
See the open issues for a full list of proposed features and known issues.
Contributions make the open source community amazing. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
See CONTRIBUTING.md for detailed guidelines.
We pay contributors for merged PRs. π°
| Tier | Current | After Funding |
|---|---|---|
| Quick fix | $25 | +$25 bonus |
| Small feature | $50 | +$50 bonus |
| Medium feature | $75-100 | +$75-100 bonus |
| Large feature | $150-175 | +$150-175 bonus |
Early contributors get double β when we close funding, all previous bounties receive a matching bonus.
See issues labeled bounty to get started.
Distributed under the MIT License. See LICENSE for more information.
Mike Morgan - @mikejmorgan_ai
Project Link: https://github.com/cortexlinux/cortex
Discord: https://discord.gg/cortexlinux
- Anthropic Claude - AI backbone
- LangChain - LLM orchestration
- Rich - Terminal formatting
- Firejail - Sandboxing
- Best-README-Template - This README structure
