Skip to main content

Lattice AI local MLX/cloud LLM workspace server

Project description

Lattice AI
Private local AI workspace that turns your files, chats, and folders into a searchable knowledge graph.

PyPI PyPI Downloads npm VS Code Open VSX CI License: MIT Python 3.11+


Lattice AI demo showing chat, knowledge graph, and admin dashboard

Why Lattice AI?

Most AI tools forget everything after each conversation. Your files sit in folders, your chats vanish, and nothing connects.

Lattice AI remembers. It reads your local files, indexes your conversations, and builds a knowledge graph that links people, projects, concepts, and documents — all on your machine, with zero data leaving your PC.

  • Your data stays local — everything lives in ~/.ltcai/, never sent to external servers
  • Your AI gets smarter over time — every chat and file builds your personal knowledge graph
  • One install, works everywhere — web UI, VS Code, Telegram, MCP clients, all connected to the same brain

3-Minute Workflow

1. Install             pip install ltcai && LTCAI
2. Detect hardware     Auto-detect CPU, GPU, RAM → recommend the best local model
3. Connect folders     Select local folders to index into your knowledge graph
4. Build knowledge     Files and chats auto-analyzed → nodes (people, concepts, files) + edges (mentions, contains, depends on)
5. Ask anything        "What did I discuss about the auth migration last week?" → Graph RAG retrieves context
6. Work from anywhere  Web UI · VS Code · Telegram · MCP — all connected to the same knowledge

Product Preview

Workspace Chat
Lattice AI workspace chat Chat with local/cloud LLM, upload files, pipeline controls
Knowledge Graph
Lattice AI knowledge graph Auto-built from chats and documents — nodes = nouns, edges = verbs
Admin Dashboard
Lattice AI admin dashboard User management, audit log, security monitoring

Quick Start

Python / PyPI

pip install ltcai
pip install "ltcai[local]"   # + Apple Silicon MLX models
LTCAI
# → http://localhost:4825

Node / npm

npm install -g ltcai
LTCAI

VS Code / Cursor

  1. Install Lattice AI from VS Code Marketplace or Open VSX
  2. Start the local server: LTCAI
  3. Cmd+Shift+A to open the chat panel

First run: open http://localhost:4825 → sign up → first account auto-becomes admin → pick a model → start chatting.


How the Knowledge Graph Works

Lattice AI automatically analyzes your chats and files, extracting meaningful structure:

Nodes (nouns) — the things in your world:

Type Examples
Document PDF, PPTX, DOCX, code files, images
Person You, mentioned colleagues
Concept Technologies, frameworks, ideas
Chat Conversation sessions
Task Action items, TODOs
Decision Choices made in discussions

Edges (verbs) — how things relate: mentions · contains · resolves · depends on · explains · uses · replaces · supports · related to

Local folder indexing:

  1. Browse your drives and folders from the UI
  2. Preview file counts, types, and sizes before indexing
  3. Approve which folders to connect (sensitive files auto-excluded)
  4. Files are parsed, chunked, and linked into the graph
  5. Optional: enable file watcher for real-time updates

All data stays in a local SQLite database. Nothing leaves your machine.


Comparison

Based on public product behavior as of 2026-05.

Lattice AI Open WebUI Continue.dev GitHub Copilot
Local model (offline, Apple Silicon) Yes Yes Yes No
Cloud models (OpenAI, Groq...) Yes Yes Yes Yes
Knowledge graph (auto from files + chats) Yes No No No
Local folder indexing + file watcher Yes No No No
VS Code extension Yes No Yes Yes
Telegram bot Yes No No No
MCP registry (one-click install) Yes Partial Yes No
Admin + audit log Yes Yes No No
Zero telemetry, self-hosted Yes Yes Yes No
One-command public tunnel Yes No No No
Free Yes Yes Yes No

Supported Models

Local (Apple Silicon MLX):

Model Best for Size Min RAM
Qwen3-VL 4B Multimodal / low spec ~2.7 GB 8 GB
Qwen3-VL 8B Multimodal / balanced ~4.8 GB 16 GB
Gemma 4 26B Multimodal / large ~15.6 GB 32 GB
Qwen3-VL 30B A3B Multimodal / top ~18 GB 48 GB
Phi 4 Mini Coding (fast) ~2.2 GB 8 GB
Llama 3.1 8B General ~4.7 GB 8 GB
Mistral 7B v0.3 General / Apache ~4.1 GB 8 GB

Cross-platform (Ollama / LM Studio / vLLM / llama.cpp): Same models via Ollama pull, LM Studio download, or vLLM serve.

Cloud (any platform): OpenAI GPT-5.5 · Claude Opus 4.7 / Sonnet 4.6 / Haiku 4.5 via OpenRouter · Groq · Together · xAI · any OpenAI-compatible endpoint

The setup wizard auto-detects your hardware and recommends the best model for your specs.


Data Privacy

Storage All data in ~/.ltcai/ on your machine
Telemetry None — no analytics, no tracking, no phoning home
File access Approval-token gated — explicit consent per folder
Cloud models When using cloud APIs, prompts are sent to the provider. Local models keep everything offline.
Sensitive files .env, credentials, keys, certificates auto-excluded from indexing
Delete Clear chat history, delete graph nodes, remove indexed folders at any time

All Features

Core Experience

Feature Description
Web UI Responsive chat, file upload, model picker, knowledge graph
Auto Setup Wizard Detect hardware → recommend model → install dependencies → verify
Graph RAG Chats and files auto-indexed into SQLite knowledge graph
Local folder indexing Browse, audit, and index local folders with file watcher

Developer Tools

Feature Description
VS Code / Cursor Chat panel, Edit Selection, Explain, Generate command
Multi-step agent File edit/create, grep, todo, terminal (25 steps, human-in-the-loop)
Multi-LLM pipeline Plan → Execute → Review with different models
MCP server Use Lattice tools in Claude Desktop / Cursor
MCP registry One-click install from registry.modelcontextprotocol.io
Skills marketplace 77 official skills (Anthropic + verified third-party)
Plugin directory Browse 149 open-source plugins

Access & Communication

Feature Description
Telegram bot Chat, upload files, manage models from anywhere
PWA Install on iPad / Android home screen
Public tunnel LTCAI --tunnel — Cloudflare HTTPS, no account needed

Administration

Feature Description
User management Roles, permissions, disable/enable accounts
SSO Entra ID / Okta OIDC
Audit dashboard Per-user AI usage, sensitive data detection, event log, TXT/CSV/Excel export
Security monitoring Rate limits, file access approvals, MCP install audit trail
Security
Property Detail
Binding Default 127.0.0.1:4825 — local only
Auth Session required when network-exposed or public mode
Cookies HttpOnly + SameSite=Lax — no localStorage token
Local file access Approval-token gated (path + user + action scope)
Package install Admin-only with audit trail (MCP, skills, pip, npm)
CORS Localhost only by default; configure via LATTICEAI_CORS_ALLOWED_ORIGINS
File upload Magic-number signature check (blocks extension spoofing)
Rate limits /chat 30/min · /agent 6/min · /upload 12/min per user
Telemetry None — all data in ~/.ltcai/

Report vulnerabilities: SECURITY.md

Setup & Configuration

VS Code shortcuts

Shortcut Action
Cmd+Shift+A Open chat
Cmd+Shift+E Edit selected code
Cmd+Shift+M Load / switch model
Right-click Explain / Save to Knowledge Garden

Telegram bot

LATTICEAI_TELEGRAM_BOT_TOKEN=your-token LTCAI

Public server (Docker / Render / Fly.io)

LATTICEAI_MODE=public \
LATTICEAI_PUBLIC_MODEL=openai:gpt-4o-mini \
OPENAI_API_KEY=sk-... \
LATTICEAI_INVITE_CODE=my-secret \
LTCAI

Public tunnel (Cloudflare, no account)

LTCAI --tunnel
# → https://xxxx.trycloudflare.com

Auto-start (Mac)

cat > ~/Library/LaunchAgents/com.ltcai.plist << 'EOF'
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
  <key>Label</key><string>com.ltcai</string>
  <key>ProgramArguments</key><array><string>/usr/local/bin/LTCAI</string></array>
  <key>RunAtLoad</key><true/>
  <key>KeepAlive</key><true/>
  <key>StandardOutPath</key><string>/tmp/ltcai.log</string>
  <key>StandardErrorPath</key><string>/tmp/ltcai.err</string>
</dict>
</plist>
EOF
launchctl load ~/Library/LaunchAgents/com.ltcai.plist
API Reference
Method Path Description
GET /health Server status & current model
GET /models Model list + load state
POST /models/load Load a model
POST /chat Chat (stream=true/false)
POST /agent Multi-step file agent
GET /knowledge-graph/stats Graph statistics
GET /knowledge-graph/search?q= Search the knowledge graph
GET /knowledge-graph/local/roots Discover local drives & folders
POST /knowledge-graph/local/audit Audit a folder before indexing
POST /knowledge-graph/local/index Index a folder into Graph RAG
GET /mcp/installed Installed MCP servers
POST /mcp/install Install MCP server (admin)
GET /skills/marketplace Skills marketplace
POST /skills/install Install a skill (admin)
GET /admin/audit Audit report
GET /permissions/pending Pending file-access approvals

Full reference: docs/mcp-tools.md

Troubleshooting
Symptom Fix
Port 4825 in use lsof -i :4825kill <PID> or LTCAI --port 4826
ModuleNotFoundError: mlx pip install "ltcai[local]" (Apple Silicon only)
Python < 3.11 Upgrade Python: python3 --version
No API key warning OPENAI_API_KEY=sk-... LTCAI or set in admin panel
Can't reach from iPad LATTICEAI_HOST=0.0.0.0 LTCAI or use --tunnel

Platform Support

Feature macOS Apple Silicon macOS Intel / Windows / Linux
Web UI + cloud models Yes Yes
VS Code / Cursor extension Yes Yes
Telegram bot Yes Yes
MLX local models Yes --
Ollama / LM Studio / vLLM Yes Yes

Distribution

Channel Link
PyPI pypi.org/project/ltcai
npm npmjs.com/package/ltcai
VS Code Marketplace marketplace.visualstudio.com
Open VSX open-vsx.org

Current version: 0.2.0Changelog


Contributing

See CONTRIBUTING.md. All PRs welcome.

License

MIT — TaeSoo Park


한국어 안내 (Korean)

Lattice AI

내 PC의 파일, 대화, 프로젝트를 기억하고 연결하는 로컬 AI 워크스페이스

대부분의 AI 도구는 대화가 끝나면 모든 것을 잊습니다. Lattice AI는 다릅니다. 로컬 파일을 읽고, 대화를 기록하고, 사람·프로젝트·개념·문서를 연결하는 지식 그래프를 자동으로 만듭니다. 모든 데이터는 내 PC에만 저장됩니다.

3분 사용 흐름

1. 설치          pip install ltcai && LTCAI
2. 하드웨어 감지   CPU, GPU, RAM 자동 감지 → 최적 로컬 모델 추천
3. 폴더 연결      로컬 폴더를 선택하여 지식 그래프에 연결
4. 지식 구축      파일과 대화 자동 분석 → 점(사람, 개념, 파일) + 선(언급함, 포함함, 의존함)
5. 질문           "지난주 인증 마이그레이션 논의 내용은?" → Graph RAG가 컨텍스트 검색
6. 어디서든 작업   웹 UI · VS Code · Telegram · MCP — 같은 지식에 연결

설치

pip install ltcai                    # 클라우드 모델
pip install "ltcai[local]"           # + Apple Silicon MLX 로컬 모델
LTCAI                                # 서버 실행 → http://localhost:4825
LTCAI --tunnel                       # + Cloudflare 공개 URL 자동 발급

핵심 차별점

  • 내 데이터가 AI의 기억이 된다 — 채팅과 파일이 자동으로 지식 그래프로 구조화
  • 로컬 폴더를 연결하면 프로젝트 전체를 이해 — 파일 변경 시 실시간 업데이트
  • 모든 데이터는 내 PC에~/.ltcai/에 저장, 텔레메트리 없음, 외부 전송 없음
  • 설치 한 번으로 어디서든 — 웹 · VS Code · Telegram · MCP 클라이언트

추천 로컬 모델 (M-series Mac)

모델 용도 크기 최소 RAM
Qwen3-VL 4B 멀티모달 / 저사양 ~2.7GB 8GB
Qwen3-VL 8B 멀티모달 / 균형 추천 ~4.8GB 16GB
Gemma 4 26B 멀티모달 / 대형 ~15.6GB 32GB
Qwen3-VL 30B A3B 멀티모달 / 최고급 ~18GB 48GB

자세한 내용: docs/CHANGELOG.md · 보안 · 기여

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ltcai-0.2.0.tar.gz (393.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ltcai-0.2.0-py3-none-any.whl (350.5 kB view details)

Uploaded Python 3

File details

Details for the file ltcai-0.2.0.tar.gz.

File metadata

  • Download URL: ltcai-0.2.0.tar.gz
  • Upload date:
  • Size: 393.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for ltcai-0.2.0.tar.gz
Algorithm Hash digest
SHA256 cdee8f5851e75065d0885bbd868a08e1ff697df55cbf3a3a25ea37a7b5e04444
MD5 d4bdad22d012a2caa08dd26c53b33cd2
BLAKE2b-256 002f223316732944902b3eff5050016c98e6f33b5808b6c30187657aab6465df

See more details on using hashes here.

File details

Details for the file ltcai-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: ltcai-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 350.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for ltcai-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e327aa8b82d3dbfb3a1332f8197e137616e56c59075b11b510a115f5ac1cf600
MD5 4fa400f7f202df860c5263a550a2fb50
BLAKE2b-256 eb7dc448ae1e19130b3e570fc7ba5665cc82b955eb3c5a773d651ce5d7ff1416

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page