Owletto CLI Reference
The owletto CLI starts local Owletto runtimes, installs bundled Owletto starter skills, configures agent clients, and runs Owletto tools directly.
- Hosted: app.lobu.ai
Install And Run
Section titled “Install And Run”# Run without installingnpx owletto@latest <command>
# Or install globallynpm install -g owlettoowletto <command>The published package name is owletto.
Core Commands
Section titled “Core Commands”owletto start
Section titled “owletto start”Starts a local Owletto runtime.
npx owletto@latest startnpx owletto@latest start --port 8787Default behavior:
- listens on
http://localhost:8787 - uses embedded Postgres (
PGlite) by default - stores local data in
~/.owletto/data/for packaged installs - uses
./data/when running from anowlettorepo checkout
If DATABASE_URL is set, the CLI starts the server against external Postgres instead.
owletto skills
Section titled “owletto skills”Installs bundled Owletto starter skills into a local skills/ directory.
npx owletto@latest skills listnpx owletto@latest skills add owlettonpx owletto@latest skills add owletto-openclawUse:
owlettofor generic Owletto memory and tool workflowsowletto-openclawfor OpenClaw-specific memory plugin setup
owletto init
Section titled “owletto init”Configures local agent clients to use an Owletto MCP endpoint.
npx owletto@latest initnpx owletto@latest init --url http://localhost:8787/mcpDetects supported clients and auto-configures them when possible. Falls back to manual steps when needed.
Authentication
Section titled “Authentication”owletto login
Section titled “owletto login”Authenticates the CLI against an Owletto MCP server using OAuth.
npx owletto@latest login https://app.lobu.ai/mcpBy default, the CLI opens a browser and completes an authorization-code flow with a local callback server.
Useful flags:
--deviceuses device-code login for headless environments or browserless agents--noOpenprints the login URL instead of opening a browser--scopeoverrides the requested OAuth scopes
Example for a headless box:
npx owletto@latest login https://app.lobu.ai/mcp --deviceowletto token
Section titled “owletto token”Prints a usable access token from the saved session.
npx owletto@latest tokennpx owletto@latest token --rawThis is mainly useful for integrations or plugin setups that need a token command.
owletto health
Section titled “owletto health”Checks that the saved session is valid and that the CLI can reach the MCP endpoint.
npx owletto@latest healthOrganization Selection
Section titled “Organization Selection”Owletto sessions are organization-aware. After login, set the default org if needed:
npx owletto@latest org currentnpx owletto@latest org set my-orgYou can also override organization and server selection per command:
--org <slug>--url <mcp-url>OWLETTO_ORGOWLETTO_URL
Run MCP Tools Directly
Section titled “Run MCP Tools Directly”owletto run
Section titled “owletto run”Lists tools when called without arguments, or executes a tool when given a tool name and JSON params.
# List available toolsnpx owletto@latest run
# Search knowledgenpx owletto@latest run search_knowledge '{"query":"Acme"}'
# Read saved contentnpx owletto@latest run read_knowledge '{"query":"customer preferences"}'
# Save new knowledgenpx owletto@latest run save_knowledge '{"content":"Prefers weekly summaries","semantic_type":"preference","metadata":{}}'This is the most direct way to inspect or test Owletto behavior outside an agent runtime.
Which MCP tools are available?
Section titled “Which MCP tools are available?”The exact tool list depends on the endpoint and your session scope. Run owletto run with no arguments to see what is available.
Core memory: search_knowledge, read_knowledge, save_knowledge
Watchers: list_watchers, get_watcher
Organization: list_organizations, switch_organization (unscoped endpoint only)
Admin / workspace (admin sessions only): manage_entity, manage_entity_schema, manage_connections, manage_feeds, manage_auth_profiles, manage_operations, manage_watchers, manage_classifiers, query_sql
Other Useful Commands
Section titled “Other Useful Commands”owletto doctor
Section titled “owletto doctor”Checks local prerequisites such as Node, Docker, and current server reachability.
npx owletto@latest doctorowletto browser-auth
Section titled “owletto browser-auth”Captures browser-based auth or cookie state for connectors that rely on a real browser session.
This is mainly for connector setup, not day-to-day memory usage.
owletto configure
Section titled “owletto configure”Writes OpenClaw plugin config for @lobu/owletto-openclaw using an owletto token command.
Typical Install Flow
Section titled “Typical Install Flow”For most users, the shortest path is:
npx owletto@latest skills add owlettonpx owletto@latest initThat gives the agent both:
- the Owletto skill so it knows how to use Owletto well
- the MCP configuration so it can actually connect to Owletto
Repo-Local Development
Section titled “Repo-Local Development”When working inside the owletto repository itself, you can run the TypeScript entrypoint directly:
pnpm -C packages/owletto-cli exec tsx src/bin.ts startpnpm -C packages/owletto-cli exec tsx src/bin.ts skills listpnpm -C packages/owletto-cli exec tsx src/bin.ts initpnpm -C packages/owletto-cli exec tsx src/bin.ts run search_knowledge '{"query":"spotify"}'How This Fits With Lobu
Section titled “How This Fits With Lobu”Use the Lobu CLI to scaffold and run Lobu projects. Use the owletto CLI to install the Owletto skill, configure clients, and operate Owletto itself.
- Lobu CLI: CLI Reference
- Memory docs: Memory