Installation
Requirements
- Python 3.11+ (3.12 recommended)
- pip or uv package manager
- Git (for version-controlled projects)
Install from Source
bash
git clone https://github.com/M9nx/CodexA.git
cd CodexA
pip install -e "."Optional Extras
Install with optional dependencies for additional features:
bash
pip install -e ".[dev]"
# Includes: pytest, pytest-covbash
pip install -e ".[tui]"
# Includes: textual (interactive terminal UI)bash
pip install -e ".[dev,tui]"Verify Installation
bash
codex --version
# codex-ai 0.28.0
codex doctor
# Checks environment healthFirst-Time Setup
Initialize CodexA in your project:
bash
cd /path/to/your-project
codex initThis creates a .codex/ directory with:
.codex/
├── config.json # Configuration (embedding, search, LLM settings)
├── index/ # FAISS vector index (after indexing)
├── cache/ # Query and embedding caches
└── plugins/ # Custom plugins directoryLLM Configuration (Optional)
For AI-powered commands (ask, review, refactor, chat, etc.), configure an LLM provider in .codex/config.json:
json
{
"llm": {
"provider": "openai",
"model": "gpt-4",
"api_key": "sk-...",
"temperature": 0.2,
"max_tokens": 2048
}
}Supported providers: openai, ollama (local), mock (testing).
Next Steps
- Quick Start — Index a project and start searching
- Configuration — Full configuration reference
- AI Agent Setup — Integrate with VS Code Copilot