head to head · open source
cognee vs opencode-mem
cognee has 32,226 GitHub stars, 3,352 forks, 495 open issues and last shipped today. opencode-mem has 1,739 stars, 175 forks, 6 open issues and last shipped yesterday. cognee leads on adoption by 1,753% (32,226 vs 1,739 stars). cognee is written in Python under Apache-2.0; opencode-mem is written in TypeScript under MIT. cognee has attracted 10% as many forks as stars, opencode-mem 10%. cognee was the more recently maintained of the two, and both are self-hostable with no licence fee. The two share 1 topic tag (ai), so they are genuine substitutes rather than adjacent tools.
Two open source projects, one decision. Both are free and self-hostable — the differences are community size, license terms, language stack and release pace.
← all 20902 open source comparisons
Side by side
| cognee | opencode-mem | |
|---|---|---|
| GitHub stars | ★ 32K | ★ 1.7K |
| License | Apache-2.0 | MIT |
| Written in | Python | TypeScript |
| Last push | 2026-10-14 | 2026-10-13 |
| Forks | ⑂ 3.4K | ⑂ 175 |
| Self-hosting | Yes | Yes |
| Data ownership | Your server | Your server |
pick cognee if
- You weight community size — 32K stars and counting
- You want the Apache-2.0 license terms
- Your stack matches Python
- You value the larger contributor base for long-term maintenance
pick opencode-mem if
- You want the opencode-mem feature set and don't need the biggest community
- You prefer the MIT license terms
- Your stack matches TypeScript
- You evaluated both and opencode-mem fits your workflow better
About cognee
Cognee is an open source AI memory platform for agents, released under the Apache 2.0 license and written in Python. It ingests data in any format and builds a self hosted knowledge graph that agents query to recall, connect, and act with full context across sessions. The project lives in the Python ecosystem, installs through standard package managers, and sits in the AI and machine learning infrastructure category alongside graph databases and context engineering tooling. A companion research paper, "Optimizing the Interface Between Knowledge Graphs and LLMs for Complex Reasoning" by Markovic et al., 2025, docu…
read the full cognee overview →
About opencode-mem
opencode mem is an MIT licensed, TypeScript plugin for OpenCode that gives AI coding agents persistent memory across sessions by storing and searching vector embeddings in an embedded local Turso/libSQL database.
read the full opencode-mem overview →
More in AI & Machine Learning
Related comparisons
More Machine Learning Infrastructure projects
Compare either of these against the rest of the Machine Learning Infrastructure field.
Frequently asked questions
Is cognee or opencode-mem more popular?
cognee has 32,226 GitHub stars and opencode-mem has 1,739. cognee has the larger community by that measure.
Are cognee and opencode-mem free?
Both are open source. cognee is licensed under Apache-2.0 and opencode-mem under MIT. Neither carries a licence fee.
What is the difference between cognee and opencode-mem?
cognee is written in Python and opencode-mem in TypeScript. The practical differences are community size, licence terms, language stack and release cadence — all compared in the table above.
Which should I choose, cognee or opencode-mem?
Choose cognee if you want the larger community (32,226 stars) or its Apache-2.0 licence terms. Choose opencode-mem if its feature set, stack or MIT licence fits better. Both are self-hostable.