@lobu/cli
v10.0.0
Published
CLI for deploying and managing AI agents on Lobu
Readme
@lobu/cli
CLI for running Lobu locally and managing Lobu agents through the same REST API as the web app.
Quick Start
npx @lobu/cli@latest init my-bot
cd my-bot
# edit .env to set DATABASE_URL
lobu runLobu boots as a single Node process. Postgres (with pgvector) is a user-provided external. lobu doctor reports what's missing.
docker run -d --name lobu-pg -p 5432:5432 \
-e POSTGRES_PASSWORD=lobu pgvector/pgvector:pg16
# DATABASE_URL=postgresql://postgres:lobu@localhost:5432/postgresCommands
lobu --help shows the full grouped command list, and lobu <cmd> --help lists the per-command flags. The highlights:
lobu init [name]— scaffold a project. Interactive by default; pass--yes(with any of--port/--provider/--platform/--memory/--no-sentry/ etc.) for non-interactive / CI scaffolding.lobu init .or--herescaffolds into the current directory.lobu run(aliases:lobu dev,lobu start) — boot the embedded stack. Pre-flights the gateway port and accepts--port/--quiet/--verbose/--log-level.lobu chat <prompt>— send one prompt and stream the response.-C/--continueresumes the last thread (per context+agent);--auto-approveskips tool prompts in trusted runs;--jsonemits raw SSE events for piping.lobu doctor— Postgres connectivity, pgvector extension, port availability, provider API keys, workspace dir.lobu link/lobu unlink— bind this directory to a (context, org) at.lobu/project.json.lobu applyrefuses to push mismatched targets unless--forceis set.lobu apply(alias:lobu deploy) — idempotent sync oflobu.config.tsto Lobu Cloud.lobu agent scaffold <id>— add a second/third agent to an existing project.lobu telemetry {status,on,off}— Sentry is off by default; toggle here.
Note: Lobu's in-house YAML eval runner has been removed. Author evals with promptfoo +
@lobu/promptfoo-provider; seeexamples/personal-finance/evals/promptfooconfig.yamlfor the new pattern.
License
Apache-2.0
