https://github.com/solomemory-ai/opencode-solomemory
Persistent memory plugin for OpenCode — your AI agent remembers across sessions and projects
https://github.com/solomemory-ai/opencode-solomemory
ai bun coding-agent memory opencode opencode-plugin persistent-memory plugin solomemory typescript
Last synced: 9 days ago
JSON representation
Persistent memory plugin for OpenCode — your AI agent remembers across sessions and projects
- Host: GitHub
- URL: https://github.com/solomemory-ai/opencode-solomemory
- Owner: solomemory-ai
- License: agpl-3.0
- Created: 2026-02-01T11:22:42.000Z (22 days ago)
- Default Branch: v1.0
- Last Pushed: 2026-02-08T15:24:23.000Z (15 days ago)
- Last Synced: 2026-02-08T17:06:13.972Z (15 days ago)
- Topics: ai, bun, coding-agent, memory, opencode, opencode-plugin, persistent-memory, plugin, solomemory, typescript
- Language: TypeScript
- Homepage: https://solomemory.com
- Size: 171 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: docs/CONTRIBUTING.md
- License: LICENSE
- Agents: AGENTS.md
Awesome Lists containing this project
README

# Solo Memory for OpenCode
[](https://www.npmjs.com/package/oc-solomemory)
[](https://www.npmjs.com/package/oc-solomemory-dev)
[](https://www.npmjs.com/package/oc-solomemory)
[](LICENSE)
[](https://www.typescriptlang.org/)
Persistent memory plugin for [OpenCode](https://opencode.ai). Your AI agent remembers across sessions and projects.
[Solo Memory](https://solomemory.com) gives your coding agent long-term memory — preferences you've shared, decisions you've made, context from past sessions. It all carries forward automatically.
---
## Install
Get your API key at [solomemory.com](https://solomemory.com), then:
```bash
npx oc-solomemory@latest install --api-key=your-key
```
Restart OpenCode. Done.
## What It Does
- **Remembers context** — Your preferences, project decisions, and past conversations are injected into every new session
- **Syncs conversations** — Sessions are synced to Solo Memory, building knowledge over time
- **Scopes memory** — Memories are organized by user, project, repo, and branch
- **Keyword detection** — Say "remember this" and it saves to memory
- **Codebase indexing** — Run `/solomemory-init` to memorize your project structure
## How It Works
```
You start a session
→ Plugin fetches your profile + relevant memories
→ Agent has full context from day one
You work with the agent
→ Session syncs to Solo Memory when idle
Next session
→ Agent already knows what you discussed
```
### Memory Scopes
| Scope | What it remembers | Example |
| ----------- | ------------------------------------ | ----------------------------------- |
| **User** | Your preferences across all projects | "Prefers TypeScript strict mode" |
| **Project** | Project-specific context | "Uses Bun, not Node" |
| **Repo** | Repository knowledge | "Auth uses JWT with refresh tokens" |
| **Branch** | Branch-specific work | "Working on dark mode feature" |
## Configuration
See [docs/CONFIG.md](docs/CONFIG.md) for advanced options.
## Contributing
See [docs/CONTRIBUTING.md](docs/CONTRIBUTING.md).
## License
[AGPL-3.0](LICENSE)