An AI-powered package manager for Debian/Ubuntu that understands natural language.
$ cortex install nginx --dry-run
๐ง Understanding request: nginx
๐ฆ Mode: DRY RUN
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ Installation Plan โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ Packages to install: โ
โ - nginx (1.24.0) โ
โ - nginx-common โ
โ - libnginx-mod-http-geoip โ
โ โ
โ Commands that will be executed: โ
โ sudo apt update โ
โ sudo apt install -y nginx โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
Run with --execute to install, or edit the plan above.
- OS: Ubuntu 22.04+ / Debian 12+
- Python: 3.10 or higher
- API Key: Anthropic API key (get one at console.anthropic.com)
Check your Python version:
python3 --version # Must be 3.10+git clone https://github.com/cortexlinux/cortex.git
cd cortexpython3 -m venv venv
# Linux/macOS (bash/zsh):
source venv/bin/activate
# Linux/macOS (sh/dash):
. venv/bin/activate
# Windows:
venv\Scripts\activatepip install -e .echo 'ANTHROPIC_API_KEY=your-key-here' > .envReplace your-key-here with your actual Anthropic API key.
cortex --version
# Output: cortex, version 0.1.0
cortex install nginx --dry-run
# Should show installation plancortex install nginx --dry-run
cortex install "something to edit PDFs" --dry-runcortex install nginx --executecortex history
cortex rollback <id>cortex check-pref# Make sure .env file exists and contains your key
cat .env
# Should show: ANTHROPIC_API_KEY=sk-ant-...
# If missing, create it:
echo 'ANTHROPIC_API_KEY=your-actual-key' > .env# Make sure virtual environment is activated
source venv/bin/activate # or: . venv/bin/activate
# Reinstall if needed
pip install -e .# Check version
python3 --version
# Ubuntu/Debian - install newer Python:
sudo apt update
sudo apt install python3.11 python3.11-venv
# Use specific version:
python3.11 -m venv venv# Update pip first
pip install --upgrade pip
# Try again
pip install -e .
# If still failing, install build tools:
sudo apt install python3-dev build-essential| Feature | Description |
|---|---|
| Dry-run default | Shows planned commands without executing |
| Firejail sandbox | Commands run in isolated environment |
| Rollback support | Undo any installation with cortex rollback |
| Audit logging | All actions logged to ~/.cortex/history.db |
| No root by default | Only uses sudo when explicitly needed |
- โ CLI with dry-run and execute modes
- โ Claude and OpenAI integration
- โ Installation history and rollback
- โ User preferences (YAML-backed)
- โ Hardware detection
- โ Firejail sandboxing
- ๐ Conflict resolution UI
- ๐ Multi-step orchestration
- ๐ Ollama local model support
- ๐ MCP server integration
We need:
- Python developers (package manager features)
- Linux kernel developers (kernel optimizations)
- Technical writers (documentation)
- Beta testers (bug reports)
Bounties available for merged PRs. See issues labeled bounty.
- Discord: discord.gg/uCqHvxjU83
- Email: [email protected]
Apache 2.0