Context infrastructure for LLMs. Switch models freely. Your context stays.
Losi is free to get started. Create an account at ,
add a workspace-scoped API key or connect with OAuth, then use MCP, REST, or the
open-source @losi-ai SDK — no paid plan required to try.
Losi Context Bank is an open-source SDK (@losi-ai on npm) plus optional hosted
APIs on . Day one works offline: snapshots, memory, and
model adapters. Connect via API key or OAuth when you want live CRM, Spaces,
skills, and graph data from your Losi workspace.
Source & full guides:
Install
Works with npm, yarn, pnpm, and bun:
Quickstart — one context, any model
Packages
Start here
When you need them
Hosted Context Bank API
Create a workspace-scoped API key in Losi (Profile → API Access) and store it
in your host vault or as LOSI_API_KEY — do not paste it into chat. The key
is bound to a workspace, so you normally only pass the key via env/vault — not a
workspaceId.
Auth header: Authorization: Bearer + value from vault/env (LOSI_API_KEY).
Base URL
https://losi.ai/api/v1/context-bank
Endpoints (pathless — workspace implied by key)
For full Nexus CRM mutations (create/update leads, campaigns, email/SMS,
etc.) use MCP losiNexus__run or POST /api/v1/nexus/tools with nexus:write
on the key — Context Bank /nexus/… is intentionally read-context for SDKs and
requires both nexus:read and an active Nexus subscription. Spaces Context
Bank reads require spaces:read.
Session example
Workspace-wide search example
Optional types= filter (comma-separated): space,task,note,event,space_memory,space_reference_memory,graph_node,skill,soul,personal_memory,workspace_memory,contact,booking.
MCP equivalent: losiContext__search with { "q": "nexus", "limit": 25 }.
Skills example
Legacy /workspaces/{id}/… paths still work when {id} matches the key’s
bound workspace. Prefer pathless routes.
Connect without the SDK (MCP, skill, prompt)
Key permissions for MCP / tools
Create the key with the scopes you need (Profile → API Access):
Governed keys can further pin spaceIds, memoryScopes (personal / workspace / space / space_reference), nexusAreas, and optional allowedTools. Space memories stay on the Spaces tool surface (losiSpaces__listSpaceMemories, plus Space Reference Memories).
Workspace-scoped keys are required so Losi can imply the workspace.
Secrets
Store the workspace key in the host vault or as LOSI_API_KEY. Never put
losi-… into a chat prompt or commit it to git.
MCP config example
Full guide:
GitHub Packages (optional)
Packages are also published to GitHub Packages under the @losi-ai scope. To
install from there, add an .npmrc:
Most apps should install from npmjs.org instead — no special config needed.
Links
- GitHub:
- npm org:
- Create API keys:
- Chat Completions API: