codex-linux
v1.0.4
Published
A Linux port of OpenAI Codex - Multi-agent AI coding command center
Readme
Codex Linux
A Linux port of OpenAI Codex - A powerful command center for managing multiple AI coding agents in parallel.
Features
- Multi-Agent Orchestration: Manage multiple AI agents working in parallel on different tasks
- Git Worktrees: Isolate agent changes in separate worktrees for safe experimentation
- Skills System: Create and apply reusable skills to customize agent behavior
- Automation: Schedule recurring tasks and create automated workflows
- Multi-Provider Support: Works with OpenAI (GPT-4, GPT-5, Codex) and Anthropic (Claude) models
- Change Review: Review, approve, or reject agent code changes before applying
- Linux Native: Built specifically for Linux with AppImage, deb, and rpm packages
Installation
Quick Install (Recommended)
curl -fsSL https://raw.githubusercontent.com/ranker-002/codex-linux/master/scripts/install.sh | bashThis will install Codex Linux to ~/.local/bin and add it to your PATH.
Via npm
npm install -g codex-linuxSystem-wide Install
curl -fsSL https://raw.githubusercontent.com/ranker-002/codex-linux/master/scripts/install.sh | sudo bash -s -- --systemDownload AppImage
Download the latest AppImage from GitHub Releases:
# Download
wget https://github.com/ranker-002/codex-linux/releases/latest/download/Codex.Linux-1.0.1.AppImage
# Make executable
chmod +x Codex.Linux-1.0.1.AppImage
# Run
./Codex.Linux-1.0.1.AppImageFrom Source
# Clone the repository
git clone https://github.com/ranker-002/codex-linux.git
cd codex-linux
# Install dependencies
pnpm install
# Build the application
npm run build
# Run in development mode
npm run dev
# Package for Linux
npm run package:linuxQuick Start
Launch Codex Linux - Run the application from your applications menu or terminal:
codex-linuxConfigure AI Provider:
- Go to Settings → AI Providers
- Add your OpenAI or Anthropic API key
- Test the connection
Create Your First Agent:
- Click "+ New Agent"
- Select a project folder
- Choose a provider and model
- Optionally apply skills
Start Coding:
- Send messages to your agent
- Assign tasks for parallel execution
- Review changes in worktrees
Configuration
Environment Variables
# Optional: Set default API keys
export OPENAI_API_KEY="your-key-here"
export ANTHROPIC_API_KEY="your-key-here"Settings File
Settings are stored in ~/.config/codex/config.json:
{
"theme": "dark",
"defaultProvider": "openai",
"defaultModel": "gpt-4o",
"maxParallelAgents": 5,
"shortcuts": {
"agent:new": "Ctrl+Shift+N",
"agent:send": "Ctrl+Enter"
}
}Skills
Skills are reusable instructions that customize agent behavior:
- Create skills in the Skills panel
- Write instructions in markdown
- Apply skills to agents when creating or editing
Example Skill Structure
~/.config/codex/skills/my-skill/
├── skill.yaml # Skill metadata
├── instructions.md # Core instructions
└── templates/
└── code-review.md # Review templateAutomations
Create automated workflows:
- Schedule: Run on cron schedule (e.g., daily code review)
- Event: Trigger on git events or file changes
- Webhook: Trigger via HTTP requests
- Manual: Run on demand
Worktrees
Git worktrees provide isolated environments for each agent:
- Changes are isolated from main branch
- Easy to review and merge
- Automatic cleanup on agent deletion
- Visual diff and merge tools
Keyboard Shortcuts
| Action | Shortcut |
|--------|----------|
| New Agent | Ctrl+Shift+N |
| Send Message | Ctrl+Enter |
| New Worktree | Ctrl+Shift+W |
| Open Skills | Ctrl+Shift+S |
| Open Automations | Ctrl+Shift+A |
| Open Settings | Ctrl+, |
| Command Palette | Ctrl+Shift+P |
Architecture
codex-linux/
├── src/
│ ├── main/ # Electron main process
│ │ ├── agents/ # Agent orchestration
│ │ ├── git/ # Git worktree management
│ │ ├── skills/ # Skills system
│ │ ├── automations/ # Automation scheduler
│ │ └── providers/ # AI provider integrations
│ ├── renderer/ # React frontend
│ │ └── components/ # UI components
│ └── shared/ # Shared types
├── assets/ # Icons and images
└── tests/ # Test suitesDevelopment
Prerequisites
- Node.js 18+
- pnpm (recommended) or npm
- Git
Running Tests
npm testLinting
npm run lint
npm run lint:fixType Checking
npm run typecheckUninstall
codex-linux --uninstall
# or
~/.local/bin/uninstall-codex-linux.shContributing
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
MIT License - see LICENSE file for details.
Acknowledgments
- Inspired by OpenAI Codex
- Built with Electron, React, and TypeScript
- Uses Simple Git for git operations
- Icons by Lucide
Support
- GitHub Issues: Report bugs or request features
- GitHub Releases: Download latest version
