Crosmos ships an MCP server that exposes the memory layer’s search, ingestion, and management tools over the Model Context Protocol. Any MCP-compatible client can store and retrieve memories without custom integrations. See the Quickstart for installation and client configuration.Documentation Index
Fetch the complete documentation index at: https://docs.crosmos.dev/llms.txt
Use this file to discover all available pages before exploring further.
Authenticate
Your API key can be stored in a credentials file or set as an environment variable. Generate one from Settings → API Keys in the Crosmos Console. Keys use thecsk_ prefix.
The server resolves credentials in this order:
CROSMOS_API_KEYenvironment variable — overrides everything~/.crosmos/credentials.json— created byauth login- Error — no key found
Login
~/.crosmos/credentials.json. The file is stored with restricted permissions (0600).
To use a custom API base URL:
Check status
Logout
CLI reference
skill install command accepts: opencode, cursor, claude-code, windsurf, vscode.
Skills
The Crosmos skill teaches your AI editor how to use memory tools effectively. It adds auto-intent rules so the agent automatically decides when to search or store memories without explicit prompts.setup. Supported clients:
| Client | Skill location |
|---|---|
| opencode | ~/.opencode/skills/crosmos/SKILL.md |
| Claude Code | ~/.claude/skills/crosmos/SKILL.md |
| Cursor | ~/.cursor/skills/crosmos/SKILL.md |
| Windsurf | ~/.windsurf/rules/SKILL.md |
| VS Code | ~/.vscode/skills/crosmos/SKILL.md |
Environment variables
| Variable | Description | Default |
|---|---|---|
CROSMOS_API_KEY | API key for authentication (overrides credentials file) | — |
CROSMOS_API_BASE_URL | Base URL for the Crosmos Memory API | https://api.crosmos.dev |
DEFAULT_SPACE_ID | Default memory space UUID (optional) | — |
DEFAULT_SPACE_NAME | Default memory space name; resolved via /spaces?name=. Ignored if DEFAULT_SPACE_ID is set. | — |
CROSMOS_API_TIMEOUT | Request timeout in milliseconds | 30000 |
Tools
search_memories
Retrieve relevant memories using hybrid retrieval.
The search query text.
add_memory
Store new content into a memory space. Content is processed through an extraction pipeline that identifies entities, relationships, and creates structured knowledge graph entries.
Provide exactly one of
sources or messages. They are mutually exclusive.list_spaces
List all memory spaces owned by the authenticated user. Call this to discover available space IDs needed by search_memories and add_memory.
No parameters required.
health_check
Check the connectivity and status of the Crosmos Memory Layer API.
No parameters required.
How agents use it
When an agent receives a user message, it callssearch_memories to fetch relevant context. After responding, it calls add_memory to store the new exchange. The next conversation starts with everything the agent already knows.
The server automatically resolves a default space ID if you don’t specify one. If no spaces exist, the agent prompts you to create one from the Crosmos dashboard.
Next steps
How it works
Understand the knowledge graph behind the API.
Memories
Learn how Crosmos structures and retrieves context.