ApexCode combines the best features from Claude Code, OpenCode, Aider, Codex CLI, Gemini CLI, and more into a single, superior tool that outperforms all of them.
- Multi-Agent Swarms β Spawn sub-agents with isolated contexts for parallel task execution
- MemPalace Memory System β Revolutionary memory architecture using the method of loci (Wings/Rooms/Halls/Drawers)
- MCP Integration β Full Model Context Protocol support with 300+ existing integrations
- LSP Code Intelligence β Language Server Protocol bridge for completions, diagnostics, and symbol navigation
- Tree-Sitter Repo Map β AST-based codebase analysis with graph ranking
- Git Safety System β Auto-stash, branch protection, pre-commit checks
- Background Daemon β Persistent service with memory consolidation and proactive suggestions
- Cloud: OpenAI, Anthropic, Google, Groq, AWS Bedrock, Azure, OpenRouter
- Local: LM Studio (priority), Ollama, any OpenAI-compatible server
- Model Routing: Auto-select model based on task complexity
- Fallback: Automatic provider failover
curl -fsSL https://apexcode.dev/install.sh | shgit clone https://github.com/apexcode/apexcode.git
cd apexcode
go mod download
go build -o apex ./cmd/apex
sudo mv apex /usr/local/bin/brew tap apexcode/apexcode
brew install apexcodeapexapex "fix the authentication bug in auth.py"apex --initThis creates a APEX.md file for project-specific context.
| Key | Action |
|---|---|
Enter |
Send message |
Tab |
Toggle Plan/Build mode |
Ctrl+C / Ctrl+Q |
Quit |
? |
Toggle help |
- Analyze code without making changes
- Ask questions about the codebase
- Safe for exploring unfamiliar code
- AI can read and modify files
- Execute commands and fix bugs
- Full agent capabilities
Configuration is stored in ~/.config/apexcode/config.json:
{
"provider": "openai",
"providers": {
"openai": {
"api_key": "sk-...",
"model": "gpt-4o"
},
"anthropic": {
"api_key": "sk-ant-...",
"model": "claude-sonnet-4-20250514"
},
"lmstudio": {
"base_url": "http://localhost:1234/v1",
"model": "local-model"
}
}
}Or use environment variables:
export OPENAI_API_KEY=sk-...
export ANTHROPIC_API_KEY=sk-ant-...
export GOOGLE_API_KEY=...ApexCode uses MemPalace (by Milla Jovovich) for persistent memory:
- Wings β Top-level categories (project, personal, topics)
- Rooms β Subtopics within wings
- Halls β Category metadata (facts, events)
- Drawers β Actual content chunks
- Tunnels β Cross-domain bridges between rooms
- AAAK Compression β Deterministic abbreviation scheme
- Knowledge Graph β Temporal fact tracking in SQLite
- 170-Token Wake-Up β Minimal context loading on startup
βββββββββββββββββββββββββββββββββββββββββββββββ
β Terminal UI (Bubble Tea) β
βββββββββββββββββββββββββββββββββββββββββββββββ€
β Go Core (Agent Orchestrator) β
β βββββββββββββββ¬βββββββββββββββ¬βββββββββββ β
β β Agent Loop β Tool Router β Security β β
β βββββββββββββββ΄βββββββββββββββ΄βββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββ€
β TypeScript Plugin Runtime (Node) β
β βββββββββββββββ¬βββββββββββββββ¬βββββββββββ β
β β MCP Servers β LSP Bridge β Plugins β β
β βββββββββββββββ΄βββββββββββββββ΄βββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββ€
β LLM Provider Abstraction β
β (OpenAI, Anthropic, Google, LM Studio, β
β Groq, Ollama, Bedrock, Azure, OpenRouter) β
βββββββββββββββββββββββββββββββββββββββββββββββ
| Feature | ApexCode | Claude Code | OpenCode | Aider |
|---|---|---|---|---|
| Multi-agent swarms | β | β (hidden) | β | β |
| MemPalace memory | β | β | β | β |
| MCP integration | β | β | β | β |
| LSP support | β | β | β | β |
| Tree-sitter map | β | β | β | β |
| Local models (LM Studio) | β (priority) | β | β | β |
| Git safety | β | β | β | β |
| Background daemon | β | β (hidden) | β | β |
| Plugin system | β | Limited | Limited | β |
| Multi-provider | β All | Anthropic only | β 75+ | β Many |
Contributions are welcome! Please read our contributing guidelines and submit pull requests.
This project is currently closed-source. Future licensing plans are under consideration.
- MemPalace by Milla Jovovich & Ben Sigman β Revolutionary memory architecture
- Aider β Pioneer CLI coding assistant with tree-sitter repo maps
- OpenCode β Open-source AI coding agent with excellent TUI
- Claude Code β Inspired many features from the leaked source
- Charmbracelet β Beautiful terminal UI libraries
- Tree-sitter β Incremental parsing library
Built with β€οΈ by the ApexCode team