Leia Quickstart
This guide takes you from a fresh install to a live agent on a local Nexus cluster.
Requirements
Section titled “Requirements”- Claude Code CLI — Leia is a Claude Code plugin.
- kubectl and kind — for creating and managing local clusters.
- curl — Leia calls the Nexus REST API over
curl. - Ollama (optional) — for local models; a cloud fallback is available if Ollama is not present.
Install
Section titled “Install”Install from git, or from a release tarball.
# from gitgit clone https://github.com/monaccode/astromesh-leia.gitclaude plugins add ./astromesh-leia
# or from a release tarballcurl -L https://github.com/monaccode/astromesh-leia/releases/latest/download/astromesh-leia-v0.1.0.tar.gz | tar xzclaude plugins add ./astromesh-leiaOnce installed, /leia becomes available inside Claude Code. Run it with no arguments to see the welcome menu.
The idea-to-deployed workflow
Section titled “The idea-to-deployed workflow”This is the headline flow — from a one-time cluster bootstrap to a live, testable agent.
/leia bootstrap local # 1. one-time: local Kind nexus cluster/leia I need a WhatsApp bot for my restaurant # 2. create (interpreter → architect → preview → deploy)/leia status # 3. dashboard/leia test my-restaurant # 4. interactive test/leia logs my-restaurant --follow # 5. live logs/leia teardown # (optional) destroy local clusterWhat happens in step 2: the leia-interpreter parses your sentence into structured intent, leia-architect designs a complete astromesh/v1 agent manifest, Leia previews it for your approval, and then deploys it to the cluster. No YAML required to get started.
Contexts & configuration
Section titled “Contexts & configuration”Leia stores its connection details in ~/.astromesh-leia/config.yaml. The file holds named contexts (one per cluster), a current-context pointer, and a set of defaults.
current-context: localcontexts: local: nexus-url: http://localhost:8080 api-key: nxk_... # Nexus API key cluster-type: kind # kind | remote cluster-name: nexus-localdefaults: channel: whatsapp model-provider: auto # smart model detection tenant: defaultEach context records its nexus-url, api-key (an nxk_... key), cluster-type (kind or remote), and cluster-name. Switch between clusters with:
/leia config use <name>See /leia config for managing contexts and defaults.
Bootstrap: local vs remote
Section titled “Bootstrap: local vs remote”/leia bootstrap sets up the cluster Leia deploys to.
| Mode | What it does |
|---|---|
local | Creates a Kind cluster, deploys Nexus, and saves the context to your config. |
remote | Connects to an existing Nexus cluster by URL and API key — no cluster is created. |
/leia bootstrap local # create a local Kind cluster and save the context/leia bootstrap remote # connect to an existing cluster by URL + API keySmart model detection
Section titled “Smart model detection”When the architect designs an agent, it runs ollama list and prefers a local model if one is available, falling back to a cloud model otherwise. With model-provider: auto in your defaults, you do not have to pick a provider by hand.
Teardown
Section titled “Teardown”/leia teardown # tear down the current context (with confirmation)/leia teardown <name> # tear down a specific contextWhat’s Next
Section titled “What’s Next”- Commands — every
/leiacommand in detail. - Templates & Subagents — the building blocks Leia uses.
- Nexus Quickstart — set up the cluster from the Nexus side.