omics-os
v1.3.2
Published
Omics-OS Cloud command line: sign in, run Lobster AI sessions, BioVault, editor and playground from the terminal.
Readme
Quickstart
1. Install:
Coming from @omicsos/lobster 0.4? Run npm uninstall -g @omicsos/lobster first: both packages install the lobster-cli command.
npm install -g omics-os2. Authenticate:
omics-os login3. Ask anything:
omics-os lobster query "Find differentially expressed genes in BRCA vs normal tissue" --streamCLI Reference
Cloud queries — single-turn analysis on Omics-OS Cloud:
omics-os lobster query "your question" # Run, wait, print result
omics-os lobster query "your question" --stream # Stream text as it arrives
omics-os lobster query "your question" --json # Machine-readable output
omics-os lobster query "..." --session-id latest # Continue previous sessionInteractive cloud chat — full session with the Ink TUI:
omics-os lobster chat # New session
omics-os lobster chat --session-id <uuid> # Resume session
omics-os lobster chat --help # All chat optionsLocal engine chat (experimental) — the same chat UI on a Lobster AI engine on your machine:
omics-os lobster chat --backend local [--workspace DIR] [--provider NAME] [--model ID]Experimental: if this program or the Cloud worker restarts while Lobster is waiting for your decision, the run is lost and must be re-run from the last question.
It needs a Lobster AI engine with lobster agent --stdio (lobster-ai on PATH or in ~/.local/bin, or set OMICS_OS_LOBSTER_BIN=<path> to name one); the first candidate that answers the engine's handshake is used. If none does, it prints one line naming each path tried and why, and exits 1. omics-os doctor lists the candidates and the one chat would use. No Omics-OS credential is passed to the engine. Without --provider, the engine picks its LLM provider from, in order: the workspace config, ~/.config/lobster/providers.json, then LOBSTER_LLM_PROVIDER. In the chat, Ctrl+C twice cancels a running reply; /exit (or Ctrl+C when idle) quits.
Engine-only verbs — omics-os lobster --help lists the Lobster AI verbs that run on Omics-OS Cloud (query, chat) and names the rest at the bottom (for example lobster dashboard, lobster init, lobster status): those run only in the local engine, with its own lobster command.
Local Lobster AI — the open-source Python engine is a separate install with its own lobster command:
uv tool install lobster-ai # then: lobster chat, lobster initSetup & auth:
omics-os login # Browser OAuth or --api-key
omics-os status # Account, organisation, tier
omics-os -V # Version, Node.js, Cloud endpoint, lobster-aiCommands
IDs. A session or project ID can be given in full or by its first 4 or more characters (omics-os sessions info 79df), as long as only one of yours starts with them; otherwise the command lists the matches. --json output always has full IDs. sessions delete and sessions cancel under --force or --json need the full ID.
Projects
| Command | Description |
|---------|-------------|
| omics-os projects list | List your projects, organisation projects first |
| omics-os projects info <id> | Show a project with its datasets and sessions |
| omics-os projects create <name> [--description <text>] | Create a project. Logged in with --tenant, it belongs to that organisation and you own it; otherwise it is a personal project. The output says which. Only organisation projects take omics-os upload. |
| omics-os projects download <id> [folder] | Copy a project's session files to your computer; files already there are skipped |
Sessions
| Command | Description |
|---------|-------------|
| omics-os sessions create [--project <id>] [--name <name>] | Start a session; with --project, the project's files are copied in when it starts (files uploaded later are not) and any that were not are listed |
| omics-os sessions list | List sessions, most recently active first, with their project |
| omics-os sessions info <id> | Show session details |
| omics-os sessions archive <id> | Soft-delete a session |
| omics-os sessions delete <id> [--force] | Permanently delete |
| omics-os sessions cancel <id> | Ask the server to stop the current reply; prints its answer, exits 1 if nothing was cancelled |
| omics-os sessions export <id> --type report | Export a session as a report, pipeline or slide deck |
Files
| Command | Description |
|---------|-------------|
| omics-os files list <session-id> | List workspace files |
| omics-os files upload <session-id> <path> | Upload local file |
| omics-os files download <session-id> <key> [dest] | Download file |
| omics-os files delete <session-id> <key> [--yes] | Delete file; asks first, --yes skips the question |
| omics-os files load <session-id> <path> | Load into session context |
Session uploads take files up to 2 GiB; larger files go to a project with omics-os upload. Downloads are written to disk as they arrive, so large files do not fill memory.
Upload
omics-os upload sends files and whole folders into a project's data on Omics-OS Cloud, straight to storage, in parts, each at its path. A file appears in the project once it is complete. It is made for large instrument output and for connections that drop. A single file can be up to 48.8 TiB (the storage limit), within your organisation's per-file limit.
When we set up a project for you, we send you the command ready to paste. It looks like this and works unchanged in Command Prompt, PowerShell, zsh and bash:
omics-os upload "<folder>" --project <project-id>| Command | Description |
|---------|-------------|
| omics-os upload <paths...> --project <id> | Upload files and folders; a folder keeps its own name and subfolders (run1/pod5_pass/barcode01/a.pod5) |
| omics-os upload <paths...> --project <id> --include "*.pod5" | Only files matching the pattern (repeatable) |
| omics-os upload <paths...> --project <id> --dry-run | List the files and the total size; send nothing |
| omics-os upload <paths...> --project <id> --concurrency <n> | Parts sent at once, 1-16 (default 4) |
| omics-os upload <paths...> --project <id> --replace | Overwrite a different file already in the project at the same path (the old version is kept for 30 days) |
| omics-os --json upload <paths...> --project <id> | {project_id, files: [{path, size_bytes, outcome, relative_path, version_id}], totals} for scripts |
- Resume. Stopped, cut off or closed the laptop? Run the same command again: a file can be resumed for 7 days from the start of its upload. The 7 days count per file, so a run of many files never runs out; only one very large file on a slow connection can (see below). Finished files are skipped, and a partly sent file continues from its last finished part. A file is recognised by its path, its size and a fingerprint of its first and last 8 MiB. If its modification time changed, the parts already sent are read again and compared first, so a changed file starts over. A file rewritten during the upload is not completed. Ctrl-C exits with code 130 and prints the command to run again.
- Very large single files. An unfinished upload is removed 7 days after it started, and the next run starts that file again. Largest single file that fits in 7 days at about 75 % of the line speed: 20 Mbit/s ~1.1 TB, 50 Mbit/s ~2.8 TB, 100 Mbit/s ~5.7 TB, 500 Mbit/s ~28 TB, 1 Gbit/s and faster: the 48.8 TiB limit. A larger file on a slower line: split it, or upload from a faster connection.
- Same path. A file already in the project with the same path, size and fingerprint is skipped. A different file at the same path is not overwritten: that file fails with a hint and the others go on. Run again with
--replaceto overwrite it, or to cancel your own unfinished upload of an earlier version of the file; files already in the project are still skipped. - Storage quota. When your organisation reaches its storage quota, no further file is started: files already started finish, and the rest are listed as not started.
- Checks. Storage checks the checksum of every part on arrival.
- Delete. To delete files from a project, use the web app.
- Sessions. Start a session on the project after uploading:
omics-os sessions create --project <project-id>. The project's files are copied in when the session starts, and the command lists any it did not copy (raw sequencing files such as.pod5and.fastq.gzare never copied); the agent cannot read those in that session. - Skipped. Empty files and links are skipped and listed; links are not followed.
- Exit codes. 0 all files done, 1 any file failed, 2 usage error, 130 stopped with Ctrl-C.
- Windows. If PowerShell refuses to run
omics-osbecause of its execution policy, runomics-os.cmdinstead, with the same arguments.
BioVault
Running plans remains subject to your organisation's availability and the server's policy/capacity checks.
API keys can start billable runs, like a CLI login. Creating or editing a draft is not approval to start it.
| Command | Description |
|---------|-------------|
| omics-os biovault features | Check run availability |
| omics-os biovault draft new [--output FILE] | Write a local starter; never starts a run |
| omics-os biovault draft create --file FILE | Create a server draft |
| omics-os biovault draft export ENTRY --output FILE | Export editable fields with the current revision |
| omics-os biovault draft apply ENTRY --file FILE [--yes] | Apply a whole replacement; --yes acknowledges omissions, not a billable start |
| omics-os biovault draft edit ENTRY | Edit with VISUAL/EDITOR in a terminal |
| omics-os biovault draft show ENTRY | Review the checked plan; --config, --prompt, --checks or --execute-command are mutually exclusive |
| omics-os biovault draft list | List drafts |
| omics-os biovault draft literature add ENTRY FILE.ris --expect-revision N | Register literature on an existing draft |
| omics-os biovault draft literature remove ENTRY FILE_ID --expect-revision N | Remove registered literature |
| omics-os biovault draft discard ENTRY [--yes] | Discard a planning draft; does not cancel a run |
| omics-os biovault runs [--status S] [--outcome O] [--limit N] [--cursor C] | List supported dataset runs |
| omics-os biovault run start ENTRY [--yes --review FILE] | Explicitly approve a billable plan |
| omics-os biovault run recover ENTRY [--forget --yes] | Read an earlier start's outcome; never resends it |
| omics-os biovault run cancel JOB [--yes] | Record a cancellation fence; cleanup can remain pending |
| omics-os biovault run show JOB [--watch] | Read status; watching never cancels |
| omics-os biovault run prompt JOB | Read the approved prompt |
| omics-os biovault run samples JOB [--limit N] [--cursor C] | Read samples |
| omics-os biovault run package JOB | Read package metadata, not bytes |
| omics-os biovault run problems JOB [--status resolved\|unresolved] [--severity info\|warning\|blocking] | Read problems; also accepts limit/cursor |
| omics-os biovault run decisions JOB [--limit N] [--cursor C] | Read inclusion/matching decisions |
| omics-os biovault run download JOB --dest DIR [--path P] [--force] | Download selected/all manifest files into an existing directory |
| omics-os biovault run download JOB --dest DIR --archive [--force] | Download the optional ZIP; cannot combine with --path |
ENTRY, JOB, FILE_ID, and N above are placeholders for returned IDs/revisions, not literal values. Pagination limits are integers 1–100; --path and --confirm-default PATH are repeatable. --confirm-default on create/apply acknowledges only the named configuration defaults, never execution. The server validates configuration; unknown keys and wrong types are not silently repaired. Apply is whole replacement: omitted fields can return to defaults. Omitted or empty literature_decisions preserves existing decisions; register RIS files before applying their zero-based per-file decisions.
Review, then explicitly start
The starter has an empty question, intent and node list, and no limits. It is not execution-ready: do not blindly copy it into a start. Edit it to a meaningful question/intent, valid known selection IDs/roles, and finite cost/storage limits within the current GEO, human bulk RNA-seq scope. Review the server's normalised plan and checks; explicitly acknowledge defaults you intend. Resolve Blocking checks before proceeding. This is a workflow template, not a pre-approved scientific plan.
set -e # Stop on any failed step; never continue from an unknown start outcome
omics-os biovault features
omics-os biovault draft new --output starter.json
vi starter.json # USER EDIT: question, intent, known nodes/roles, scope, limits
omics-os --json biovault draft create --file starter.json > created.json
ENTRY=$(jq -er '.entry_id' created.json)
omics-os biovault draft export "$ENTRY" --output run.json
vi run.json # USER EDIT: retain expected_revision; review defaults and limits
omics-os biovault draft apply "$ENTRY" --file run.json --yes
# Review the full plan BEFORE producing the execution tuple
omics-os biovault draft show "$ENTRY"
omics-os biovault draft show "$ENTRY" --config
omics-os biovault draft show "$ENTRY" --prompt
omics-os biovault draft show "$ENTRY" --checks
omics-os biovault draft show "$ENTRY" --execute-command > review.json
# BILLABLE: run only after you explicitly approve this exact fresh plan
omics-os --json biovault run start "$ENTRY" --yes --review review.json > started.json
JOB=$(jq -er '.job_id' started.json)
omics-os biovault run show "$JOB" --watch
# Download only if completed with a published complete/partial folder
mkdir -p dataset-folder
omics-os biovault run download "$JOB" --dest dataset-folderIf either stdin or stdout is non-TTY, start requires both --yes and --review FILE. The review is exactly seven fields: four digests, revision, turn generation and prompt version; all must match the freshly read ready snapshot. A stale/extra/missing field refuses locally. --json alone is not consent. Interactive start displays the requested model, limits and revision, warns “This starts a billable run.”, and defaults to No ([y/N]). Approval accepted means approval was accepted, not that execution is already running.
Start captures the authenticated actor and organisation; an organisation is required. Before its single start POST, it saves a durable private 0600 pending record under the npm credential directory with an exclusive per-entry mutex. Any existing record blocks another start with zero start POSTs. There is no auto-resend or second-start recovery. Unknown outcomes exit 8 and keep the record. A signal after the start request was sent, before its outcome is known, keeps the record. If the draft was already started or has changed, run start sends nothing and clears its local record; if that cleanup fails, it keeps the record with a warning. Once an outcome is proven, a late signal/local retirement problem does not erase the known result.
Use omics-os biovault run recover "$ENTRY" manually after uncertainty. Recovery only reads the server, never starts a run. It can confirm accepted, different-plan, discarded or superseded outcomes; the latter three return 5. Pending/unknown stays 8. --forget --yes removes only an unresolved local record after comparison, not a possible server run; that run may still exist or the original request may still land. Records from another login, oversized/nonregular files and stale mutexes are not automatically deleted; follow the reported login/path instruction rather than blindly removing history. Policy pre-commit refusals return 6 and capacity refusals 7; other ambiguous start failures retain the record.
Watching polls until settled, not merely a terminal-looking status: failed can await terminal settlement; cancelled can await cleanup. Ctrl-C stops watching (130) and sends no cancellation. Cancel reports “Cancellation recorded. No evidence will be published for this run.”; cleanup may remain pending (7). It does not promise immediate compute or billing cessation. Inspect problems/decisions for a failed run; the CLI prints “Run failed” and only a server-supplied explanation.
The destination must be a directory you own that other users cannot write to. These pathname checks protect against other local users, not interference by the same user or root; they are not a race-proof descriptor-relative guarantee.
run download is supported on macOS and Linux. On Windows, use WSL.
Download accepts only completed, published complete or partial folders; failed/cancelled runs have no download. Byte counts and SHA-256 are checked against the manifest, not scientific correctness. Transfers are streamed and size-bounded; signed URLs are never printed or sent Omics credentials. An existing destination directory with no symlink ancestors is required; overwrites require --force. Files already saved remain saved if a later transfer fails: the final report lists completed, failed and not-attempted files.
Costs distinguish spent, provisional, and up to an in-flight reservation/upper bound. A reservation is not spend; unresolved cost is unavailable. Review limits, not an assumed price or immediate cancellation saving.
Legacy compatibility
vault jobs lists legacy jobs; job-status reads either supported v1 or legacy status; vault cancel aliases run cancel. search, evidence and export remain legacy evidence commands and may not work with a CLI login. vault ask is closed: even ask --help refuses locally (exit 2, no HTTP) and points to draft new. Legacy evidence search is not the dataset-run workflow.
Vector Search (Ontology Matching)
| Command | Description |
|---------|-------------|
| omics-os vector search "T cell exhaustion" | Semantic ontology search |
| omics-os vector search "..." --collections mondo,uberon | Filter collections |
Exports & Editor
| Command | Description |
|---------|-------------|
| omics-os sessions export <session-id> --type report | Export session as report/pipeline/slidedeck |
| omics-os editor generate <session-id> | Generate LaTeX artifacts |
| omics-os editor compile <session-id> | Compile the editor project and save the PDF (--output, default output.pdf) |
| omics-os editor download <session-id> | Download project ZIP |
Architecture
omics-os (npm)
├── packages/cli Commander: omics-os <noun> <verb>
├── packages/tui React Ink chat, started by `omics-os lobster chat`
├── packages/core Lobster protocol v1 and the engine command list (bundled, not published)
└── packages/cloud-client Typed Omics-OS Cloud API client
│
▼
Omics-OS Cloud (app.omics-os.com)omics-os starts the Python engine only for omics-os lobster chat --backend local, as lobster agent --stdio. Lobster AI (pip/uv package lobster-ai) runs locally with its own lobster command; its lobster cloud chat hands over to the chat client.
Upgrading from @omicsos/lobster 0.4: the commands moved under surfaces. lobster cloud vault … is omics-os biovault …, lobster cloud editor … is omics-os editor …, lobster cloud login|status|profiles|use is omics-os login|status|profiles|use, query and chat are under omics-os lobster …, and the other session verbs are at the top level (omics-os sessions, projects, files, agents, vector; export is omics-os sessions export). The package also installs a lobster-cli command that keeps the 0.4 grammar for older lobster-ai releases. If omics-os was installed over 0.4 with --force, uninstalling 0.4 afterwards also removes lobster-cli.
Moving from 1.3.1: the Cloud nouns moved from under omics-os lobster to the top level: session is omics-os sessions, projects, files, agents and vector keep their names, and export is omics-os sessions export. The 1.3.1 forms still run, with the same output and exit codes, so scripts keep working.
Available on all commands:
| Flag | Effect |
|------|--------|
| --json | Machine-readable JSON output |
| --endpoint <url> | Override API endpoint |
| --no-color | Disable ANSI colors |
| --verbose | Print API requests (method, path, status, request ID) to stderr; cloud chat and file transfers are not included |
| -V, --version | Show CLI + Python + cloud info |
omics-os stores logins in ~/.config/omics-os/credentials.json (mode 0600). Lobster AI (Python) reads the same file to use Omics-OS Cloud models. The file format is not a public interface.
OAuth (default):
omics-os login # Opens browser, receives one-time code via localhost callbackAPI key:
omics-os --endpoint https://app.omics-os.com/api/v1 login --api-key omk_...Environment variable (CI/CD):
export OMICS_OS_API_KEY=omk_...
omics-os --profile default lobster query "..." --jsonAn environment key takes precedence: OMICS_OS_API_KEY (the same name the Lobster AI engine reads; it wins over the older OMICSOS_API_KEY, which still works here, and if both are set with different values the CLI says so). The local engine reads only OMICS_OS_API_KEY: the older name is never passed to it. Then come the legacy LOBSTER_TOKEN fallback (LOBSTER_CLOUD_TOKEN is read by omics-os lobster chat), explicit command credentials, and stored credentials. Stored CLI logins refresh automatically; explicit/environment tokens are used directly, not automatically refreshed. Browser login uses first-party omc_/omr_ CLI credentials and a one-time browser handoff, not stored Cognito refresh tokens.
API keys can be revoked. CLI logins (omc_) expire and can be revoked.
Profiles and tenants:
omics-os login --tenant acme # Normal browser authorisation for your tenant
omics-os profiles # Inspect saved profile names
omics-os --profile acme biovault features
omics-os use default # Select the platform profile againTenant browser login saves a platform default profile and a tenant profile, then makes the tenant profile active. Both hold the same account, so a tenant login replaces any platform login saved before. If you use a different platform account on the same computer, run omics-os login again afterwards and choose the platform; the tenant profile stays, and omics-os use <tenant> selects it again. --profile does not change where a login is saved. --profile is a global option (omics-os --profile NAME …); --tenant belongs to login. Stored credentials attach only to trusted Omics-OS/local-development origins, including trusted explicit endpoints; an endpoint override is the API base, for example https://app.omics-os.com/api/v1.
API keys are not accepted on tenant subdomains; use omics-os login --tenant <slug>.
Requests are rate-limited per IP address, so users behind one network share the limit. Use the platform default profile/endpoint for API-key CI, and coordinate requests from workers sharing a network.
Every cloud query creates or continues a session:
# New session (auto-created)
omics-os lobster query "Load BRCA dataset from GEO"
# Continue most recent session
omics-os lobster query "Now run differential expression" --session-id latest
# Resume specific session
omics-os lobster query "Show results" --session-id 4a8f2c1d-...Sessions persist server-side. View and manage them at app.omics-os.com.
# JSON output for parsing
omics-os lobster query "List top 10 DEGs" --json | jq '.response'
# With explicit API key (platform profile, not a tenant)
OMICS_OS_API_KEY=omk_... omics-os --profile default lobster query "..." --json
# Check exit codes
omics-os lobster query "..." --json
# 0 = success, 1 = error, 130 = cancelled (Ctrl-C, or `omics-os sessions cancel`).
# A cancel the server reports adds "cancelled": true and any partial "response" to the
# JSON; a local Ctrl-C keeps the shorter {"success": false, "error": ...} form.