Skip to main content

Lattice AI local MLX/cloud LLM workspace server

Project description

Lattice AI
One install. Your personal AI workspace.
Local LLMs, cloud models, VS Code / Cursor, Telegram, MCP tools, files, admin controls, and a knowledge graph in one self-hosted stack.

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


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

What is Lattice AI?

Lattice AI is a self-hosted AI server that unifies local and cloud LLMs into one practical workspace. Install once, then use the same AI from the web UI, VS Code / Cursor, Telegram, MCP clients, files, and your personal knowledge graph.

  • ๐Ÿ–ฅ๏ธ Web UI โ€” chat, file upload, admin dashboard, data graph
  • ๐Ÿงฉ VS Code / Cursor extension โ€” edit, explain, generate commands inline
  • ๐Ÿ“ฑ Telegram bot โ€” access your AI from anywhere
  • ๐Ÿ”Œ MCP server โ€” use Lattice tools inside Claude Desktop / Cursor
  • ๐Ÿ”’ Zero telemetry โ€” all data stays in ~/.ltcai/ on your machine
  • โšก 30-second start โ€” pip install ltcai or npm install -g ltcai

๐Ÿ“ธ Product Preview

Real screens from the local web app:

๐Ÿ’ฌ Workspace Chat
Lattice AI workspace chat Web chat with local LLM, file upload, pipeline status
๐Ÿ›ก๏ธ Admin Dashboard
Lattice AI admin dashboard User management, audit log, security monitoring
๐Ÿ•ธ๏ธ Knowledge Graph
Lattice AI knowledge graph Auto-built Graph RAG from chats & documents

What this gives users after install:

  • A single local workspace for chat, files, models, runtime setup, and tool control
  • A graph view that turns chats and documents into searchable knowledge
  • Admin screens for users, model status, VPC settings, SSO, audit logs, and security monitoring

โšก Quick Start (30 seconds)

Python / PyPI

pip install ltcai
pip install "ltcai[local]"
LTCAI doctor
LTCAI
# โ†’ http://localhost:4825

Node / npm

npm install -g ltcai
LTCAI doctor
LTCAI

VS Code / Cursor

  1. Install Lattice AI from VS Code Marketplace or Open VSX
  2. Start the local server with LTCAI
  3. Run Lattice AI: Open Chat (Cmd+Shift+A) in your editor

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

Public HTTPS tunnel (Cloudflare, no account needed):

LTCAI --tunnel
# โ†’ https://xxxx.trycloudflare.com

๐Ÿ†š Why Lattice AI?

Comparison is based on public product behavior as of 2026-05.

Lattice AI Open WebUI Continue.dev GitHub Copilot
Local model (offline, Apple Silicon) โœ… โœ… โœ… โŒ
Cloud models (OpenAI, Groqโ€ฆ) โœ… โœ… โœ… โœ…
VS Code extension โœ… โŒ โœ… โœ…
Telegram bot โœ… โŒ โŒ โŒ
Graph RAG (auto knowledge graph) โœ… โŒ โŒ โŒ
MCP registry (browse & one-click install) โœ… โš ๏ธ* โœ… โŒ
Admin dashboard + audit log โœ… โœ… โŒ โŒ
Self-hosted, zero telemetry โœ… โœ… โœ… โŒ
One-command public tunnel โœ… โŒ โŒ โŒ
Free โœ… โœ… โœ… โŒ

โš ๏ธ *Open WebUI supports MCP via manual URL configuration โ€” no registry browsing or one-click install.


๐Ÿง  Supported Models

Local โ€” Apple Silicon MLX + cross-platform local servers:

Model Best for Size
mlx-community/Qwen3-VL-4B-Instruct-4bit Multimodal / low spec ~2.7 GB
mlx-community/Qwen3-VL-8B-Instruct-4bit Multimodal / balanced ~4.8 GB
mlx-community/Qwen3-VL-30B-A3B-Instruct-4bit Multimodal / large ~18 GB
mlx-community/Llama-3.1-8B-Instruct-4bit General ~4.7 GB
mlx-community/Mistral-7B-Instruct-v0.3-4bit General / Apache ~4.1 GB
mlx-community/Phi-4-mini-instruct-4bit Coding (fast) ~2.2 GB
mlx-community/gemma-4-26b-a4b-it-4bit Multimodal / large ~15.6 GB

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


โœจ Features

Feature Description
Web UI Responsive chat + admin panel + graph visualisation
Auto Setup Wizard Detects โ†’ downloads โ†’ installs โ†’ verifies โ†’ repairs dependencies
VS Code / Cursor Chat panel, Edit Selection, Explain, Generate command
Telegram bot Local AI mirror + cloud Codex bot
MCP server Use Lattice tools in Claude Desktop / Cursor
MCP registry One-click install from registry.modelcontextprotocol.io
Skills marketplace 77 official skills (Anthropic + Adobe ยท Airtable ยท Auth0 ยท Pydantic)
Plugin directory Browse 149 open-source plugins
Graph RAG Chat & docs auto-indexed as SQLite knowledge graph
Multi-step agent File edit/create, grep, todo, terminal (25 steps)
Multi-LLM pipeline Plan โ†’ Execute โ†’ Review with different models
Human-in-the-loop Approve agent plan before execution
Admin governance User status, role permissions, Okta / Entra ID SSO, security monitoring
Audit dashboard Per-user AI usage, sensitive data detection, event log, UTF-8 TXT/CSV/Excel exports
PWA Install on iPad / Android home screen
SSO Entra ID / Okta OIDC

๐Ÿ–ฅ๏ธ Platform Support

Feature macOS Apple Silicon macOS Intel / Windows / Linux
Web UI + cloud models โœ… โœ…
VS Code / Cursor extension โœ… โœ…
Telegram bot โœ… โœ…
MLX local models โœ… โŒ
Ollama / LM Studio / vLLM โœ… โœ…

๐Ÿ› ๏ธ Setup & Usage

Install & run

# Verify everything is ready
LTCAI doctor

# Run with cloud API key
OPENAI_API_KEY=sk-... LTCAI

# Run with local MLX model (Apple Silicon)
LATTICEAI_MODE=local \
LATTICEAI_LOCAL_MODEL=mlx-community/gemma-4-26b-a4b-it-4bit \
LTCAI

VS Code extension

  1. VS Code โ†’ Extensions โ†’ search ltcai โ†’ Install
  2. Cmd+Shift+A โ€” open chat panel (auto-connects to localhost:4825)
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 (Render / Fly.io / Docker)

LATTICEAI_MODE=public \
LATTICEAI_PUBLIC_MODEL=openai:gpt-4o-mini \
OPENAI_API_KEY=sk-... \
LATTICEAI_INVITE_CODE=my-secret \
LTCAI
# Docker
docker build -t lattice-ai .
docker run --rm -p 4825:4825 \
  -e OPENAI_API_KEY="$OPENAI_API_KEY" \
  -e LATTICEAI_INVITE_CODE="my-secret" \
  -v "$PWD/.data:/data" \
  lattice-ai

๐Ÿ”’ 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)
CORS Localhost only by default; add origins 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


๐Ÿ—‚๏ธ 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 /mcp/installed Installed MCP servers
POST /mcp/install Install MCP server
GET /skills/marketplace Skills marketplace
POST /skills/install Install a skill
GET /plugins/directory Plugin directory
GET /admin/audit Admin audit report with per-user usage and recent events
GET /admin/sensitivity Security monitoring report for risky/compliant fields
GET/PATCH /admin/sso Okta / Entra ID OIDC configuration
GET /permissions/pending Pending file-access approvals (admin)
POST /permissions/approve/{token} Approve file access (admin)

Full reference: docs/mcp-tools.md


๐Ÿ”ง Troubleshooting

Symptom Cause Fix
Port 4825 in use Previous process lsof -i :4825 โ†’ kill <PID> or --port 4826
ModuleNotFoundError: mlx MLX not installed pip install "ltcai[local]" (Apple Silicon only)
Python < 3.11 Version mismatch Upgrade: python3 --version
LTCAI doctor OPTIONAL Optional dep missing Safe to ignore if feature not needed
No API key warning Cloud model not set OPENAI_API_KEY=sk-... LTCAI or set in admin panel
Can't reach from iPad Default bind 127.0.0.1 LATTICEAI_HOST=0.0.0.0 LTCAI or use --tunnel

๐Ÿš€ 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

Or: ./start_ai.sh (auto-restart + caffeinate)


๐Ÿ“ฆ 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.1.31 โ€” Changelog


๐Ÿค Contributing

See CONTRIBUTING.md. All PRs welcome.

๐Ÿ“„ License

MIT โ€” TaeSoo Park


ํ•œ๊ตญ์–ด ์•ˆ๋‚ด (Korean)

ํ•œ๊ตญ์–ด ์•ˆ๋‚ด

Lattice AI๋Š” ๋กœ์ปฌ/ํด๋ผ์šฐ๋“œ LLM์„ ์›น UI ยท VS Code ํ™•์žฅ ยท Telegram ๋ด‡ ยท MCP ๋„๊ตฌ๋กœ ํ•˜๋‚˜์˜ ์„œ๋ฒ„์—์„œ ์šด์˜ํ•˜๋Š” ๊ฐœ์ธ AI ์›Œํฌ์ŠคํŽ˜์ด์Šค์ž…๋‹ˆ๋‹ค.

์„ค์น˜

pip install ltcai                    # ํด๋ผ์šฐ๋“œ ๋ชจ๋ธ
pip install "ltcai[local]"           # + Apple Silicon MLX ๋กœ์ปฌ ๋ชจ๋ธ
LTCAI                                # ์„œ๋ฒ„ ์‹คํ–‰ โ†’ http://localhost:4825
LTCAI --tunnel                       # + Cloudflare ๊ณต๊ฐœ URL ์ž๋™ ๋ฐœ๊ธ‰

์ฃผ์š” ๊ธฐ๋Šฅ

  • ์›น UI ์ฑ„ํŒ… + ์–ด๋“œ๋ฏผ ๋Œ€์‹œ๋ณด๋“œ + Data Graph ์‹œ๊ฐํ™”
  • VS Code / Cursor ํ™•์žฅ (Cmd+Shift+A)
  • Telegram ๋ด‡ ์—ฐ๋™
  • MCP ๋ ˆ์ง€์ŠคํŠธ๋ฆฌ & Skills ๋งˆ์ผ“ํ”Œ๋ ˆ์ด์Šค
  • Graph RAG โ€” ์ฑ„ํŒ…ยท๋ฌธ์„œ๋ฅผ SQLite ์ง€์‹ ๊ทธ๋ž˜ํ”„๋กœ ์ž๋™ ๊ตฌ์กฐํ™”
  • ๋ฉ€ํ‹ฐ LLM ํŒŒ์ดํ”„๋ผ์ธ (Plan โ†’ Execute โ†’ Review)
  • Human-in-the-loop ์—์ด์ „ํŠธ ์Šน์ธ
  • ๊ฐ์‚ฌ ๋กœ๊ทธ & ๋ฐ์ดํ„ฐ ๊ฑฐ๋ฒ„๋„Œ์Šค ๋Œ€์‹œ๋ณด๋“œ, UTF-8 TXT/CSV/Excel ์ถ”์ถœ
  • ์‚ฌ์šฉ์ž/๊ถŒํ•œ/SSO/๋ณด์•ˆ ๋ชจ๋‹ˆํ„ฐ๋ง์ด ๋ถ„๋ฆฌ๋œ ๊ด€๋ฆฌ์ž ํ™”๋ฉด
  • ํ…”๋ ˆ๋ฉ”ํŠธ๋ฆฌ ์—†์Œ โ€” ๋ชจ๋“  ๋ฐ์ดํ„ฐ ๋กœ์ปฌ ์ €์žฅ

์ถ”์ฒœ ๋กœ์ปฌ ๋ชจ๋ธ (M-series Mac)

๋ชจ๋ธ ์šฉ๋„ ํฌ๊ธฐ
mlx-community/Qwen3-VL-4B-Instruct-4bit ๋ฉ€ํ‹ฐ๋ชจ๋‹ฌ / ์ €์‚ฌ์–‘ ~2.7GB
mlx-community/Qwen3-VL-8B-Instruct-4bit ๋ฉ€ํ‹ฐ๋ชจ๋‹ฌ / ๊ท ํ˜• ~4.8GB
mlx-community/Qwen3-VL-30B-A3B-Instruct-4bit ๋ฉ€ํ‹ฐ๋ชจ๋‹ฌ / ๋Œ€ํ˜• ~18GB
mlx-community/Llama-3.1-8B-Instruct-4bit ๋ฒ”์šฉ ~4.7GB
mlx-community/Mistral-7B-Instruct-v0.3-4bit ๋ฒ”์šฉ / Apache ~4.1GB
mlx-community/Phi-4-mini-instruct-4bit ์ฝ”๋”ฉ ~2.2GB
mlx-community/gemma-4-26b-a4b-it-4bit ๋ฉ€ํ‹ฐ๋ชจ๋‹ฌ / ๋Œ€ํ˜• ~15.6GB

์ž์„ธํ•œ ๋‚ด์šฉ: 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.1.31.tar.gz (388.5 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.1.31-py3-none-any.whl (344.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ltcai-0.1.31.tar.gz
Algorithm Hash digest
SHA256 41b1c62b12bea511fc4dda12c6760afb066a40c81051fa48ea362d415d153b86
MD5 78b4e3fb7ec2f79cc92097cf8fb582f6
BLAKE2b-256 baf449e62630f9d77488e5c2047673a7fc732b9577c3748c56ae523888fad52e

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for ltcai-0.1.31-py3-none-any.whl
Algorithm Hash digest
SHA256 b7c719d1852fa4b21d236b9447a0142d3d6ef1731f67ea739945398edcf2cf39
MD5 43536d5019add720db14f51b97763211
BLAKE2b-256 34df56f068ade4e5f78e0e54f725bc51285e0d0096e98fc61f0c40b9404d1757

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