Run Spectron with Docker Compose and make your first remember and recall calls.
This guide runs Spectron via Docker Compose alongside SurrealDB, bootstraps a Context, and exercises remember and recall. Full deployment options are in Docker.
Prerequisites
Docker and Docker Compose
An OpenAI or Anthropic API key for extraction and chat models
Spectron listens on port 9090 by default (check your compose file if you mapped a different host port).
Step 2 — Bootstrap keys and a Context
Follow the first-run steps in the Docker guide: create a management key, then create a Context and an end-user API key via the management API or CLI inside the container.
For native dev on the host (spectrond dev start + local SurrealDB), see the CLIdev start section and Configuration.
curl -sS "$SPECTRON_URL/api/v1/$SPECTRON_CONTEXT_ID/facts" \ -H "Authorization: Bearer $SPECTRON_API_KEY" \ -H "Content-Type: application/json" \ -d '{"text":"King Charles III became head of state of the United Kingdom in September 2022.","infer":"full","scope":["org/acme/user/alice"]}'
Or install the CLI in your environment (or run via docker compose exec spectron …) and use:
spectron remember "Alice was promoted to Head of Platform at Acme." \ --scope org/acme/user/alice \ --url "$SPECTRON_URL" --api-key "$SPECTRON_API_KEY" --context-id \ "$SPECTRON_CONTEXT_ID"
Processing runs asynchronously on the worker tier.
Step 5 — Recall
spectron recall "What is Alice's role at Acme?" --json \ --url "$SPECTRON_URL" --api-key "$SPECTRON_API_KEY" --context-id \ "$SPECTRON_CONTEXT_ID"
Tier 1 or 2 hits avoid sending a large context block to the LLM.
Step 6 — Optional chat and MCP
spectron chat "Summarise what you know about Alice at Acme" \ --url "$SPECTRON_URL" --api-key "$SPECTRON_API_KEY" --context-id \ "$SPECTRON_CONTEXT_ID"
spectron mcp
Paste the printed MCP config into Claude Desktop, Cursor, or Claude Code.