| name | lev-install |
| description | [WHAT] Legacy install/setup reference for Lev CLI.
[HOW] Documents historical install paths and commands.
[WHEN] Use only when explicitly troubleshooting installation behavior.
[WHY] Active install guidance should live in `~/lev/docs` and runtime commands (`lev-core`).
Triggers: "install lev", "lev install", "setup lev", "upgrade lev", "verify installation", "lev setup", "configure lev"
|
| skill_type | reference |
| category | docs-legacy |
| status | deprecated |
| lifecycle_integration | {"stage":"manifesting","input_artifact":"project to configure","output_artifact":"installed lev environment (.lev/ + ~/.config/lev/)"} |
Lev Install & Setup
Deprecated as a primary skill. Prefer canonical docs in ~/lev/docs plus lev-core runtime commands.
Overview
Lev uses a fractal pattern with two installation locations:
- Global:
~/.config/lev (user-level config, logs, state)
- Local:
./.lev (project-level config and artifacts)
Quick Start
npm install -g @lev-os/lev
pnpm add -g @lev-os/lev
cd your-project
lev install
lev --version
ls -la .lev/
ls -la ~/.config/lev/
Install Commands
lev install
lev upgrade
lev install --force
lev install --config ./path/to/config.yaml
What Gets Installed
| Path | Purpose |
|---|
~/.config/lev/ | Global config, logs, state |
~/.config/lev/logs/ | Daemon log files |
~/.config/lev/daemons/ | pmdaemon process configs |
.lev/ | Project-local directory |
.lev/config.yaml | Project configuration |
Configuration
Project Config (.lev/config.yaml)
project:
name: my-project
poly:
daemons:
- name: ck-lite
autostart: true
port: 18080
env:
LOG_LEVEL: debug
- name: leann
autostart: false
healthcheck: /health
- name: orchestrator
autostart: false
Common Daemons
| Daemon | Purpose | Default Port |
|---|
ck-lite | Lightweight Claude kernel | 18080 |
leann | Vector index server | 18081 |
orchestrator | Multi-agent coordination | 18082 |
Daemon Management
After installation, manage daemons with:
lev daemon list
lev daemon start <name>
lev daemon stop <name>
lev daemon restart <name>
lev daemon logs <name>
lev daemon logs <name> --follow
lev daemon status
lev daemon start --autostart
lev daemon stop --all
Upgrading
npm update -g @lev-os/lev
pnpm update -g @lev-os/lev
lev upgrade
lev install --force
Verify Installation
lev --version
ls -la ~/.config/lev/
ls -la .lev/
cat .lev/config.yaml
lev daemon status
lev get "hello world"
Troubleshooting
Installation Issues
| Issue | Solution |
|---|
| Permission denied on ~/.config/lev | sudo chown -R $USER ~/.config/lev |
| .lev not created | Run lev install from project root |
| Config not found | Check .lev/config.yaml exists |
| Command not found: lev | Ensure npm global bin is in PATH |
Daemon Issues
| Issue | Solution |
|---|
| Daemons not starting | Check logs: lev daemon logs <name> |
| Port already in use | lsof -i :<port> then kill conflicting process |
| Health check failing | Verify endpoint: curl localhost:<port>/health |
| High memory usage | Restart: lev daemon restart <name> |
Path Issues
npm config get prefix
export PATH="$(npm config get prefix)/bin:$PATH"
which lev
Location Rules
The .lev location is fixed (fractal pattern):
- Global:
~/.config/lev (cannot be moved)
- Local:
./.lev (cannot be moved)
Artifact paths within .lev (indexes, bd, cache) can be configured in config.yaml.
First-Time Setup Checklist
- Install lev CLI globally
- Run
lev install in project root
- Verify with
lev --version and ls .lev/
- Edit
.lev/config.yaml for project-specific settings
- Start daemons:
lev daemon start --autostart
- Test:
bd ready to see available work
Post-Install Commands
After successful installation:
bd ready
lev get "query"
lev daemon status
Uninstall
rm -rf .lev/
rm -rf ~/.config/lev/
npm uninstall -g @lev-os/lev
Quick Reference
| Command | Purpose |
|---|
lev install | Initialize project |
lev upgrade | Force reinstall |
lev daemon list | Show daemons |
lev daemon start <n> | Start daemon |
lev daemon status | Health check |
lev --version | Verify CLI |
Technique Map
- Role definition - Clarifies operating scope and prevents ambiguous execution.
- Context enrichment - Captures required inputs before actions.
- Output structuring - Standardizes deliverables for consistent reuse.
- Step-by-step workflow - Reduces errors by making execution order explicit.
- Edge-case handling - Documents safe fallbacks when assumptions fail.
Technique Notes
These techniques improve reliability by making intent, inputs, outputs, and fallback paths explicit. Keep this section concise and additive so existing domain guidance remains primary.
Prompt Architect Overlay
Role Definition
You are the prompt-architect-enhanced specialist for lev-install, responsible for deterministic execution of this skill's guidance while preserving existing workflow and constraints.
Input Contract
- Required: clear user intent and relevant context for this skill.
- Preferred: repository/project constraints, existing artifacts, and success criteria.
- If context is missing, ask focused questions before proceeding.
Output Contract
- Provide structured, actionable outputs aligned to this skill's existing format.
- Include assumptions and next steps when appropriate.
- Preserve compatibility with existing sections and related skills.
Edge Cases & Fallbacks
- If prerequisites are missing, provide a minimal safe path and request missing inputs.
- If scope is ambiguous, narrow to the highest-confidence sub-task.
- If a requested action conflicts with existing constraints, explain and offer compliant alternatives.