Quickstart
Install Lattice and get your first answer from a model running on your own machine. Steps 1 to 4 use only what the Lattice installer provides: lattice-ctl and the local API. Chatting from the Ada CLI is optional and needs a separate install.
This quickstart is for the local Lattice runtime on your own machine. If you are building a third-party app that calls the hosted gateway, start with the Lattice Cloud SDK quickstart. If you already have an OpenAI-compatible client, use the Lattice Cloud OpenAI-compatible API.
Prerequisites:
- macOS 14 or later on Apple silicon, or Linux on x86-64 with AVX2 or on ARM64
- 8 GB of memory or more
- An internet connection for the first setup
Step 1: Install and Set Up Private AI#
One command installs Lattice, installs LM Studio when it is missing, downloads the local model sized to your machine's memory, starts the Lattice service, and checks that the model answers:
# macOS and Linux
curl -fsSL https://d.uselovelace.com/lattice | sh -s -- --setup
Setup states the total download size and asks once before it changes anything. A 16 GB machine downloads about 7.6 GB: LM Studio and Qwen3.5 9B. See Local Models for the model each memory size gets.
To see the download size first without installing anything, run the installer
with --plan instead of --setup. It prints JSON describing the machine, the
model it would get, and each download.
If Lattice is already installed, run setup directly:
lattice-ctl setup
Step 2: Check Readiness#
lattice-ctl doctor
Private AI on this machine
✓ Lattice installed, lattice-ctl 0.1.0
✓ Lattice service running
✓ Local runtime LM Studio running at http://localhost:1234/v1
✓ Model qwen/qwen3.5-9b ready, runs on this machine
Hardware 16 GB memory, metal accelerator; sized model qwen/qwen3.5-9b (7.0 GB)
Paired no
✓ Ready: private AI answers on this machine.
When something is not ready, doctor lists each issue with the command that
fixes it. lattice-ctl --format json doctor prints the same report as JSON.
Step 3: Ask the Model a Question#
The Lattice daemon serves an OpenAI-compatible API on your machine at
http://127.0.0.1:11435/v1. It needs no API key. List the models first, then
send a chat request with one of the model names it returns:
curl http://127.0.0.1:11435/v1/models
curl http://127.0.0.1:11435/v1/chat/completions \
-H "content-type: application/json" \
-d '{
"model": "<model-id>",
"messages": [{ "role": "user", "content": "What is Lattice?" }]
}'
The answer comes back in the OpenAI response shape. See Local OpenAI-compatible API for client code in TypeScript and Python.
Step 4: Pair This Machine (Optional)#
To let apps you authorize send requests to this machine, pair the daemon with your Lovelace account. See personal runtimes.
Optional: Chat from the Ada CLI#
The steps below use ada, which the Lattice installer does not install. Install
it separately first:
curl -fsSL https://d.uselovelace.com/install | sh
Then start a conversation, and resume it later:
ada chat
# List your sessions
ada sessions list
# Resume the last session
ada sessions resume
To also use a cloud model, configure a provider:
ada config provider set anthropic \
--api-key sk-your-api-key-here \
--model <model-id>
Next Steps#
Now that you have lattice running:
- Manage Agents → - Create and run autonomous agents
- Advanced Configuration → - Providers, local models, MCP
- Expose this machine as a personal runtime → - Pair the local daemon with Lattice Cloud
- Troubleshooting → - Common issues and solutions
Troubleshooting#
Run lattice-ctl doctor first. It reports what is not ready and the command
that fixes it, and it works whether or not the daemon is running.
"Command not found: lattice-ctl"#
The installer did not finish, or its directory is not on your PATH yet. Open
a new terminal, or run the installer again. See
Installation → for platform-specific instructions.
Setup refuses this machine#
lattice-ctl setup explains why it stops before changing anything:
- This machine has less memory than the smallest local model needs: local models need 8 GB of memory. Use a cloud provider instead.
- LM Studio requires a Mac with Apple silicon or macOS 14 or later, or
a processor with AVX2 support: LM Studio does not run on this machine.
Use a cloud provider, or point Lattice at an OpenAI-compatible server
elsewhere with
[providers.lmstudio].base_url. - Not enough free disk: free the space setup names, then run it again.
Ada CLI Tasks#
These tasks use ada, which you install separately as shown above.
Fix an invalid provider API key#
# Show provider config (without secrets)
ada config provider show anthropic
# Reconfigure with correct key
ada config provider set anthropic --api-key sk-correct-key
Change the active provider#
# See all providers
ada config provider list
# Activate a different one
ada config provider activate openai
Test a provider connection#
# Test the active provider
ada config provider test
# Test a specific provider
ada config provider test lmstudio
View configuration#
# Show all config
ada config show
List all your chat sessions#
ada sessions list
Delete a session#
ada sessions delete <session-id>
What Happens Behind the Scenes#
When you run ada chat:
- CLI connects to daemon via Unix socket (fast local IPC)
- Daemon creates or resumes a session storing conversation context
- Your input is sent to the configured LLM provider (local or cloud)
- Response is streamed back and displayed in real-time
- Conversation is saved to local SQLite database
Conversations with a local model stay on your machine unless you configure a cloud provider or cloud sync.
To let an app route requests through this machine, pair the daemon with
Lattice Cloud personal runtimes. App
developers should still call Lattice Cloud from their backend through
@reasonabletech/lattice-client; the local daemon is the execution target, not
the public app API.
Ready for More?#
- Full Installation Guide → - Detailed setup for your platform
- Manage Agents → - Create and manage autonomous agents and sessions
- Advanced Configuration → - Providers, local models, cloud sync
- Lattice Cloud SDK Quickstart → - Build a third-party app that uses the gateway
- Troubleshooting → - Common issues and solutions