Free, open-source AI coding agent for the terminal, written in Rust. Use DeepSeek, Claude, Gemini, OpenAI, Azure or local models, and manage servers over SSH with cxs.
Corex v0.15.0 is free software (AGPL-3.0) for Linux, macOS, Windows and Android Termux.
curl -fsSL https://raw.githubusercontent.com/sluisr/corex/main/install.sh | sh
Download v0.15.0 · Source on GitHub · Changelog
Corex is an autonomous AI agent for your terminal, written in Rust. cx is a coding agent that reads, edits and tests a project; cxs is a console for managing remote servers over SSH. Both ship in one native binary.
DeepSeek, Google Gemini, Anthropic Claude (Opus, Sonnet and Haiku 5.5, Fable 5.1), OpenAI, Azure AI Foundry, Groq, OpenRouter, Mistral AI, GitHub Models and NVIDIA NIM, plus any local model served through llama.cpp's llama-server or Ollama. You bring your own API key.
Yes for inference: with llama-server or Ollama, prompts, code and responses never leave your machine and there is no API cost. Corex still makes one small background request at startup to check for a newer release, and you can turn it off with `--no-update-check` or `COREX_NO_UPDATE_CHECK=1`; on an air-gapped machine without it, the request simply fails silently.
Yes. Corex is licensed under AGPL-3.0 and the source is on GitHub. It is free to use; you only pay your model provider, or nothing with a local model. A commercial license is available for closed-source embedding.
Linux (x86_64 and ARM64), macOS (Apple Silicon and Intel), Windows x86_64 and Android through Termux. The official Linux builds link dynamically against glibc 2.17, so Debian 11+, Ubuntu 20.04+, RHEL 8+ and equivalents work.
Run the install script (curl -fsSL https://raw.githubusercontent.com/sluisr/corex/main/install.sh | sh), or use Homebrew (brew install sluisr/tap/cx), cargo (cargo install corex-cli), npm (npm install -g @sluisr/corex) or Nix (nix run github:sluisr/corex). Prebuilt archives with SHA-256 checksums are on the releases page.
Every shell command and file edit goes through an approval prompt unless you allow it. Edits require the file to have been read first, writes to SSH keys, .env and git config are blocked even in YOLO mode, parallel writes are serialized with file locks, and subagents run without auto-approve or sudo.
Corex is in beta and moving towards 1.0. Commands, flags and internal interfaces are still being refined, and every release is documented in the changelog.