Skip to main content
Connect Vellum agents to Cognee so prompts, tool calls, and responses are captured automatically and persisted as memory.

Why Use This Integration

  • Zero-code memory: the plugin captures prompts, tool traces, and responses automatically
  • Cross-session memory: context persists across agent instances and conversation sessions
  • Flexible backend: use a plugin-managed local Cognee server, your own self-hosted server, or Cognee Cloud

Prerequisites

  • A Vellum account and the Vellum CLI
  • A Cognee API key if you are using Cognee Cloud
  • An LLM API key if you are using local Cognee and want graph sync to work
  • An agent already hatched in Vellum
Vellum plugins are configured per agent, so you need to hatch the agent before installing Cognee.

Quick Start

Use the local flow if you want Cognee to run with a managed local server. Use the cloud flow if you want to connect Vellum to Cognee Cloud. You can also install the plugin from the Vellum web app instead of the CLI: open your assistant, go to the Plugins tab, search for Cognee, and install it there — the credentials shown below still need to be configured.
The examples below use my-assistant as the agent name. Use the same name in every command.
Two separate API keys are involved. The Vellum provider key (set with vellum setup) is what the agent itself uses to chat — hatch configures Anthropic as the default provider. The Cognee llm_api_key credential is used by the Cognee server to build the knowledge graph during sync. Cognee does not reuse the Vellum provider key, so configure both — they can hold the same value if both use the same LLM provider.
Set up a local agent, configure both keys, and install the plugin:
After setup, you can talk to the agent as usual, for example with:
If the agent replies with provider_connection "anthropic-personal" has no API key stored, the Vellum provider key is missing — run vellum setup --provider anthropic, or store one directly with vellum exec my-assistant -- assistant keys set anthropic sk-ant-.... See the Vellum docs for advanced agent setup options.

How It Works

The plugin hooks into the Vellum agent lifecycle to capture and recall memory automatically: See the hook mapping in the integration README for implementation details.

Update or Remove

Upgrade the plugin to the current marketplace pin:
Remove it from the agent:

GitHub Repository

View the Vellum integration source code

Vellum GitHub

Learn more about the Vellum assistant project