Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@pleri/olam-cli

Package Overview
Dependencies
Maintainers
1
Versions
168
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pleri/olam-cli

Standalone CLI for [Olam](https://github.com/pleri/olam) — a **cloud-first** agent platform: curated skills, persistent agent memory, symbol-aware code search, and dispatch of autonomous coding agents to the cloud, all wired into Claude Code.

latest
stable
Source
npmnpm
Version
0.1.217
Version published
Maintainers
1
Created
Source

@pleri/olam-cli

Standalone CLI for Olam — a cloud-first agent platform: curated skills, persistent agent memory, symbol-aware code search, and dispatch of autonomous coding agents to the cloud, all wired into Claude Code.

# Install
curl -fsSL https://olam.bar.dev/install | sh
# (or: npm install -g @pleri/olam-cli)

# Verify
olam --version

Requires Node.js ≥ 20 and npm. Track the prerelease tag with OLAM_CHANNEL=canary.

Cloud-first by default

A fresh install is cloud mode: olam --help shows only the cloud surface — no Docker, k3s, or compose. The four cloud workflows are the default:

WorkflowWhat it gives youWire it up
Skillssync curated skills + agents into ~/.claudeolam skills source addsyncinstall-hook
Memorypersistent agent memory across sessionsolam memory connect <url>install-hooks
Knowledge graphsymbol-aware code searcholam kg connect <url>install-hook
Remoteplan + dispatch agents on the cloudolam remote connect <url>olam dispatch … --executor cloud
olam setup        # guided cloud-first wizard (no Docker required)

The CLI ships no baked-in endpoints — you supply your team's service URLs. Hidden local commands stay fully callable; reveal them any time:

olam config local-mode     # show the full docker/k3s command surface
olam config cloud-mode     # back to cloud-first (default)

One-shot team setup (URLs as args, secrets via GCP IAM)

The most secure path for a team: public URLs are args; secret bearers flow through a shared GCS bucket gated by GCP IAM — nothing sensitive touches the command line or shell history.

olam setup \
  --skills-source=<git-url> \
  --remote-memory-url=<memory-url> \
  --remote-kg-url=<kg-url> \
  --remote-dispatch-url=<dispatch-url> \
  --gcp-bucket=atlas-olam-credentials  # pulls team bearers (implies GCP)

--gcp-bucket implies GCP credential distribution — --credentials=gcp is no longer required. The bucket has no implicit default: pass --gcp-bucket, set OLAM_CREDENTIALS_BUCKET, or persist it with olam config set credentials.bucket <gs://bucket[/prefix]>.

  • Admin (once): olam credentials push --gcp-bucket <name> uploads the team's bearers to the bucket (auto-created, uniform bucket-level access). Grant teammates roles/storage.objectViewer.
  • Teammate: --credentials=gcp runs olam credentials pullgcloud downloads the bearers with the teammate's own ADC and writes them 0600. Their GCP permission is the access gate.
  • Verify: olam remote status and olam doctor (cloud-aware — it probes the four connections, skipping Docker/k8s checks).

olam credentials status lists which bearers exist locally.

Wire the MCP server into Claude Code

Olam ships an MCP server exposing olam_create, olam_dispatch, olam_destroy, olam_list, olam_status, and more.

olam mcp install                  # default --scope=user
olam mcp install --scope=project  # writes to project .mcp.json
olam mcp uninstall                # idempotent; symmetric

Auto-detects whether olam is on PATH (writes command: "olam"); otherwise falls back to npx -y @pleri/olam-cli@latest mcp serve. The @latest pin is deliberate — a bare npx -y @pleri/olam-cli reuses a stale cached build without re-checking the registry, so a published upgrade can be silently shadowed by an old cached version. Paste-in for ~/.claude.json or a project .mcp.json:

{
  "mcpServers": {
    "olam": { "command": "npx", "args": ["-y", "@pleri/olam-cli@latest", "mcp", "serve"] }
  }
}

olam --mcp is a thin alias for olam mcp serve (MCP marketplace convention). Verify with claude mcp list | grep olam, then restart Claude Code.

Cloud dispatch

olam dispatch <world> "<task>" --executor cloud   # CF Sandbox / plan-DO runner

--executor accepts docker | do | sandbox | cloud. With no flag, dispatch routes to the cloud when you're in cloud mode and a remote is connected; otherwise it uses a local Docker world. The chosen route is always printed.

State lands under ~/.olam/ (all secrets 0600):

  • ~/.olam/memory-connection.json, ~/.olam/kg-proxy-{url,bearer}, ~/.olam/plan-chat-bearer.json — the cloud connections.
  • ~/.olam/secrets/ — bearer secrets (the GCS-distributed set).

Cloud auth vault

withCredential (in @olam/auth-client) routes Claude API calls through a cloud auth-worker by default — credential rotation + 429 cooldown stay server-side. Resolution order:

  • OLAM_CREDENTIAL_BACKEND=local → local olam-auth container.
  • OLAM_CREDENTIAL_BACKEND=remote → cloud auth-worker.
  • Auto-discovery via OLAM_ANTHROPIC_BASE_URL / ~/.olam/anthropic-base-url / ~/.olam/cloud-bearer.json.
olam auth login                # cloud auth-worker (supply your worker URL)
olam auth login --local        # legacy local container (deprecated)
olam auth migrate --dry-run    # plan a local → cloud migration

The auth-worker URL is operator-supplied (--remote <url>, OLAM_AUTH_WORKER_URL, or ~/.olam/auth-worker-url) — there is no baked-in default endpoint.

Multi-account Claude Code (--claude-home)

One operator, many Claude Code instances, each with its own HOME pointing at a separate ~/.claude.instance-N/ (login, hooks, MCP topology, and 429 bucket are all per-HOME):

olam create my-world --claude-home work-account
HOME="$HOME/.olam/claude-homes/work-account" claude login

The value persists to the world's metadata. See ADR 045.

Self-upgrade

olam upgrade -y                 # pull latest digests; restart services

JSONL audit log at ~/.olam/upgrade.log.

Local mode (advanced)

Run the full stack — host control-plane, auth/KG/memory services, and isolated Docker/k3s worlds — locally. Reveal the commands first:

olam config local-mode
olam setup --local-mode          # guided local bootstrap (K3s default, or --substrate=docker)
olam bootstrap                   # pull + start the host stack
olam create --name <slug> --task "<goal>"
olam enter <world>               # shell into the world
olam yolo my-task --branch feat/x --prompt-file /tmp/task.txt

K3s mode requires k3d, kubectl, helm, gh, and docker. Full guide: k3s-mode setup. Local development keeps the three cloud boosts (Skills / Memory / KG) and can shift workloads to the cloud at any time.

Docs

License

See LICENSE.

FAQs

Package last updated on 15 Jun 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts