openeruka
The open-source knowledge state memory server for AI agents.
接入你的智能体
从发布者处安装。不是 PlugMCP 端点。
远程 URL 还是本机命令? 两种安装方式的区别
openeruka is a fully self-contained memory server that enforces the knowledge state invariant: Confirmed facts cannot be overwritten by Inferred guesses. Run it locally, connect eruka-mcp to it, and your AI agent gets grounded, protected memory. Ships as a single binary with SQLite bundled — production-ready in one command.
# Install the server binary
cargo install openeruka
# Start it
openeruka serve # default port 8080
# Connect Claude Code / Claude Desktop via eruka-mcp
# Default ERUKA_API_URL is http://localhost:8080 — no extra config needed
use openeruka::KnowledgeState;
// The core contract — enforced server-side, not advisory
assert!( KnowledgeState::Confirmed.can_overwrite(&KnowledgeState::Inferred));
assert!(!KnowledgeState::Inferred.can_overwrite(&KnowledgeState::Confirmed));
When your agent tries to overwrite a Confirmed fact with an Inferred guess, the server returns 409 Conflict. LLM hallucinations cannot corrupt verified knowledge. No other memory system enforces this.
openeruka exposes three equivalent interfaces:
All three share the same SQLite backend and enforce the same knowledge state rules.
# Install
cargo install openeruka
# Start REST server (SQLite backend, default ./eruka.db)
openeruka serve
# Write a confirmed fact
curl -X POST http://localhost:8080/api/v1/context \
-H "Content-Type: application/json" \
-d '{"workspace_id":"my-project","path":"identity/company_name","value":"Acme Corp","knowledge_state":"CONFIRMED","confidence":1.0,"source":"user_input"}'
# Try to overwrite with an inferred guess — rejected with 409
curl -X POST http://localhost:8080/api/v1/context \
-H "Content-Type: application/json" \
-d '{"workspace_id":"my-project","path":"identity/company_name","value":"Acme AI Labs","knowledge_state":"INFERRED","confidence":0.7,"source":"agent_inference"}'
# → 409 Conflict: field is CONFIRMED, write has lower knowledge state
# Read it back — still the original
curl "http://localhost:8080/api/v1/context?workspace_id=my-project&path=identity/company_name"
[dependencies]
openeruka = { version = "0.2", default-features = false }
openeruka-client = "0.1"
// Embed SqliteContextStore in your own Rust agent
use openeruka::{SqliteContextStore, ContextStore, ErukaFieldWrite, KnowledgeState, SourceType};
let store = SqliteContextStore::open("./eruka.db").await?;
// Write enforces the invariant
store.write_field("my-ws", ErukaFieldWrite {
path: "identity/name".to_string(),
value: serde_json::json!("DIRMACS"),
knowledge_state: KnowledgeState::Confirmed,
confidence: 1.0,
source: SourceType::UserInput,
}).await?;
eruka-mcp can connect to either:
# Local openeruka (OSS, SQLite, single-tenant)
ERUKA_API_URL=http://localhost:8080 eruka-mcp
# Managed Eruka (PostgreSQL, multi-tenant, enterprise features)
ERUKA_API_URL=https://eruka.dirmacs.com ERUKA_API_KEY=sk:your-key eruka-mcp
MIT — see LICENSE
Self-hosted Eruka-compatible memory server — SQLite backend, REST API, MCP, and CLI. Single binary.
工具
暂无工具列表。远程服务器在首次健康检查后会获得工具列表。
常见问题
在本页复制适用于 Cursor、Claude Desktop、Claude Code 或 VS Code 的 stdio 配置。它使用发布者的安装方式,而不是 PlugMCP 代理。
此记录未列出必需的环境变量。
Openeruka 通过 stdio 在本地运行。
上次检查时间:2026-10-28。 Self-hosted Eruka-compatible memory server — SQLite backend, REST API, MCP, and CLI. Single binary.