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
Metadata
Release files for ainative-opencode-memory 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ainative_opencode_memory-0.1.1.tar.gz | 5.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ainative_opencode_memory-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.3 kB
Release files / ainative_opencode_memory-0.1.1.tar.gz
| Download URL | ainative_opencode_memory-0.1.1.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
db01a3368b687e0f6c387c3b335bcb9ccdc9d859c99734b01c387b702261730d
|
|
BLAKE2b-256 checksum How to use checksums |
2cbb256b8efc7d9faed2c923cc61ed988ece22765cde38407db945e9468d6d74
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Release files / ainative_opencode_memory-0.1.1-py3-none-any.whl
| Download URL | ainative_opencode_memory-0.1.1-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2daef6846dbc39467f369f1a8f29b27fe3d1bd5f808584e87d73fcc46f6a60a9
|
|
BLAKE2b-256 checksum How to use checksums |
3f9e9d51f2ff12090825fb4af47451aae950e2baae1fde8dad994b230495666e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|