ββββ βββββββββββ βββββββ βββββββ βββββββ βββββββ ββββββββ
βββββ βββββββββββββββββββββββββββββββββββββββββββββββββββββ
ββββββ βββββββββ βββ ββββββ βββ ββββββ βββββββββ
ββββββββββββββββ βββ ββββββ βββ ββββββ βββββββββ
βββ ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
βββ βββββββββββββ βββββββ βββββββ βββββββ βββββββ ββββββββ
π Languages: π§π· PortuguΓͺs | πΊπΈ English | πͺπΈ EspaΓ±ol
The Next-Generation Agentic CLI for Multi-Provider AI Development
NeoCode is an open-source, privacy-first coding agent CLI that works with cloud and local AI model providers. Use OpenAI, Gemini, Ollama, Codex, and other backends while keeping one powerful terminal-first workflow with tools, agents, MCP protocol, slash commands, and streaming output.
Quick Start | Installation | Features | Documentation | Providers | Community
- Multi-Provider Support - Use one CLI across OpenAI, Gemini, Ollama, GitHub Models, Codex, and other compatible providers
- Privacy-First - Zero telemetry by default, local-first AI support, verifiable with
bun run verify:privacy - Powerful Tooling - 48+ built-in tools (bash, file operations, grep, glob, agents, web search, and more)
- Memory System - Persistent project memory with Memory Palace and Knowledge Graph
- Extensible - MCP protocol support, custom slash commands, plugins, and skills
- Developer-Focused - Terminal-first workflow with streaming output, syntax highlighting, and VS Code integration
- Autonomous Agents - Multi-agent orchestration with swarm intelligence and hierarchical task delegation
- Background Tasks - KAIROS daemon for async operations, auto-dream consolidation, and notifications
npm / npx (Recommended for Node.js users) π¦
Try without installing:
npx neocode-cliInstall globally:
npm install -g neocode-cli
neocodeStandalone Binaries β‘ No Node.js Required!
One-line installer (auto-downloads latest release):
macOS / Linux:
curl -fsSL https://raw.githubusercontent.com/LHenri88/NeoCode/main/install-standalone.sh | bashWindows PowerShell:
irm https://raw.githubusercontent.com/LHenri88/NeoCode/main/install-standalone.ps1 | iexOr download manually:
Build from Source (Developers):
# Clone repository
git clone https://github.com/LHenri88/NeoCode-Cli.git
cd NeoCode-Cli
# Install dependencies
bun install
# Build regular distribution
bun run build
# Or build standalone binaries
bun run build:standalone:allSee STANDALONE_BUILD.md for detailed build instructions.
Dependencies:
If the install reports ripgrep not found, install ripgrep system-wide:
# macOS
brew install ripgrep
# Ubuntu/Debian
sudo apt install ripgrep
# Windows
winget install BurntSushi.ripgrep.MSVCneocodeInside NeoCode:
- Run
/providerfor guided provider setup with saved profiles - Run
/helpto see all available commands - Run
/onboard-githubfor GitHub Models onboarding
macOS / Linux:
export CLAUDE_CODE_USE_OPENAI=1
export OPENAI_API_KEY=sk-your-key-here
export OPENAI_MODEL=gpt-4o
neocodeWindows PowerShell:
$env:CLAUDE_CODE_USE_OPENAI="1"
$env:OPENAI_API_KEY="sk-your-key-here"
$env:OPENAI_MODEL="gpt-4o"
neocodemacOS / Linux:
export CLAUDE_CODE_USE_OPENAI=1
export OPENAI_BASE_URL=http://localhost:11434/v1
export OPENAI_MODEL=qwen2.5-coder:7b
neocodeWindows PowerShell:
$env:CLAUDE_CODE_USE_OPENAI="1"
$env:OPENAI_BASE_URL="http://localhost:11434/v1"
$env:OPENAI_MODEL="qwen2.5-coder:7b"
neocode- 48+ Built-in Tools - File operations, bash execution, grep/glob search, web fetch/search, agent delegation, and more
- 93+ Slash Commands - Quick access to features via
/commandsyntax - Streaming Responses - Real-time token output and tool progress
- Multi-Step Tool Loops - Complex workflows with model calls, tool execution, and follow-up responses
- Vision Support - URL and base64 image inputs for providers that support vision
- Syntax Highlighting - Code syntax highlighting in terminal output
- Memory Palace - Hierarchical memory organization with Wings and Rooms
- Knowledge Graph - SQLite + ChromaDB for semantic search and relationships
- Session Memory - Persistent context across conversations
- Auto-Dream - Background memory consolidation and insight extraction
- Guidance Agent - Context-aware task routing and optimization
- Provider Profiles - Saved configurations in
.neocode-profile.json - Agent Routing - Route different agents to different models for cost optimization
- Permission System - Granular control over tool execution (block/ask/auto/yolo)
- Sandbox Mode - Safe execution environment for untrusted operations
- Audit Log - Persistent log of all tool executions
- MCP Protocol - Model Context Protocol for external tool integration
- VS Code Extension - Launch integration, theme support, and provider-aware UI
- gRPC Server - Headless mode for integration with other applications
- Voice Input - Voice-to-text for hands-free coding
- Notification Channels - Telegram, Discord, WhatsApp via plugins
- KAIROS Daemon - Background task scheduling and execution
- BTW (By The Way) - Async background tasks with terminal overlay notifications
- Auto-Fix - Automatic linting and test execution after file edits
- CI/CD Hooks - Pre-commit, post-commit, and PR integration
- Installation Guide - Detailed installation instructions for all platforms
- Non-Technical Setup - Beginner-friendly guide
- Windows Quick Start - Windows-specific instructions
- macOS / Linux Quick Start - Unix-based setup
- Advanced Setup - Advanced configuration options
- Android Install - Mobile setup guide
- User Guide - Complete feature walkthrough
- Commands Reference - All slash commands and usage
- Playbook - Practical guide for daily workflows
- Features Overview - Detailed feature documentation
- Architecture - System design and component overview
- Contributing Guide - How to contribute to NeoCode
- API Reference - Integration and plugin development
- Requirements - Dependencies and system requirements
- Security Policy - Vulnerability reporting and security practices
- Providers Overview - Supported providers and setup
- LiteLLM Setup - Using NeoCode with LiteLLM proxy
| Provider | Setup Path | Notes |
|---|---|---|
| OpenAI-compatible | /provider or env vars |
Works with OpenAI, OpenRouter, DeepSeek, Groq, Mistral, LM Studio, and other /v1 servers |
| Gemini | /provider or env vars |
API key, access token, or local ADC workflow |
| GitHub Models | /onboard-github |
Interactive onboarding with saved credentials |
| Codex | /provider |
Uses existing Codex credentials |
| Ollama | /provider or env vars |
Local inference with no API key (recommended) |
| Atomic Chat | advanced setup | Local Apple Silicon backend |
| Bedrock | env vars | AWS Bedrock integration |
| Vertex AI | env vars | Google Cloud Vertex AI |
| Azure OpenAI | env vars | Azure-hosted OpenAI models |
- Tool quality varies by model - use models with strong function calling support
- Smaller local models may struggle with complex multi-step workflows
- Some providers have lower output caps than CLI defaults
- Agent routing allows mixing providers (e.g., GPT-4o for planning, DeepSeek for execution)
NeoCode is built on a layered architecture:
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Interface Layer (CLI, gRPC, VS Code, Voice) β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Core Engine (Main Loop, Tools, MCP, Permissions) β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Provider Layer (Ollama, OpenAI, Gemini, etc.) β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Memory Layer (Memory Palace, Knowledge Graph) β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Daemon Layer (KAIROS, AutoDream, Notifications) β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
See ARCHITECTURE.md for detailed diagrams and component descriptions.
# Clone repository
git clone https://gitlawb.com/z6MkqDnb7Siv3Cwj7pGJq4T5EsUisECqR8KpnDLwcaZq5TPr/neocode.git
cd neocode
# Install dependencies
bun install
# Build
bun run build
# Run locally
node dist/cli.mjs# Development with hot reload
bun run dev
# Run tests
bun test
# Test coverage
bun run test:coverage
# Type checking
bun run typecheck
# Smoke test (quick validation)
bun run smoke
# Runtime diagnostics
bun run doctor:runtime
# Privacy verification
bun run verify:privacy# Initialize provider profiles
bun run profile:init -- --provider ollama --model llama3.1:8b
bun run profile:init -- --provider openai --api-key sk-... --model gpt-4o
# Launch with specific provider
bun run dev:ollama
bun run dev:openai
bun run dev:gemini
# Quick presets
bun run profile:fast # llama3.2:3b
bun run profile:code # qwen2.5-coder:7bneocode/
βββ bin/neocode # CLI entry point
βββ src/
β βββ main.tsx # Main loop
β βββ tools/ # 48+ built-in tools
β βββ commands/ # 93+ slash commands
β βββ services/ # Core services
β β βββ api/ # Provider layer
β β βββ autoDream/ # Memory consolidation
β β βββ kairos/ # Background daemon
β β βββ memoryPalace/ # Hierarchical memory
β β βββ ...
β βββ components/ # Ink/React UI components
β βββ grpc/ # gRPC server
β βββ utils/ # Utilities
βββ vscode-extension/ # VS Code extension
βββ plugins/ # Official plugins
βββ scripts/ # Build and utility scripts
βββ docs/ # Documentation
βββ tests/ # Test suites
- GitHub Discussions - Q&A, ideas, and community conversation
- GitHub Issues - Bug reports and feature requests
- Contributing Guide - How to contribute to NeoCode
- Security Policy - Vulnerability reporting
NeoCode is built with security and privacy as core principles:
- Zero Telemetry - No data sent to third parties (verifiable with
bun run verify:privacy) - Permission Gates - Granular control over tool execution
- Sandbox Mode - Safe execution environment
- Audit Log - Persistent log of all operations
- No Hardcoded Credentials - All secrets via env vars or config files
If you believe you found a security issue, see SECURITY.md for responsible disclosure.
NeoCode originated from the Claude Code codebase and has been substantially modified to support multiple providers and open use. "Claude" and "Claude Code" are trademarks of Anthropic PBC.
NeoCode is an independent community project and is not affiliated with, endorsed by, or sponsored by Anthropic.
See LICENSE for full license details.
NeoCode builds upon the excellent work of:
- Claude Code - Original inspiration and foundation
- Anthropic - For Claude AI and the Anthropic SDK
- Ollama - For making local AI accessible
- Ink - For terminal UI framework
- Model Context Protocol - For standardized tool integration
- Open Source Community - For countless tools and libraries
See EPICS.md for our roadmap and upcoming features.
Join us in building the most powerful open-source agentic CLI!
Made with π by the NeoCode community