Lobster projects
Create and manage local Lobster AI projects: lobster init, lobster projects list, info and delete, where a project keeps its provider, model and experts, and how Lobster finds the project from a subfolder.
A project is a folder that has its own Lobster AI settings and its own identity. It holds the provider, the model and the experts you chose for that work, so a terminal session, a script and an MCP host that start in that folder all use the same ones.
A project is local. It has its own id and is not linked to a project in Omics-OS Cloud. Version 1.3 does not connect the two.
Create a project
lobster init /path/to/pbmc-pilot --non-interactive \
--ollama-cloud-key "$OLLAMA_API_KEY" \
--name "PBMC pilot" --agents transcriptomics_expert,annotation_expert✓ Ollama Cloud provider configured
✓ Setup complete
Provider: ollama-cloud
Workspace: /path/to/pbmc-pilot/.lobster_workspace
Credentials: /path/to/pbmc-pilot/.env
Next: run lobster chat
✓ Project PBMC pilot created at /path/to/pbmc-pilot(Output trimmed: the real run also prints a font-cache notice, an NCBI connectivity check and a package check.)
lobster init [folder] creates the project when the folder has none, and creates the folder if it does not exist. Leave folder out to use the current folder. Without --non-interactive it runs the setup wizard. init refuses, with exit code 2 and no files written, when the folder:
- is already inside another project (projects do not nest); the message names that project and the
lobster projects deletecommand in case it should not be one - is your home folder or a folder that contains it:
make a subfolder, e.g. lobster init ~/my-study - has a
.lobster_workspacethat is a symbolic link:a project needs a real folder
If you cancel the setup, init removes the empty folder or workspace it made.
It writes these files:
pbmc-pilot/
├── .env your API key and the provider choice
└── .lobster_workspace/
├── project.json identity
├── provider_config.json provider and model
└── config.toml expertsRunning lobster init again in the same folder changes the settings and keeps the project's identity. There is no separate update command:
lobster init /path/to/pbmc-pilot --force --non-interactive \
--ollama-cloud-key "$OLLAMA_API_KEY" --model glm-5.2 --agents transcriptomics_expert✓ Default model: glm-5.2
✓ Setup complete
Provider: ollama-cloud (glm-5.2)
Backup: /path/to/pbmc-pilot/.env.backup.20261113_134118
Next: run lobster chat
✓ Project PBMC pilot kept at /path/to/pbmc-pilot--force keeps a timestamped backup of the previous .env. lobster init --global is unchanged: it is the first-time setup for you as a user, not a project. A folder that already has a Lobster workspace from before 1.3 becomes a project when you run lobster init in it. The files already there stay. A folder is a project only when it has project.json, and init sets up the provider and the project together, so it adds project.json and the settings files it always writes.
Create a project from a host
A script or an MCP host has no terminal. When lobster init <folder> runs with no terminal on stdin and no key flag (and without --non-interactive or --global), it makes the project from the setup you already have and asks nothing. The commands in this section are for a script, an agent or an MCP host. A person in a terminal runs plain lobster init <folder>, and the setup asks for the provider and the key:
lobster init /path/to/study --provider ollama-cloud --model glm-5.2 \
--agents transcriptomics_expert,annotation_expert,visualization_expert_agent✓ Project study created at /path/to/study
provider: ollama-cloud (set for this project, taken from --provider)
model: glm-5.2 (set for this project; not checked)
The project is now fixed to that provider and model.
experts: transcriptomics_expert, annotation_expert, visualization_expert_agent (3 of 3 experts set)(Output trimmed: the real run also prints a font-cache notice. The commands that init prints name the lobster that ran, with its full path; they are shown here as lobster or /opt/lobster/bin/lobster.) The call writes no key and installs nothing. --lamin or --no-lamin writes only the catalog switch (LOBSTER_LAMIN, no secret) into the project's own .lobster_workspace/.env. A project's own key lives in <project>/.env only if you put it there (a terminal lobster init, or by hand); lobster init run by a host writes none. The project uses the keys your shell and your global credentials file already hold.
- The provider is the first that is set of:
--provider <name>, the project's own file, your global provider file (made bylobster init --global), andLOBSTER_LLM_PROVIDER. A provider from--provideror fromLOBSTER_LLM_PROVIDERis written into the project's own settings. One from the global file is not copied: the project follows that file.--provideris refused in a terminal, with a key flag, and with--global, each with exit code 2, and so is a name that is not a provider. In a terminal the message reads:--provider is for a project made without a terminaland endsIn a terminal, pick the provider in the setup. --modelgoes into the project's provider settings. It is not checked against the provider. It is refused, with exit code 2, for a provider that has no model setting, such asomics-os.--agents a,bor--preset <name>go into the project's expert list. A list withoutdata_expert_agentmakes an MCP run that is given a file refuse, see Lobster AI as an MCP server. Nothing is installed: an expert that is not installed is left out, and the line says how many were set and which command installs the rest:
✓ Project nine created at /path/to/nine
provider: ollama-cloud (set for this project, taken from the shell)
experts: transcriptomics_expert, machine_learning_expert (2 of 3 experts set)
metabolomics_expert: not installed; run /opt/lobster/bin/lobster agents install lobster-metabolomicsWhen the call sets nothing for the project (no --provider, --model, --agents or --preset, so the project only has its identity), the output ends with a line that says to run lobster init <folder> in a terminal to give the project its own settings.
With no provider set up anywhere, init exits with code 1, writes nothing and starts the message with the code no_provider_setup. When a provider's key variable is set in the shell, the message names the variable (never its value) and gives one line for each such provider. The lines repeat the flags you passed (--model, --agents, and so on) and add --provider. Run as lobster init /path/to/study --model glm-5.2, with OLLAMA_API_KEY set:
✗ no_provider_setup: no provider is set up, so nothing was changed (no project provider file, no global provider file, no LOBSTER_LLM_PROVIDER).
OLLAMA_API_KEY is set in the environment for ollama-cloud.
Run one of:
/opt/lobster/bin/lobster init /path/to/study --model glm-5.2 --provider ollama-cloudWith no key variable set, the message says Run: and then In a terminal: /opt/lobster/bin/lobster init /path/to/study and Options: /opt/lobster/bin/lobster init --help instead. A folder that already has a .lobster_workspace that init did not make is refused with bad_argument: and exit code 1, and nothing is changed.
Without a terminal, init takes --provider, --model, --agents, --preset, --lamin and --no-lamin only (and --name). Other setup options need a terminal: --profile, --ncbi-key and --install-docling, among others, are refused with exit code 2 and nothing is changed, so they are never dropped silently. The In a terminal line repeats your --model, --agents or --preset, and --lamin or --no-lamin, never a key. When you passed --provider, a line before it says that a terminal setup asks for the provider and its key. Run as lobster init /path/to/study --profile x --provider ollama-cloud --lamin:
✗ bad_argument: --profile needs a terminal; nothing was changed.
In a terminal the setup asks for the provider and its key; --provider is for a call without one.
In a terminal: /opt/lobster/bin/lobster init /path/to/study --laminRunning it again in the same folder keeps the project's id. --model changes the model and leaves the expert list alone (the output lists the kept experts); --agents replaces the list.
Where a project keeps things
| What | Where | Holds |
|---|---|---|
| Identity | .lobster_workspace/project.json | project id, name, creation time, a reserved cloud field (always empty in 1.3) |
| Provider and model | .lobster_workspace/provider_config.json | the provider and its model |
| Experts | enabled in .lobster_workspace/config.toml | the enabled expert names |
| Keys | .env in the project folder | your API key, as before |
| Runs | runs/ in the project folder | one folder per run |
{
"schema_version": "lobster.project/1",
"project_id": "<project-id>",
"name": "PBMC pilot",
"created_at": "2026-11-13T18:41:06Z",
"cloud": null
}project.json holds identity only. It never holds a provider, a model, a key or any credential: Lobster refuses to write such a field and refuses to read a project.json that has one.
Because the provider, model and experts are the workspace configuration, nothing changes in how settings are ranked: a flag or environment variable still beats the workspace, and the workspace beats your global settings. See Configuration.
How Lobster finds the project
When you run a Lobster command or start lobster mcp --stdio, Lobster picks the workspace in this order:
- An explicit
--workspacepath. If the path is a project folder, the project's.lobster_workspaceis used. - The
LOBSTER_WORKSPACEenvironment variable, read the same way. - The project found from the current folder: Lobster looks in the current folder, then in each parent folder, and the first folder that has a
.lobster_workspacedecides. - Otherwise
.lobster_workspacein the current folder, as before.
Limits on the walk upward: it stops at your home folder (the home folder itself is checked), it does not cross onto another filesystem, and it never reaches /.
If the first .lobster_workspace it finds has no project.json (a workspace made before 1.3, or one reached through a symbolic link), Lobster does not adopt it as a project and does not keep walking. That workspace behaves exactly as it did in 1.2.
Which .env Lobster reads. In a project, Lobster reads the first .env that exists of these two, in this order:
.lobster_workspace/.envin the project.envin the project folder
It does not read the .env of the folder you run from, and it does not search other folders. Then your shell environment and your global settings apply. So from a subfolder, the project's .env is used and the subfolder's own .env is ignored. A folder that is not a project behaves as before.
Keys exported in the shell that starts the server, and the global credentials file, are shared by every project.
List and inspect projects
lobster projects list
lobster projects info [folder]list shows the projects registered on this machine, which is every project created with lobster init. With none, it prints No projects yet. Run: lobster init [folder]. A project whose folder has been moved or removed is marked (missing) and stays in the list:
PBMC pilot <project-id> /path/to/pbmc-pilot
other <project-id> /path/to/other (missing)info shows one project. Without folder it uses the project found from the current folder, so it works from a subfolder:
PBMC pilot (<project-id>)
folder: /path/to/pbmc-pilot
created: 2026-11-13T18:41:06Z
provider: ollama-cloud / glm-5.2
experts: transcriptomics_expert
runs: 2 in /path/to/pbmc-pilot/runsWhen the project does not set a provider or a model, info says what a run uses instead, and from where. For a project made from a host with --provider ollama-cloud and nothing else:
two (<project-id>)
folder: /path/to/two
created: 2026-11-14T00:10:35Z
provider: ollama-cloud
a run uses: model glm-5.2 (from provider default)
experts: all installed
runs: 0 in /path/to/two/runsWith no provider set anywhere, the line reads a run uses: nothing yet; set one up with lobster init /path/to/two. The --json output does not change.
Add --json for output a program can read. The JSON carries schema_version lobster.project/1. Its project block uses the field names of Omics-OS Cloud projects (org_id is null for a local project); the local block holds the folder, workspace, provider, model, experts and runs:
{
"schema_version": "lobster.project/1",
"project": {
"project_id": "<project-id>",
"name": "PBMC pilot",
"status": "active",
"org_id": null,
"created_at": "2026-11-13T18:41:06Z"
},
"local": {
"root": "/path/to/pbmc-pilot",
"workspace": "/path/to/pbmc-pilot/.lobster_workspace",
"provider": "ollama-cloud",
"model": "glm-5.2",
"experts": ["transcriptomics_expert"],
"preset": null,
"runs_folder": "/path/to/pbmc-pilot/runs",
"runs": ["qc-1", "qc-2"],
"runs_total": 2
}
}project also works as a shorter name for projects, but help and examples use projects.
The LaminDB catalog in a project
The LaminDB catalog is optional and off by default. With it on in a project:
- Where it lives. LaminDB keeps its database in
<project>/.lamindb/, in the project folder itself. The location is not configurable.lobster initwrites no ignore file, so keep the folder with the project and do not commit it to a shared repository. - One catalog for every run. Every run of the project is recorded in the project's one catalog, including several runs in one MCP server. Run
lobster lamin statusandlobster lamin lsfrom the project folder to see them. - Chat and query record there too.
lobster chatandlobster queryin a new project record in the same catalog. Plain workspaces outside a project, and project catalogs made before 1.3, are unchanged. For an old catalog,lobster lamin statussays that the project's runs are not recorded and prints the line that moves the old catalog aside. - Turn it on from a host. A host runs
lobster init <folder> --lamin(--no-laminturns it off). It writes only the catalog switch into the project's.lobster_workspace/.env. If LaminDB is not installed, the output says so and gives the install line for your install (in a virtual environment,uv pip install 'lobster-ai[lamin]').lobster lamin init, run in the project folder, also turns it on. - Delete.
lobster projects deletealso removes the project's own.lamindb/.
Delete a project
lobster projects delete [folder] --dry-run
lobster projects delete [folder]
lobster projects delete [folder] --yesdelete removes only what Lobster created:
- the hidden
.lobster_workspace/folder, includingproject.jsonand everything saved in it, such as data and sessions - the run folders that the MCP server made and Lobster recorded. A recorded folder is removed only when it is exactly
runs/<name>and carries what the MCP server leaves in a folder it made; any other recorded folder is listed as kept - the project's own
.lamindb/folder, the LaminDB catalog, if there is one (see The LaminDB catalog in a project) - the project's entry in the list
It never removes the project folder itself and never removes any other file. A project folder can be your home folder or a repository, so everything else stays: your .env, data/ and runs/ are left in place. Because .env usually holds your API key, delete it yourself if you want it gone.
--dry-run prints what would be removed and changes nothing:
Project PBMC pilot (6 files, 1266 bytes)
Lobster would remove:
/path/to/pbmc-pilot/runs/qc-1
/path/to/pbmc-pilot/.lobster_workspace
kept runs/qc-2: not a run folder Lobster made
This removes Lobster's workspace, including the data and sessions saved in it.
.env kept: it holds an API key; delete it yourself if you no longer need it
Left in place (not made by Lobster, or yours to keep):
/path/to/pbmc-pilot/data
/path/to/pbmc-pilot/runsIn this example, runs/qc-1 was made by the MCP server and runs/qc-2 is a folder Lobster recorded but did not make as a run, so it stays. The .env line appears only when the project has a .env. It says "it holds an API key" when init wrote that file or the file has a setting whose name ends in API_KEY, ACCESS_KEY, TOKEN, SECRET, PASSWORD or PASSWD; otherwise it is just .env kept.
If Lobster cannot read a recorded run folder, it prints ⚠ could not read <path>; kept, leaves that folder in place and carries on with the rest.
In a terminal, delete prints the same list with Will remove: and asks:
Delete the workspace and everything saved in it? [y/N]: y
✓ Deleted the Lobster workspace and what was saved in it. The folder and the files outside the workspace are untouched.Answering n prints Nothing deleted. and removes nothing. In a script or an agent there is no terminal: --yes skips the question, and without --yes the command changes nothing and exits with 2:
✗ Nothing changed: no terminal to ask on.
Add --yes to delete, or --dry-run to list what would go.delete refuses, and changes nothing, when:
-
the folder is not a project Lobster created (exit 1):
✗ Lobster did not create a project in /path/to/plain (no .lobster_workspace/project.json). Nothing was changed. -
the folder is a symbolic link (exit 1). Lobster does not follow links:
✗ /path/to/linked is a link; pass the real project folder. -
a running Lobster process holds the folder, or a run folder under it (exit 1), for example a
lobster mcp --stdioserver:✗ /path/to/pbmc-pilot is in use by process <pid>. Stop the run that uses the folder, then try again.
With --json, a successful or dry run prints the project, the paths removed, kept and skipped, a warnings list, and dry_run and deleted flags. An error is printed on standard output as an object with error (the same text), kind, status, code, retryable and request_id. The codes above are not_a_project, in_use and, for the link, unsafe_path:
{
"error": "Lobster did not create a project in /path/to/plain (no .lobster_workspace/project.json).",
"kind": "not_found",
"status": null,
"code": "not_a_project",
"retryable": false,
"request_id": null
}Use a project from an MCP host
lobster mcp --stdio finds the project from the folder it starts in, with the same rule as above. To name the project from another place, start it with --workspace <folder>: the server then finds the project from that folder. Projects are looked up on every call, so a project made with lobster init after the server started needs no restart.
A run goes in runs/<time> in the project. A host may name another folder, but inside a project it must be runs/<name>. The server notes each run folder it makes, so lobster projects delete removes it. See Lobster AI as an MCP server for what a run uses and what it leaves.
Related
Lobster AI as an MCP server
Use Lobster AI from an MCP host: ask an experimental question, approve the plan, follow the run, answer its questions, add turns and inspect results. Nine tools; runs go in your project's runs folder.
Release Notes & Migration Guides
This document provides comprehensive release notes for Lobster AI versions, covering new features, breaking changes, and recommended upgrade paths for future...