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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ainative_opencode_memory-0.1.1.tar.gz.
File metadata
- Download URL: ainative_opencode_memory-0.1.1.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db01a3368b687e0f6c387c3b335bcb9ccdc9d859c99734b01c387b702261730d
|
|
| MD5 |
1f741a58e8167249d73301c371723ee3
|
|
| BLAKE2b-256 |
2cbb256b8efc7d9faed2c923cc61ed988ece22765cde38407db945e9468d6d74
|
File details
Details for the file ainative_opencode_memory-0.1.1-py3-none-any.whl.
File metadata
- Download URL: ainative_opencode_memory-0.1.1-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2daef6846dbc39467f369f1a8f29b27fe3d1bd5f808584e87d73fcc46f6a60a9
|
|
| MD5 |
98bdbe072e4f54b6eda31dfd07467672
|
|
| BLAKE2b-256 |
3f9e9d51f2ff12090825fb4af47451aae950e2baae1fde8dad994b230495666e
|