Neoland Quick Start Guide
Last Updated: 2026-04-02
Get up and running with Neoland in under 5 minutes.
Prerequisitesβ
- NixOS or Nix package manager
- 2GB free RAM (for local inference)
- Terminal emulator
Installationβ
Option 1: Development Modeβ
cd /home/kernelcore/master/neoland
nix develop
# Dev-shell aliases
neoland-secrets
neoland-server
neoland-client --ml-api-url http://localhost:9000
Option 2: Build Release Binaryβ
nix develop --command cargo build --bin neoland --release
# Binary: ./target/release/neoland
Basic Usageβ
1. Start the Serverβ
# Default ports: gRPC=50051, REST=3001
neoland server
# In nix develop, you can use the alias
neoland-server
# Custom configuration
neoland server --grpc-port 50052 --rest-port 3002 --log-level debug
The server will:
- Download models on first run (~1.2GB total)
- Start gRPC service on
[::]:<grpc-port> - Start REST API on
0.0.0.0:<rest-port>
2. Launch TUI Clientβ
In a new terminal:
# Connect to default local server
neoland client
# In nix develop, you can use the alias
neoland-client
# Custom endpoints
neoland client \
--server-url http://[::1]:50051 \
--ml-api-url http://localhost:9000
Secretsβ
For local encrypted secrets, edit secrets/neoland.sops.env with:
neoland-secrets
The neoland-server, neoland-client, nsrv, and ncli commands decrypt and
load that file automatically before launch.
TUI Interfaceβ
Layoutβ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β π Neoland TUI | http://[::1]:50051 | β
Ready | Preset: ... β
βββββββββββββββββββββββββββββββββββββββββββ¬ββββββββββββββββββββ€
β π¬ Chat β βΉοΈ Info β
β β β
β [12:34:56] π€ VOCΓ β π Config Atual β
β Hello, how are you? β β
β β Temperature: 0.70β
β [12:34:58] π€ AI β Top P: 0.90 β
β I'm doing well! How can I help? β Max Tokens: 600 β
β β β
β β β¨οΈ Atalhos β
β β β
β β Ctrl+1-5: Presetsβ
β β Ctrl+L: Limpar β
β β Tab: Sidebar β
β β Esc: Sair β
βββββββββββββββββββββββββββββββββββββββββββ΄ββββββββββββββββββββ€
β βοΈ Input (Ctrl+Enter para enviar) β
β _ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Keyboard Shortcutsβ
| Key | Action |
|---|---|
| Ctrl+Enter | Send message |
| Ctrl+L | Clear chat |
| Ctrl+1 | Balanced preset (temp: 0.7) |
| Ctrl+2 | Creative preset (temp: 1.5) |
| Ctrl+3 | Precise preset (temp: 0.3) |
| Ctrl+4 | Research preset (RAG: max) |
| Ctrl+5 | Safe preset (commands: off) |
| Tab | Toggle sidebar |
| j / k | Scroll down/up |
| Esc | Quit |
Visual Feedbackβ
- β Ready: System idle
- β³ Thinking...: Processing inference
Testingβ
Health Checkβ
neoland test
# JSON output for scripts or CI smoke checks
neoland test --json
Verifies:
- REST API (
/healthendpoint) - gRPC connectivity (real connection attempt)
- Process status
REST API Direct Testβ
# Health check
curl http://localhost:3001/health
# Expected: OK
# Chat completion (OpenAI-compatible, authenticated)
curl -X POST http://localhost:3001/v1/chat/completions \
-H "X-API-Key: neoland_admin_dev_key_change_in_production" \
-H "Content-Type: application/json" \
-d '{
"messages": [{"role": "user", "content": "Hello"}],
"stream": false
}'
Advanced Configurationβ
Environment Variablesβ
# ML Offload API URL (if using external GPU service)
export ML_API_URL="http://gpu-server.local:9000"
neoland client --ml-api-url $ML_API_URL
Preset Customizationβ
Edit src/tui/presets.rs:
pub fn creative() -> Self {
Self {
temperature: 1.8, // Increase randomness
max_tokens: 800, // Longer responses
// ...
}
}
Rebuild: cargo build --release
NixOS Integrationβ
System Serviceβ
Add to configuration.nix:
imports = [ ./modules/applications/neoland.nix ];
services.neoland = {
enable = true;
grpcPort = 50051;
restPort = 3001;
};
Rebuild: sudo nixos-rebuild switch
Hyprland Scratchpadβ
Included in module config:
- Keybind:
Super+Ntoggles scratchpad - Window Rules: Float, center, 1400x900, 95% opacity
Agent Hub Launcherβ
Access via Wofi menu (configured in agent-hub.nix):
- Select "σ° Neoland - AI Agent"
- Client launches in Alacritty terminal
Troubleshootingβ
Model Download Issuesβ
# Clear cache and retry
rm -rf ~/.cache/huggingface/hub/models--Qwen*
neoland server
Connection Refusedβ
# Check if server is running
pgrep -f "neoland server"
# Check port availability
lsof -i :50051
TUI Not Renderingβ
# Verify terminal capabilities
echo $TERM
# Should be: xterm-256color, alacritty, or similar
# Force color support
export TERM=xterm-256color
neoland client
High Memory Usageβ
Server memory grows with chat history. Restart periodically:
neoland restart
Performance Tipsβ
- Use ml-offload-api: Offload to GPU for 10-50x speedup
- Reduce max_tokens: Lower values = faster responses
- Disable RAG: Set
context_top_k: 0if not needed
Next Stepsβ
- Read
ARCHITECTURE.mdfor technical details - Explore integration points (
ml-offload-api,securellm-bridge) - Check NixOS module:
/etc/nixos/modules/applications/neoland.nix
Supportβ
Internal project - contact VoidNxSEC team for issues.
Pro Tip: Use neoland --help or neoland <command> --help for detailed CLI documentation.