Skip to main content

Lattice AI Workspace OS for local-first graph, memory, agent, workflow, and skill operations

Project description

Lattice AI
AI Workspace OS for local-first graph, memory, agents, workflows, skills, and timelines.

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


Lattice AI — AI Workspace OS for local-first graph, memory, and agents

What is Lattice AI?

Most AI tools answer one chat at a time. They do not remember your folders, your project history, your previous decisions, or how your files relate to each other.

Lattice AI turns your local workspace into an AI Workspace OS.

It reads approved local folders, indexes chats and documents, builds a searchable knowledge graph, and connects the graph to snapshots, personal memory, agent runs, workflow history, skills, and an auditable timeline.

Local files + chats + folders
          ↓
Automatic knowledge graph
          ↓
Graph-aware chat, snapshots, memory, agents, workflows, skills, and timeline

Why Lattice AI?

  • Local-first by default — models, data, and your knowledge graph stay on your machine (~/.ltcai/); cloud is strictly opt-in.
  • Memory that compounds — every chat, file, and folder you approve becomes durable, searchable context instead of being forgotten.
  • A graph, not a pile of files — people, projects, documents, decisions, and tasks are linked automatically and explored visually.
  • One workspace, everywhere — the same local knowledge powers the web UI, VS Code / Cursor, Telegram, and MCP clients.
  • Built-in governance — Personal and Organization workspaces, roles, an audit timeline, and sensitive-data monitoring for teams.

Core Capabilities

Capability What it does
🧠 Automatic knowledge graph Turns chats, files, and folders into linked nodes and edges, curated automatically
💬 Graph-aware chat & agents Answers and multi-step agents grounded in your indexed local memory
🖥️ Local model recommendation Scans your hardware and rates each model Recommended / Compatible / Not Recommended
🗂️ Workspaces & roles Personal and Organization workspaces with owner / admin / member / viewer permissions
🧩 Skills & MCP Install skills and connect MCP tools from the in-product marketplace
🔒 Admin & security Audit timeline, permission approvals, sensitive-data detection, exportable reports
Onboarding flow: install, system scan, model recommendation, workspace, indexing, knowledge graph, first chat

Quick Start

Python / PyPI

pip install ltcai
LTCAI
# open http://localhost:4825

Apple Silicon local models

pip install "ltcai[local]"
LTCAI

Node / npm

npm install -g ltcai
LTCAI

VS Code / Cursor

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

First run: create an account -> the first account becomes admin -> open /workspace -> complete onboarding -> choose a model -> connect folders -> start asking questions.


The 3-minute workflow

1. Install
   pip install ltcai && LTCAI

2. Detect hardware
   CPU, GPU, RAM are detected and a suitable local model is recommended.

3. Connect folders
   Pick the local folders you want Lattice AI to index.

4. Build knowledge
   Files and chats become nodes and edges in a local knowledge graph.

5. Ask questions
   “What did I decide about the auth migration last week?”

6. Keep working
   Use the same local knowledge from the web UI, VS Code, Telegram, or MCP clients.

Architecture

server:app stays a thin compatibility entrypoint; the FastAPI app is assembled in latticeai/server_app.py, and the work lives in focused API routers, a service layer, and core modules — so the app shell never grows monolithic again.

Lattice AI architecture — entrypoint, API routers, services, core, local engines and knowledge graph

See docs/architecture.md for request and data-flow detail.


Product Preview

Workspace Chat
Lattice AI workspace chat Chat with local/cloud models, upload files, and control pipelines.
Knowledge Graph
Lattice AI knowledge graph Automatically built from chats, files, folders, and project context.
Admin Dashboard
Lattice AI admin dashboard User management, audit logs, permissions, and security monitoring.

Screenshots above are the live web UI. The diagrams below map the product experience to the current v1.5.0 structure.


Product Experience

Local model recommendation

Lattice AI detects your OS, CPU, GPU, RAM, and disk, then rates every local model Recommended, Compatible, or Not Recommended for your machine — grouped by family (Gemma, Qwen, Llama, Phi, DeepSeek, and more).

Tri-state local model recommendation grouped by family

Workspaces & organization

Switch instantly between a Personal workspace and shared Organization workspaces. Org data is scoped by workspace_id, and owner / admin / member / viewer roles map to a transparent permission matrix.

Personal and Organization workspace model Organization roles and permission matrix

Knowledge graph & skills

Your work becomes a typed knowledge graph (built automatically), and skills extend the workspace through an in-product marketplace.

Knowledge graph node and edge taxonomy Skill marketplace: recommended, popular, installed, updates

Why it is different

Problem Lattice AI approach
AI forgets every conversation Chats and files are indexed into persistent local memory
Files are scattered across folders Approved folders become searchable graph context
Local model setup is confusing Hardware detection recommends and loads a suitable model
Graph tools require manual node editing Nodes and edges are created automatically from real work
Cloud AI may expose private data Local models keep data on your machine; cloud is opt-in
Teams need visibility Admin dashboard, audit logs, role controls, and sensitive-data monitoring

Core Features

Local-first AI workspace

  • Web UI running from a local server
  • Local SQLite storage under ~/.ltcai/
  • Local folder indexing with explicit approval
  • File upload, chat history, graph search, and document generation
  • Optional cloud providers when you choose to use them

Automatic knowledge graph

Lattice AI turns your work into structure automatically.

Nodes can represent:

Node type Examples
Document PDF, DOCX, PPTX, XLSX, Markdown, code files
Concept technologies, project names, ideas, architecture topics
Person you, teammates, mentioned people
Chat previous conversations and sessions
Task TODOs, action items, follow-ups
Decision choices made during discussions

Edges describe relationships such as:

mentions · contains · depends on · explains · uses · replaces · supports · related to

The graph is curated automatically: noisy tokens, file extensions, generic words, and hard secrets are filtered before promotion.

Model loading that users can trust

Lattice AI keeps model identity consistent across recommendation, download, load, backend router state, and frontend display.

  • unified model resolution
  • local model smoke test after load
  • ok / degraded / failed compatibility status
  • per-family compatibility profiles for GPT-OSS, Gemma, Qwen, Llama, Mistral, Phi, Deepseek, and more
  • fast post-processing path during normal chat
  • recovery path only when output looks broken

Admin and security command center

For team or organization usage, Lattice AI includes admin-facing controls:

  • user management and roles
  • permission approvals for local file access
  • audit event timeline
  • sensitive chat/file detection
  • risk overview by user
  • raw data explorer with hard-secret redaction
  • export to JSON, CSV, XLSX, TXT, or PDF

Hard secrets such as API keys, tokens, passwords, private keys, and common cloud credentials are redacted from security responses.


Supported Models

Local on Apple Silicon MLX

Model Best for Approx. size Suggested RAM
Qwen3-VL 4B Multimodal / low spec ~2.7 GB 8 GB
Qwen3-VL 8B Multimodal / balanced ~4.8 GB 16 GB
GPT-OSS 20B Reasoning / open-weight ~12.1 GB 32 GB
Gemma 4 26B Multimodal / large ~15.6 GB 32 GB
Gemma 4 31B Multimodal / latest Gemma 4 ~18.4 GB 48 GB
Qwen3-VL 30B A3B Multimodal / top local ~18 GB 48 GB
GPT-OSS 120B Large reasoning model ~62.3 GB 128 GB
Phi 4 Mini Fast coding/general chat ~2.2 GB 8 GB
Llama 3.1 8B General chat ~4.7 GB 8 GB
Mistral 7B v0.3 General / Apache ~4.1 GB 8 GB

Cross-platform engines

Lattice AI can also work with models served by:

  • Ollama
  • LM Studio
  • llama.cpp
  • vLLM
  • OpenAI-compatible local or remote endpoints

Cloud providers

Cloud models are optional. When enabled, prompts are sent to the selected provider.

Supported routes include OpenAI-compatible APIs, OpenRouter, Groq, Together, xAI, and other compatible endpoints.


Privacy and data storage

Area Default behavior
Storage Data is stored locally under ~/.ltcai/
Default binding 127.0.0.1:4825 local server
Telemetry No built-in product telemetry by default
Folder access Explicit approval per folder/action scope
Sensitive files .env, credentials, keys, certificates, and similar files are auto-excluded
Cloud models Off unless configured; cloud prompts go to the selected provider
Delete controls Remove chats, graph nodes, indexed folders, and local data

Comparison

Capability Lattice AI Open WebUI Continue.dev GitHub Copilot
Local model workflow Yes Yes Yes No
Local folder indexing Yes Limited Workspace-focused Limited
Automatic knowledge graph Yes No No No
Chat + file memory Yes Partial Partial Partial
VS Code / Cursor extension Yes No Yes Yes
Admin dashboard Yes Yes No No
Security audit exports Yes Limited No No
Optional cloud models Yes Yes Yes Yes
Local-first by default Yes Self-hosted Local/dev focused No

Current release

1.5.0 — Unified Product Release. Onboarding, model recommendation, and CI stabilization in one release:

  • CI / VSIX recovery — the stale @azure/core-tracing lockfile pin that broke npm ci (ETARGET) is regenerated, so the VSIX build is green again
  • Local model recommendation — a hardware-aware engine (latticeai/services/model_recommendation.py) classifies the model catalog as Recommended / Compatible / Not Recommended, exposed at /models/recommendations
  • Catalog extraction — the static model catalog moved to latticeai/services/model_catalog.py, simplifying model_runtime.py
  • Enterprise PoC seam — admin policy / audit-export / SIEM-stub / org-settings surfaces consult the capability registry (Community keeps everything ungated)
  • Documentation & visuals — README rewritten as a product page with an up-to-date architecture diagram and structural visuals
  • Python package, npm package, VS Code extension, FastAPI app, and /health version metadata are aligned at 1.5.0

See the full changelog and RELEASE.md.


All Features

Core experience

Feature Description
Web UI Chat, file upload, model picker, graph view, admin pages
Auto setup wizard Detect hardware, recommend model, install dependencies, verify load
Graph RAG Retrieve context from indexed chats, files, and graph relationships
Local folder indexing Browse, audit, approve, index, and optionally watch folders
Document generation Use graph context to generate reports, summaries, and structured drafts

Developer tools

Feature Description
VS Code / Cursor Chat panel, edit selection, explain code, generate code
Multi-step agent File edit/create, grep, todo, and terminal workflow with human-in-the-loop
Multi-LLM pipeline Plan, execute, and review with different models
MCP server Expose Lattice tools to MCP-compatible clients
MCP registry Install MCP servers from supported registries
Skills browser Browse and install optional skills
Plugin browser Browse compatible open-source plugins

Access and communication

Feature Description
Telegram bot Chat, upload files, and manage models remotely
PWA Install the web UI on mobile/tablet home screens
Public tunnel LTCAI --tunnel for a temporary Cloudflare HTTPS URL

Administration

Feature Description
User management Roles, permissions, account enable/disable
SSO Entra ID / Okta OIDC configuration
Audit dashboard AI usage, sensitive-data events, file access, exports
Security monitoring Rate limits, approval logs, raw explorer, redaction
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 by path, user, and action scope
Package install Admin-only with audit trail for MCP, skills, pip, npm
CORS Localhost only by default; configurable via LATTICEAI_CORS_ALLOWED_ORIGINS
File upload Magic-number signature checks for extension spoofing defense
Rate limits /chat 30/min · /agent 6/min · /upload 12/min per user
Telemetry No built-in product telemetry by default

Report vulnerabilities in SECURITY.md.

Setup & Configuration

VS Code shortcuts

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

Telegram bot

LATTICEAI_TELEGRAM_BOT_TOKEN=your-token LTCAI

Public server

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

Public tunnel

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

Auto-start on macOS

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 and current model
GET /models Model list and load state
POST /models/load Load a model
POST /chat Chat with streaming or non-streaming output
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 and 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 as admin
GET /skills/marketplace Skills marketplace
POST /skills/install Install a skill as admin
GET /admin/audit Audit report
GET /permissions/pending Pending file-access approvals

Full reference: docs/mcp-tools.md

Troubleshooting
Symptom Fix
Port 4825 is already in use lsof -i :4825 then kill <PID>, or run LTCAI --port 4826
ModuleNotFoundError: mlx Install local extras with pip install "ltcai[local]" on Apple Silicon
Python version is too old Use Python 3.11 or newer
No API key warning Set a provider key or use a local model
Cannot reach from iPad Use LATTICEAI_HOST=0.0.0.0 LTCAI or LTCAI --tunnel
Model loads but chat looks broken Check compatibility status; try another engine or model family

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 No
Ollama / LM Studio / vLLM / llama.cpp 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

Documentation

Doc What's inside
docs/architecture.md App structure, request and data flow
docs/CHANGELOG.md Full version history
RELEASE.md Release notes and the build/publish checklist
SECURITY.md Security model and vulnerability reporting
docs/ENTERPRISE.md · docs/EDITION_STRATEGY.md Open-core boundary and edition strategy
docs/kg-schema.md · docs/mcp-tools.md Knowledge graph schema and MCP tool catalog
docs/privacy.md · docs/public-deploy.md · docs/OPERATIONS.md Privacy, public deployment, operations

Contributing

See CONTRIBUTING.md. Issues and pull requests are welcome.

License

MIT — TaeSoo Park


한국어 안내 (Korean)

Lattice AI

내 PC의 파일, 대화, 폴더를 기억하고 연결하는 로컬 우선 AI 워크스페이스

대부분의 AI 도구는 대화가 끝나면 맥락을 잊습니다. Lattice AI는 승인한 로컬 폴더와 대화를 인덱싱하고, 사람·프로젝트·개념·문서를 자동으로 지식 그래프로 연결합니다.

로컬 파일 + 대화 + 폴더
        ↓
자동 지식 그래프
        ↓
그래프 기반 AI 검색, 채팅, 문서 생성, 관리자 감사

설치

pip install ltcai
LTCAI
# http://localhost:4825

Apple Silicon에서 로컬 모델까지 쓰려면:

pip install "ltcai[local]"
LTCAI

사용 흐름

1. 설치한다.
2. CPU, GPU, RAM을 감지해서 적합한 로컬 모델을 추천받는다.
3. 연결할 로컬 폴더를 선택한다.
4. 파일과 대화가 자동으로 지식 그래프가 된다.
5. “지난주 인증 마이그레이션에서 결정한 게 뭐였지?”처럼 질문한다.
6. 같은 지식을 웹 UI, VS Code, Telegram, MCP에서 사용한다.

핵심 차별점

  • 내 데이터가 AI의 기억이 됨 — 채팅과 파일을 자동으로 구조화
  • 로컬 우선 — 기본 데이터는 ~/.ltcai/에 저장
  • 자동 그래프 — 사용자가 노드와 엣지를 직접 만들 필요 없음
  • 모델 추천/로드 흐름 — 하드웨어 감지 후 적합한 모델 추천
  • 선택형 클라우드 — 클라우드 모델은 사용자가 설정한 경우에만 사용
  • 관리자/보안 기능 — 권한, 감사 로그, 민감정보 감지, export 지원

자세한 내용은 docs/CHANGELOG.md, SECURITY.md, CONTRIBUTING.md를 참고하세요.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

ltcai-1.5.0.tar.gz (502.2 kB view details)

Uploaded Source

Built Distribution

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

ltcai-1.5.0-py3-none-any.whl (458.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ltcai-1.5.0.tar.gz
Algorithm Hash digest
SHA256 8512977e77baf210a42d57f05af12f4ab78c4cd0c8fb47db2380f2a95d46d4fe
MD5 1b4dd24f0cf1e3bd8896f9c9d566b3ae
BLAKE2b-256 6332069d4764f5258a5af98c05726e3b89a88699afbdeeb5725ca82f52cb7a9a

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for ltcai-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 41f7b377848f325c931100876d764ee31f7e5eb7673c51a3faba834a653acd64
MD5 4cd15ad9b7378556f02d565fb980f581
BLAKE2b-256 f577bd2c2a35d1bbcc8e11588cb2f31b22099c5d8c5aa264ca3679d201ca98c3

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