Skip to content

LHenri88/NeoCode-Cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

28 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
NeoCode
β–ˆβ–ˆβ–ˆβ•—   β–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
β–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•”β•β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•”β•β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β•β•β•
β–ˆβ–ˆβ•”β–ˆβ–ˆβ•— β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
β–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β•  β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β•
β–ˆβ–ˆβ•‘ β•šβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
β•šβ•β•  β•šβ•β•β•β•β•šβ•β•β•β•β•β•β• β•šβ•β•β•β•β•β•  β•šβ•β•β•β•β•β• β•šβ•β•β•β•β•β• β•šβ•β•β•β•β•β• β•šβ•β•β•β•β•β•β•

NeoCode

🌍 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.

npm PR Checks Release Discussions Security Policy License

Quick Start | Installation | Features | Documentation | Providers | Community


🎯 Why NeoCode?

  • 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

πŸš€ Quick Start

Installation

npm / npx (Recommended for Node.js users) πŸ“¦

Try without installing:

npx neocode-cli

Install globally:

npm install -g neocode-cli
neocode

Standalone 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 | bash

Windows PowerShell:

irm https://raw.githubusercontent.com/LHenri88/NeoCode/main/install-standalone.ps1 | iex

Or 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:all

See 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.MSVC

First Run

neocode

Inside NeoCode:

  • Run /provider for guided provider setup with saved profiles
  • Run /help to see all available commands
  • Run /onboard-github for GitHub Models onboarding

Fastest OpenAI Setup

macOS / Linux:

export CLAUDE_CODE_USE_OPENAI=1
export OPENAI_API_KEY=sk-your-key-here
export OPENAI_MODEL=gpt-4o

neocode

Windows PowerShell:

$env:CLAUDE_CODE_USE_OPENAI="1"
$env:OPENAI_API_KEY="sk-your-key-here"
$env:OPENAI_MODEL="gpt-4o"

neocode

Fastest Local Ollama Setup

macOS / Linux:

export CLAUDE_CODE_USE_OPENAI=1
export OPENAI_BASE_URL=http://localhost:11434/v1
export OPENAI_MODEL=qwen2.5-coder:7b

neocode

Windows PowerShell:

$env:CLAUDE_CODE_USE_OPENAI="1"
$env:OPENAI_BASE_URL="http://localhost:11434/v1"
$env:OPENAI_MODEL="qwen2.5-coder:7b"

neocode

✨ Features

Core Capabilities

  • 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 /command syntax
  • 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 & Intelligence

  • 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

Developer Experience

  • 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

Integrations

  • 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

Automation

  • 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

πŸ“– Documentation

Setup Guides

User Guides

Developer Documentation

Provider Documentation


πŸ”Œ Supported Providers

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

Provider Notes

  • 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)

πŸ—οΈ Architecture

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.


πŸ› οΈ Development

Source Build

# 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 Commands

# 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

Provider Development

# 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:7b

πŸ“¦ Repository Structure

neocode/
β”œβ”€β”€ 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

🀝 Community


πŸ”’ Security

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.


πŸ“„ License

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.


πŸ™ Acknowledgments

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

πŸš€ What's Next?

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

About

Harness-Cli Agentic Development multi-provider - Claude Code Free Local

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages