Getting Started
Install NeuralCleave, connect a language model, and have your first agent answering messages — on any of the 32 supported platforms — in under five minutes.
Requirements
- Python 3.12+ — required. Check with
python --version. - Redis (optional) — powers short-term, TTL-based session memory. Without it, the gateway falls back to in-memory storage.
- Qdrant (optional) — powers semantic / vector search. Without it, vector memory is disabled.
- Ollama (optional) — enables fully offline, privacy-mode inference. Any provider API key works as an alternative.
Redis and Qdrant are optional. NeuralCleave starts and responds to messages without them — memory capability is reduced but all channels, tools, and the plugin system work normally.
Installation
One-liner (recommended)
# Linux / macOS
curl -fsSL https://neuralcleave.com/install.sh | bash
# Windows — run in PowerShell
iwr -useb https://neuralcleave.com/install.ps1 | iex
Both scripts detect Python 3.12+, pip-install the package, resolve the entry-point, run neuralcleave init --non-interactive for a zero-prompt first-run, and print next steps.
Via pip
pip install neuralcleave
From source (development)
git clone https://github.com/TheAmitChandra/NeuralCleave.git
cd NeuralCleave
pip install -e ".[dev]" # installs ruff, pytest, httpx dev deps
Docker (no Python setup)
docker pull ghcr.io/theamitchandra/neuralcleave:latest
docker run -d \
-p 7432:7432 \
-v neuralcleave-data:/root/.neuralcleave \
--name neuralcleave \
ghcr.io/theamitchandra/neuralcleave:latest
For Docker with Redis and Qdrant, see Deployment.
Guided setup
neuralcleave init
The wizard asks for:
- Your agent's name (default:
NeuralCleave) - Primary language model + its API key (Anthropic, OpenAI, Gemini, DeepSeek, or Ollama)
- First channel to enable (Telegram bot token, Discord token, Slack tokens, etc.)
- Optional Redis / Qdrant URLs
- Optional voice test
The result is written to ~/.neuralcleave/config.toml. Every key is documented in Configuration.
Run neuralcleave init --non-interactive (or -y) for a zero-prompt setup that writes sane defaults. Useful in scripts or CI.
Start the gateway
# Background daemon (PID written to ~/.neuralcleave/gateway.pid)
neuralcleave start --background
# Foreground — useful during setup; logs stream to stdout
neuralcleave start
# Bind to a custom host/port
neuralcleave start --host 0.0.0.0 --port 7432
The gateway binds to 127.0.0.1:7432 by default. You can verify it's alive:
curl http://localhost:7432/health
# {"status":"ok","version":"2.1.0","agent":"YourAgentName"}
First message
Talk to your agent directly from the terminal:
neuralcleave chat
Or send a message via the REST API:
curl -s -X POST http://localhost:7432/api/v1/chat \
-H "Content-Type: application/json" \
-d '{"message": "Hello! Who are you?"}' | python -m json.tool
Once your channel is configured (Telegram, Discord, Slack, etc.), message the bot there — NeuralCleave receives the message through the channel adapter, routes it through the LLM, and replies back on the same platform.
Check status
neuralcleave status
Shows: agent name, primary model, gateway bind address, enabled channels, memory backend status, and long-term memory row count.
Stop the gateway
neuralcleave stop
OS autostart
Register NeuralCleave to start automatically at login:
neuralcleave autostart enable # writes OS-specific startup entry
neuralcleave autostart status # check if registered
neuralcleave autostart disable # remove startup entry
Platform details:
- Windows — adds
HKCU\Software\Microsoft\Windows\CurrentVersion\Run\NeuralCleave - macOS — writes
~/Library/LaunchAgents/com.neuralcleave.plist(launchd) - Linux — writes
~/.config/systemd/user/neuralcleave.service
Desktop app
A Tauri 2.x desktop app is available for Windows, macOS, and Linux. It bundles the backend as a PyInstaller sidecar — no separate terminal needed.
- Download from the GitHub Releases page
- System tray icon for quick access
- Global hotkey Ctrl+Shift+Space to show / hide the window
- Single-instance guard — won't launch a second gateway
- Close-to-tray behaviour — the gateway keeps running when the window is closed
Mobile (PWA)
NeuralCleave serves a Progressive Web App from the gateway at /app. Open it in Safari (iOS) or Chrome (Android) and tap "Add to Home Screen" — no app store required.
# Open on mobile browser while on the same network
http://YOUR_MACHINE_IP:7432/app
The PWA supports offline access (Service Worker cache), Web Push notifications, and the same WebSocket chat protocol as the desktop client.