Skip to main content

ainative-opencode-memory

Persistent cross-session memory for OpenCode agents — powered by AINative ZeroDB.

OpenCode is stateless: it forgets every decision, convention, and gotcha the moment a session ends. This MCP server gives your OpenCode coding agent long-term memory — store facts once, recall them in every future session.

Install

pip install ainative-opencode-memory
# or, no install:
uvx ainative-opencode-memory

Configure OpenCode

Add to your opencode.json:

{
  "mcpServers": {
    "ainative-memory": {
      "command": "uvx",
      "args": ["ainative-opencode-memory"],
      "env": { "AINATIVE_API_KEY": "{env:AINATIVE_API_KEY}" }
    }
  }
}

Get a free API key at ainative.studio/signup (Hobbyist is $5/mo with a 7-day free trial).

Tools

Tool What it does
opencode_recall_context Reload the most relevant remembered context for the current task — call at session start.
opencode_store_memory Store a fact / decision / snippet so the agent remembers it next session.
opencode_search_memory Semantic search over everything remembered.
opencode_memory_stats How many memories are stored.
opencode_clear_memory Delete memories, optionally by tag.

Environment

Var Default Purpose
AINATIVE_API_KEY Your AINative API key (required).
AINATIVE_API_URL https://api.ainative.studio ZeroDB API base.
OPENCODE_MEMORY_NAMESPACE opencode Scope memories per-project/agent.

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ainative_opencode_memory-0.1.0.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ainative_opencode_memory-0.1.0-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file ainative_opencode_memory-0.1.0.tar.gz.

File metadata

File hashes

Hashes for ainative_opencode_memory-0.1.0.tar.gz
Algorithm Hash digest
SHA256 bf6653eb8c5eb71285b3b1dbdd33e8b8877d99a9576c919b3dd378cdb968cc6e
MD5 0c6a7298113ac38276715fb09f8abdf2
BLAKE2b-256 ade4568a2a0d62964e274f9d3099ebb29e7870ea5256b08eabb2265f19acc940

See more details on using hashes here.

File details

Details for the file ainative_opencode_memory-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ainative_opencode_memory-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 873bf69be83a872193ae3071e0aaf19fb36448f7d6914cea3ff8630e033fdd23
MD5 aef376f3da5624e35f8b00a7173234bb
BLAKE2b-256 2e36cda34b0366657346f0e52524352bed1fd9e0db1a907fc83811bb5997d76c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page